/* ---- Base ---- */
:root{
  --purple-100:#e9d6ff;
  --purple-200:#d2adff;
  --purple-300:#b77cff;
  --purple-400:#9f54ff;
  --purple-500:#8539f5;
  --purple-700:#3b1a66;
  --text-light:#f1e9ff;
  --text-dim:#cbb8ff;
  --bg-dark:#0b0720;
  --glass: rgba(20, 10, 40, 0.55);
  --border: rgba(255,255,255,0.14);
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0,0,0,0.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text-light);
  background:#000; /* fallback */
  font:16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- Layout ---- */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

.site-header{
  background: url("/images/sky.png") center/cover no-repeat;
  border-bottom:1px solid var(--border);
}

/* Layout for header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  backdrop-filter:saturate(120%) blur(2px);
}

.brand{
  font-weight:800;
  letter-spacing:0.4px;
  font-size:1.25rem;
  color:var(--text-light);
  text-decoration:none;
}

.main-nav ul{
  display:flex;
  gap:18px;
  list-style:none;
  margin:0;
  padding:0;
}

.main-nav a{
  color:var(--purple-200);
  text-decoration: none !important;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid transparent;
}
.main-nav a:hover{
  border-color:var(--border);
  background:rgba(255,255,255,0.05);
}


/* Tighter padding for header container = logo a bit more to the left */
.site-header .container {
  padding-left: 1px;
  padding-right: 16px;
}

/* Slightly bigger logo image */
.brand-mark {
  width: 70px;
  height: 70px;
}


/* Default = MOBILE: hide desktop nav, show hamburger */
.main-nav {
  display: none;
  margin-left: auto;
}

/* ===== Hamburger button ===== */

.menu-toggle {
  display: inline-flex;
  background: transparent;
  border: none;
  padding: 0.4rem;
  margin-left: auto;
  margin-right: 10px;
  cursor: pointer;
  outline: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.menu-toggle .menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--purple-200, #e3c5ff);
  margin: 3px 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* transform into "X" when open */
.menu-toggle.is-open .menu-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.menu-toggle.is-open .menu-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .menu-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ===== Fullscreen overlay ===== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;             /* hidden by default */
  align-items: flex-start;   /* content from top */
  justify-content: center;   /* center horizontally */
  padding: 140px 1.5rem 0;
  background-color: #000;    /* fallback */
  /* later: background-image: url("/images/your-bg.jpg"); */
  background-size: cover;
  background-position: center;
}

.mobile-menu.is-open {
  display: flex;
}

/* inner container so the menu doesn’t stick to the edges */
.mobile-menu-inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-top: -300px;
}

.mobile-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--purple-200, #e3c5ff);
  cursor: pointer;
}


.mobile-menu.is-open {
  display: flex;
}

body.no-scroll {
  overflow: hidden;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display:flex;
  flex-direction:column;
  gap: 1.25rem;
}

.mobile-nav li + li{
  margin-top: 0 !important;
}


/* Projects row: text + arrow stay together */
.mobile-projects-item .mobile-projects-link{
  width:auto !important;
  display:flex !important;
  flex: 1 1 auto;                 /* takes space, pushes arrow right */
}

/* Submenu arrow button (used inside the Projects row) */
.mobile-sub-toggle{
  display:inline-flex;
  width:auto;
  justify-content:center;
  align-items:center;
  gap: 0;

  margin:0;
  padding: 0 0.2rem;
  border:none;
  background:transparent;

  font-size:1.1rem;
  font-weight:500;
  color: var(--purple-200, #e3c5ff);
  cursor:pointer;
  text-align:left;
}


.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--purple-200, #e3c5ff);
}

.mobile-nav { width: 100%; }
.mobile-nav li { width: 100%; }

.mobile-nav a {
  width: 100%;
  text-align: left;
}

.mobile-nav a,
.mobile-sub-toggle,
.mobile-back{
  display: flex;
  align-items: center;
  line-height: 1.2;
  min-height: 32px;
}



