:root{
  --bg:#0b0d10;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --line:rgba(255,255,255,.10);
  --shadow: 0 30px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 22px;
  --max: 1120px;
  --accent: #ffffff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
b{font-weight:650}

.bg{
  position:fixed; inset:0; z-index:-3;
  background:
    radial-gradient(1100px 700px at 20% 15%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(1000px 700px at 60% 90%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(120deg, #0b0d10, #0a0b0e 40%, #07080a);
}
.bg .grid{
  position:absolute; inset:-2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity:.06;
  mask-image: radial-gradient(closest-side, black 70%, transparent 100%);
}
.bg .grain{
  position:absolute; inset:-30%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity:.10;
  mix-blend-mode:overlay;
  animation:grain 10s steps(10) infinite;
}
@keyframes grain{
  0%{transform:translate(0,0)}
  20%{transform:translate(-2%, 2%)}
  40%{transform:translate(-3%, -1%)}
  60%{transform:translate(2%, 3%)}
  80%{transform:translate(3%, -2%)}
  100%{transform:translate(0,0)}
}
.bg .glow{
  position:absolute; width:680px; height:680px; border-radius:50%;
  filter: blur(50px);
  opacity:.14;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%);
}
.bg .g1{left:-180px; top:-220px}
.bg .g2{right:-260px; top:80px; opacity:.10}

.topbar{
  position:fixed; top:0; left:0; right:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  background:rgba(5,6,8,.45);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand{
  display:flex; gap:10px; align-items:baseline;
  padding:8px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.dot{
  width:9px; height:9px; border-radius:50%;
  background:rgba(255,255,255,.95);
  box-shadow: 0 0 18px rgba(255,255,255,.35);
  display:inline-block;
}
.brand-name{font-weight:700; letter-spacing:.2px}
.brand-sub{font-weight:700; letter-spacing:.2px; color:var(--muted); margin-left:6px;}

.nav{display:flex; gap:18px; align-items:center}
.navlink{
  font-size:13px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
  transition: .2s ease;
}
.navlink:hover{
  color:var(--text);
  border-color: rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}
.actions{display:flex; gap:10px; align-items:center}
.iconbtn{
  width:40px; height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  display:grid; place-items:center;
  transition:.2s ease;
}
.iconbtn:hover{transform:translateY(-1px); background:rgba(255,255,255,.06)}
.iconbtn .i{font-size:18px; line-height:1}

#menuBtn{display:none}

.progress{
  position:fixed; left:0; right:0; top:0;
  height:3px; z-index:30;
  background:transparent;
}
.progress-bar{
  height:100%;
  width:0%;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 18px rgba(255,255,255,.25);
}

.snap{
  height:100vh;
  overflow-y:auto;
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
}
.section{
  min-height:100vh;
  display:flex;
  align-items:center;
  scroll-snap-align:start;
  padding:110px 18px 70px;
}
.wrap{
  width:min(var(--max), 100%);
  margin:0 auto;
}
.two-col{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:start;
}

.kicker{
  letter-spacing:.22em;
  text-transform:uppercase;
  font-size:12px;
  color:var(--muted);
}
.title{
  margin:12px 0 14px;
  font-size: clamp(44px, 7vw, 84px);
  letter-spacing:.06em;
  line-height: .95;
}
.title-light{font-weight:300; letter-spacing:.08em}
.lead{
  max-width: 62ch;
  color: var(--muted);
  font-size:16px;
  line-height:1.7;
}
.project-highlights{
  display:flex;
  gap:14px;
  margin:18px 0;
  }
  .project-open{
    transition:all .25s ease;
    }
    
    .project-open:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(255,255,255,0.15);
    }
  .ph-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:20px;
  background:rgba(255,255,255,0.05);
  font-size:13px;
  letter-spacing:.3px;
  border:1px solid rgba(255,255,255,0.08);
  }
  
  .ph-icon{
  font-size:16px;
  }

  .shot-ph img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:12px;
    }
.h2{
  margin:10px 0 8px;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing:-.02em;
}
.p{color:rgba(255,255,255,.78); line-height:1.75; font-size:15px; margin:10px 0}
.muted{color:var(--muted)}
.small{font-size:12px}

.cta-row{
  display:flex; gap:12px; margin-top:18px; flex-wrap:wrap;
}
.btn{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:11px 14px;
  border-radius:14px;
  font-weight:600;
  font-size:13px;
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  cursor:pointer;
  transition:.2s ease;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.06)}
.btn.primary{
  background:rgba(255,255,255,.92);
  color:#0b0d10;
  border-color: rgba(255,255,255,.65);
}
.btn.primary:hover{background:#fff}
.btn.ghost{
  background:transparent;
}

.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:26px;
}
.stat{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding:14px 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.stat-num{font-weight:700}
.stat-label{color:var(--muted); margin-top:4px; font-size:12px}

.hint{
  margin-top:22px;
  display:flex; gap:10px; align-items:center;
  color:var(--muted);
  font-size:12px;
}
.mouse{
  width:22px; height:34px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  position:relative;
}
.mouse:after{
  content:"";
  width:4px; height:8px;
  background:rgba(255,255,255,.7);
  border-radius:999px;
  position:absolute; left:50%; top:8px;
  transform:translateX(-50%);
  animation:wheel 1.2s infinite ease;
}
@keyframes wheel{
  0%{transform:translate(-50%,0); opacity:.85}
  100%{transform:translate(-50%,10px); opacity:.15}
}

.panel{
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius2);
  padding:18px;
  box-shadow: var(--shadow);
}
.panel-top{display:flex; align-items:baseline; justify-content:space-between; gap:12px}
.panel-title{font-weight:700}
.panel-sub{font-size:12px; color:var(--muted)}
.panel-note{margin-top:14px; font-size:12px; color:var(--muted)}

.pill-row{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.85);
  font-size:12px;
}

