/* styles.css */
:root{
  --bg: #0b0f14;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.7);
  --line: rgba(255,255,255,.14);
  --accent: #7cdbff;
  --accent2:#b7ffb0;

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow-soft: 0 10px 35px rgba(0,0,0,.35);
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(124,219,255,.14), transparent 55%),
    radial-gradient(900px 600px at 85% 25%, rgba(183,255,176,.10), transparent 50%),
    radial-gradient(800px 600px at 55% 85%, rgba(124,219,255,.08), transparent 52%),
    var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

a{ color: inherit; text-decoration: none; }
button{ font: inherit; }

.container{
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.page{
  min-height: 100vh;
  padding: 88px 0 56px; /* room for header */
}

.hamburger{ display: none; }

.topnav{
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(to bottom, rgba(11,15,20,.55), rgba(11,15,20,.30));
}
.topnav-inner{
  height: 52px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  overflow:auto;
  scrollbar-width: none; /* firefox */
}
.topnav-inner::-webkit-scrollbar{ display:none; }

.topnav a{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.88);
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.topnav a:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

/* === DESKTOP ABOUT DROPDOWN (Hover) — Fixed clipping + z-index === */
.topnav {
  position: relative;
  z-index: 2100;           /* High enough to beat hero */
}

.topnav li {
  position: relative;
}

.topnav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgba(20, 26, 34, 0.96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 3000;           /* Very high — safely above hero */
}

.topnav .has-dropdown:hover .dropdown,
.topnav .has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topnav .dropdown a {
  display: block;
  padding: 10px 18px;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  text-decoration: none;
}

.topnav .dropdown a:hover {
  background: rgba(255,255,255,.08);
  color: white;
}

/* Prevent any clipping of the dropdown */
.topnav,
.topnav-inner {
  overflow: visible !important;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 180px;
}
.logo{
  width: 38px; height: 38px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(124,219,255,.9), rgba(124,219,255,.1) 55%),
              radial-gradient(circle at 70% 70%, rgba(183,255,176,.7), rgba(183,255,176,.05) 55%),
              rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-soft);
}
.brand-title{
  display:flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-title strong{
  font-size: 14px;
  letter-spacing: .3px;
}
.brand-title span{
  font-size: 12px;
  color: var(--muted);
}

.hamburger{
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  cursor:pointer;
  display:grid;
  place-items:center;
  transition: transform .15s ease, background .15s ease;
}
.hamburger:active{ transform: scale(.98); }
.hamburger:hover{ background: rgba(255,255,255,.09); }

.bars{
  width: 20px; height: 14px;
  position: relative;
}
.bars span{
  position:absolute;
  left:0; right:0;
  height:2px;
  background: rgba(255,255,255,.88);
  border-radius: 999px;
  transition: transform .22s ease, top .22s ease, opacity .18s ease;
}
.bars span:nth-child(1){ top:0; }
.bars span:nth-child(2){ top:6px; opacity: 1; }
.bars span:nth-child(3){ top:12px; }

body.menu-open .bars span:nth-child(1){ top:6px; transform: rotate(45deg); }
body.menu-open .bars span:nth-child(2){ opacity: 0; }
body.menu-open .bars span:nth-child(3){ top:6px; transform: rotate(-45deg); }

.flyout-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events:none;
  transition: opacity .2s ease;
  z-index: 60;
}
body.menu-open .flyout-overlay{
  opacity: 1;
  pointer-events: auto;
}

.flyout{
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(380px, 86vw);
  background: linear-gradient(180deg, rgba(20,26,34,.92), rgba(12,16,22,.92));
  border-left: 1px solid rgba(255,255,255,.12);
  box-shadow: -18px 0 60px rgba(0,0,0,.45);
  transform: translateX(104%);
  transition: transform .25s ease;
  z-index: 5000;

  display:flex;
  flex-direction: column;
}
body.menu-open .flyout{ transform: translateX(0); }

.flyout-header{
  position: relative;
  z-index: 10;   /* Keeps the close button above the flyout content */
  padding: 18px 18px 12px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.flyout-title{
  font-weight: 700;
  letter-spacing: .2px;
}

.flyout-nav{
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  overflow:auto;
}
.nav-link{
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.nav-link:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-1px);
}
.nav-link small{ color: var(--muted); display:block; margin-top: 4px; }

.hero{
  display:block;
  margin-bottom: 5px;
}

.hero-card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  overflow:hidden;
  position: relative;
  min-height: 540px;
}

.hero-card:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(124,219,255,.25), transparent 55%),
    radial-gradient(600px 240px at 85% 20%, rgba(183,255,176,.18), transparent 55%);
  opacity: .8;
  pointer-events:none;
}