.mobile-nav a:hover,
.mobile-nav a:focus {
  text-decoration: underline;
}

.mobile-sub-toggle .sub-arrow{
  margin-left:auto;
  flex-shrink:0;
  font-size:1.2em;
}

/* Projects submenu */
.mobile-nav-sub {
  display: none;
  margin-top: 1.25rem;
}

/* shown state */
.mobile-nav-sub.is-active {
  display: block;
}

/* hide main level when submenu is open */
.mobile-nav-main.is-hidden {
  display: none;
}

/* “back to main menu” button */
.mobile-back {
  align-items: center;
  gap: 0.75rem;
  margin-top: -1rem;
  margin-bottom: 1.25rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--purple-200, #e3c5ff);
  cursor: pointer;
}

.mobile-back .back-arrow {
  font-size: 1.2em;
}


/* ===== Desktop breakpoint ===== */
@media (min-width: 769px) {
  .main-nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}


/* ---- GLOBAL LINK OVERRIDE ---- */
a {
  color: var(--purple-200) !important;
  text-decoration: underline;
}

a[href^="mailto:"] {
  cursor: pointer;
  user-select: all;
}


/* Brand with logo */
.brand-with-logo{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-mark{
  height:75px;
  width:auto;
  display:block;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.45));
}

.brand-text{
  font-weight:800;
  letter-spacing:0.4px;
  font-size:1.2rem;
  color:var(--text-light);
}

/* Optional: tighten on very small screens */
@media (max-width:420px){
  .brand-text{ font-size:1.05rem; }
  .brand-mark{ height:30px; }
}

/* ---- Main ---- */
.site-main{
  background: radial-gradient(ellipse at 40% 0%, rgba(133,57,245,0.12), transparent 60%),
              url("/images/sky1.png") center/cover no-repeat fixed;
}

.hero{
  padding:72px 0 36px;
  text-shadow:0 2px 12px rgba(0,0,0,0.6);
}
h1{
  margin:0 0 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
.lead{
  color:var(--text-dim);
  max-width:800px;
  margin:0;
}

/* ---- Section Cards ---- */
.section-card{
  margin:26px auto 32px;
  background: url("/images/sky1.png");
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:20px;
  position:relative;
  max-width:800px;
}
.section-card h2{
  margin-top:0;
 }

.bullet-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap:10px 16px;
  padding-left:18px;
}

/* Base: always responsive */
.section-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


@media (max-width: 300px) {
  .section-card img {
    max-width: 50%;
  }
}


/* ---- Footer ---- */
.site-footer{
  background: linear-gradient(0deg, rgba(10,6,20,0.9), rgba(10,6,20,0.75)),
              url("/images/sky.png") center/cover no-repeat;
  padding-top:28px;
  border-top:1px solid var(--border);
  box-shadow: inset 0 8px 20px rgba(0,0,0,0.4);
}
.footer-top{
  display:flex;
  justify-content:center;
}
.footer-nav{
  display:flex;
  gap:22px;
  flex-wrap:wrap;
}
.footer-nav a{
  color:var(--purple-200);
  text-decoration:none;
}
.footer-nav a:hover{ color:var(--purple-100); }

.footer-legal{
  text-align:center;
  color:var(--text-dim);
  font-size:0.92rem;
  padding:18px 0 36px;
  line-height:1.5;
}

/* ---- Cookie Banner ---- */
.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: -100%;
  transition: bottom .35s ease;
  z-index: 9999;
}
.cookie-banner.show{ bottom:16px; }

.cookie-inner{
  background:
    linear-gradient(0deg, rgba(8,5,18,0.85), rgba(8,5,18,0.65)),
    url("footer.png") center/cover no-repeat;
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
  color:var(--text-light);
  max-width:980px;
  margin:0 auto;
}

.cookie-inner h3{
  margin:0 0 6px;
  font-size:1.05rem;
}

