:root{
  --bg:#04050a;
  --bg2:#070a12;
  --glass: rgba(255,255,255,0.06);
  --glass-strong: rgba(255,255,255,0.12);
  --stroke: rgba(255,255,255,0.12);
  --neon:#71f5ff;
  --neon2:#a78bfa;
  --lime:#9fffcb;
  --text:#e6ebff;
  --muted:#9aa7c7;
  --shadow: 0 30px 100px rgba(0,0,0,0.7);
  --radius: 18px;
  --radius-lg: 24px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Space Grotesk",system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, #11204a 0%, transparent 60%),
              radial-gradient(900px 700px at -10% 30%, #0b2a2a 0%, transparent 55%),
              linear-gradient(180deg,var(--bg),var(--bg2));
  overflow-x:hidden;
}

/* Ambient layers */
#starfield{
  position:fixed; inset:0; z-index:-3;
}
.aurora{
  position:fixed; inset:-20%;
  background:
    conic-gradient(from 160deg,
      transparent, rgba(113,245,255,.10),
      transparent, rgba(167,139,250,.12),
      transparent, rgba(159,255,203,.10), transparent);
  filter: blur(80px) saturate(140%);
  animation: aurora 18s linear infinite;
  z-index:-2;
}
@keyframes aurora{
  0%{transform:rotate(0deg) scale(1)}
  50%{transform:rotate(180deg) scale(1.05)}
  100%{transform:rotate(360deg) scale(1)}
}
.grid-overlay{
  position:fixed; inset:0; z-index:-1;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at 50% 25%, black 0 45%, transparent 70%);
  opacity:.35;
}

.cursor-glow{
  position:fixed; width:300px; height:300px; pointer-events:none;
  background: radial-gradient(circle, rgba(113,245,255,.16), transparent 60%);
  transform:translate(-50%,-50%);
  mix-blend-mode: screen;
  z-index:50;
}

/* Helpers */
.section{
  max-width:1200px;
  margin:0 auto;
  padding:110px 20px;
  position:relative;
}
.section::before{
  content:"";
  position:absolute; inset:-10% -5%;
  background:
    radial-gradient(circle at 15% 25%, rgba(113,245,255,.07), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(167,139,250,.07), transparent 45%);
  z-index:-1; opacity:.9;
}
.section-divider{
  height:1px; margin-top:34px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  border-radius:999px;
}

.glass{
  background:var(--glass);
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

/* Reveal fix */
.reveal{
  opacity: 1;
  transform: none;
}
.js .reveal{
  opacity: 0;
  transform: translateY(18px);
}

.muted{color:var(--muted)}
.neon{
  text-shadow:0 0 25px rgba(113,245,255,.7);
  color:#dffcff;
}
.grad{
  background: linear-gradient(90deg, var(--neon), var(--neon2), var(--lime));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px; padding:12px 16px; border-radius:999px;
  border:1px solid var(--stroke);
  background:transparent; color:var(--text);
  font-weight:600; letter-spacing:.2px; cursor:pointer; text-decoration:none;
  transition: transform .15s ease, background .2s ease, border .2s ease, box-shadow .2s ease;
  position:relative; overflow:hidden;
}
.btn.small{padding:8px 12px; font-size:.9rem}
.btn.primary{
  background: linear-gradient(100deg, rgba(113,245,255,.18), rgba(167,139,250,.18));
  border-color: rgba(113,245,255,.55);
  box-shadow: 0 10px 30px rgba(113,245,255,.15);
}
.btn.glow{
  background: rgba(113,245,255,.08);
  border-color: rgba(167,139,250,.6);
}
.btn.ghost{
  background: rgba(255,255,255,.03);
}
.btn:hover{transform:translateY(-2px) scale(1.01)}
.btn:active{transform:translateY(0) scale(.98)}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px; font-size:.9rem;
}

/* Placeholder helper styles */
.placeholder{
  color: var(--muted);
  font-style: italic;
}
.placeholder.tiny{
  font-size: .85rem;
  margin-top: 8px;
}
.placeholder-list{
  margin:8px 0 0 18px;
  color: var(--muted);
}

