 :root{
      --bg:#0b1020;
      --panel:rgba(255,255,255,.06);
      --panel2:rgba(255,255,255,.09);
      --text:#eaf0ff;
      --muted:rgba(234,240,255,.72);
      --line:rgba(255,255,255,.12);
      --brand:#7c5cff;
      --brand2:#20e3b2;
      --warn:#ffcc66;
      --shadow: 0 18px 60px rgba(0,0,0,.55);
      --radius: 18px;
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
      font-family:"Plus Jakarta Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
      color:var(--text);
      background:
        radial-gradient(900px 380px at 20% 10%, rgba(124,92,255,.35), transparent 60%),
        radial-gradient(750px 380px at 85% 20%, rgba(32,227,178,.22), transparent 55%),
        radial-gradient(900px 520px at 55% 95%, rgba(255,204,102,.12), transparent 55%),
        var(--bg);
      overflow-x:hidden;
    }
    a{color:inherit;text-decoration:none}
    .container{width:min(1120px, 92vw); margin-inline:auto}
    .nav{
      position:sticky; top:0; z-index:50;
      backdrop-filter: blur(14px);
      background: linear-gradient(to bottom, rgba(11,16,32,.72), rgba(11,16,32,.35));
      border-bottom:1px solid var(--line);
    }
    .nav-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:14px}
    .brand{display:flex; align-items:center; gap:10px}
    .logo{
      width:40px;height:40px;border-radius:12px;
      background: linear-gradient(135deg, var(--brand), var(--brand2));
      box-shadow: 0 10px 30px rgba(124,92,255,.35);
      display:grid; place-items:center; font-weight:800;
    }
    .brand-text b{display:block; letter-spacing:.4px}
    .brand-text small{color:var(--muted)}
    .menu{display:flex; gap:16px; align-items:center; flex-wrap:wrap}
    .menu a{color:var(--muted); font-weight:600; font-size:14px}
    .menu a:hover{color:var(--text)}
    .btn{
      display:inline-flex; align-items:center; justify-content:center; gap:10px;
      padding:12px 14px; border-radius:14px; font-weight:800;
      background: linear-gradient(135deg, var(--brand), #9a7bff);
      border:1px solid rgba(255,255,255,.10);
      box-shadow: 0 12px 40px rgba(124,92,255,.25);
      cursor:pointer;
    }
    .btn.secondary{
      background: rgba(255,255,255,.06);
      box-shadow:none;
      color:var(--text);
      border:1px solid var(--line);
    }
    .btn:hover{transform: translateY(-1px)}
    .btn:active{transform: translateY(0px)}
    .hamburger{display:none}
    .hero{padding:48px 0 10px}
    .hero-grid{
      display:grid;
      grid-template-columns: 1.25fr .75fr;
      gap:22px;
      align-items:stretch;
    }
    .card{
      background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
      border:1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    .hero-left{padding:28px}
    .tag{
      display:inline-flex; align-items:center; gap:10px;
      padding:9px 12px; border-radius:999px;
      background: rgba(124,92,255,.16);
      border:1px solid rgba(124,92,255,.35);
      color: var(--text);
      font-weight:800; font-size:13px;
    }
    .tag i{
      width:9px;height:9px;border-radius:99px;
      background: var(--brand2);
      box-shadow: 0 0 0 4px rgba(32,227,178,.12);
      display:inline-block;
    }
    h1{margin:14px 0 10px; font-size: clamp(30px, 4vw, 44px); line-height:1.1}
    .sub{color:var(--muted); font-size:16px; line-height:1.7}
    .hero-ctas{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}
    .badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
    .badge{
      padding:10px 12px; border-radius:14px;
      background: rgba(255,255,255,.06);
      border:1px solid var(--line);
      color:var(--muted);
      font-weight:700; font-size:13px;
    }
    .hero-right{padding:18px; display:flex; flex-direction:column; gap:14px}
    .profile{
      display:flex; gap:14px; align-items:center;
      padding:16px;
      background: rgba(255,255,255,.06);
      border:1px solid var(--line);
      border-radius: 16px;
    }
    .avatar{
      width:66px;height:66px;border-radius:18px;
      overflow:hidden; flex:0 0 auto;
      border:1px solid rgba(255,255,255,.14);
      background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(32,227,178,.16));
      display:grid; place-items:center;
      position:relative;
    }
    .avatar img{width:100%; height:100%; object-fit:cover; display:block}
    .profile .name{font-weight:900}
    .profile .role{color:var(--muted); font-weight:700; font-size:13px; margin-top:4px}
    .stats{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px}
    .stat{
      padding:14px 12px; border-radius:16px;
      background: rgba(255,255,255,.06);
      border:1px solid var(--line);
    }
    .stat b{display:block; font-size:18px}
    .stat small{color:var(--muted); font-weight:700}
    section{padding:26px 0}
    .section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:14px}
    .section-head h2{margin:0; font-size:22px}
    .section-head p{margin:0; color:var(--muted); max-width:62ch}
    .grid-3{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px}
    .grid-2{display:grid; grid-template-columns:repeat(2, 1fr); gap:14px}
    .pill{
      display:inline-flex; gap:10px; align-items:center;
      padding:10px 12px; border-radius:999px;
      border:1px solid var(--line);
      background: rgba(255,255,255,.05);
      color:var(--muted);
      font-weight:800; font-size:13px;
    }
    .service, .skill, .project, .quote{
      padding:16px;
      border-radius: 18px;
      border:1px solid var(--line);
      background: rgba(255,255,255,.05);
    }
    .service h3, .project h3{margin:10px 0 6px}
    .service p, .project p{margin:0; color:var(--muted); line-height:1.7}
    .icon{
      width:44px;height:44px;border-radius:14px;
      display:grid;place-items:center;
      background: linear-gradient(135deg, rgba(124,92,255,.24), rgba(32,227,178,.16));
      border:1px solid rgba(255,255,255,.12);
    }
    .skill b{display:block; margin-bottom:8px}
    .chips{display:flex; flex-wrap:wrap; gap:8px}
    .chip{
      padding:9px 10px;
      border-radius: 999px;
      border:1px solid var(--line);
      background: rgba(255,255,255,.05);
      color:var(--muted);
      font-weight:800; font-size:13px;
    }
    .project .thumb{
      border-radius:16px;
      overflow:hidden;
      border:1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.06);
      height:170px;
      display:grid; place-items:center;
      position:relative;
    }
    .project .thumb img{
      width:100%; height:100%; object-fit:cover; display:block;
      filter:saturate(1.1) contrast(1.05);
    }
    .project .meta{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
    .project .links{display:flex; gap:10px; margin-top:12px; flex-wrap:wrap}
    .link{
      padding:10px 12px;
      border-radius: 14px;
      border:1px solid var(--line);
      background: rgba(255,255,255,.05);
      font-weight:900; font-size:13px;
      color:var(--text);
    }
    .link:hover{border-color: rgba(124,92,255,.45)}
    .quote p{margin:0; color:var(--text); line-height:1.7; font-weight:700}
    .quote small{display:block; color:var(--muted); margin-top:10px; font-weight:800}
    .cta{
      padding:22px;
      border-radius: 22px;
      border:1px solid rgba(124,92,255,.32);
      background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(32,227,178,.10));
      display:flex; align-items:center; justify-content:space-between; gap:12px;
      flex-wrap:wrap;
    }
    .cta h3{margin:0}
    .cta p{margin:6px 0 0; color:var(--muted)}
    form{
      display:grid; gap:10px;
    }
    input, textarea{
      width:100%;
      padding:12px 12px;
      border-radius:14px;
      border:1px solid var(--line);
      background: rgba(255,255,255,.05);
      color: var(--text);
      outline:none;
      font-weight:700;
    }
    textarea{min-height:120px; resize:vertical}
    input:focus, textarea:focus{border-color: rgba(124,92,255,.55)}
    footer{padding:28px 0 42px; color:var(--muted)}
    .split{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}
    .tiny{font-size:13px}
    .muted{color:var(--muted)}
    .hr{height:1px;background:var(--line); margin:22px 0}

    /* Mobile */
    @media (max-width: 900px){
      .hero-grid{grid-template-columns: 1fr; }
      .stats{grid-template-columns: repeat(3, 1fr);}
    }
    @media (max-width: 720px){
      .menu{display:none}
      .hamburger{display:inline-flex}
      .grid-3{grid-template-columns:1fr}
      .grid-2{grid-template-columns:1fr}
      .stats{grid-template-columns: 1fr; }
      .hero-left{padding:22px}
    }

    /* Simple fade-in */
    .reveal{opacity:0; transform: translateY(10px); transition: .6s ease;}
    .reveal.show{opacity:1; transform: translateY(0px);}

