/* ===== Design Tokens ===== */
:root{
  --bg:#0b0f14; --text:#e6eef5; --muted:#9fb0c1;
  --accent:#00d1b2; --accent-2:#7c3aed; --border:#1f2a36;
  --accent-rgb:0,209,178; --accent2-rgb:124,58,237;
}

/* ===== Page Base & Background ===== */
html, body { height:100%; margin:0; }
body{
  position: relative;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text); line-height:1.6;
  background: var(--bg);
  min-height:100%;
}

/* Full-page fixed background */
body::before{
  content:""; position: fixed; inset: 0; z-index: -1;
  background: url("./background.png") center center / cover no-repeat;
}

/* ===== Utilities ===== */
a{ color:var(--accent); text-decoration:none }
a:hover{ opacity:.9 }
img{ max-width:100%; height:auto }
.wrap{ width:100%; max-width:1100px; margin:0 auto; padding:0 20px }

/* ===== Header ===== */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index:1000;
  background: rgba(11,15,20,.92);
  border-bottom:1px solid var(--border);
  box-shadow:0 2px 6px rgba(0,0,0,.6);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:6px 0; min-height:48px; }
.brand h1{ margin:0; font-size:16px; line-height:1; }
.nav-list{ display:flex; gap:14px; list-style:none; margin:0; padding:0; }
nav a{ color:var(--text); opacity:.88 } nav a:hover{ opacity:1 }

/* ===== Footer ===== */
.site-footer{
  position: fixed; bottom:0; left:0; right:0; z-index:999;
  background: rgba(11,15,20,.92);
  border-top:1px solid var(--border);
  box-shadow:0 -2px 6px rgba(0,0,0,.6);
  padding:8px 0; text-align:center; font-size:13px; color:var(--muted);
}

/* ===== Main Content Offset ===== */
.site-main{ padding-top:58px; padding-bottom:44px; }

/* ===== Hero ===== */
.hero{ padding:48px 0 36px; border-bottom:1px solid var(--border) }
.hero-row{ display:flex; align-items:center; gap:32px; flex-wrap:wrap }
.hero-badge{ flex:0 0 auto; display:flex }
.hero-logo{ width:min(28vw,200px); height:min(28vw,200px); border-radius:50%; object-fit:cover }
.hero-text{ flex:1 1 320px; min-width:260px }
.kicker{ font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.14em }
.accent-bar{ height:2px; width:64px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); border-radius:2px; margin:10px 0 16px }
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap }

/* Hero glow accent */
.hero-glow{
  background:
    radial-gradient(1000px 600px at 90% -10%, rgba(124,58,237,.18), transparent 75%),
    radial-gradient(800px 480px at -10% 0%, rgba(0,209,178,.14), transparent 70%);
}

/* Mobile readability */
@media (max-width: 720px){
  .hero-text{
    background: rgba(11,15,20,.65);
    padding: 16px;
    border-radius: 12px;
  }
  .card{ background: rgba(15,20,27,.90); }
}

/* Desktop readability */
@media (min-width: 721px){
  .hero-text h2,
  .hero-text p,
  .hero-text .kicker{
    text-shadow: 0 3px 10px rgba(0,0,0,.75);
  }
  .hero .btn,
  .hero .btn.btn-alt{
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.35))
            drop-shadow(0 10px 24px rgba(var(--accent-rgb), .18));
  }
  .card{ background: rgba(15,20,27,.90); }
}

/* ===== Sections & Grids ===== */
section{ padding:36px 0 }
.grid{ display:grid; gap:18px }
.grid-2{ grid-template-columns:1fr 1fr }
.grid-3{ grid-template-columns:repeat(3,1fr) }

