/* =========================
       BASE & THEME
    ========================= */
    body {
      margin: 0;
      font-family: "Inter", sans-serif;
      background: radial-gradient(circle at top, #0b1020, #05070f);
      color: #e7e1d6;
      overflow-x: hidden;
      min-height: 100vh;
      position: relative;
    }

    /* Interactive Canvas Background Layer */
    #celestial-canvas {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      pointer-events: none;
    }

    /* =========================
       HEADER & SHIMMER EFFECT
    ========================= */
    header {
      text-align: center;
      padding: 5rem 1rem 2rem;
      position: relative;
      z-index: 2;
    }

    header h1 {
      font-family: "Cinzel", serif;
      font-size: clamp(2rem, 5vw, 3rem);
      letter-spacing: 0.25em;
      margin: 0;
      text-shadow: 0 0 30px rgba(242, 230, 200, 0.15);
      
      /* Subtle light shimmer sweep matching original gold/cream */
      background: linear-gradient(
        110deg, 
        #f2e6c8 35%, 
        #ffffff 50%, 
        #f2e6c8 65%
      );
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: textShimmer 6s linear infinite;
    }

    @keyframes textShimmer {
      0% {
        background-position: 200% center;
      }
      100% {
        background-position: -200% center;
      }
    }

    header p {
      margin-top: 0.75rem;
      color: #9fb7c9;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      font-size: clamp(0.8rem, 2vw, 1rem);
    }

    /* =========================
       NAV RIBBON & INTERACTION
    ========================= */
    nav.ribbon {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1.5rem;
      padding: 0.8rem 1.5rem;
      margin: 1rem auto 4rem;
      max-width: 900px;
      width: fit-content;

      background: rgba(10, 15, 25, 0.65);
      border: 1px solid rgba(180, 200, 255, 0.15);
      border-radius: 999px;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      position: relative;
      z-index: 100;
      
      box-shadow: 0 0 20px rgba(159, 183, 201, 0.05);
      overflow: visible; /* Crucial to keep dropdown content visible */
    }

    nav.ribbon a,
    .dropdown .dropbtn {
      color: #d9c9a3;
      text-decoration: none;
      font-size: 0.85rem;
      letter-spacing: 0.1em;
      padding: 0.5rem 1rem;
      border-radius: 999px;
      transition: all 0.3s ease;
      background: transparent;
      border: none;
      cursor: pointer;
      font-family: inherit;
    }

    nav.ribbon a:hover,
    .dropdown:hover .dropbtn {
      background: rgba(157, 220, 255, 0.1);
      color: #ffffff;
      text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    }

    /* =========================
       RIBBON NAV DROPDOWN (STABLE MOUSE PASS-THROUGH)
    ========================= */
    .dropdown {
      position: relative;
    }

    .dropdown-content {
      position: absolute;
      top: calc(100% + 10px); /* Floating gap */
      left: 50%;
      transform: translateX(-50%) translateY(10px); /* Slide transition prep */
      min-width: 240px;

      background: rgba(10, 15, 25, 0.95);
      border: 1px solid rgba(180, 200, 255, 0.15);
      border-radius: 14px;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      padding: 0.5rem;
      z-index: 110;
      
      display: flex;
      flex-direction: column;

      /* Smooth display and movement transition */
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

    /* 
      GAP BRIDGE FIX:
      This transparent pseudo-element covers the gap between the button and the dropdown menu.
      It guarantees mouse tracking maintains hover connection, preventing premature closes.
    */
    .dropdown-content::before {
      content: "";
      position: absolute;
      top: -15px; /* Safely reaches and overlaps the 10px spacing gap */
      left: 0;
      right: 0;
      height: 20px;
      background: transparent;
    }

    /* Activate dropdown state on hover smoothly */
    .dropdown:hover .dropdown-content {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0); /* Glides upward into final placement */
    }

    /* Dropdown elements stylings */
    .dropdown-content a {
      display: block;
      padding: 0.6rem 0.9rem;
      text-decoration: none;
      color: #d9c9a3;
      font-size: 0.85rem;
      letter-spacing: 0.05em;
      border-radius: 8px;
      white-space: nowrap;
      transition: all 0.2s ease;
      text-align: left;
    }

    .dropdown-content a:hover {
      background: rgba(157, 220, 255, 0.12);
      color: #ffffff;
      padding-left: 1.2rem; /* Smooth horizontal glide interaction */
    }

    /* =========================
       MAIN LAYOUT
    ========================= */
    main {
      max-width: 900px;
      margin: auto;
      padding: 0 1.5rem 5rem;
      position: relative;
      z-index: 2; /* Sits completely in front of animated canvas background */
    }

    /* =========================
       WELCOME SECTION
    ========================= */
    .welcome {
      padding: 3rem 0;
      text-align: center;
    }

    .welcome h2 {
      font-family: "Cinzel", serif;
      font-weight: 400;
      color: #f0e2c4;
      letter-spacing: 0.1em;
      font-size: clamp(1.5rem, 4vw, 2rem);
      margin-bottom: 1.5rem;
    }

    .welcome p {
      line-height: 1.8;
      color: #c9d3dd;
      max-width: 70ch;
      margin: 0 auto;
      font-size: 1.05rem;
      font-weight: 300;
    }

    /* =========================
       QUOTE SECTION
    ========================= */
    .quote {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2.5rem;
      padding: 4rem 0;
      align-items: center;
    }

    @media (min-width: 768px) {
      .quote {
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
      }
    }

    .quote img {
  width: 100%;
  height: auto; /* Scales proportionally based on width */
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(120, 180, 255, 0.08);
}

    .quote blockquote {
      font-family: "Cinzel", serif;
      font-size: clamp(1.1rem, 3vw, 1.4rem);
      color: #f1e7d0;
      margin: 0;
      padding: 1rem 0;
      letter-spacing: 0.05em;
      line-height: 1.6;
    }

    /* =========================
       FOOTER VIDEO PLACEHOLDER
    ========================= */
    .video-placeholder {
      margin: 4rem 0 2rem;
      padding: 4rem 2rem;
      text-align: center;
      border: 1px dashed rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      color: #9fb7c9;
      background: rgba(10, 15, 25, 0.3);
      backdrop-filter: blur(4px);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-size: 0.9rem;
    }

    /* =========================
       RESPONSIVE MOBILE OVERRIDES
    ========================= */
    @media (max-width: 600px) {
      nav.ribbon {
        flex-direction: column;
        border-radius: 20px;
        padding: 1rem;
        gap: 0.5rem;
        width: calc(100% - 2rem);
      }
      
      nav.ribbon a, .dropdown .dropbtn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
      }

      .dropdown-content {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: rgba(10, 15, 25, 0.3);
        border: none;
        box-shadow: none;
        margin-top: 0.5rem;
        display: none; /* Mobile display toggle fallback */
      }

      .dropdown:hover .dropdown-content {
        display: flex;
      }
    }

    /* =========================
   CONTENT SECTIONS
========================= */
.content-intro {
  margin-bottom: 3rem;
}