.mini{
  margin-top:16px;
  border-top:1px solid rgba(255,255,255,.10);
  padding-top:14px;
}
.mini-label{font-size:12px; color:var(--muted)}
.mini-value{margin-top:6px; font-weight:600}

.bars{margin-top:14px; display:grid; gap:12px}
.bar-head{display:flex; justify-content:space-between; color:rgba(255,255,255,.82); font-size:12px}
.bar-track{
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  overflow:hidden;
}
.bar-fill{
  height:100%;
  width:0%;
  background:rgba(255,255,255,.9);
  border-radius:999px;
  box-shadow: 0 0 18px rgba(255,255,255,.25);
  transform:translateZ(0);
}
.section.is-visible .bar-fill{width:var(--w); transition: width 900ms cubic-bezier(.2,.8,.2,1) 120ms}

.sec-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:18px;
  margin-bottom:16px;
}
.chips{display:flex; gap:10px; flex-wrap:wrap}
.chip{
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  cursor:pointer;
  font-weight:600;
  font-size:12px;
  transition:.2s ease;
}
.chip:hover{transform:translateY(-1px); color:var(--text); background:rgba(255,255,255,.05)}
.chip.active{color:#0b0d10; background:rgba(255,255,255,.92); border-color:rgba(255,255,255,.65)}

.project-strip{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns: minmax(260px, 320px);
  gap:16px;
  overflow-x:auto;
  padding:10px 2px 16px;
  scroll-snap-type:x mandatory;
  border-radius: var(--radius2);
}
.project-strip:focus{outline:2px solid rgba(255,255,255,.25); outline-offset:6px}
.project-strip::-webkit-scrollbar{height:10px}
.project-strip::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18); border-radius:999px}
.project-strip::-webkit-scrollbar-track{background:rgba(255,255,255,.06); border-radius:999px}

