/* styles.css */

:root{
  --bg0:#050706;
  --bg1:#070b09;

  --cardA: rgba(12, 16, 14, 0.72);
  --cardB: rgba(12, 16, 14, 0.44);

  --text:#e8f1ec;
  --muted:rgba(232,241,236,0.72);
  --muted2:rgba(232,241,236,0.56);

  --accent:#39ff98;

  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --radius-xl: 22px;
  --radius-lg: 16px;

  --container: 1160px;
  --gutter: 22px;
  --ring: 0 0 0 3px rgba(57,255,152,0.22);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ background: var(--bg0); }

/* Background system: base + blurred glows + vignette + dither */
body{
  margin:0;
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x:hidden;
  background: var(--bg0);
  position: relative;
}

body::before{
  content:"";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 70% 18%, rgba(57,255,152,0.22), rgba(57,255,152,0) 70%),
    radial-gradient(closest-side at 18% 32%, rgba(18,201,114,0.18), rgba(18,201,114,0) 72%),
    radial-gradient(closest-side at 80% 80%, rgba(57,255,152,0.10), rgba(57,255,152,0) 75%);
  filter: blur(30px);
  transform: translateZ(0);
  opacity: 0.95;
}

@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.03); }
  100% { transform: translate3d(0,0,0) scale(1); }
}
body::before{ animation: none; }
@media (prefers-reduced-motion: reduce){
  body::before{ animation: none; }
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      #050706 0%,
      #060a08 25%,
      #06100b 55%,
      #070b09 100%
    ),
    radial-gradient(1200px 700px at 50% 10%,
      rgba(0,0,0,0) 35%,
      rgba(0,0,0,0.45) 100%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  background-blend-mode: normal, multiply, overlay;
  opacity: 0.85;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

.container{
  width:min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin:0 auto;
  position:relative;
  z-index:1;
}

/* Header */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(5,7,6,0.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 200px;
}
.brand-name{
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight:700;
  letter-spacing:0.4px;
  font-size:16px;
}
.brand-sub{
  display:block;
  font-size:12px;
  color:var(--muted2);
  margin-top:1px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.nav-links a{
  font-size:14px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.nav-links a:hover{
  color:var(--text);
  border-color:rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.03);
}

.nav-cta{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  color:var(--text);
  font-weight:600;
  font-size:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.btn:hover{ transform: translateY(-1px); border-color:rgba(255,255,255,0.18); }
.btn:focus{ outline:none; box-shadow: var(--shadow), var(--ring); }

.btn-primary{
  border-color: rgba(57,255,152,0.25);
  background: linear-gradient(180deg, rgba(57,255,152,0.14), rgba(57,255,152,0.06));
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.btn-primary:hover{
  border-color: rgba(57,255,152,0.38);
  box-shadow: 0 20px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(57,255,152,0.08), 0 0 26px rgba(57,255,152,0.14);
}
.btn-ghost{
  background:transparent;
  box-shadow:none;
}

.hamburger{
  display:none;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  color:var(--text);
  cursor:pointer;
}

/* Mobile menu */
.mobile-menu{
  display:none;
  padding: 0 0 14px 0;
}
.mobile-menu .panel{
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(12,16,14,0.55);
  border-radius: var(--radius-lg);
  padding: 12px;
}
.mobile-menu a{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  color:var(--muted);
  border:1px solid transparent;
}
.mobile-menu a:hover{
  color:var(--text);
  border-color:rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.03);
}

/* Hero */
.hero{
  padding: 44px 0 14px;
}
.hero-card{
  border-radius: var(--radius-xl);
  border:1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, var(--cardA), var(--cardB));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(760px 320px at 20% 20%, rgba(57,255,152,0.18), transparent 60%);
  pointer-events:none;
  opacity:0.95;
}
.hero-inner{
  position:relative;
  padding: 26px;
  display:grid;
  grid-template-columns: 0.40fr 0.60fr;
  gap:22px;
  align-items:center;
}

.avatar-wrap{
  display:grid;
  place-items:center;
  padding: 6px;
}
.avatar{
  width: 220px;
  height: 220px;
  border-radius: 34px;
  background: rgba(0,0,0,0.35);
  border:1px solid rgba(64, 255, 160, 0.16);
  box-shadow: 0 0 0 1px rgba(57,255,152,0.08), 0 22px 90px rgba(0,0,0,0.6);
  position:relative;
  overflow:hidden;
}
.avatar::after{
  content:"";
  position:absolute;
  inset:-22px;
  border-radius: 40px;
  background: radial-gradient(circle at 35% 35%, rgba(57,255,152,0.24), transparent 46%);
  pointer-events:none;
  filter: blur(2px);
}
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  position:relative;
  z-index:1;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-size:13px;
  letter-spacing:0.2px;
  margin-bottom:8px;
}
.dot{
  width:8px; height:8px; border-radius:99px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(57,255,152,0.14);
}

h1{
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height:1.05;
  margin:0 0 10px 0;
  letter-spacing:0.2px;
}
.subhead{
  margin:0;
  font-size: 16px;
  line-height:1.65;
  color: var(--muted);
  max-width: 70ch;
}

.hero-ctas{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

/* Social row (image icons) */
.social-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
  align-items:center;
}

.social-icon{
  width:60px;
  height:60px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  display:grid;
  place-items:center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.20);
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.social-icon:hover{
  transform: translateY(-1px);
  border-color: rgba(57,255,152,0.26);
  background: rgba(57,255,152,0.06);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35), 0 0 18px rgba(57,255,152,0.12);
}
.social-icon:focus{
  outline:none;
  box-shadow: var(--shadow), var(--ring);
}
.social-icon img{
  width:35px;
  height:35px;
  object-fit: contain;
  display:block;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35));
}