/* ===== Cards ===== */
.card{
  position:relative;
  background: rgba(15,20,27,.86);
  border:1px solid rgba(var(--accent-rgb), .28);
  border-radius:16px; padding:18px;
  box-shadow:
    0 8px 24px rgba(0,0,0,.35),
    0 10px 28px rgba(var(--accent-rgb), .10);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.card::before{
  content:""; position:absolute; inset:-1px; border-radius:inherit; pointer-events:none;
  background:
    radial-gradient(420px 260px at 10% -20%, rgba(var(--accent2-rgb), .18), transparent 60%),
    radial-gradient(420px 260px at 110% 120%, rgba(var(--accent-rgb), .16), transparent 60%);
  opacity:.55; transition: opacity .25s ease;
}
@media (any-hover:hover){
  .card:hover, .card:focus-within{
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), .55);
    background: rgba(15,20,27,.92);
    box-shadow:
      0 16px 48px rgba(0,0,0,.40),
      0 14px 42px rgba(var(--accent-rgb), .16);
  }
  .card:hover::before, .card:focus-within::before{ opacity:.9; }
}

/* ===== Compact Contact Card ===== */
.card.compact{ padding:14px }
@media (min-width: 500px){
  #contact .card{ max-width:500px }
  #contact .card.compact p{ margin:4px 0 }
}

/* ===== Buttons ===== */
.btn{
  display:inline-block; padding:10px 16px;
  border:1px solid var(--accent); border-radius:12px;
  font-weight:600; color:var(--text);
  background:linear-gradient(135deg, rgba(0,209,178,.18), rgba(124,58,237,.18));
  box-shadow:0 8px 22px rgba(var(--accent-rgb), .12), 0 3px 10px rgba(0,0,0,.28);
}
.btn-alt{ border-color:var(--border); background:transparent }
.btn.sm{ padding:8px 12px; font-size:14px }

/* ===== Typography ===== */
h3{ margin:0 0 10px; font-size:22px }
.sub{ color:var(--muted); font-size:14px; margin:0 0 6px }
.list{ list-style:none; margin:0; padding:0 }
.list li{ padding:8px 0; border-bottom:1px dashed rgba(159,176,193,.18) }
.list li:last-child{ border-bottom:none }
.pill{
  display:inline-block; font-size:12px; padding:4px 10px;
  border-radius:999px; border:1px solid var(--border); color:var(--muted);
}

/* ===== Social Links ===== */
.social-links a{
  display:inline-block; margin-right:12px; font-weight:600; color:var(--text);
  text-shadow:0 0 10px rgba(var(--accent-rgb), .18);
  border-bottom:1px dashed rgba(var(--accent-rgb), .25);
}

/* ===== Responsive Grids ===== */
@media (max-width: 920px){ .grid-3, .grid-2{ grid-template-columns:1fr } }
@media (max-width: 720px){
  .hero-row{ flex-direction:column; align-items:flex-start; gap:20px }
  .hero-logo{ width:120px; height:120px }
}

/* === DESKTOP HERO FULL FROSTED GLASS === */
@media (min-width: 721px){
  .hero{
    position: relative;
    background: rgba(15,20,27,.55);      /* translucent dark layer */
    backdrop-filter: blur(8px);          /* frosted glass */
    -webkit-backdrop-filter: blur(8px);  /* Safari support */
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  /* Optional: remove text box background since section has it now */
  .hero-text{
    background: none !important;
    padding: 0; border-radius: 0;
  }

  /* Text readability */
  .hero .hero-text .kicker,
  .hero .hero-text h2,
  .hero .hero-text p{
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
  }

  /* Dimmed buttons inside hero */
  .hero .btn,
  .hero .btn.btn-alt{
    background: linear-gradient(135deg, rgba(0,209,178,.25), rgba(124,58,237,.25)) !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.6) !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
    transition: background .2s ease, transform .2s ease;
  }
  .hero .btn:hover,
  .hero .btn.btn-alt:hover{
    background: linear-gradient(135deg, rgba(0,209,178,.45), rgba(124,58,237,.45)) !important;
    transform: translateY(-1px);
  }
}