/* NAV */
.nav-wrap{
  position:fixed; top:14px; left:0; right:0;
  z-index:40; padding:0 14px;
}
.nav{
  max-width:1200px; margin:0 auto; padding:12px 16px;
  display:flex; align-items:center; gap:12px; justify-content:space-between;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700; letter-spacing:1px; text-transform:lowercase;
  color:var(--text); text-decoration:none;
}
.brand.small{font-size:.95rem}
.brand-dot{
  width:10px; height:10px; border-radius:999px;
  background: radial-gradient(circle, var(--neon), transparent 70%);
  box-shadow:0 0 12px var(--neon);
}
.nav-links{
  display:flex; gap:16px; flex-wrap:wrap;
}
.nav-links a{
  color:var(--muted); text-decoration:none; font-weight:600; font-size:.95rem;
  transition: color .2s ease, text-shadow .2s ease;
}
.nav-links a:hover{color:var(--text); text-shadow:0 0 12px rgba(113,245,255,.4)}
.nav-actions{display:flex; gap:10px}
.nav-burger{
  display:none; width:44px; height:40px; border-radius:10px;
  background:rgba(255,255,255,.03); border:1px solid var(--stroke); cursor:pointer;
  place-items:center;
}
.nav-burger span{
  display:block; height:2px; width:18px; background:var(--text); margin:4px auto;
}

/* HERO */
.hero{
  min-height:100vh; display:grid; grid-template-columns: 1.1fr .9fr;
  gap:28px; align-items:center;
}
.hero-left h1{
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height:1.08; margin:14px 0 10px;
}
.hero-sub{
  color:var(--muted); font-size:1.05rem; max-width:620px;
}
.hero-cta{display:flex; gap:12px; margin-top:18px; flex-wrap:wrap;}
.social-row{display:flex; gap:10px; margin-top:18px;}
.social{
  width:44px; height:44px; border-radius:12px; display:grid; place-items:center;
  background:rgba(255,255,255,.04); border:1px solid var(--stroke);
  color:var(--text); text-decoration:none; transition:.2s ease;
}
.social:hover{
  transform: translateY(-3px);
  box-shadow:0 10px 30px rgba(113,245,255,.15);
  border-color: rgba(113,245,255,.6);
}

.hero-right{position:relative; min-height:520px;}
.orb{
  width:360px; height:360px; margin:0 auto; position:relative;
  display:grid; place-items:center; border-radius:999px;
}
.orb-core{
  width:150px; height:150px; border-radius:999px;
  background: radial-gradient(circle, rgba(113,245,255,.8), rgba(167,139,250,.4) 55%, transparent 70%);
  filter: blur(2px);
  animation:pulse 3s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{transform:scale(1); opacity:.9}
  50%{transform:scale(1.12); opacity:1}
}
.orb-ring{
  position:absolute; inset:0; border-radius:999px;
  border:1px dashed rgba(255,255,255,.20);
  animation: spin 12s linear infinite;
}
.ring2{inset:18px; animation-duration:18s}
.ring3{inset:40px; animation-duration:24s; border-style:solid; opacity:.35}
@keyframes spin{to{transform:rotate(360deg)}}

