:root{
  --bg:#0b0d10;
  --panel:#11151a;
  --soft:#151a21;
  --muted:#9ba7b4;
  --text:#e9eef3;
  --accent:#ff7a45; /* coral-ish */
  --accent-2:#42b883; /* mint */
  --ring: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
}

/* Reset */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 80% -10%, #15202b 0%, transparent 60%), var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.modal-open{overflow:hidden}
img{max-width:100%;display:block}
a{color:var(--text);text-decoration:none}
.container{width:min(1120px, 92%); margin-inline:auto}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:.85rem 1.1rem;border-radius:.6rem;font-weight:600;
  border:1px solid color-mix(in oklab, var(--accent) 50%, #ffffff10);
  background:linear-gradient(to bottom right, color-mix(in oklab, var(--accent) 25%, #000), #000000);
  color:#fff; box-shadow:0 10px 30px #0008;
  transition:transform .15s ease, box-shadow .2s ease, background .3s ease;
}
.btn:hover{transform:translateY(-2px); box-shadow:0 14px 36px #000a}
.btn--primary{background:linear-gradient(135deg, var(--accent), #ff5c2b);}

/* ensure hero content is clickable */
.hero .container { position: relative; z-index: 1; }

/* keep the background behind & non-interactive */
.hero__bg { z-index: 0; pointer-events: none; position: absolute; }

:root { --header-h: 64px; }          /* adjust if your header height differs */
#projects { scroll-margin-top: var(--header-h); }


/* Header */
.header{position:sticky; top:0; z-index:50; background:linear-gradient(#0b0d10f2,#0b0d10f2) }
.header__row{display:flex; align-items:center; justify-content:space-between; padding:.9rem 0;}
.brand{display:flex; align-items:center; gap:.6rem; font-weight:800; letter-spacing:.2px}
.brand span{color:#fff}
.nav__toggle{
  display:none; background:var(--soft); color:#fff; border:1px solid #ffffff10;
  padding:.6rem .8rem; border-radius:.5rem; font-size:1rem;
}
.nav__menu{display:flex; gap:1.2rem; list-style:none}
.nav__menu a{
  color:var(--muted); padding:.5rem .7rem; border-radius:.5rem;
}
.nav__menu a:hover{color:#fff; background:#ffffff08}

/* Mobile nav */
@media (max-width: 860px){
  .nav__toggle{display:inline-block}
  .nav__menu{position:absolute; right:4%; top:62px; background:var(--panel);
    border:1px solid #ffffff12; border-radius:.8rem; padding:.6rem; flex-direction:column; gap:.2rem; width:min(220px, 90vw); display:none}
  .nav__menu.is-open{display:flex}
}

/* Hero */
.hero{position:relative; padding:6rem 0 5rem; overflow:hidden}
.hero__bg{
  position:absolute; inset:-20% -10% -10% -10%;
  background:
   radial-gradient(600px 300px at 15% -10%, #2b3a4a 0%, transparent 60%),
   radial-gradient(500px 260px at 90% 10%, #1d2633 0%, transparent 60%),
   url('https://picsum.photos/seed/yuvaan-hero/2000/1200');
  background-size:auto,auto,cover; background-position:center; opacity:.18; filter:saturate(0.8) contrast(1.05);
}
.hero .container{position:relative}
.hero__title{font-size:clamp(2rem, 3vw + 1rem, 3.3rem); margin:0 0 .6rem; letter-spacing:.2px}
.accent{color:var(--accent)}
.hero__subtitle{color:var(--muted); max-width:62ch; margin-bottom:1.2rem}

/* Sections */
.section{padding:4.5rem 0}
.section__head{display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:2rem}
.section__tag,.about__tag{display:inline-block; font-size:.8rem; letter-spacing:.18em; text-transform:uppercase; color:var(--accent-2); background:#1a222b; padding:.3rem .6rem; border-radius:.4rem}

/* About */
.about__grid{display:grid; grid-template-columns: 1.1fr .9fr; gap:2rem; align-items:start}
.about__copy h2{margin:.2rem 0 1rem}
.about__copy p{color:var(--muted)}
.about__stats{display:grid; grid-template-columns: repeat(3, 1fr); gap:1rem; margin-top:1rem}
.stat{background:var(--panel); border:1px solid #ffffff12; padding:1rem; border-radius:.8rem; text-align:center}
.stat__num{font-size:2rem; font-weight:800; color:#fff}
.stat__label{color:var(--muted)}
.about__card{background:linear-gradient(180deg, #11161d, #0d1217); border:1px solid #ffffff12; border-radius:1rem; overflow:hidden}
.about__image{aspect-ratio:16/11; overflow:hidden}
.about__image img{width:100%; height:100%; object-fit:cover; transform:scale(1.02)}
.about__timeline{list-style:none; margin:0; padding:1rem 1.2rem; display:grid; gap:.5rem}
.about__timeline li{background:#0f141b; border:1px dashed #ffffff14; padding:.6rem .8rem; border-radius:.6rem}
.about__timeline li span{color:#fff; font-weight:700}
.marquee{margin-top:2rem; overflow:hidden; mask-image:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); opacity:.65}
.marquee__track{display:flex; gap:2rem; white-space:nowrap; animation:marquee 24s linear infinite}
.marquee__track span{letter-spacing:.06em; color:var(--muted)}
@keyframes marquee{from{transform:translateX(0)} to{transform:translateX(-50%)}}
@media (max-width: 960px){
  .about__grid{grid-template-columns:1fr;}
  .about__stats{grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 640px){
  .about__stats{grid-template-columns:1fr;}
}

/* Projects */
.filters{display:flex; gap:.4rem; flex-wrap:wrap}
.filter{
  background:var(--panel); color:var(--muted); border:1px solid #ffffff12;
  padding:.45rem .75rem; border-radius:.6rem; cursor:pointer; transition:0.2s;
}
.filter:hover{color:#fff; border-color:#ffffff30}
.filter.is-active{background:#ffffff08; color:#fff; outline:var(--ring)}
.grid{
  display:grid;
  gap:1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card{background:transparent; border-radius:1rem; isolation:isolate; display:flex; flex-direction:column; gap:.75rem}
@media (max-width: 480px){
  .grid{grid-template-columns:minmax(0, 1fr);}
}
.card__inner{
  position:relative; width:100%; border:1px solid #ffffff14; border-radius:1rem; overflow:hidden; background:var(--soft);
  cursor:pointer; padding:0; display:block; aspect-ratio:4 / 3;
}
.card img{width:100%; height:100%; object-fit:cover; transform:scale(1.0); transition:transform .5s ease}
.card__inner:hover img{transform:scale(1.08)}
.card__overlay{position:absolute; inset:auto 0 0; padding:1rem; background:linear-gradient(180deg, transparent, rgba(0,0,0,.8)); color:#fff}
.card__overlay h3{margin:.2rem 0 .2rem}
.card__overlay p{margin:0; color:#d7dee6bb; font-size:.95rem}
.card__title{margin:0; font-size:1.05rem; font-weight:600; color:#f8fafc}
.card__title span{display:block; font-size:.9rem; color:#98a2b3; margin-top:.3rem}

/* Lightbox */
.lightbox{position:fixed; inset:0; background:#000d; display:none; align-items:center; justify-content:center; z-index:60; backdrop-filter: blur(4px); padding:1.5rem}
.lightbox.is-open{display:flex}
.lightbox__content{position:relative; background:#fff; color:#0f172a; border-radius:1rem; box-shadow:0 25px 70px #000b; max-width:min(92vw, 960px); width:100%; padding:2.5rem 3rem; display:flex; flex-direction:column; gap:1.5rem}
.lightbox__body{display:flex; align-items:center; gap:1.5rem}
.lightbox__figure{margin:0; flex:1; text-align:center}
.lightbox__img{width:100%; max-height:60vh; object-fit:contain; border-radius:.75rem; box-shadow:0 10px 30px #0003; background:#0f172a08}
.lightbox__caption{margin-top:1rem; display:flex; flex-direction:column; gap:.35rem; align-items:center; text-align:center}
.lightbox__title{font-size:1.05rem; font-weight:600}
.lightbox__counter{font-size:.95rem; color:#64748b}
.lightbox__close{position:absolute; top:14px; right:14px; width:44px; height:44px; border:none; border-radius:50%; background:#0f172a; color:#fff; font-size:1.5rem; cursor:pointer; display:grid; place-items:center; box-shadow:0 8px 20px #0005}
.lightbox__close:hover{background:#1e293b}
.lightbox__nav{border:none; border-radius:50%; background:#0f172a; color:#fff; width:56px; height:56px; font-size:2rem; display:grid; place-items:center; cursor:pointer; transition:background .2s ease, transform .2s ease}
.lightbox__nav:hover{background:#1d2635; transform:scale(1.05)}
.lightbox__nav:disabled{opacity:.35; cursor:not-allowed; transform:none}
.lightbox__nav:focus-visible, .lightbox__close:focus-visible{outline:3px solid var(--accent); outline-offset:2px}
@media (max-width: 780px){
  .lightbox__content{padding:2rem;}
  .lightbox__body{gap:1rem}
  .lightbox__nav{width:52px; height:52px}
}
@media (max-width: 640px){
  .lightbox{padding:1rem}
  .lightbox__content{padding:1.5rem; gap:1rem}
  .lightbox__body{flex-direction:column}
  .lightbox__nav{width:54px; height:54px}
}

/* Location / Map */
.map-wrap{display:grid; grid-template-columns: 1.3fr .7fr; gap:1rem; align-items:start}
.map{height:420px; border-radius:1rem; border:1px solid #ffffff12; overflow:hidden}
.address{background:var(--panel); border:1px solid #ffffff12; padding:1rem; border-radius:1rem; color:var(--muted)}
@media (max-width: 860px){
  .map-wrap{grid-template-columns:1fr}
}

/* Footer */
.footer{margin-top:3rem; background:linear-gradient(180deg, #0b0d10, #0a0d12)}
.footer__grid{display:grid; grid-template-columns: .9fr 1.1fr; gap:2rem; padding:2.5rem 0}
@media (max-width: 920px){ .footer__grid{grid-template-columns:1fr} }
.brand--small span{font-size:1rem}
.footer__brand p{color:var(--muted); margin:.6rem 0 1rem}
.social{display:flex; gap:.6rem}
.social a{
  width:36px; height:36px; display:grid; place-items:center; border-radius:.55rem; background:#11161c; border:1px solid #ffffff10; color:#fff;
}
.social a:hover{outline:var(--ring)}
.form{
  background:linear-gradient(180deg, #10151b, #0d1217); border:1px solid #ffffff14; border-radius:1rem; padding:1rem;
}
.form__title{margin:.3rem 0 1rem}
.form__row{display:grid; grid-template-columns: 1fr 1fr; gap:1rem}
.form__full{display:block; margin:1rem 0}
.form label{display:block; color:#cfd8e3}
.form label span{display:block; font-size:.85rem; color:var(--muted); margin-bottom:.3rem}
.form input, .form select, .form textarea{
  width:100%; padding:.75rem .8rem; border-radius:.6rem; border:1px solid #ffffff1a; background:#0e1318; color:#fff;
}
.form input:focus, .form select:focus, .form textarea:focus{outline:var(--ring)}
.form button{margin-top:.3rem}
.hidden{display:none}
.footer__bar{border-top:1px solid #ffffff10; margin-top:1rem; background:#0a0e12}
.footer__bar__row{display:flex; justify-content:space-between; align-items:center; padding:1rem 0}
.footer__mail{color:var(--accent)}
@media (max-width: 640px){
  .form__row{grid-template-columns:1fr}
  .footer__bar__row{gap:.6rem; flex-direction:column; align-items:flex-start}
}

/* Reveal on scroll */
.reveal{opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease}
.reveal.in-view{opacity:1; transform:none}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important}
}
