 /* ── ROOT ───────────────────────────────────────────── */
    :root {
      --void:       #03040A;
      --surface:    #070B18;
      --panel:      rgba(10,14,30,0.85);
      --royal:      #2563EB;
      --royalLight: #3B82F6;
      --violet:     #7C3AED;
      --violetSoft: #A78BFA;
      --gold:       #F59E0B;
      --border:     rgba(255,255,255,0.07);
      --borderHov:  rgba(99,102,241,0.45);
      --text:       #E2E8F0;
      --muted:      rgba(226,232,240,0.45);
      --glass:      rgba(255,255,255,0.04);
      --grad:       linear-gradient(135deg, var(--royal) 0%, var(--violet) 100%);
      --gradSoft:   linear-gradient(135deg, rgba(37,99,235,0.18) 0%, rgba(124,58,237,0.14) 100%);
      --shadow:     0 20px 60px rgba(0,0,0,0.55);
      --shadowGlow: 0 0 40px rgba(99,102,241,0.18);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      font-family: 'Montserrat', sans-serif;
      background-color: var(--void);
      color: var(--text);
      overflow-x: hidden;
    }

    /* ── LAYERED BACKGROUND ─────────────────────────────── */
    .bg-canvas {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
        radial-gradient(ellipse 90% 70% at 5%  0%,   rgba(37,99,235,0.15)  0%, transparent 55%),
        radial-gradient(ellipse 65% 60% at 95% 15%,  rgba(124,58,237,0.13) 0%, transparent 55%),
        radial-gradient(ellipse 80% 55% at 50% 100%, rgba(37,99,235,0.09)  0%, transparent 60%),
        var(--void);
    }

    /* Dot-grid texture */
    .bg-canvas::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
      background-size: 32px 32px;
    }

    /* ── UTILITY ─────────────────────────────────────────── */
    section, nav, footer { position: relative; z-index: 1; }

    .grad-text {
      background: var(--grad);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .section-label {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--violetSoft);
      margin-bottom: 0.5rem;
    }

    .section-title {
      font-size: clamp(2rem, 4.5vw, 3.2rem);
      font-weight: 800;
      letter-spacing: -1.5px;
      line-height: 1.1;
    }

    .section-desc {
      color: var(--muted);
      font-size: 0.97rem;
      line-height: 1.85;
      max-width: 520px;
    }

    hr.accent-line {
      border: none;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), rgba(37,99,235,0.5), transparent);
      opacity: 0.6;
    }

    /* ── GLASS CARD ─────────────────────────────────────── */
    .glass {
      background: var(--glass);
      border: 1px solid var(--border);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .glass-card {
      background: rgba(10,14,30,0.6);
      border: 1px solid var(--border);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 20px;
      transition: border-color 0.3s, transform 0.35s, box-shadow 0.35s;
    }
    .glass-card:hover {
      border-color: var(--borderHov);
      transform: translateY(-5px);
      box-shadow: var(--shadowGlow);
    }

    /* ── NAVBAR ─────────────────────────────────────────── */
    #mainNav {
      background: rgba(3,4,10,0.7) !important;
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border-bottom: 1px solid var(--border);
      transition: background 0.3s;
      padding: 14px 0;
    }
    #mainNav.scrolled { background: rgba(3,4,10,0.92) !important; }

    .navbar-brand {
      font-weight: 800;
      font-size: 1.25rem;
      letter-spacing: -0.5px;
    }
    .brand-code {
      font-family: 'Fira Code', monospace;
      font-size: 0.78rem;
      font-weight: 400;
      color: var(--violetSoft);
      margin-left: 6px;
    }

    .nav-link {
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--muted) !important;
      padding: 0.4rem 1rem !important;
      position: relative;
      transition: color 0.2s;
    }
    .nav-link::after {
      content: '';
      position: absolute;
      bottom: 0; left: 50%;
      width: 0; height: 2px;
      background: var(--grad);
      border-radius: 2px;
      transition: width 0.3s, left 0.3s;
    }
    .nav-link:hover, .nav-link.active {
      color: #fff !important;
    }
    .nav-link:hover::after, .nav-link.active::after {
      width: 60%; left: 20%;
    }

    /* ── BUTTONS ─────────────────────────────────────────── */
    .btn-grad {
      background: var(--grad);
      border: none;
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 0.82rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 13px 30px;
      border-radius: 100px;
      transition: all 0.3s;
      box-shadow: 0 4px 24px rgba(124,58,237,0.28);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .btn-grad:hover {
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 10px 36px rgba(124,58,237,0.42);
    }

    .btn-ghost {
      background: transparent;
      border: 1px solid rgba(255,255,255,0.15);
      color: var(--text);
      font-family: 'Montserrat', sans-serif;
      font-weight: 600;
      font-size: 0.82rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 12px 28px;
      border-radius: 100px;
      transition: all 0.3s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .btn-ghost:hover {
      border-color: var(--violetSoft);
      color: var(--violetSoft);
      background: rgba(124,58,237,0.06);
      transform: translateY(-2px);
    }

    .btn-sm-ghost {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--muted);
      border: 1px solid var(--border);
      padding: 7px 18px;
      border-radius: 100px;
      text-decoration: none;
      transition: all 0.2s;
    }
    .btn-sm-ghost:hover {
      color: var(--violetSoft);
      border-color: rgba(124,58,237,0.4);
      background: rgba(124,58,237,0.06);
    }
    .btn-sm-ghost.accent {
      color: var(--royalLight);
      border-color: rgba(37,99,235,0.35);
    }
    .btn-sm-ghost.accent:hover {
      background: rgba(37,99,235,0.08);
      border-color: rgba(37,99,235,0.6);
    }

    /* ── HERO ────────────────────────────────────────────── */
    #home {
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding: 120px 0 80px;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(124,58,237,0.1);
      border: 1px solid rgba(124,58,237,0.28);
      color: var(--violetSoft);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 7px 16px;
      border-radius: 100px;
      margin-bottom: 1.8rem;
    }
    .badge-pulse {
      width: 7px; height: 7px;
      background: var(--violetSoft);
      border-radius: 50%;
      animation: blink 2.2s ease-in-out infinite;
    }
    @keyframes blink {
      0%,100% { opacity:1; } 50% { opacity:0.25; }
    }

    .hero-title {
      font-size: clamp(2.6rem, 7vw, 5.2rem);
      font-weight: 900;
      letter-spacing: -3px;
      line-height: 1.0;
      margin-bottom: 1.2rem;
    }

    .hero-sub {
      font-family: 'Fira Code', monospace;
      font-size: 1rem;
      color: var(--violetSoft);
      margin-bottom: 1.4rem;
      letter-spacing: 0.02em;
    }
    .hero-sub span { color: var(--royalLight); }

    .hero-para {
      font-size: 0.97rem;
      color: var(--muted);
      line-height: 1.85;
      max-width: 500px;
      margin-bottom: 2.4rem;
    }

    /* Avatar frame */
    .avatar-frame {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .avatar-orbit {
      position: absolute;
      border-radius: 50%;
      border: 1px solid;
      animation: orbit linear infinite;
    }
    .orbit-1 {
      width: 360px; height: 360px;
      border-color: rgba(124,58,237,0.18);
      animation-duration: 22s;
    }
    .orbit-1::before {
      content: '';
      position: absolute;
      width: 10px; height: 10px;
      background: var(--violet);
      border-radius: 50%;
      top: -5px; left: 50%;
      transform: translateX(-50%);
      box-shadow: 0 0 16px var(--violet);
    }
    .orbit-2 {
      width: 430px; height: 430px;
      border-color: rgba(37,99,235,0.12);
      border-style: dashed;
      animation-duration: 38s;
      animation-direction: reverse;
    }
    @keyframes orbit {
      from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
    }

    .avatar-box {
      width: 260px; height: 260px;
      border-radius: 32px;
      background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(124,58,237,0.2));
      border: 1px solid rgba(124,58,237,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 2;
      box-shadow: 0 0 80px rgba(124,58,237,0.18), var(--shadow);
      font-size: 7.5rem;
      overflow: hidden;
    }
    .avatar-box::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(37,99,235,0.12), transparent 60%);
    }

    .hero-stat {
      text-align: center;
      padding: 16px 22px;
      background: var(--glass);
      border: 1px solid var(--border);
      border-radius: 16px;
      backdrop-filter: blur(12px);
    }
    .hero-stat .num {
      font-size: 1.7rem;
      font-weight: 800;
      letter-spacing: -1px;
      background: var(--grad);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1;
    }
    .hero-stat .lbl {
      font-size: 0.67rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-top: 4px;
    }

    /* ── ABOUT ──────────────────────────────────────────── */
    #about { padding: 120px 0; }

    .about-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--muted);
      padding: 5px 14px;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 100px;
      margin: 4px 4px 4px 0;
      transition: all 0.2s;
    }
    .about-tag:hover {
      border-color: var(--borderHov);
      color: var(--violetSoft);
    }
    .about-tag i { color: var(--royalLight); }

    .edu-card {
      border-left: 3px solid;
      border-image: var(--grad) 1;
      padding: 20px 24px;
      background: rgba(255,255,255,0.025);
      border-radius: 0 14px 14px 0;
      margin-bottom: 16px;
    }
    .edu-year {
      font-family: 'Fira Code', monospace;
      font-size: 0.72rem;
      color: var(--violetSoft);
      font-weight: 500;
      margin-bottom: 4px;
    }
    .edu-degree {
      font-weight: 700;
      font-size: 0.97rem;
      margin-bottom: 2px;
    }
    .edu-inst {
      font-size: 0.82rem;
      color: var(--muted);
    }

    .strength-item {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      margin-bottom: 18px;
    }
    .strength-icon {
      width: 40px; height: 40px;
      border-radius: 12px;
      background: var(--gradSoft);
      border: 1px solid rgba(124,58,237,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      flex-shrink: 0;
      color: var(--violetSoft);
    }
    .strength-title {
      font-weight: 700;
      font-size: 0.9rem;
      margin-bottom: 2px;
    }
    .strength-desc {
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.6;
    }

    /* ── SKILLS ─────────────────────────────────────────── */
    #skills { padding: 120px 0; }

    .skill-group {
      background: rgba(10,14,30,0.55);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 32px;
      height: 100%;
      transition: border-color 0.3s, transform 0.3s;
    }
    .skill-group:hover {
      border-color: rgba(124,58,237,0.35);
      transform: translateY(-4px);
    }
    .skill-group-label {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--violetSoft);
      margin-bottom: 0.4rem;
    }
    .skill-group-title {
      font-weight: 800;
      font-size: 1.05rem;
      margin-bottom: 1.5rem;
      letter-spacing: -0.3px;
    }

    .skill-item { margin-bottom: 18px; }
    .skill-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.8rem;
      font-weight: 600;
      color: rgba(226,232,240,0.8);
      margin-bottom: 7px;
    }
    .skill-pct { color: var(--violetSoft); }
    .skill-track {
      height: 4px;
      background: rgba(255,255,255,0.06);
      border-radius: 100px;
      overflow: hidden;
    }
    .skill-fill {
      height: 100%;
      border-radius: 100px;
      background: var(--grad);
      width: 0;
      transition: width 1.5s cubic-bezier(0.16,1,0.3,1);
    }

    /* ── PROJECTS ───────────────────────────────────────── */
    #projects { padding: 120px 0; }

    .proj-card {
      background: rgba(10,14,30,0.65);
      border: 1px solid var(--border);
      border-radius: 22px;
      overflow: hidden;
      height: 100%;
      transition: border-color 0.3s, transform 0.38s, box-shadow 0.38s;
    }
    .proj-card:hover {
      border-color: rgba(124,58,237,0.38);
      transform: translateY(-8px);
      box-shadow: 0 24px 70px rgba(0,0,0,0.5), var(--shadowGlow);
    }

    .proj-thumb {
      height: 220px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      font-size: 5rem;
    }
    .proj-thumb::after {
      content: '';
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 0.3s;
      background: rgba(124,58,237,0.08);
    }
    .proj-card:hover .proj-thumb::after { opacity: 1; }

    .thumb-coffee {
      background: linear-gradient(135deg, #0a0f1e 0%, #0d1a12 100%);
    }
    .thumb-coffee::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 30% 50%, rgba(37,99,235,0.35) 0%, transparent 55%),
        radial-gradient(circle at 75% 40%, rgba(245,158,11,0.18) 0%, transparent 50%);
    }

    .thumb-blog {
      background: linear-gradient(135deg, #0a0f1e 0%, #130d1e 100%);
    }
    .thumb-blog::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 70% 50%, rgba(124,58,237,0.4) 0%, transparent 55%),
        radial-gradient(circle at 25% 35%, rgba(37,99,235,0.2) 0%, transparent 50%);
    }

    .proj-thumb-icon { position: relative; z-index: 1; filter: drop-shadow(0 6px 24px rgba(0,0,0,0.6)); }

    .proj-body { padding: 28px 30px; }

    .tech-tag {
      display: inline-block;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--royalLight);
      background: rgba(37,99,235,0.1);
      border: 1px solid rgba(37,99,235,0.22);
      padding: 3px 11px;
      border-radius: 100px;
      margin: 3px 3px 3px 0;
    }

    .proj-title {
      font-weight: 800;
      font-size: 1.15rem;
      letter-spacing: -0.4px;
      margin: 14px 0 8px;
    }
    .proj-desc {
      font-size: 0.84rem;
      color: var(--muted);
      line-height: 1.75;
      margin-bottom: 22px;
    }
    .proj-links { display: flex; gap: 10px; flex-wrap: wrap; }

    /* ── CONTACT ────────────────────────────────────────── */
    #contact { padding: 120px 0; }

    .contact-main {
      background: rgba(10,14,30,0.7);
      border: 1px solid var(--border);
      border-radius: 28px;
      padding: 60px;
      backdrop-filter: blur(20px);
    }

    .field-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 8px;
      display: block;
    }

    .field-input {
      width: 100%;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 13px 18px;
      color: var(--text);
      font-family: 'Montserrat', sans-serif;
      font-size: 0.9rem;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .field-input::placeholder { color: rgba(226,232,240,0.25); }
    .field-input:focus {
      border-color: rgba(124,58,237,0.5);
      box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
    }
    textarea.field-input { resize: vertical; min-height: 130px; }

    .contact-info-row {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 15px 18px;
      background: rgba(255,255,255,0.025);
      border: 1px solid var(--border);
      border-radius: 14px;
      margin-bottom: 12px;
      transition: border-color 0.2s;
    }
    .contact-info-row:hover { border-color: rgba(124,58,237,0.3); }
    .ci-icon {
      width: 40px; height: 40px;
      background: var(--gradSoft);
      border: 1px solid rgba(124,58,237,0.18);
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      color: var(--violetSoft);
      flex-shrink: 0;
    }
    .ci-label {
      font-size: 0.67rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .ci-value {
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--text);
    }

    .social-btn {
      width: 44px; height: 44px;
      border-radius: 12px;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 1.1rem;
      text-decoration: none;
      transition: all 0.2s;
    }
    .social-btn:hover {
      background: var(--gradSoft);
      border-color: rgba(124,58,237,0.4);
      color: var(--violetSoft);
      transform: translateY(-2px);
    }

    /* ── FOOTER ─────────────────────────────────────────── */
    footer {
      padding: 30px 0;
      border-top: 1px solid var(--border);
      font-size: 0.8rem;
      color: var(--muted);
    }
    footer a { color: var(--violetSoft); text-decoration: none; }
    footer a:hover { color: #fff; }

    /* ── BACK TO TOP ─────────────────────────────────────── */
    #backTop {
      position: fixed;
      bottom: 30px;
      right: 30px;
      z-index: 999;
      width: 46px; height: 46px;
      background: var(--grad);
      border: none;
      border-radius: 50%;
      color: #fff;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 24px rgba(124,58,237,0.35);
      cursor: pointer;
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.3s, transform 0.3s;
    }
    #backTop.show { opacity: 1; transform: translateY(0); }
    #backTop:hover { box-shadow: 0 10px 32px rgba(124,58,237,0.5); transform: translateY(-2px); }

    /* ── SCROLL FADE ─────────────────────────────────────── */
    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.72s cubic-bezier(0.16,1,0.3,1), transform 0.72s cubic-bezier(0.16,1,0.3,1);
    }
    .reveal.visible { opacity: 1; transform: none; }

    /* ── RESPONSIVE ─────────────────────────────────────── */
    @media (max-width: 768px) {
      .hero-title { letter-spacing: -2px; }
      .contact-main { padding: 36px 24px; }
      .avatar-box { width: 200px; height: 200px; font-size: 5.5rem; border-radius: 24px; }
      .orbit-1 { width: 270px; height: 270px; }
      .orbit-2 { width: 330px; height: 330px; }
    }