.cookie-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

/* Buttons */
.btn{
  cursor:pointer;
  border-radius:12px;
  padding:8px 14px;
  font-weight:600;
  border:1px solid transparent;
}
.btn-primary{
  background: var(--purple-500);
  color:white;
}
.btn-primary:hover{ filter:brightness(1.05); }

.btn-outline{
  background:transparent;
  color:var(--purple-200);
  border-color:var(--purple-400);
}
.btn-outline:hover{ background:rgba(255,255,255,0.06); }

.btn-ghost{
  background:rgba(255,255,255,0.04);
  color:var(--purple-200);
  border-color:var(--border);
}
.btn-ghost:hover{ background:rgba(255,255,255,0.08); }

/* ---- Small screens ---- */
@media (max-width:700px){
  .main-nav ul{ gap:10px; }
  .header-inner{ padding:14px 0; }
}

/* ---- Contact Form ---- */
form#contact-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: #000;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-400);
  background: #fff;
}

/* ---- Error messages ---- */
.error-msg {
  color: red !important;
  display: none;
  font-size: 0.9em;
  margin-top: 4px;
  background: transparent;
  text-shadow: none;
  position: relative;
  z-index: 3;
}
.section-card .error-msg::before {
  content: none !important;
}
form.submitted .error-msg.visible {
  display: block;
}

/* ---- Contact Form sizing tweaks ---- */
form#contact-form.narrow {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.form-group input,
.form-group textarea {
  padding: 8px;
  border-radius: 8px;
  font-size: 0.98rem;
}
.form-group input { height: 40px; }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---- Consent line ---- */
.form-consent{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:0px;
}
.form-consent input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color: var(--purple-500);
  flex-shrink:0;
}
.form-consent label{
  color:#fff;
  font-size:0.95rem;
  margin:0;
  line-height:1.3;
}
.form-consent label a{
  color:var(--purple-200);
  text-decoration:underline;
}
.form-consent label a:hover{
  text-decoration:underline;
}

/* ---- Consent line (override the generic .section-card label rule) ---- */
/* Align consent row with the inputs */
.section-card .form-consent{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;   /* was center */
  gap:10px;

  width: min(720px, 100%);      /* match input width cap */
  margin: 0 auto;               /* center the block itself */
  padding: 0;                   /* keep flush */
}

.section-card .form-consent input[type="checkbox"]{
  width:18px;
  height:18px;
  flex:0 0 auto;
  margin-top:2px;           /* optical alignment with first text line */
}

.section-card .form-consent .consent-text{
  max-width:720px;          /* prevents ultra-wide lines on big screens */
  text-align:left;
}

.section-card .form-consent label{
  width:auto !important;    /* key: undo width:100% from .section-card label */
  display:block;
  margin:0;
  text-align:left;
  line-height:1.35;
}

.section-card .form-consent .error-msg{
  margin:6px 0 0;
  text-align:left;
}


/* ---- Center content ---- */
.section-card{
  text-align:center;
}
.section-card .lead,
.section-card p{
  margin-left:auto;
  margin-right:auto;
  width: min(68ch, 100%);
}

.section-card h1,
.section-card h2,
.section-card h3,
.section-card h4{
  margin-left:auto;
  margin-right:auto;
}


.section-card form{
  margin-left:auto;
  margin-right:auto;
}
.section-card label{
  display:inline-block;
  text-align:center;
  width:100%;
}

/* compact, centered button */
.form-actions{
  display:flex;
  justify-content:center;
  margin-top:6px;
}
.form-actions .btn{
  width:auto;
  align-self:center;
  padding:8px 16px;
  border-radius:12px;
  font-size:0.95rem;
}

/* Honeypot hidden */
.hp-wrapper{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
  transform: scale(0.0001);
}

/* === Text-hugging aura === */
:root { --aura-purple-rgb: 59, 26, 102; }