.helper{
  margin-top:10px;
  color: var(--muted2);
  font-size: 12px;
  line-height:1.55;
}

/* Sections */
section{ padding: 20px 0; }

.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin: 6px 0 14px;
}
.section-title h2{
  margin:0;
  font-family:"Space Grotesk", Inter, system-ui, sans-serif;
  font-size:22px;
  letter-spacing:0.2px;
}
.section-title p{
  margin:0;
  color:var(--muted2);
  font-size:14px;
}

.card{
  border-radius: var(--radius-xl);
  border:1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(12,16,14,0.62), rgba(12,16,14,0.40));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-inner{ padding: 18px; }

/* Embed containers */
.embed{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.35);
  border:1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow:hidden;
}
.embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.tab{
  border-radius: 999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  padding: 9px 12px;
  font-weight:700;
  font-size:13px;
  color: var(--muted);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, color .12s ease;
}
.tab:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.18); color: var(--text); }
.tab.active{
  border-color: rgba(57,255,152,0.24);
  background: rgba(57,255,152,0.08);
  color: var(--text);
}

/* Contact */
.contact-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.contact-card h3{
  margin:0 0 6px 0;
  font-size:16px;
  letter-spacing:0.2px;
  font-family:"Space Grotesk", Inter, system-ui, sans-serif;
}
.contact-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
}
.email{
  color:var(--text);
  font-weight:600;
}
.contact-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Footer */
footer{
  padding: 28px 0 40px;
  color: var(--muted2);
  font-size: 13px;
}
.footer-grid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}
.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.footer-links a{
  color: var(--muted2);
  padding: 6px 8px;
  border-radius:10px;
}
.footer-links a:hover{ color: var(--text); background: rgba(255,255,255,0.03); }

/* Responsiveness */
@media (max-width: 980px){
  .nav-links{ display:none; }
  .hamburger{ display:inline-grid; place-items:center; }

  .hero-inner{
    grid-template-columns: 1fr;
    text-align:left;
  }
  .avatar{
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 520px){
  :root{ --gutter: 16px; }
  .hero{ padding-top: 28px; }
  .hero-inner{ padding: 18px; }
  .card-inner{ padding: 16px; }
  .social-icon{ width:46px; height:46px; }
}

/* =========================
styles.css (add these small helpers)
Keeps iframes from loading until src is set.
Also prevents a blank white flash in some browsers.
========================= */

.embed iframe:not([src]) {
  display: none;
}

.embed::after{
  content: "Select a tab to load the player…";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color: rgba(232,241,236,0.55);
  font-size: 13px;
  letter-spacing: 0.2px;
  background: rgba(0,0,0,0.18);
}

.embed:has(iframe[src])::after{
  content: "";
  display:none;
}

/* Fix: keep Contact + hamburger visible on very small screens */
@media (max-width: 420px){
  .nav{
    gap: 10px;
  }

  /* Allow the brand to shrink instead of pushing the hamburger off-screen */
  .brand{
    min-width: 0;     /* overrides min-width: 200px */
    flex: 1 1 auto;
  }

  .brand-name{
    max-width: 140px;          /* stops it taking too much space */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-sub{
    display: none;             /* optional but recommended for tiny widths */
  }

  .nav-cta{
    flex: 0 0 auto;
    gap: 8px;
  }

  /* Make the Contact button slightly smaller on tiny screens */
  .nav-cta .btn{
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 13px;
  }

  /* Ensure hamburger stays a fixed size and cannot be squeezed out */
  .hamburger{
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }
}

/* Ultra-small devices (320px width) */
@media (max-width: 360px){
  .brand-name{
    max-width: 120px;
  }

  /* Collapse Contact button to icon-only */
  .nav-cta .btn{
    padding: 9px;
    min-width: 40px;
    justify-content: center;
  }

  .nav-cta .btn span{
    display: none;
  }

  /* Keep hamburger visible no matter what */
  .hamburger{
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }
}

/* Wider layout on large desktops */
@media (min-width: 1400px){
  :root{
    --container: 1320px;
  }
}

@media (min-width: 1800px){
  :root{
    --container: 1500px;
  }
}

@media (max-width: 520px){
  .nav{ flex-wrap: wrap; }
  .brand{ min-width: 0; flex: 1 1 auto; }
}

/* =========================
Announcement banner (always visible, seamless scroll)
Placed INSIDE .topbar
========================= */

.announce{
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(12,16,14,0.35);
  border-radius: 14px;
  backdrop-filter: none;
}

.announce-viewport{
  overflow: hidden;
}

.announce-marquee{
  display: flex;
  width: max-content;
  gap: 48px;
  animation: announce-marquee 22s linear infinite;
  will-change: transform;
}

.announce-group{
  display: inline-flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
}

.announce span{
  font-size: 13px;
  color: var(--muted);
}

/* Pause on hover (desktop) */
.announce:hover .announce-marquee{
  animation-play-state: paused;
}

/* Seamless scrolling */
@keyframes announce-marquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Mobile tuning */
@media (max-width: 520px){
  .announce{
    margin-top: 8px;
    padding: 9px 0;
  }
  .announce-marquee{
    animation-duration: 32s;
  }
  .announce span{
    font-size: 12px;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce){
  .announce-marquee{
    animation: none;
  }
}