.hero-card{
  position:absolute; bottom:0; right:0; width:min(420px, 95%);
  padding:14px;
}
.hero-card-top{
  display:flex; align-items:center; gap:8px; font-weight:600; color:var(--muted); font-size:.9rem;
  border-bottom:1px solid var(--stroke); padding-bottom:8px; margin-bottom:8px;
}
.dot{
  width:8px; height:8px; border-radius:999px; background:var(--muted);
}
.dot.live{
  background:#54ffb0; box-shadow:0 0 10px #54ffb0;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink{50%{opacity:.25}}

.hero-card-body{
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px;
}
.metric{
  background:rgba(255,255,255,.04); border:1px solid var(--stroke);
  border-radius:14px; padding:10px;
}
.metric-label{color:var(--muted); font-size:.85rem;}
.metric-value{font-size:1.25rem; font-weight:700; margin-top:4px}

.scroll-hint{
  position:absolute; left:50%; bottom:24px; transform:translateX(-50%);
  font-size:.9rem; color:var(--muted); display:grid; place-items:center; gap:6px;
}
.scroll-line{
  height:26px; width:2px; background:linear-gradient(var(--muted), transparent);
  animation:scrollline 1.6s ease-in-out infinite;
}
@keyframes scrollline{50%{transform:translateY(8px); opacity:.4}}

/* SECTION HEAD */
.section-head{
  margin-bottom:20px;
}
.section-head h2{
  font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin:0 0 6px;
}
.section-head p{color:var(--muted); margin:0}

/* STATS */
.stats-grid{
  display:grid; grid-template-columns: repeat(4,1fr); gap:12px;
}
.stat{
  padding:18px; text-align:center; position:relative; overflow:hidden;
}
.stat-icon{
  width:52px; height:52px; margin:0 auto 8px;
  border-radius:16px; display:grid; place-items:center;
  background:rgba(113,245,255,.08);
  border:1px solid rgba(113,245,255,.35);
}
.stat-num{
  font-size:1.8rem; font-weight:800; letter-spacing:.5px;
}
.stat-label{color:var(--muted); margin-top:2px}

/* PROJECTS */
.projects-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap:12px;
}
.project{
  padding:18px; position:relative; overflow:hidden; min-height:240px;
}
.project::after{
  content:""; position:absolute; inset:-40%;
  background: radial-gradient(circle at top left, rgba(113,245,255,.10), transparent 45%),
              radial-gradient(circle at bottom right, rgba(167,139,250,.12), transparent 50%);
  opacity:.8; z-index:-1;
}
.project-badge{
  font-size:.75rem; color:var(--muted); font-weight:700; letter-spacing:1px;
}
.project h3{margin:8px 0 6px; font-size:1.35rem}
.project p{color:var(--muted)}
.project-tags{display:flex; gap:6px; flex-wrap:wrap; margin-top:8px}
.project-tags span{
  font-size:.8rem; padding:4px 8px; border-radius:999px;
  border:1px solid var(--stroke); background:rgba(255,255,255,.03);
}
.project-actions{display:flex; gap:8px; margin-top:12px}

/* Placeholder cards */
.placeholder-card{
  opacity:.82;
}
.placeholder-card .project-badge{
  color:#a7b3d8; text-transform:uppercase;
}

/* SHOWCASE */
.showcase-grid{
  display:grid; grid-template-columns: repeat(2,1fr); gap:12px;
}
.showcase-tile{
  padding:12px; display:grid; grid-template-columns: 1fr; gap:10px;
}
.mock-img{
  height:220px; border-radius:14px;
  background:
    radial-gradient(circle at 10% 10%, rgba(113,245,255,.18), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(167,139,250,.18), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(0,0,0,.2));
  border:1px dashed rgba(255,255,255,.2);
  position:relative;
}
.mock-img::after{
  content:""; position:absolute; inset:14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.tile-meta h3{margin:0 0 4px}
.tile-meta p{margin:0; color:var(--muted)}

/* ABOUT */
.about-wrap{
  padding:20px; display:grid; grid-template-columns:1.2fr .8fr; gap:18px;
}
.about-left p{color:var(--muted)}
.about-pills{display:flex; gap:6px; flex-wrap:wrap; margin-top:10px}
.about-pills span{
  padding:6px 10px; font-size:.85rem; border-radius:999px;
  background:rgba(255,255,255,.04); border:1px solid var(--stroke);
}
.skill-list{display:grid; gap:10px}
.skill-top{display:flex; justify-content:space-between; color:var(--muted); font-weight:600;}
.skill-bar{
  height:8px; border-radius:999px; background:rgba(255,255,255,.06); overflow:hidden;
  border:1px solid var(--stroke); margin-top:6px;
}
.skill-bar div{
  height:100%; border-radius:999px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  box-shadow:0 0 12px rgba(113,245,255,.5);
}

/* TIMELINE */
.timeline-list{display:grid; gap:10px}
.tl{
  display:grid; grid-template-columns:140px 1fr; gap:12px;
  padding:14px;
}
.tl-date{
  font-weight:800; color:#dffcff; opacity:.9;
}
.tl-body p{color:var(--muted)}

/* TESTIMONIALS */
.testi-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap:12px;
}
.testi{padding:16px;}
.testi-top{
  display:flex; align-items:center; gap:10px; margin-bottom:8px;
}
.avatar{
  width:46px; height:46px; border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--stroke);
}
.testi-name{font-weight:800}
.testi-role{color:var(--muted); font-size:.9rem}
.testi p{color:var(--muted); margin:0}