.proj{
  scroll-snap-align:start;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius2);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  overflow:hidden;
  cursor:pointer;
  transition:.22s ease;
}
.proj:hover{transform:translateY(-4px)}
.proj-media{
  height:160px;
  display:grid; place-items:center;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(260px 160px at 30% 30%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(260px 180px at 70% 60%, rgba(255,255,255,.08), transparent 60%),
    rgba(0,0,0,.25);
}
.media-ph{
  color:rgba(255,255,255,.70);
  font-size:12px;
  border:1px dashed rgba(255,255,255,.22);
  padding:10px 12px;
  border-radius:12px;
}
.media-ph.big{padding:16px 14px}
.proj-meta{padding:14px}
.proj-title{font-weight:700}
.proj-sub{margin-top:6px; font-size:12px; color:var(--muted)}

.strip-hint{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
}

.quick{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.quickcard{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  border-radius: var(--radius2);
  padding:16px;
}
.qc-title{font-weight:700; margin-bottom:10px}
.qc-list{margin:0; padding-left:18px; color:rgba(255,255,255,.78); line-height:1.7; font-size:13px}

.timeline{margin-top:16px; display:grid; gap:12px}
.tl-item{display:flex; gap:12px; align-items:flex-start}
.tl-dot{
  width:10px; height:10px; border-radius:50%;
  background:rgba(255,255,255,.92);
  margin-top:6px;
  box-shadow: 0 0 18px rgba(255,255,255,.25);
}
.tl-title{font-weight:700}
.tl-sub{margin-top:4px; font-size:12px}

.cards{display:grid; grid-template-columns: repeat(3,1fr); gap:12px; margin-top:14px}
.mini-card{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  border-radius: 18px;
  padding:14px;
}
.mc-top{font-weight:800; letter-spacing:.12em; color:rgba(255,255,255,.7)}
.mc-title{margin-top:10px; font-weight:700}
.mc-sub{margin-top:6px; font-size:12px}

.contact-cards{margin-top:16px; display:grid; gap:12px}
.cc{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  border-radius: 18px;
  padding:14px;
}
.cc-label{font-size:12px; color:var(--muted)}
.cc-value{margin-top:6px; font-weight:700}

.form{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  border-radius: var(--radius2);
  padding:18px;
  box-shadow: var(--shadow);
  display:grid;
  gap:12px;
}
label span{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}
input, textarea{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.25);
  color:var(--text);
  padding:12px 12px;
  font:inherit;
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(255,255,255,.35); background:rgba(0,0,0,.32)}
.form-note{margin-top:2px}

.footer{
  padding:26px 18px 34px;
  border-top:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
}
.footer-wrap{
  width:min(var(--max), 100%);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
}
.brandline{display:flex; align-items:center; gap:10px; font-weight:700}
.footlink{padding:8px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.03)}
.footlink:hover{background:rgba(255,255,255,.05)}

.drawer{
  position:fixed; top:0; right:0;
  width:min(360px, 90vw);
  height:100vh;
  background:rgba(8,9,11,.86);
  border-left:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  z-index:40;
  transform: translateX(110%);
  transition: .25s ease;
  display:flex; flex-direction:column;
}
.drawer.open{transform:translateX(0)}
.drawer-top{display:flex; justify-content:space-between; align-items:center; padding:16px 16px 10px}
.drawer-title{font-weight:800}
.drawer-links{padding:8px 16px 16px; display:grid; gap:10px}
.drawerlink{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.88);
}
.drawerlink:hover{background:rgba(255,255,255,.06)}
.drawer-foot{margin-top:auto; padding:14px 16px 18px; border-top:1px solid rgba(255,255,255,.10)}
.scrim{
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  z-index:35;
  opacity:0; pointer-events:none;
  transition:.2s ease;
}
.scrim.show{opacity:1; pointer-events:auto}