.content-intro h1 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #f0e2c4;
  margin-bottom: 1.5rem;
}

.content-intro p {
  line-height: 1.8;
  color: #c9d3dd;
  font-weight: 300;
  margin-bottom: 1rem;
}

.content-intro em,
.step p em {
  color: #f2e6c8;
  font-style: normal;
}

/* Steps */
.step {
  margin-bottom: 3.5rem;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(217, 201, 163, 0.4);
  background: rgba(10, 15, 25, 0.5);
  color: #f2e6c8;
  font-family: "Cinzel", serif;
}

.step-heading h2 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  font-size: 1.3rem;
  color: #f0e2c4;
  margin: 0;
}

.step p {
  line-height: 1.8;
  color: #c9d3dd;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Habitat grid */
.habitat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.habitat-card {
  border-radius: 8px;
  border: 1px solid rgba(180, 200, 255, 0.15);
  background: rgba(10, 15, 25, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1rem 0.75rem;
  text-align: center;
  color: #d9c9a3;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.habitat-card:hover {
  border-color: rgba(157, 220, 255, 0.4);
  color: #ffffff;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  border-radius: 8px;
  border: 1px solid rgba(180, 200, 255, 0.15);
  background: rgba(10, 15, 25, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1rem;
}

.feature-card h3 {
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #f2e6c8;
  margin: 0 0 0.5rem;
}

.feature-card p {
  color: #9fb7c9;
  font-size: 0.9rem;
  font-weight: 300;
  margin: 0;
}

/* Detail tags */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 201, 163, 0.3);
  color: #d9c9a3;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

/* Tips callout */
.tips-box {
  border-radius: 16px;
  border: 1px solid rgba(180, 200, 255, 0.15);
  background: rgba(10, 15, 25, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.5rem;
  margin-bottom: 3.5rem;
}

.tips-box h2 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  color: #f0e2c4;
  margin: 0 0 1rem;
}

.tips-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tips-box li {
  display: flex;
  gap: 0.6rem;
  color: #c9d3dd;
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 0.7rem;
}

.tips-box li::before {
  content: "◆";
  color: #9fb7c9;
  flex-shrink: 0;
}

/* Closing section */
.closing {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.closing h2 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1rem;
  color: #f0e2c4;
  margin-bottom: 0.75rem;
}

.closing p {
  color: #9fb7c9;
  font-size: 0.9rem;
  font-weight: 300;
  max-width: 60ch;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 700px) {
  .habitat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