/* CONTACT */
.contact-wrap{
  padding:22px; display:grid; grid-template-columns:1fr 1fr; gap:20px;
}
.contact-left p{color:var(--muted)}
.contact-info{display:grid; gap:6px; margin-top:10px; color:var(--muted)}
.contact-info i{color:#dffcff; margin-right:6px}
#contactForm{display:grid; gap:10px}
#contactForm label{display:grid; gap:6px; font-weight:600; color:var(--muted)}
#contactForm input, #contactForm textarea{
  width:100%; padding:12px 12px; border-radius:12px;
  background:rgba(0,0,0,.35); border:1px solid var(--stroke);
  color:var(--text); outline:none; font-size:1rem;
  transition:border .2s ease, box-shadow .2s ease;
}
#contactForm input:focus, #contactForm textarea:focus{
  border-color: rgba(113,245,255,.8);
  box-shadow:0 0 0 3px rgba(113,245,255,.12);
}
.form-status{min-height:20px; font-size:.95rem; color:var(--muted)}

/* FOOTER */
.footer{
  padding:40px 20px 70px; color:var(--muted);
}
.footer-inner{
  max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; gap:12px; align-items:center;
  border-top:1px solid var(--stroke); padding-top:18px;
}
.footer-links{display:flex; gap:12px; flex-wrap:wrap;}
.footer a{color:var(--muted); text-decoration:none}
.footer a:hover{color:var(--text)}

/* MODAL */
.modal{
  position:fixed; inset:0; background:rgba(0,0,0,.6);
  display:none; place-items:center; z-index:60;
}
.modal.show{display:grid;}
.modal-card{
  width:min(560px, 94vw); padding:20px; position:relative;
}
.modal-close{
  position:absolute; top:10px; right:10px; width:38px; height:38px;
  border-radius:10px; border:1px solid var(--stroke);
  background:rgba(255,255,255,.04); color:var(--text); cursor:pointer;
}
.modal-metrics{
  margin-top:10px; color:var(--muted); font-family:"JetBrains Mono", monospace;
  background:rgba(255,255,255,.04); border:1px solid var(--stroke); padding:10px; border-radius:12px;
}

/* FLOATING */
.float{animation: float 4.5s ease-in-out infinite;}
@keyframes float{
  50%{transform: translateY(-8px)}
}

/* ============================
   Futuristic Audio Dock
   RIGHT SIDE CENTER
============================ */
.audio-dock{
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  width: min(420px, 92vw);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 10%, rgba(113,245,255,.12), transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(167,139,250,.12), transparent 55%),
    var(--glass);
  border:1px solid rgba(113,245,255,.35);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  backdrop-filter: blur(14px);
  transition: .25s ease;
}

.audio-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.audio-right{
  display:flex;
  align-items:center;
  gap:8px;
}

.audio-btn{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  transition:.2s ease;
  position:relative;
  overflow:hidden;
}
.audio-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(113,245,255,.7);
  box-shadow:0 8px 25px rgba(113,245,255,.18);
}

.audio-meta{
  display:grid;
  gap:2px;
}
.audio-title{
  font-weight:800;
  letter-spacing:.3px;
  font-size:1rem;
}
.audio-status{
  font-size:.85rem;
  color:var(--muted);
}

.audio-volume{
  width:120px;
  height:6px;
  appearance:none;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid var(--stroke);
  outline:none;
}
.audio-volume::-webkit-slider-thumb{
  appearance:none;
  width:14px; height:14px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  box-shadow:0 0 12px rgba(113,245,255,.8);
  border:1px solid rgba(255,255,255,.5);
  cursor:pointer;
}
.audio-volume::-moz-range-thumb{
  width:14px; height:14px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  box-shadow:0 0 12px rgba(113,245,255,.8);
  border:1px solid rgba(255,255,255,.5);
  cursor:pointer;
}

/* Responsive */
@media (max-width: 1050px){
  .hero{grid-template-columns:1fr; padding-top:140px;}
  .hero-right{min-height:420px;}
  .projects-grid{grid-template-columns:1fr 1fr;}
  .stats-grid{grid-template-columns:1fr 1fr;}
  .showcase-grid{grid-template-columns:1fr;}
  .about-wrap{grid-template-columns:1fr;}
  .contact-wrap{grid-template-columns:1fr;}
  .testi-grid{grid-template-columns:1fr;}

  /* Move audio dock to bottom on small screens */
  .audio-dock{
    top:auto;
    bottom:18px;
    transform:none;
    right:18px;
    left:18px;
    width:auto;
  }
}
@media (max-width: 700px){
  .nav-links{display:none;}
  .nav-burger{display:grid;}
  .projects-grid{grid-template-columns:1fr;}
  .tl{grid-template-columns:1fr;}
}