.section-card :is(h1,h2,h3){
  display:inline-block;
  max-width: min(52ch, 100%);
  margin-inline:auto;
  position:relative;
  padding:0 .25em;
  text-align:center;
  text-shadow:0 1px 2px rgba(0,0,0,.55);
  z-index:0;
}

.section-card :is(h1,h2,h3)::before{
  content:"";
  position:absolute;
  inset:-.22em -.55em; /* a tiny bit narrower than -.60em if you want the glow less wide */
  border-radius:999px/70%;
  background:radial-gradient(
    ellipse at center,
    rgba(var(--aura-purple-rgb),1.00) 0%,
    rgba(var(--aura-purple-rgb),0.98) 45%,
    rgba(var(--aura-purple-rgb),0.70) 66%,
    rgba(var(--aura-purple-rgb),0.00) 88%
  );
  filter:blur(2px);
  pointer-events:none;
  z-index:-1;
}

.section-card h4{
  display:block;
  max-width:fit-content;
  margin: 1.2rem auto 0;   /* spacing above; tweak 1.0–1.4rem as you like */
  position:relative;
  padding:0 .25em;
  text-align:center;
  text-shadow:0 1px 2px rgba(0,0,0,.55);
  z-index:0;
}

.section-card h4::before{
  content:"";
  position:absolute;
  inset:-.22em -.55em;      /* same glow style as h1–h3 */
  border-radius:999px/70%;
  background:radial-gradient(
    ellipse at center,
    rgba(var(--aura-purple-rgb),1.00) 0%,
    rgba(var(--aura-purple-rgb),0.98) 45%,
    rgba(var(--aura-purple-rgb),0.70) 66%,
    rgba(var(--aura-purple-rgb),0.00) 88%
  );
  filter:blur(2px);
  pointer-events:none;
  z-index:-1;
}

/* Paragraphs & lead text with aura (excluding error-msg) */
.section-card :is(p,.lead):not(.error-msg){
  display:block;
  width:min(68ch,100%);
  margin-inline:auto;
  position:relative;
  padding:.2em .6em;
  line-height:1.6;
  text-shadow:0 1px 2px rgba(0,0,0,.55);
  z-index:0;
}
.section-card :is(p,.lead):not(.error-msg)::before{
  content:"";
  position:absolute;
  inset:-.25em -.70em;
  border-radius:999px/70%;
  background:radial-gradient(
    ellipse at center,
    rgba(var(--aura-purple-rgb),1.00) 0%,
    rgba(var(--aura-purple-rgb),0.95) 40%,
    rgba(var(--aura-purple-rgb),0.60) 65%,
    rgba(var(--aura-purple-rgb),0.00) 88%
  );
  filter:blur(2.2px);
  pointer-events:none;
  z-index:-1;
}

/* Labels, legends, summaries with aura */
.section-card :is(label,legend,summary){
  display:block;
  width:fit-content;
  margin-inline:auto;
  position:relative;
  padding:0 .25em;
  text-shadow:0 1px 2px rgba(0,0,0,.55);
  z-index:0;
}
.section-card :is(label,legend,summary)::before{
  content:"";
  position:absolute;
  inset:-.18em -.55em;
  border-radius:999px/70%;
  background:radial-gradient(
    ellipse at center,
    rgba(var(--aura-purple-rgb),1.00) 0%,
    rgba(var(--aura-purple-rgb),0.95) 45%,
    rgba(var(--aura-purple-rgb),0.60) 66%,
    rgba(var(--aura-purple-rgb),0.00) 88%
  );
  filter:blur(2px);
  pointer-events:none;
  z-index:-1;
}

/* ===== FAQ: underline on hover ONLY when the <details> is closed ===== */

.section-card details > summary{
  cursor: pointer;
  position: relative;   /* make sure ::after positions correctly */
  z-index: 2;           /* ensure underline sits above the aura */
}