.modal{
  position:fixed; inset:0;
  z-index:50;
  display:none;
  place-items:center;
  padding:22px;
  background:rgba(0,0,0,.55);
}
.modal.show{display:grid}
.modal-card{
  width:min(980px, 100%);
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(10,11,14,.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-top{
  display:flex; justify-content:space-between; align-items:flex-start;
  padding:16px 16px 10px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.modal-kicker{font-size:12px; color:var(--muted); letter-spacing:.18em; text-transform:uppercase}
.modal-title{font-size:22px; font-weight:800; margin-top:6px}
.modal-body{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
  padding:16px;
}
.modal-media{
  border:1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow:hidden;
  background:
    radial-gradient(320px 220px at 30% 30%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(320px 260px at 70% 60%, rgba(255,255,255,.09), transparent 60%),
    rgba(0,0,0,.25);
  min-height: 300px;
  display:grid; place-items:center;
}
.modal-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.tagrow{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.tag{
  padding:7px 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  font-size:12px;
  color:rgba(255,255,255,.82);
}

.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:60;
  background:rgba(255,255,255,.92);
  color:#0b0d10;
  padding:12px 14px;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transition:.22s ease;
  font-weight:700;
  font-size:13px;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(-4px)}

.hidden{display:none !important}

/* High-contrast mode */
body.hc{
  --panel:rgba(255,255,255,.10);
  --panel2:rgba(255,255,255,.12);
  --muted:rgba(255,255,255,.75);
}
body.hc .bg{filter:contrast(1.05) brightness(1.02)}
body.hc .progress-bar{background:#fff}

/* Responsive */
@media (max-width: 920px){
  .two-col{grid-template-columns:1fr; gap:18px}
  .sec-head{flex-direction:column; align-items:flex-start}
  .cards{grid-template-columns:1fr 1fr}
  .modal-body{grid-template-columns:1fr}
}
@media (max-width: 720px){
  .nav{display:none}
  #menuBtn{display:grid}
  .stats{grid-template-columns:1fr}
  .quick{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .section{padding-top:100px}
}


/* Projects hero (like screenshot) */
.projects-hero .wrap{position:relative}
.proj-top{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:18px;
}
.logo-mini{
  font-weight:900;
  letter-spacing:.02em;
  font-size:22px;
  color:rgba(255,255,255,.92);
  text-shadow: 0 0 22px rgba(255,255,255,.14);
}
.proj-nav{display:flex; gap:16px; align-items:center}
.projnavlink{
  font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:rgba(255,255,255,.62);
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
  transition:.2s ease;
}
.projnavlink:hover{
  color:rgba(255,255,255,.9);
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}

.proj-stage{
  display:grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap:18px;
  align-items:center;
  margin-top:10px;
}
.shot{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  cursor:pointer;
  transition:.22s ease;
  height: 260px;
  display:grid; place-items:center;
}
.shot.tall{height: 320px}
.shot:hover{transform: translateY(-6px) scale(1.01); border-color: rgba(255,255,255,.20)}
.shot:active{transform: translateY(-2px) scale(.99)}
.shot .shot-ph{
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  border-radius: 14px;
  border:1px dashed rgba(255,255,255,.20);
  display:grid; place-items:center;
  color:rgba(255,255,255,.72);
  font-size:12px;
  background:
    radial-gradient(280px 200px at 30% 30%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(240px 200px at 70% 70%, rgba(255,255,255,.10), transparent 60%),
    rgba(0,0,0,.30);
}

.proj-center{
  text-align:center;
  margin: 18px 0 10px;
}
.proj-title{
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 900;
  letter-spacing:.06em;
}
.proj-subtitle{
  margin-top:10px;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
}
.proj-actions{
  margin-top:16px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.proj-list{
  margin-top:16px;
  display:grid;
  gap:10px;
  max-width: 760px;
  margin-left:auto;
  margin-right:auto;
}
.proj-item{
  width:100%;
  display:grid;
  grid-template-columns: 52px 1fr 90px;
  gap:12px;
  align-items:center;
  padding:12px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  cursor:pointer;
  transition:.2s ease;
  color:rgba(255,255,255,.86);
}
.proj-item:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.20);
  background:rgba(255,255,255,.05);
}
.pi-num{
  width:44px; height:32px;
  display:grid; place-items:center;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
  color:rgba(255,255,255,.70);
  font-weight:800;
  letter-spacing:.08em;
}
.pi-name{font-weight:800}
.pi-tag{
  justify-self:end;
  font-size:12px;
  color:rgba(255,255,255,.62);
  letter-spacing:.10em;
  text-transform:uppercase;
}

.proj-note{margin-top:10px; text-align:center}

/* Responsive for projects hero */
@media (max-width: 920px){
  .proj-stage{grid-template-columns:1fr; gap:14px}
  .shot{height: 240px}
  .shot.tall{height: 240px}
  .proj-item{grid-template-columns: 52px 1fr}
  .pi-tag{display:none}
}


/* --- Enhancements: clearer section borders + extra interactivity --- */
.section .wrap{
  padding: clamp(18px, 3.4vw, 34px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 22px 55px rgba(0,0,0,.35);
  position: relative;
}
.section .wrap::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background: radial-gradient(900px 420px at 20% 0%, rgba(255,255,255,.06), transparent 55%);
  opacity:.7;
}

.navlink.active,
.drawerlink.active{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

.cursor-glow{
  position:fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events:none;
  z-index:-2;
  background: radial-gradient(circle, rgba(255,255,255,.10), rgba(255,255,255,0) 65%);
  filter: blur(2px);
  transform: translate3d(-9999px,-9999px,0);
  transition: opacity .25s ease;
  opacity: .9;
}
body.hc .cursor-glow{ opacity: .35; }
@media (hover:none){
  .cursor-glow{ display:none; }
}

.shot{
  transform-style: preserve-3d;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  border: 1px solid rgba(255,255,255,.14);
}
.shot:hover{
  box-shadow: 0 22px 55px rgba(0,0,0,.42);
  border-color: rgba(255,255,255,.22);
}
.shot:active{
  transform: scale(.995);
}

.footer-section{
  min-height: 55vh;
  padding-bottom: 95px;
}
.footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer .muted{ color: var(--muted); }


/* Skills interactive */
.skills-list{list-style:none;padding:0;margin:0;display:flex;gap:.6rem;flex-wrap:wrap}
.skills-list li{padding:.4rem .7rem;border:1px solid rgba(255,255,255,.3);border-radius:999px;cursor:pointer;transition:.25s transform,.25s background,.25s box-shadow}
.skills-list li:hover{transform:translateY(-3px) scale(1.05);background:rgba(255,255,255,.08);box-shadow:0 8px 18px rgba(0,0,0,.25)}
.skills-list li.active{background:#fff;color:#000}

/* Skills boxed upgrade */
.skills-box{border:1px solid rgba(255,255,255,.25);padding:1.2rem;border-radius:18px;background:rgba(255,255,255,.05);backdrop-filter:blur(6px);max-width:650px}
.skills-title{font-size:1.2rem;margin-bottom:.6rem;opacity:.9}
.skills-desc{font-size:.85rem;opacity:.7;margin-bottom:.8rem}
.skills-list{list-style:none;padding:0;margin:0;display:flex;gap:.6rem;flex-wrap:wrap}
.skills-list li{padding:.45rem .75rem;border:1px solid rgba(255,255,255,.3);border-radius:999px;cursor:pointer;transition:.25s transform,.25s background,.25s box-shadow,.25s letter-spacing}
.skills-list li:hover{transform:translateY(-4px) scale(1.08);background:rgba(255,255,255,.12);box-shadow:0 10px 22px rgba(0,0,0,.35);letter-spacing:.5px}
.skills-list li.active{background:#fff;color:#000}

/* Centered premium skills */
.skills-wrapper{display:flex;justify-content:center;align-items:center;margin-top:1rem}
.skills-box{border:1px solid rgba(255,255,255,.25);padding:1.6rem 1.8rem;border-radius:22px;background:rgba(255,255,255,.05);backdrop-filter:blur(8px);text-align:center;max-width:720px}
.skills-icons{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-top:12px}
.skill-icon{padding:10px;border-radius:12px;background:rgba(255,255,255,.06);transition:.25s transform,.25s background}
.skill-icon:hover{transform:translateY(-5px) scale(1.05);background:rgba(255,255,255,.12)}
.skill-icon svg{width:28px;height:28px;fill:#fff}

/* Premium Skills Section */
.skills-wrapper{display:flex;justify-content:center;margin-top:1.5rem}
.skills-box{
  position:relative;
  padding:2rem 2.2rem;
  border-radius:26px;
  max-width:760px;
  text-align:center;
  background:rgba(20,20,20,.75);
  box-shadow:0 30px 60px rgba(0,0,0,.45);
  overflow:hidden;
}
.skills-box:before{
  content:"";
  position:absolute;inset:-1px;
  border-radius:28px;
  background:linear-gradient(120deg,#d4af37,#8a6bff,#00e0ff);
  z-index:-1;filter:blur(6px);opacity:.7;
}
.skills-title{font-size:1.6rem;font-weight:600;letter-spacing:.5px}
.skills-desc{opacity:.7;font-size:.9rem;margin:.5rem 0 1.2rem}
.skills-icons{display:grid;grid-template-columns:repeat(6,1fr);gap:18px;margin-bottom:1.2rem}
.skill-icon{padding:14px;border-radius:16px;background:rgba(255,255,255,.06);
transition:.35s transform,.35s background,.35s box-shadow}
.skill-icon:hover{transform:translateY(-6px) scale(1.08);
background:rgba(255,255,255,.15);box-shadow:0 15px 30px rgba(0,0,0,.35)}
.skill-icon span{display:block;margin-top:6px;font-size:.7rem;opacity:.75}
.skills-list{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}
.skills-list li{padding:.45rem .75rem;border-radius:999px;
border:1px solid rgba(255,255,255,.25);font-size:.8rem}


/* Skills (site-matched) */
.skills-panel{
  transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
  transition: transform .18s ease;
  will-change: transform;
}
.mini-cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:16px;
}
.mc{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding:14px;
}
.mc-title{font-weight:700}
.mc-sub{font-size:12px; margin-top:6px}

.tool-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}
.tool{
  display:flex; align-items:center; gap:12px;
  padding:12px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  transition:.22s ease;
}
.tool:hover{transform:translateY(-2px); background:rgba(255,255,255,.06)}
.tool.is-active{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.22);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.tool-badge{
  width:40px; height:40px;
  border-radius:14px;
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  font-weight:800; letter-spacing:.5px;
}
.tool-name{font-size:13px; color:var(--muted); letter-spacing:.2px}

.skill-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.chip{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-size:12px;
  cursor:pointer;
  transition:.2s ease;
}
.chip:hover{transform:translateY(-1px); background:rgba(255,255,255,.05)}
.chip.is-picked{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.22);
}
.chip.is-dim{opacity:.35}
.chip.is-hit{
  opacity:1;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

@media (max-width: 860px){
  .tool-grid{grid-template-columns: repeat(2, 1fr)}
  .mini-cards{grid-template-columns: 1fr}
}


/* Light theme */
body.light{
  --bg:#f6f7fb;
  --panel:rgba(0,0,0,.04);
  --panel2:rgba(0,0,0,.06);
  --text:rgba(10,10,10,.92);
  --muted:rgba(10,10,10,.62);
  --line:rgba(0,0,0,.12);
  --shadow: 0 30px 60px rgba(0,0,0,.12);
  --accent:#0b0d10;
}
body.light .bg{
  background:
    radial-gradient(1100px 700px at 20% 15%, rgba(0,0,0,.06), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(0,0,0,.05), transparent 55%),
    radial-gradient(1000px 700px at 60% 90%, rgba(0,0,0,.04), transparent 55%),
    linear-gradient(120deg, #f8f9fc, #f3f5fb 40%, #eef1f7);
}
body.light .bg .grid{
  background-image:
    linear-gradient(to right, rgba(0,0,0,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.06) 1px, transparent 1px);
}
body.light .iconbtn{border-color:rgba(0,0,0,.12)}
body.light .iconbtn:hover{background:rgba(0,0,0,.04)}


/* Light theme readability fixes */
body.light{
  --panel:rgba(255,255,255,.78);
  --panel2:rgba(255,255,255,.86);
  --text:rgba(12,12,14,.94);
  --muted:rgba(12,12,14,.72);
  --line:rgba(0,0,0,.14);
}
body.light .navlink{color:rgba(12,12,14,.86)}
body.light .navlink:hover{color:rgba(12,12,14,.94)}
body.light .panel,
body.light .card,
body.light .drawer,
body.light .modal-card{
  background:var(--panel);
  border-color:var(--line);
}
body.light .iconbtn{
  color:rgba(12,12,14,.90);
  background:rgba(255,255,255,.55);
}
body.light .iconbtn .i{color:rgba(12,12,14,.90)}
body.light .kicker{color:rgba(12,12,14,.60)}
body.light .muted{color:var(--muted)}
body.light .tool-badge{border-color:var(--line)}
body.light .tool,
body.light .chip{
  background:rgba(255,255,255,.65);
  border-color:var(--line);
}
body.light .tool:hover,
body.light .chip:hover{background:rgba(255,255,255,.85)}
body.light .chip.is-dim{opacity:.45}
body.light .chip.is-hit{box-shadow:0 14px 34px rgba(0,0,0,.14)}
body.light .progress-bar{background:rgba(12,12,14,.92)}
body.light input, body.light textarea{
  color:rgba(12,12,14,.94);
  background:rgba(255,255,255,.70);
  border-color:var(--line);
}
body.light input::placeholder, body.light textarea::placeholder{
  color:rgba(12,12,14,.50);
}


/* FINAL light text contrast fixes */
body.light h1,
body.light h2,
body.light h3,
body.light .h2,
body.light .panel-title{
  color:#0e1116 !important;
}

body.light p,
body.light .p,
body.light .panel-sub{
  color:rgba(20,20,22,.78) !important;
}

body.light .muted{
  color:rgba(20,20,22,.62) !important;
}

/* bullet dots / markers */
body.light li::marker,
body.light .dot,
body.light .bullet{
  color:#111 !important;
}

/* about section paragraph strong visibility */
body.light #about p{
  color:rgba(20,20,22,.80) !important;
}

/* skills intro paragraph */
body.light #skills p{
  color:rgba(20,20,22,.80) !important;
}


/* Light theme - timeline dots + scroll hint */
body.light .tl-dot{
  background:rgba(12,12,14,.88);
  box-shadow: 0 0 16px rgba(0,0,0,.12);
}
body.light .mouse{
  border-color: rgba(0,0,0,.22);
}
body.light .mouse:after{
  background: rgba(12,12,14,.70);
}


/* Light theme polish: reduce brightness + borders + numbers */
body.light{
  --bg:#eef1f6;
}
body.light .bg{
  background:
    radial-gradient(1100px 700px at 20% 15%, rgba(0,0,0,.05), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(0,0,0,.045), transparent 55%),
    radial-gradient(1000px 700px at 60% 90%, rgba(0,0,0,.04), transparent 55%),
    linear-gradient(120deg, #f1f3f8, #eceff6 40%, #e7ebf3);
}
body.light .bg::after{
  content:""; position:fixed; inset:0; pointer-events:none;
  background:rgba(0,0,0,.03);
}

/* Stronger borders for cards/panels */
body.light .panel,
body.light .card,
body.light .cards > *,
body.light .stat,
body.light .modal-card,
body.light .drawer{
  border:1px solid rgba(0,0,0,.14) !important;
  background:rgba(255,255,255,.88) !important;
}

/* Highlight numbers (01 02 03) and stat numbers */
body.light .num,
body.light .card-num,
body.light .stat-num{
  color:#0e1116 !important;
  opacity:.55;
}

/* Headline highlight numbers behind cards */
body.light .cards .num{
  color:rgba(0,0,0,.18) !important;
}

/* Section separators more visible */
body.light .line,
body.light hr{
  border-color:rgba(0,0,0,.16) !important;
}

/* Sub text darker */
body.light .stat-label,
body.light .panel-note{
  color:rgba(20,20,22,.72) !important;
}




/* Light theme - fix mini-card borders + highlight numbers + contact cards */
body.light .mini-card,
body.light .cc,
body.light .stat,
body.light .tool,
body.light .chip{
  border-color: rgba(0,0,0,.18) !important;
}

body.light .mini-card,
body.light .cc,
body.light .stat{
  background: rgba(255,255,255,.92) !important;
}

body.light .mc-top{
  color: rgba(0,0,0,.42) !important;
}

body.light .mc-title{
  color:#0e1116 !important;
}

body.light .cc-label,
body.light .mc-sub,
body.light .cc-value,
body.light .tl-sub{
  color: rgba(20,20,22,.74) !important;
}



/* Light theme - stat cards borders fix */
body.light .stat,
body.light .mini-cards .mc{
  border:1px solid rgba(0,0,0,.18) !important;
  background:rgba(255,255,255,.92) !important;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}


/* Light theme - project tags / pills */
body.light .tag,
body.light .pill{
  border:1px solid rgba(0,0,0,.18) !important;
  background:rgba(255,255,255,.88) !important;
  color:rgba(10,10,12,.78) !important;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}