/* --- Enhancements: smooth scroll, animated background, progress bar, ripple, reduced motion --- */
html{scroll-behavior:smooth}

/* Scroll progress */
.scrollbar{
  position:fixed; inset:0 0 auto 0;
  height:3px; z-index:9999;
  background: rgba(255,255,255,.06);
  pointer-events:none;
}
.scrollbar__bar{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--brand), var(--brand2), var(--warn));
  box-shadow: 0 0 16px rgba(124,92,255,.45);
}

/* Animated background blobs + subtle noise */
.bg{position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none;}
.blob{
  position:absolute;
  width:520px; height:520px; border-radius: 999px;
  filter: blur(40px);
  opacity:.22;
  transform: translate3d(0,0,0);
  animation: floaty 14s ease-in-out infinite;
}
.blob.b1{left:-120px; top:-140px; background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.85), transparent 60%);}
.blob.b2{right:-160px; top:40px; background: radial-gradient(circle at 40% 40%, rgba(32,227,178,.75), transparent 62%); animation-duration: 18s;}
.blob.b3{left:40%; bottom:-220px; background: radial-gradient(circle at 40% 40%, rgba(255,204,102,.55), transparent 62%); animation-duration: 20s;}

@keyframes floaty{
  0%{transform: translate(0,0) scale(1);}
  50%{transform: translate(18px, -18px) scale(1.05);}
  100%{transform: translate(0,0) scale(1);}
}
.noise{
  position:absolute; inset:-40%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  opacity:.05;
  transform: rotate(7deg);
  mix-blend-mode: overlay;
}

