
  :root {
    --primary: #6c63ff;
    --secondary: #00d4ff;
    --accent: #ff6b6b;
    --dark: #080b14;
    --dark2: #0d1117;
    --card: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --text: #e8eaf0;
    --muted: #8b91a8;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--dark);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
  }

  /* ── Custom Cursor ── */
  #cursor {
    position: fixed; top: 0; left: 0; width: 12px; height: 12px;
    background: var(--primary); border-radius: 50%; pointer-events: none;
    z-index: 9999; transform: translate(-50%,-50%);
    transition: width .2s, height .2s, background .2s;
    mix-blend-mode: screen;
  }
  #cursor-ring {
    position: fixed; top: 0; left: 0; width: 40px; height: 40px;
    border: 1.5px solid rgba(108,99,255,0.5); border-radius: 50%;
    pointer-events: none; z-index: 9998; transform: translate(-50%,-50%);
    transition: transform .12s ease, width .2s, height .2s;
  }
  body:has(a:hover) #cursor, body:has(button:hover) #cursor { width: 20px; height: 20px; background: var(--secondary); }
  body:has(a:hover) #cursor-ring, body:has(button:hover) #cursor-ring { width: 60px; height: 60px; border-color: rgba(0,212,255,0.4); }

  /* ── Background ── */
  .bg-canvas {
    position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  }
  .bg-canvas canvas { position: absolute; inset: 0; }
  .bg-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: .15;
    animation: drift 12s ease-in-out infinite alternate;
  }
  .orb1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: -100px; animation-delay: 0s; }
  .orb2 { width: 400px; height: 400px; background: var(--secondary); bottom: -100px; right: -100px; animation-delay: -4s; }
  .orb3 { width: 300px; height: 300px; background: var(--accent); top: 40%; left: 40%; animation-delay: -8s; }

  @keyframes drift {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.1); }
  }

  /* Noise overlay */
  .bg-canvas::after {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
    opacity: 0.04; pointer-events: none;
  }

  /* ── Layout ── */
  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

  /* ── Nav ── */
  header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 0; transition: all .4s ease;
  }
  header.scrolled {
    background: rgba(8,11,20,0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 14px 0;
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; }
  .logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
    text-decoration: none; color: var(--text);
  }
  .logo-dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--primary);
    animation: pulse-dot 2s infinite;
  }
  @keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 0 rgba(108,99,255,.6); }
    50% { box-shadow: 0 0 0 8px rgba(108,99,255,0); }
  }
  nav ul { list-style: none; display: flex; gap: 36px; }
  nav a {
    color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500;
    position: relative; transition: color .3s;
    font-family: var(--font-mono); letter-spacing: .5px;
  }
  nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
    background: var(--primary); transition: width .3s;
  }
  nav a:hover { color: var(--text); }
  nav a:hover::after { width: 100%; }

  .nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important; padding: 8px 20px !important; border-radius: 100px;
    font-family: var(--font-body) !important; letter-spacing: 0 !important;
    transition: opacity .3s, transform .3s !important;
  }
  .nav-cta::after { display: none !important; }
  .nav-cta:hover { opacity: .85; transform: translateY(-1px); }

  .hamburger {
    display: none; background: none; border: 1px solid var(--border);
    color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: none;
  }

  /* Mobile Menu */
  #mobile-menu {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: rgba(13,17,23,0.98); backdrop-filter: blur(20px);
    border-left: 1px solid var(--border); z-index: 200;
    padding: 80px 32px 32px; transition: right .4s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; gap: 8px;
  }
  #mobile-menu.open { right: 0; }
  #mobile-menu a {
    color: var(--text); text-decoration: none; font-family: var(--font-head);
    font-size: 1.3rem; font-weight: 600; padding: 12px 0;
    border-bottom: 1px solid var(--border); transition: color .3s, padding-left .3s;
  }
  #mobile-menu a:hover { color: var(--primary); padding-left: 8px; }
  #close-menu {
    position: absolute; top: 24px; right: 24px; background: none; border: none;
    color: var(--muted); font-size: 1.4rem; cursor: none;
  }
  .menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 199;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .menu-overlay.open { opacity: 1; pointer-events: all; }

  /* ── Progress Bar ── */
  .reading-bar {
    position: fixed; top: 0; left: 0; height: 2px; width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 101; transition: width .1s linear;
  }

  /* ── Reveal Animations ── */
  .reveal {
    opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .7s, transform .7s; }
  .reveal-left.visible { opacity: 1; transform: translateX(0); }
  .reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .7s, transform .7s; }
  .reveal-right.visible { opacity: 1; transform: translateX(0); }
  .stagger-1 { transition-delay: .1s; }
  .stagger-2 { transition-delay: .2s; }
  .stagger-3 { transition-delay: .3s; }
  .stagger-4 { transition-delay: .4s; }

  /* ── Section shared ── */
  section { padding: 100px 0; position: relative; z-index: 1; }
  .section-label {
    display: inline-block; font-family: var(--font-mono); font-size: .75rem;
    color: var(--primary); letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 12px; padding: 4px 12px; border: 1px solid rgba(108,99,255,.3);
    border-radius: 100px;
  }
  .section-title {
    font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800; margin-bottom: 16px;
  }
  .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .section-sub { color: var(--muted); max-width: 500px; line-height: 1.7; }
  .section-divider {
    width: 60px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px; margin: 16px 0 64px;
  }

  /* ── Hero ── */
  #hero {
    min-height: 100vh; display: flex; align-items: center;
    padding-top: 100px; padding-bottom: 60px;
  }
  .hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(108,99,255,.1); border: 1px solid rgba(108,99,255,.3);
    border-radius: 100px; padding: 6px 16px; font-family: var(--font-mono);
    font-size: .75rem; color: var(--primary); margin-bottom: 24px;
  }
  .hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: blink 1.5s infinite; }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
  .hero-name {
    font-family: var(--font-head); font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800; line-height: 1.05; margin-bottom: 16px;
  }
  .hero-role {
    font-family: var(--font-mono); font-size: 1.2rem; color: var(--secondary);
    margin-bottom: 20px; min-height: 2em;
  }
  #typewriter::after { content: '|'; animation: blink 1s infinite; }
  .hero-desc { color: var(--muted); line-height: 1.8; font-size: 1.05rem; margin-bottom: 36px; }
  .hero-quote {
    background: var(--card); border: 1px solid var(--border);
    border-left: 3px solid var(--primary); border-radius: 12px;
    padding: 16px 20px; font-style: italic; color: var(--muted);
    font-size: .95rem; line-height: 1.7; margin-bottom: 36px;
  }
  .hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; padding: 14px 28px; border-radius: 100px;
    text-decoration: none; font-weight: 600; font-size: .95rem;
    transition: transform .3s, box-shadow .3s; cursor: none;
  }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(108,99,255,.4); }
  .btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); color: var(--text);
    padding: 14px 28px; border-radius: 100px; text-decoration: none;
    font-weight: 500; font-size: .95rem; transition: border-color .3s, background .3s;
    cursor: none;
  }
  .btn-outline:hover { border-color: var(--primary); background: rgba(108,99,255,.08); }

  /* Hero visual */
  .hero-visual {
    display: flex; justify-content: center; align-items: center; position: relative;
  }
  .hero-avatar-ring {
    width: 320px; height: 320px; border-radius: 50%; position: relative;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    animation: spin 8s linear infinite; padding: 3px;
  }
  .hero-avatar-inner {
    width: 100%; height: 100%; border-radius: 50%;
    background: linear-gradient(135deg, rgba(108,99,255,.2), rgba(0,212,255,.2));
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--dark);
    font-size: 7rem; position: relative;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .floating-badge {
    position: absolute; background: var(--card); border: 1px solid var(--border);
    backdrop-filter: blur(10px); border-radius: 12px; padding: 10px 16px;
    font-family: var(--font-mono); font-size: .8rem; white-space: nowrap;
    animation: float-badge 3s ease-in-out infinite alternate;
  }
  .fb1 { top: 10%; left: -30px; animation-delay: 0s; }
  .fb2 { bottom: 15%; right: -20px; animation-delay: -1.5s; }
  .fb3 { top: 55%; left: -40px; animation-delay: -3s; }
  @keyframes float-badge { 0% { transform: translateY(0); } 100% { transform: translateY(-12px); } }

  /* Social bar */
  .hero-socials {
    display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;
  }
  .social-link {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); text-decoration: none; transition: all .3s;
    font-size: .95rem;
  }
  .social-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

  /* ── Skills ── */
  .skills-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
  }
  .skill-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; padding: 28px; transition: transform .3s, border-color .3s, box-shadow .3s;
    cursor: default;
  }
  .skill-card:hover {
    transform: translateY(-6px); border-color: rgba(108,99,255,.4);
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
  }
  .skill-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 16px;
  }
  .skill-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
  .skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .tag {
    padding: 4px 12px; border-radius: 100px; font-size: .78rem;
    font-family: var(--font-mono); font-weight: 500; transition: transform .2s;
  }
  .tag:hover { transform: scale(1.05); }

  /* ── Projects ── */
  .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
  .project-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 20px;
    overflow: hidden; transition: transform .3s, box-shadow .3s;
    display: flex; flex-direction: column;
    transform-style: preserve-3d; perspective: 800px;
  }
  .project-card:hover { box-shadow: 0 30px 60px rgba(0,0,0,.5); }
  .project-top {
    height: 160px; display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; position: relative; overflow: hidden;
  }
  .project-top::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(8,11,20,.8));
  }
  .project-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
  .project-label {
    font-family: var(--font-mono); font-size: .7rem; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 8px;
  }
  .project-body h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
  .project-desc { color: var(--muted); font-size: .9rem; line-height: 1.7; margin-bottom: 16px; flex: 1; }
  .project-features { list-style: none; margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
  .project-features li { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; color: var(--muted); }
  .project-features li i { margin-top: 3px; font-size: .8rem; }
  .project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  .project-links { display: flex; gap: 16px; }
  .project-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .85rem; text-decoration: none; font-weight: 500;
    transition: opacity .3s, transform .3s;
  }
  .project-link:hover { opacity: .7; transform: translateY(-2px); }

  /* ── Tech Stack ── */
  .tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
  .tech-row {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
    transition: border-color .3s, transform .3s;
  }
  .tech-row:hover { border-color: rgba(108,99,255,.3); transform: translateX(6px); }
  .tech-row-label { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); min-width: 120px; }
  .tech-pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .tech-pill {
    background: rgba(255,255,255,.06); border: 1px solid var(--border);
    padding: 3px 12px; border-radius: 100px; font-size: .78rem; color: var(--text);
    transition: background .2s, border-color .2s;
  }
  .tech-pill:hover { background: rgba(108,99,255,.15); border-color: rgba(108,99,255,.4); }

  /* ── Contact ── */
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
  .contact-info-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
  .contact-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 20px; text-decoration: none; color: var(--text);
    transition: border-color .3s, transform .3s;
  }
  .contact-card:hover { border-color: rgba(108,99,255,.4); transform: translateX(6px); }
  .contact-icon {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  }
  .contact-card h4 { font-weight: 600; font-size: .95rem; margin-bottom: 2px; }
  .contact-card p { color: var(--muted); font-size: .85rem; }

  /* Contact Form */
  .contact-form { display: flex; flex-direction: column; gap: 16px; }
  .form-group { display: flex; flex-direction: column; gap: 6px; }
  .form-group label { font-size: .85rem; color: var(--muted); font-family: var(--font-mono); }
  .form-input {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    padding: 14px 16px; color: var(--text); font-family: var(--font-body); font-size: .95rem;
    transition: border-color .3s, box-shadow .3s; outline: none; width: 100%;
    resize: vertical;
  }
  .form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,.15); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; padding: 14px 32px; border-radius: 100px;
    border: none; font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    cursor: none; transition: transform .3s, box-shadow .3s; width: 100%;
  }
  .form-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(108,99,255,.4); }
  .form-success {
    display: none; background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.3);
    border-radius: 12px; padding: 16px; color: #4ade80; text-align: center; font-size: .9rem;
  }

  /* ── Footer ── */
  footer {
    border-top: 1px solid var(--border); padding: 48px 0;
    text-align: center; position: relative; z-index: 1;
  }
  .footer-socials { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
  .footer-social {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); text-decoration: none; transition: all .3s; font-size: 1rem;
  }
  .footer-social:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-4px); }
  .footer-copy { color: var(--muted); font-size: .9rem; }
  .footer-heart { color: var(--accent); }

  /* ── Scroll to top ── */
  #scroll-top {
    position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%; border: none; color: #fff; font-size: 1.1rem;
    cursor: none; z-index: 50; display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .3s;
    box-shadow: 0 8px 24px rgba(108,99,255,.4);
  }
  #scroll-top.visible { opacity: 1; transform: translateY(0); }
  #scroll-top:hover { transform: translateY(-4px) !important; }

  /* ── Nav dots (section indicator) ── */
  .nav-dots {
    position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 12px; z-index: 50;
  }
  .nav-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--border);
    border: 1px solid var(--muted); cursor: none; transition: all .3s;
    position: relative;
  }
  .nav-dot.active { background: var(--primary); border-color: var(--primary); transform: scale(1.4); }
  .nav-dot::before {
    content: attr(data-label); position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); background: var(--dark2); border: 1px solid var(--border);
    padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-family: var(--font-mono);
    white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .nav-dot:hover::before { opacity: 1; }

  /* ── Responsive ── */
  @media (max-width: 768px) {
    nav ul, .nav-dots { display: none; }
    .hamburger { display: block; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { order: -1; }
    .hero-avatar-ring { width: 220px; height: 220px; }
    .hero-avatar-inner { font-size: 5rem; }
    .floating-badge { display: none; }
    .hero-btns, .hero-socials { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section-sub { max-width: 100%; }
    .tech-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .hero-quote { text-align: left; }
  }

  /* Shimmer effect on hover for cards */
  .project-card { position: relative; overflow: hidden; }
  .project-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.04) 50%, transparent 60%);
    transform: translateX(-100%); transition: transform .6s ease; z-index: 0;
  }
  .project-card:hover::before { transform: translateX(100%); }
  .project-card > * { position: relative; z-index: 1; }