/* the underline (hidden by default) */
.section-card details > summary::after{
  content:"";
  position:absolute;
  left: 0.15em;
  right: 0.15em;

  /* "unterstrichen": very close to the text */
  bottom: 0.10em;

  height: 1px;
  background: rgba(255,255,255,0.95);

  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease, opacity .18s ease;
  z-index: 3;
}

/* show underline ONLY when the details is CLOSED and user hovers */
.section-card details:not([open]) > summary:hover::after{
  opacity: 1;
  transform: scaleX(1);
}

/* when details is open: never show it (even on hover) */
.section-card details[open] > summary::after{
  opacity: 0 !important;
  transform: scaleX(0) !important;
}


/* Disable aura bleed on section separators or empty blocks */
.section-card hr,
.section-card:empty::before {
  background:none !important;
  box-shadow:none !important;
}

/* Form controls above glow */
.section-card :is(input,textarea,select,button){
  position:relative;
  z-index:2;
}

/* === PRIVACY PAGE TEXT FIXES === */

/* ---- Center content ---- */
.section-card{
  text-align:center;
}


/* paragraphs should not be centered; they are justified in the aura rule */
.section-card .lead,
.section-card p{
  margin-left:0;
  margin-right:0;
  text-align:justify;
}

.section-card form{
  margin-left:auto;
  margin-right:auto;
}
.section-card label{
  display:inline-block;
  text-align:center;
  width:100%;
}

/* Make all text inside section cards white */
.section-card,
.section-card p,
.section-card .lead,
.section-card h1,
.section-card h2,
.section-card h3,
.section-card h4{
  color:#ffffff;
}

/* === Project description text colors MUST override white === */
#project-description-admin .project-description-inner.theme-blue,
#project-description-other .project-description-inner.theme-gold {
  color: inherit; /* allow theme rules to apply */
}

/* Explicit colors to be 100% safe */
#project-description-admin .project-description-inner h2,
#project-description-admin .project-description-inner h3,
#project-description-admin .project-description-inner p {
  color: var(--admin-blue) !important;
}

#project-description-other .project-description-inner h2,
#project-description-other .project-description-inner h3,
#project-description-other .project-description-inner p {
  color: #ffb036 !important;
}


/* ==== Upcoming Projects override (FIXED: no white frame / no blocking) ==== */

#projects .project-letter{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  position: relative;
  z-index: 1;
}

/* kill browser focus rings that look like white frames */
#projects .project-letter:focus,
#projects .project-letter:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

/* IMPORTANT: keep letters looking normal (no frame), only glow on hover/active */
#projects .project-letter img{
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;              /* was cover -> can look “blocked”/cropped */
  border-radius: 12px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

/* HOVER: bigger + flicker + glow */
#projects .project-letter:not(.active):hover img{
  transform: scale(1.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  animation: fireFlicker 1.4s infinite alternate;
}

/* ACTIVE: stays chosen with glow (NO white/bright frame ring) */
#projects .project-letter.active img{
  transform: scale(1.06);
  filter: brightness(1.35) drop-shadow(0 0 20px #ffc400);
  box-shadow: 0 0 25px rgba(255, 191, 73, 0.9);
}

#projects .project-letter:hover:not(.active){
  z-index: 3;
}

#projects .project-letter.active{
  z-index: 5;
}