.hero-card > *{ position: relative; }

h1{
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 44px);
  letter-spacing: -0.6px;
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 60ch;
}

.cta-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.btn.primary{
  border-color: rgba(124,219,255,.35);
  background: linear-gradient(180deg, rgba(124,219,255,.16), rgba(124,219,255,.06));
}
.btn .dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(124,219,255,.14);
}

.side-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.side-card h2{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: .2px;
}
.kv{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.kv .row{
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.kv .row span{
  display:block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.kv .row strong{
  font-size: 14px;
  font-weight: 700;
}

.section{
  margin-top: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.section h3{
  margin: 0 0 10px;
  font-size: 18px;
}
.section p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card{
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.card strong{ display:block; margin-bottom: 6px; }
.card p{ margin:0; color: var(--muted); line-height:1.6; }

.details{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
details{
  border-top: 1px solid rgba(255,255,255,.10);
}
details:first-child{ border-top: 0; }

details summary{
  cursor:pointer;
  padding: 14px 16px;
  list-style: none;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
details summary::-webkit-details-marker{ display:none; }
.details-title{
  font-weight: 800;
  letter-spacing: .2px;
}
details .content{
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.gallery-tile{
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(124,219,255,.18), rgba(124,219,255,.05)),
    rgba(255,255,255,.03);
}

.footer{
  margin-top: 18px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  text-align:center;
}

@media (max-width: 860px){
  .hamburger{ display: grid; }     /* hamburger visible on mobile */
  .topnav{ display: none; }       /* hide desktop list */

  .page{ padding-top: 88px; }    /* restore for mobile */
  .hero{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 420px){
  .brand-title span{ display:none; }
  .gallery-grid{ grid-template-columns: 1fr; }
}

/* Desktop nav control */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topnav-inner {
  justify-content: space-between;   /* Better alignment */
}

/* Hamburger control */
.hamburger {
  display: none;   /* Hidden by default (desktop) */
}

/* Mobile behavior */
@media (max-width: 860px) {
  .desktop-nav {
    display: none;          /* Hide desktop links */
  }
  
  .hamburger {
    display: grid;          /* Show hamburger */
  }
  
  .topnav-inner {
    justify-content: space-between;
  }
}

/* === MOBILE HEADER FIX === */
header.topbar {
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(to bottom, rgba(11,15,20,.55), rgba(11,15,20,.30));
  position: relative;
  z-index: 2000;
}

.topbar-inner {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;   /* This is the key */
  gap: 12px;
  padding: 0 1rem;
}

.topbar-inner .brand {
  flex-shrink: 0;   /* Prevent brand from shrinking */
}

/* Hide the separate desktop nav on mobile */
@media (max-width: 860px) {
  nav.topnav {
    display: none;
  }
}

/* Desktop: hide hamburger, show full nav */
@media (min-width: 861px) {
  .hamburger {
    display: none;
  }
}

/* Hero Card with Slideshow Background */
.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.14);
}

/* Slideshow container */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Individual slides */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Dark overlay so white text stays readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Content sits on top of everything */
.hero-content {
  position: relative;
  z-index: 4;
  padding: 48px 36px;
  width: 100%;
  color: white;
}

/* Optional: slightly stronger text contrast */
.hero-content h1,
.hero-content p {
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* === FINAL CLEAN FLYOUT (Single close button only) === */
.flyout-header {
  position: relative;
  z-index: 200;
}

.flyout-close {
  position: relative;
  z-index: 9999 !important;
  font-size: 1.8rem;
  line-height: 1;
  padding: 6px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  color: white;
  cursor: pointer;
}

.flyout-close:hover {
  background: rgba(255,255,255,.15);
}

/* Clean About sub-menu (no extra icons/markers) */
.flyout-details {
  border: none;
  background: transparent;
  margin: 0;
  padding: 0;
}

.flyout-details summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.flyout-details summary:hover {
  background: rgba(255,255,255,.08);
}

/* Explicitly hide any default arrow/marker */
.flyout-details summary::-webkit-details-marker,
.flyout-details summary::marker {
  display: none;
}

.flyout-sub-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  margin-left: 20px;
  padding-left: 12px;
  border-left: 2px solid rgba(255,255,255,.15);
}

.flyout-sub-menu .nav-link {
  padding: 10px 14px;
  font-size: 0.95rem;
}

/* Hide the hamburger (which turns into an X) when the flyout is open */
body.menu-open .hamburger {
  display: none !important;
}

/* Extra safety for the close button */
.flyout-close {
  position: relative;
  z-index: 9999 !important;
}

/* Remove bullet dots from desktop top-nav */
.topnav ul.topnav-inner,
.topnav li {
  list-style: none;
  margin: 0;
  padding: 0;
}