/* Base */
:root{
  --bg:#0f172a;
  --surface:#ffffff;
  --surface-2:#f5f7fb;
  --text:#0f172a;
  --muted:#6b7280;
  --primary:#6a11cb;
  --secondary:#2575fc;
  --ring:rgba(106,17,203,.25);
}
*{box-sizing:border-box}
html:focus-within{scroll-behavior:smooth}
body{margin:0;font-family:Poppins,system-ui,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:#fff}
.no-js .reveal{opacity:1;transform:none}
img{max-width:100%;display:block}
.container{max-width:1100px;margin:0 auto;padding:0 1.2rem}
a{color:inherit;text-decoration:none}

/* Accessibility */
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;padding:.5rem 1rem;background:#fff;border-radius:.6rem;box-shadow:0 10px 30px rgba(0,0,0,.2)}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.85);backdrop-filter:blur(10px);border-bottom:1px solid rgba(15,23,42,.06)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;align-items:center;gap:.7rem;font-weight:700}
.logo{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff}
.brand-name b{background:linear-gradient(135deg,var(--primary),var(--secondary));-webkit-background-clip:text;background-clip:text;color:transparent}
.desktop-nav{display:flex;align-items:center;gap:1rem}
.nav-link{padding:.6rem .9rem;border-radius:.7rem;color:var(--muted);font-weight:600}
.nav-link:hover,.nav-link.active{color:var(--text);background:linear-gradient(180deg,#fff,#f6f8ff)}
.icon-btn{border:1px solid rgba(0,0,0,.08);border-radius:.7rem;padding:.5rem;background:#fff}
.icon{width:20px;height:20px}

/* Mobile drawer */
.hamburger{display:none;flex-direction:column;gap:4px;border:0;background:transparent}
.hamburger span{display:block;width:24px;height:2px;background:currentColor;border-radius:2px}
.overlay{position:fixed;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(2px);z-index:40;opacity:0;pointer-events:none;transition:.25s}
.mobile-drawer{position:fixed;inset:0 0 0 auto;width:300px;background:#fff;border-left:1px solid rgba(0,0,0,.06);z-index:50;transform:translateX(100%);transition:.3s;padding:1rem;display:grid;gap:.25rem}
.m-link{padding:.9rem 1rem;border-radius:.7rem;color:var(--text)}
.m-link:hover{background:#f1f5f9}
.close-drawer{justify-self:end;border:0;background:#f1f5f9;border-radius:.6rem;padding:.4rem .6rem}
.m-actions{display:flex;gap:.5rem;margin-top:.5rem}

@media (max-width:900px){
  .desktop-nav{display:none}
  .hamburger{display:flex}
}

/* Hero */
.hero{position:relative;overflow:hidden;padding:5rem 0}
.hero-bg{position:absolute;inset:0;z-index:-1}
.blob{position:absolute;border-radius:50%;filter:blur(60px);opacity:.25}
.b1{width:42vmax;height:42vmax;background:radial-gradient(closest-side,var(--primary),transparent);left:-10vmax;top:-10vmax}
.b2{width:42vmax;height:42vmax;background:radial-gradient(closest-side,var(--secondary),transparent);right:-12vmax;bottom:-12vmax}
.b3{width:38vmax;height:38vmax;background:radial-gradient(closest-side,#22c55e,transparent);left:30%;top:40%}
@keyframes blob{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(10%,-6%) scale(1.05)}}
.b1,.b2,.b3{animation:blob 22s ease-in-out infinite}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:center}
.kicker{color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.12em}
.headline{font-size:clamp(2.2rem,6vw,4rem);margin:.2rem 0 .6rem;font-weight:800}
.gradient{background:linear-gradient(135deg,var(--primary),var(--secondary));-webkit-background-clip:text;background-clip:text;color:transparent}
.subhead{font-size:clamp(1rem,2.8vw,1.3rem);color:var(--muted)}
.cta{display:flex;gap:.6rem;margin-top:1rem;flex-wrap:wrap}
.badges{display:flex;gap:.5rem;margin-top:1rem;flex-wrap:wrap}
.badge{background:#eef2ff;border:1px solid #e5e7eb;border-radius:9999px;padding:.35rem .7rem;font-weight:600}

.portrait-wrap{position:relative;isolation:isolate}
.portrait{width:100%;border-radius:1.2rem;box-shadow:0 30px 60px rgba(15,23,42,.2)}
.floating-card{position:absolute;width:140px;height:100px;object-fit:cover;border-radius:.8rem;box-shadow:0 18px 40px rgba(15,23,42,.25)}
.fc1{right:-1rem;top:8%}
.fc2{left:-1rem;bottom:10%}
.scroll-indicator{display:inline-flex;flex-direction:column;align-items:center;gap:.25rem;color:var(--muted);margin-top:2rem}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .floating-card{display:none}
}

/* Sections */
.section{padding:5rem 0}
.section.alt{background:linear-gradient(180deg,#f8fafc,#ffffff)}
.section-title{font-size:clamp(1.6rem,3vw,2.4rem);margin:0 0 1rem;font-weight:800}
.center{text-align:center}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem}
@media (max-width:900px){.grid2{grid-template-columns:1fr}.grid3{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.grid3{grid-template-columns:1fr}}

.card{background:var(--surface);border:1px solid rgba(0,0,0,.06);border-radius:1rem;padding:1.2rem;box-shadow:0 10px 30px rgba(15,23,42,.06)}
.lead{color:var(--muted);line-height:1.8}
.keypoints{list-style:none;padding:0;margin:1rem 0 0;display:grid;gap:.4rem}
.keypoints li::before{content:"✓ ";color:#16a34a}
.skill{display:grid;grid-template-columns:auto 1fr;gap:.6rem;align-items:center;margin:.6rem 0}
.skill .bar{height:10px;background:#e2e8f0;border-radius:9999px;overflow:hidden}
.skill .bar b{display:block;height:100%;width:0;background:linear-gradient(135deg,var(--primary),var(--secondary))}

/* Projects */
.filters{display:flex;gap:.4rem;flex-wrap:wrap;justify-content:center;margin:1rem 0 1.6rem}
.chip{border:1px solid #e2e8f0;background:#fff;padding:.45rem .9rem;border-radius:9999px;font-weight:600;color:#374151}
.chip.active{background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;border-color:transparent;box-shadow:0 10px 20px rgba(106,17,203,.25)}
.project{display:grid;background:#fff;border:1px solid #e5e7eb;border-radius:1rem;overflow:hidden;box-shadow:0 12px 30px rgba(15,23,42,.07);transition:transform .25s, box-shadow .25s}
.project:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(15,23,42,.12)}
.project .media{position:relative;padding-top:62%}
.project .media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.project .p-body{padding:1rem}
.tags{display:flex;gap:.35rem;flex-wrap:wrap}
.tag{background:#eef2ff;border-radius:9999px;padding:.25rem .6rem;font-size:.8rem}

/* Timeline */
.timeline{position:relative;margin:1rem auto;max-width:850px}
.timeline::before{content:"";position:absolute;left:10px;top:0;bottom:0;width:2px;background:#e2e8f0}
.t-item{position:relative;padding-left:2.5rem;margin:1rem 0}
.t-dot{position:absolute;left:2px;top:.35rem;width:16px;height:16px;border-radius:9999px;background:linear-gradient(135deg,var(--primary),var(--secondary))}
.t-content h3{margin:.2rem 0}
.t-content span{color:var(--muted);font-size:.9rem}

/* Services */
.service{display:grid;gap:.6rem}
.service img{border-radius:1rem;height:180px;width:100%;object-fit:cover}
.service h3{margin:.2rem 0 .1rem}

/* Testimonials */
.testimonial p{font-style:italic;color:var(--muted)}
.user{display:flex;gap:.7rem;align-items:center;margin-top:1rem}
.user img{width:44px;height:44px;border-radius:9999px}
.user span{display:block;color:var(--muted);font-size:.85rem}

/* FAQ */
.faq{background:#fff;border:1px solid #e5e7eb;border-radius:.9rem;padding:.8rem 1rem;margin:.6rem auto;max-width:800px}
.faq summary{cursor:pointer;font-weight:600}

/* Forms & Buttons */
.form{display:grid;gap:.7rem}
.field{display:grid;gap:.35rem}
input,textarea{width:100%;border:2px solid #e5e7eb;border-radius:.8rem;padding:.8rem 1rem;background:transparent}
input:focus,textarea:focus{outline:none;border-color:var(--secondary);box-shadow:0 0 0 4px var(--ring)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.85rem 1.3rem;border-radius:9999px;font-weight:700;border:0;cursor:pointer}
.btn.primary{color:#fff;background:linear-gradient(135deg,var(--primary),var(--secondary));box-shadow:0 10px 30px rgba(106,17,203,.35)}
.btn.ghost{background:#fff;border:2px solid #e2e8f0}
.btn.small{padding:.6rem 1rem;border-radius:.7rem}
.w-full{width:100%}
.mt-1{margin-top:.8rem}
.spinner{display:inline-block;width:0;height:0;border:2px solid transparent;border-top-color:#fff;border-radius:9999px;margin-right:.5rem;transition:width .2s,height .2s}
.btn[aria-busy="true"] .spinner{width:1rem;height:1rem;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Footer */
.site-footer{padding:2rem 0;background:#0f172a;color:#cbd5e1;text-align:center}

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