/* Fire flicker animation */
@keyframes fireFlicker{
  0%   { filter: brightness(1)   drop-shadow(0 0 6px  #ffb300); }
  40%  { filter: brightness(1.3) drop-shadow(0 0 16px #ff9100); }
  70%  { filter: brightness(0.9) drop-shadow(0 0 4px  #ff6a00); }
  100% { filter: brightness(1.35) drop-shadow(0 0 20px #ffc400); }
}

/* Description block */
.project-description {
  max-width: 610px;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-description.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.project-description-inner {
  background:#000;
  border-radius: 16px;
  padding: 1.6rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.project-description h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
}

/* Text styling only inside the Project description blocks (no purple aura) */
#project-description-admin h2,
#project-description-admin h3,
#project-description-admin p,
#project-description-other h2,
#project-description-other h3,
#project-description-other p {
  text-shadow: none !important;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Disable the purple aura pseudo-elements inside BOTH description blocks */
#project-description-admin .project-description-inner :is(h1,h2,h3,h4,p,.lead,label,legend,summary),
#project-description-other .project-description-inner :is(h1,h2,h3,h4,p,.lead,label,legend,summary) {
  position: static !important;
  padding: 0 !important;
}

#project-description-admin .project-description-inner :is(h1,h2,h3,h4,p,.lead,label,legend,summary)::before,
#project-description-other .project-description-inner :is(h1,h2,h3,h4,p,.lead,label,legend,summary)::before {
  content: none !important;
}

/* Keep spacing symmetrical when no project is selected */
#projects .project-description {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden;
}

/* When visible: restore padding & margin */
#projects .project-description.visible {
  margin: 2.5rem auto !important;
  padding: 0; /* padding stays in .project-description-inner */
  height: auto !important;
  overflow: visible;
}

/* ==== Administrativa logo: same behavior as fiery letters, but in #63C7FF ==== */

:root{
  --admin-blue: #63C7FF;
}

#projects .project-logos{
  display:flex;
  justify-content:center;
  align-items:center;
}

/* Button itself: no chrome */
#projects .project-logo{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  position: relative;
  z-index: 1;
}

/* Image rules:
   - keep it responsive
   - make sure it doesn't appear wider than the text block area
*/
#projects .project-logo img{
  display:block;
  height:auto;
  width: 610px;
  object-fit: contain;
  border-radius: 12px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

/* HOVER: bigger + blue flicker */
#projects .project-logo:not(.active):hover img{
  transform: scale(1.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  animation: adminFlicker 1.4s infinite alternate;
}

/* ACTIVE: stays chosen with glow (no animation, like your fiery letters) */
#projects .project-logo.active img{
  transform: scale(1.06);
  filter: brightness(1.18) drop-shadow(0 0 22px var(--admin-blue));
  box-shadow:
    0 0 25px rgba(99, 199, 255, 0.70),
    0 0 0 2px rgba(99, 199, 255, 0.85);
}

#projects .project-logo.active{
  z-index: 5;
}

/* Blue flicker animation */
@keyframes adminFlicker{
  0%   { filter: brightness(1.00) drop-shadow(0 0 6px  rgba(99, 199, 255, 0.55)); }
  40%  { filter: brightness(1.18) drop-shadow(0 0 16px rgba(99, 199, 255, 0.80)); }
  70%  { filter: brightness(0.95) drop-shadow(0 0 4px  rgba(99, 199, 255, 0.45)); }
  100% { filter: brightness(1.22) drop-shadow(0 0 22px rgba(99, 199, 255, 0.95)); }
}

/* ==== Project description theme switch (gold vs blue) ==== */

#project-description-admin.theme-gold h2,
#project-description-admin.theme-gold h3,
#project-description-admin.theme-gold p,
#project-description-other.theme-gold h2,
#project-description-other.theme-gold h3,
#project-description-other.theme-gold p{
  color: #ffb036;
  text-shadow: none;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

#project-description-admin.theme-blue h2,
#project-description-admin.theme-blue h3,
#project-description-admin.theme-blue p,
#project-description-other.theme-blue h2,
#project-description-other.theme-blue h3,
#project-description-other.theme-blue p{
  color: var(--admin-blue);
  text-shadow: none;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}



/* === NsperaNova Projects card vertical spacing tweaks === */

/* Equal padding above and below the letters/text block */
#projects.section-card {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

/* Letters row: no extra bottom margin (spacing is controlled via padding + description) */
#projects .project-letters {
  margin-bottom: 0;
}

/* Default: description collapsed with no extra space */
#projects .project-description {
  margin: 0 auto !important;
}