/* Cursor glow (mouse-follow) */
.cursor-glow{
  position:absolute;
  width:520px; height:520px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.22), transparent 60%);
  filter: blur(22px);
  opacity:0;
  transition: opacity .25s ease;
}

/* Nicer reveal: optional stagger */
.reveal{will-change: transform, opacity}
.reveal.show{transition-delay: var(--d, 0ms)}

/* Mobile menu as panel (class-based instead of inline styles) */
.menu.is-open{
  display:flex !important;
  flex-direction:column;
  align-items:flex-start;
  padding:14px;
  position:absolute;
  right:4vw;
  top:64px;
  background: rgba(11,16,32,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius:16px;
  box-shadow: 0 20px 70px rgba(0,0,0,.6);
  gap:12px;
  width: min(320px, 92vw);
  transform-origin: top right;
  animation: pop .18s ease-out;
}
@keyframes pop{
  from{opacity:0; transform: translateY(-6px) scale(.98)}
  to{opacity:1; transform: translateY(0) scale(1)}
}

/* Ripple effect */
.btn, .link{position:relative; overflow:hidden}
.ripple{
  position:absolute;
  border-radius:999px;
  transform: translate(-50%, -50%);
  pointer-events:none;
  width:10px; height:10px;
  animation: ripple .6s ease-out forwards;
  background: rgba(255,255,255,.28);
}
@keyframes ripple{
  from{opacity:.65; transform: translate(-50%,-50%) scale(1)}
  to{opacity:0; transform: translate(-50%,-50%) scale(22)}
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .blob, .menu.is-open{animation:none}
  .reveal{transition:none}
}


.menu a.active{color:var(--text)}

.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
.work-card{
  grid-column:span 12;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.work-thumb{ display:block; aspect-ratio:16/9; overflow:hidden; }
.work-thumb img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .35s ease;
}
.work-thumb:hover img{ transform:scale(1.04); }

.work-body{ padding:14px 14px 16px; }
.work-body h3{ margin:0 0 6px; font-size:18px; }
.work-body p{ margin:0 0 12px; opacity:.9; }

.work-actions{ display:flex; gap:10px; flex-wrap:wrap; }

@media (min-width: 820px){ .work-card{ grid-column:span 6; } }
@media (min-width: 1100px){ .work-card{ grid-column:span 4; } }