/* When a project is visible:
   distance from letters -> text = same as padding-top above letters */
#projects .project-description.visible {
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
}

/* ===== FINAL OVERRIDE: MOBILE HEADER & MENU ===== */

/* Mobile-first: hamburger + fullscreen menu */
@media (max-width: 768px) {

  /* hide desktop nav on small screens */
  .site-header .main-nav {
    display: none !important;
    margin-left: auto;
  }

  /* show hamburger on the right */
  .site-header .menu-toggle {
    display: inline-flex !important;
    background: transparent;
    border: none;
    padding: 0.4rem;
    margin-left: auto;
    cursor: pointer;
    outline: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .site-header .menu-toggle .menu-bar {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--purple-200, #e3c5ff);
    margin: 3px 0;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }

  /* fullscreen overlay */
  .site-header .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none !important;   /* hidden until .is-open */
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #000;     /* you will add your image later */
    /* background-image: url("/images/mobile-menu-bg.jpg"); */
    background-size: cover;
    background-position: center;
  }

  .site-header .mobile-menu.is-open {
    display: flex !important;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .mobile-nav li + li {
    margin-top: 1.2rem;
  }

  .mobile-nav a {
    font-size: 1.1rem;          /* smaller than the chess example */
    font-weight: 500;
    text-decoration: none;
    color: var(--purple-200, #e3c5ff);
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus {
    text-decoration: underline;
  }
}

/* Desktop: normal nav, no hamburger, no overlay */
@media (min-width: 769px) {
  .site-header .main-nav {
    display: block !important;
  }

  .site-header .menu-toggle {
    display: none !important;
  }

  .site-header .mobile-menu {
    display: none !important;
  }
}

/* Keep the X animation for the open state */
.menu-toggle.is-open .menu-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.menu-toggle.is-open .menu-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .menu-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* so anchor jumps don't hide behind the fixed header */
details { scroll-margin-top: 120px; }

/* --- PRINT: hide things that shouldn't appear in PDF/print --- */
@media print {
  .no-print,
  #cookie-banner,
  #cookie-notice {
    display: none !important;
    visibility: hidden !important;
  }

  /* If your site uses star background / shadows, they can look bad in print */
  body {
    background: #fff !important;
  }

  /* Remove card styling that creates “boxed” print artifacts */
  .section-card {
    box-shadow: none !important;
    background: transparent !important;
  }

  /* IMPORTANT: if you previously used page-break-inside: avoid on sections,
     it can force “one card per page” and create huge blank spaces. */
  section,
  .section-card {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  /* Ensure consistent heading colors (covers h4 too) */
  h1, h2, h3, h4, h5, h6,
  p, li {
    color: #000 !important;
  }
}

/* ===== FINAL FIX: Projects row arrow near right edge (mobile menu) ===== */
.mobile-nav-main .mobile-projects-item{
  display:flex !important;
  align-items:center !important;
  justify-content: space-between !important;
  width:100% !important;
  gap: 1rem !important;
  flex-wrap: nowrap !important;
}

.mobile-nav-main .mobile-projects-item .mobile-projects-link{
  flex: 1 1 auto !important;          /* take remaining space */
  width: auto !important;              /* undo global width:100% if needed */
  display:flex !important;
}

.mobile-nav-main .mobile-projects-item .mobile-sub-toggle{
  flex: 0 0 auto !important;
  width: 44px !important;              /* consistent tap target */
  height: 32px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;  /* arrow visually near right edge */
  margin-left: 0 !important;            /* undo old margin-left */
  padding: 0 !important;
}

/* Fix: keep "Challenge" and "Status" on their own lines inside project descriptions */
#projects .project-description-inner h2,
#projects .project-description-inner h3{
  display:block !important;   /* overrides .section-card :is(h1,h2,h3){display:inline-block;} */
  width:100%;
}

#project-description-other p { white-space: pre-line; }


