/* =============================================================
       SECTION 1 — CSS CUSTOM PROPERTIES (Design Tokens)
       Edit colors, fonts, spacing here to retheme the whole site.
       ============================================================= */
    :root {
      /* Dark theme (default) */
      --bg-0: #050508;           /* deepest background */
      --bg-1: #0c0c12;           /* main background */
      --bg-2: #111119;           /* section alternate */
      --bg-3: #18181f;           /* cards, surfaces */
      --bg-4: #1f1f29;           /* elevated surfaces */
      --border: rgba(255,255,255,0.06);
      --border-h: rgba(255,255,255,0.14); /* hover border */
 
      /* Accent palette — electric lime + cyan */
      --a1: #c6f135;             /* primary accent: electric lime */
      --a2: #00d4ff;             /* secondary accent: cyan */
      --a3: #ff6b6b;             /* tertiary: coral (errors/tags) */
      --a1-dim: rgba(198,241,53,0.12);
      --a2-dim: rgba(0,212,255,0.10);
 
      /* Typography */
      --text-1: #f2f2f5;         /* headings */
      --text-2: #8888aa;         /* body / muted */
      --text-3: #44445a;         /* very muted */
 
      /* Misc */
      --nav-h: 68px;
      --radius: 18px;
      --font-h: 'Outfit', sans-serif;
      --font-m: 'DM Mono', monospace;
      --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
 
    /* Light theme overrides */
    [data-theme="light"] {
      --bg-0: #f0f0f7;
      --bg-1: #f7f7fc;
      --bg-2: #ebebf5;
      --bg-3: #ffffff;
      --bg-4: #e8e8f2;
      --border: rgba(0,0,0,0.07);
      --border-h: rgba(0,0,0,0.18);
      --a1: #5c9e00;
      --a2: #0077aa;
      --a3: #cc3344;
      --a1-dim: rgba(92,158,0,0.10);
      --a2-dim: rgba(0,119,170,0.08);
      --text-1: #0d0d1a;
      --text-2: #55556a;
      --text-3: #aaaacc;
    }
 
    /* =============================================================
       SECTION 2 — RESET & BASE STYLES
       ============================================================= */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; font-size: 16px; }
    body {
      background: var(--bg-1);
      color: var(--text-1);
      font-family: var(--font-h);
      font-weight: 400;
      line-height: 1.6;
      overflow-x: hidden;
      transition: background var(--transition), color var(--transition);
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    button { cursor: pointer; font-family: var(--font-h); border: none; background: none; }
    ul { list-style: none; }
    ::selection { background: var(--a1); color: #000; }
 
    /* Scrollbar styling */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg-0); }
    ::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
 
    /* =============================================================
       SECTION 3 — LOADING SCREEN
       ============================================================= */
    #loader {
      position: fixed; inset: 0; z-index: 9999;
      background: var(--bg-0);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 24px;
      transition: opacity 0.6s ease, visibility 0.6s ease;
    }
    #loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
 
    /* Animated logo on loader */
    .loader-logo {
      font-family: var(--font-h);
      font-size: 48px; font-weight: 900;
      letter-spacing: -3px;
      background: linear-gradient(135deg, var(--a1), var(--a2));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      animation: loader-pulse 1.2s ease-in-out infinite alternate;
    }
    @keyframes loader-pulse { from { opacity: 0.4; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
 
    .loader-bar-wrap {
      width: 160px; height: 2px;
      background: var(--border); border-radius: 2px; overflow: hidden;
    }
    .loader-bar {
      height: 100%;
      background: linear-gradient(90deg, var(--a1), var(--a2));
      animation: loader-fill 1.2s ease forwards;
    }
    @keyframes loader-fill { from { width: 0; } to { width: 100%; } }
 
    .loader-text {
      font-family: var(--font-m);
      font-size: 11px; letter-spacing: 3px; color: var(--text-3);
      text-transform: uppercase;
    }
 
    /* =============================================================
       SECTION 4 — CUSTOM CURSOR (desktop only)
       ============================================================= */
    .cursor {
      position: fixed; z-index: 10000; pointer-events: none;
      width: 10px; height: 10px; border-radius: 50%;
      background: var(--a1);
      transform: translate(-50%, -50%);
      transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
      mix-blend-mode: difference;
    }
    .cursor-ring {
      position: fixed; z-index: 9999; pointer-events: none;
      width: 36px; height: 36px; border-radius: 50%;
      border: 1.5px solid rgba(198,241,53,0.5);
      transform: translate(-50%, -50%);
      transition: transform 0.12s ease, width 0.3s, height 0.3s, opacity 0.3s;
    }
    .cursor.hover { width: 16px; height: 16px; }
    .cursor-ring.hover { width: 56px; height: 56px; opacity: 0.5; }
    @media (max-width: 768px) { .cursor, .cursor-ring { display: none; } }
 
    /* =============================================================
       SECTION 5 — NAVIGATION
       ============================================================= */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      height: var(--nav-h);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 6%;
      background: rgba(5,5,8,0.75);
      backdrop-filter: blur(20px) saturate(180%);
      border-bottom: 1px solid var(--border);
      transition: background var(--transition), border-color var(--transition);
    }
    [data-theme="light"] nav { background: rgba(247,247,252,0.82); }
 
    /* Logo */
    .nav-logo {
      display: flex; align-items: center; gap: 10px;
      font-size: 20px; font-weight: 900; letter-spacing: -1px;
    }
    .nav-logo-icon {
      width: 36px; height: 36px; border-radius: 10px;
      background: linear-gradient(135deg, var(--a1), var(--a2));
      display: flex; align-items: center; justify-content: center;
      font-size: 15px; font-weight: 900; color: #000;
    }
 
    /* Desktop links */
    .nav-links {
      display: flex; gap: 6px; align-items: center;
    }
    .nav-links a {
      padding: 7px 16px; border-radius: 100px;
      font-size: 14px; font-weight: 500; color: var(--text-2);
      transition: background var(--transition), color var(--transition);
    }
    .nav-links a:hover, .nav-links a.active {
      background: var(--bg-4); color: var(--text-1);
    }
    .nav-links a.active { color: var(--a1); }
 
    /* Nav right controls */
    .nav-right { display: flex; gap: 8px; align-items: center; }
 
    .icon-btn {
      width: 38px; height: 38px; border-radius: 10px;
      background: var(--bg-3); border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      font-size: 16px; color: var(--text-2);
      transition: background var(--transition), border-color var(--transition), color var(--transition);
    }
    .icon-btn:hover { background: var(--bg-4); border-color: var(--border-h); color: var(--text-1); }
 
    /* Hamburger */
    .hamburger { display: none; flex-direction: column; gap: 4.5px; padding: 6px; }
    .hamburger span {
      display: block; width: 20px; height: 2px;
      background: var(--text-2); border-radius: 2px; transition: all 0.3s;
    }
    .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
    .hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
    .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
 
    /* Mobile nav drawer */
    .mobile-drawer {
      position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
      z-index: 990; background: var(--bg-0);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 8px;
      opacity: 0; pointer-events: none;
      transform: translateY(-12px);
      transition: opacity 0.3s, transform 0.3s;
    }
    .mobile-drawer.open { opacity: 1; pointer-events: all; transform: translateY(0); }
    .mobile-drawer a {
      width: 80%; text-align: center; padding: 18px;
      font-size: 22px; font-weight: 700; color: var(--text-2);
      border-radius: var(--radius); transition: all 0.2s;
      border: 1px solid transparent;
    }
    .mobile-drawer a:hover { background: var(--bg-3); border-color: var(--border); color: var(--a1); }
 
    /* =============================================================
       SECTION 6 — SHARED LAYOUT UTILITIES
       ============================================================= */
    .container { max-width: 1160px; margin: 0 auto; padding: 0 6%; }
    section { padding: 120px 0 90px; }
    section:nth-child(even) { background: var(--bg-2); }
 
    /* Section header pattern */
    .sec-eyebrow {
      display: inline-flex; align-items: center; gap: 8px;
      font-family: var(--font-m); font-size: 11px;
      letter-spacing: 3px; text-transform: uppercase;
      color: var(--a1); margin-bottom: 14px;
    }
    .sec-eyebrow::before {
      content: ''; display: block;
      width: 24px; height: 1.5px; background: var(--a1); border-radius: 2px;
    }
    .sec-title {
      font-size: clamp(34px, 5.5vw, 58px);
      font-weight: 900; line-height: 1.05;
      letter-spacing: -1.5px; margin-bottom: 16px;
    }
    .sec-sub {
      font-size: 17px; color: var(--text-2);
      max-width: 520px; line-height: 1.75;
      margin-bottom: 60px;
    }
 
    /* Gradient text utility */
    .grad-text {
      background: linear-gradient(135deg, var(--a1) 0%, var(--a2) 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
    }
 
    /* Scroll reveal */
    .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.65s ease, transform 0.65s ease; }
    .reveal.in { opacity: 1; transform: none; }
    .reveal-l { opacity: 0; transform: translateX(-36px); transition: opacity 0.65s ease, transform 0.65s ease; }
    .reveal-l.in { opacity: 1; transform: none; }
    .reveal-r { opacity: 0; transform: translateX(36px); transition: opacity 0.65s ease, transform 0.65s ease; }
    .reveal-r.in { opacity: 1; transform: none; }
 
    /* =============================================================
       SECTION 7 — HERO SECTION
       Design: Magazine editorial layout. Giant name. Photo in angled
       frame. Floating badge cards. Subtle grain texture.
       ============================================================= */
    #home {
      min-height: 100vh; padding-top: var(--nav-h);
      display: flex; align-items: center;
      position: relative; overflow: hidden;
    }
 
    /* Grain overlay for texture */
    #home::before {
      content: '';
      position: absolute; inset: 0; z-index: 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='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
      opacity: 0.35; pointer-events: none;
    }
 
    /* Animated gradient orbs */
    .orb {
      position: absolute; border-radius: 50%; filter: blur(80px);
      pointer-events: none; z-index: 0;
    }
    .orb-1 {
      width: 600px; height: 600px; top: -200px; right: -100px;
      background: radial-gradient(circle, rgba(198,241,53,0.08), transparent 70%);
      animation: orb-float 8s ease-in-out infinite alternate;
    }
    .orb-2 {
      width: 500px; height: 500px; bottom: -100px; left: -150px;
      background: radial-gradient(circle, rgba(0,212,255,0.07), transparent 70%);
      animation: orb-float 10s ease-in-out infinite alternate-reverse;
    }
    @keyframes orb-float { from { transform: translate(0,0) scale(1); } to { transform: translate(30px, -40px) scale(1.08); } }
 
    /* Hero grid layout */
    .hero-grid {
      display: grid; grid-template-columns: 1fr 440px;
      gap: 64px; align-items: center;
      position: relative; z-index: 1;
      width: 100%;
    }
 
    /* Availability badge */
    .avail-badge {
      display: inline-flex; align-items: center; gap: 10px;
      background: var(--bg-3); border: 1px solid var(--border);
      border-radius: 100px; padding: 8px 18px 8px 12px;
      font-size: 13px; color: var(--text-2); margin-bottom: 28px;
      animation: fadeUp 0.6s ease both;
    }
    .avail-dot {
      width: 8px; height: 8px; background: #3dffa0;
      border-radius: 50%; box-shadow: 0 0 8px #3dffa0;
      animation: blink 2s ease-in-out infinite;
    }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }
 
    /* Giant hero name */
    .hero-name {
      font-size: clamp(50px, 8.5vw, 100px);
      font-weight: 900; line-height: 0.95;
      letter-spacing: -4px; margin-bottom: 12px;
      animation: fadeUp 0.6s 0.1s ease both;
    }
 
    /* Animated role text */
    .hero-role {
      font-family: var(--font-m);
      font-size: clamp(14px, 2vw, 18px);
      color: var(--text-2); margin-bottom: 28px;
      animation: fadeUp 0.6s 0.2s ease both;
    }
    .role-highlight {
      color: var(--a1); font-style: italic;
    }
 
    .hero-desc {
      font-size: 16px; color: var(--text-2); line-height: 1.8;
      max-width: 480px; margin-bottom: 40px;
      animation: fadeUp 0.6s 0.3s ease both;
    }
 
    /* CTA buttons */
    .hero-ctas {
      display: flex; gap: 14px; flex-wrap: wrap;
      animation: fadeUp 0.6s 0.4s ease both;
    }
    .btn-lime {
      display: inline-flex; align-items: center; gap: 9px;
      background: var(--a1); color: #000;
      padding: 14px 28px; border-radius: 100px;
      font-weight: 700; font-size: 15px;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .btn-lime:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(198,241,53,0.3); }
 
    .btn-ghost {
      display: inline-flex; align-items: center; gap: 9px;
      background: transparent;
      border: 1.5px solid var(--border-h);
      color: var(--text-1);
      padding: 14px 28px; border-radius: 100px;
      font-weight: 500; font-size: 15px;
      transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
    }
    .btn-ghost:hover { border-color: var(--a1); color: var(--a1); transform: translateY(-3px); background: var(--a1-dim); }
 
    /* Quick stats row */
    .hero-stats {
      display: flex; gap: 36px; margin-top: 44px;
      animation: fadeUp 0.6s 0.5s ease both;
    }
    .hs-item { display: flex; flex-direction: column; gap: 2px; }
    .hs-num {
      font-size: 32px; font-weight: 900; line-height: 1;
      background: linear-gradient(135deg, var(--a1), var(--a2));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }
    .hs-label { font-family: var(--font-m); font-size: 11px; color: var(--text-3); letter-spacing: 1px; text-transform: uppercase; }
    .hs-sep { width: 1px; background: var(--border); align-self: stretch; }
 
    /* ── Hero Photo Column ── */
    .hero-photo-col {
      position: relative; animation: fadeIn 0.8s 0.2s ease both;
    }
 
    /* Outer decorative frame */
    .photo-frame {
      position: relative; border-radius: 24px 60px 24px 60px;
      overflow: hidden;
      border: 1px solid var(--border-h);
      background: var(--bg-3);
      box-shadow:
        0 0 0 1px rgba(198,241,53,0.1),
        0 32px 80px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.06);
      aspect-ratio: 4/5;
      display: flex; align-items: center; justify-content: center;
    }
 
    /* The actual photo / placeholder */
    #heroPhoto {
      width: 100%; height: 100%;
      object-fit: cover; object-position: top center;
      display: none; /* hidden until user uploads */
    }
 
    /* Placeholder shown when no photo */
    .photo-placeholder {
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 16px;
      width: 100%; height: 100%; padding: 32px;
      text-align: center;
    }
    .photo-placeholder .avatar-initials {
      width: 140px; height: 140px; border-radius: 50%;
      background: linear-gradient(135deg, var(--a1), var(--a2));
      display: flex; align-items: center; justify-content: center;
      font-size: 52px; font-weight: 900; color: #000; letter-spacing: -2px;
    }
    .photo-placeholder p { font-size: 13px; color: var(--text-3); line-height: 1.6; }
    .photo-placeholder strong { color: var(--text-2); }
 
    /* Upload photo button (shown in placeholder) */
    .upload-photo-btn {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--bg-4); border: 1px dashed var(--border-h);
      color: var(--text-2); border-radius: 10px; padding: 10px 18px;
      font-size: 13px; font-weight: 500; cursor: pointer;
      transition: border-color 0.2s, color 0.2s;
    }
    .upload-photo-btn:hover { border-color: var(--a1); color: var(--a1); }
    #photoInput { display: none; }
 
    /* Floating accent cards on photo */
    .float-card {
      position: absolute; background: rgba(12,12,18,0.88);
      backdrop-filter: blur(12px);
      border: 1px solid var(--border-h); border-radius: 14px;
      padding: 12px 16px; display: flex; align-items: center; gap: 10px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
      animation: float-bob 4s ease-in-out infinite alternate;
    }
    [data-theme="light"] .float-card { background: rgba(255,255,255,0.92); }
    .float-card.card-1 { top: 24px; left: -32px; animation-delay: 0s; }
    .float-card.card-2 { bottom: 48px; right: -28px; animation-delay: 1.5s; }
    @keyframes float-bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
    .fc-icon { font-size: 26px; }
    .fc-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-m); }
    .fc-value { font-size: 15px; font-weight: 700; color: var(--text-1); }
 
    /* Decorative corner ring */
    .deco-ring {
      position: absolute; width: 180px; height: 180px;
      border: 1.5px solid rgba(198,241,53,0.12); border-radius: 50%;
      bottom: -40px; left: -50px; pointer-events: none;
      animation: spin-slow 20s linear infinite;
    }
    .deco-ring::before {
      content: ''; position: absolute;
      width: 8px; height: 8px; background: var(--a1);
      border-radius: 50%; top: -4px; left: 50%;
    }
    @keyframes spin-slow { to { transform: rotate(360deg); } }
 
    /* =============================================================
       SECTION 8 — ABOUT SECTION
       ============================================================= */
    #about { background: var(--bg-2); }
 
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
 
    .about-text p {
      color: var(--text-2); font-size: 16px; line-height: 1.85;
      margin-bottom: 22px;
    }
    .about-text p strong { color: var(--text-1); }
 
    /* Info table */
    .info-table { margin-top: 36px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
    .it-row {
      display: flex; align-items: center;
      padding: 14px 20px; gap: 16px;
      border-bottom: 1px solid var(--border);
      transition: background 0.2s;
    }
    .it-row:last-child { border-bottom: none; }
    .it-row:hover { background: var(--bg-4); }
    .it-key { font-family: var(--font-m); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1.5px; min-width: 88px; }
    .it-val { font-size: 14px; font-weight: 500; color: var(--text-1); }
    .it-val a { color: var(--a1); }
 
    /* Skill panel */
    .skills-panel { display: flex; flex-direction: column; gap: 28px; }
    .skill-group-title {
      font-family: var(--font-m); font-size: 10px; letter-spacing: 2.5px;
      text-transform: uppercase; color: var(--a2); margin-bottom: 12px;
    }
    .skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .chip {
      display: flex; align-items: center; gap: 7px;
      background: var(--bg-3); border: 1px solid var(--border);
      border-radius: 10px; padding: 8px 14px;
      font-size: 13px; font-weight: 500; color: var(--text-2);
      transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
      cursor: default;
    }
    .chip:hover { border-color: var(--a1); color: var(--text-1); transform: translateY(-2px); background: var(--a1-dim); }
    .chip-icon { font-size: 15px; }
 
    /* =============================================================
       SECTION 9 — PROJECTS SECTION
       ============================================================= */
    #projects { background: var(--bg-1); }
 
    /* Bento-style asymmetric grid */
    .proj-bento {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-rows: auto auto;
      gap: 18px;
    }
 
    /* First card spans 2 columns — "featured" */
    .proj-card:first-child { grid-column: span 2; }
 
    .proj-card {
      background: var(--bg-3); border: 1px solid var(--border);
      border-radius: var(--radius); overflow: hidden;
      display: flex; flex-direction: column;
      transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    }
    .proj-card:hover {
      border-color: var(--border-h); transform: translateY(-4px);
      box-shadow: 0 20px 64px rgba(0,0,0,0.35);
    }
 
    /* Card top banner */
    .proj-banner {
      height: 160px; display: flex;
      align-items: center; justify-content: center;
      font-size: 48px; position: relative; overflow: hidden;
      flex-shrink: 0;
    }
    .proj-card:first-child .proj-banner { height: 220px; font-size: 72px; }
 
    /* Banner gradient backgrounds */
    .b1 { background: linear-gradient(135deg,#0a0f0a,#0f2a0f,#0a2018); }
    .b2 { background: linear-gradient(135deg,#0a0a1f,#1a0f2e,#0f1a30); }
    .b3 { background: linear-gradient(135deg,#1a0a0a,#2e1a0f,#1a100a); }
    .b4 { background: linear-gradient(135deg,#0a1a1a,#0f2e2e,#0a1f2a); }
    .b5 { background: linear-gradient(135deg,#0f0a1a,#1f0f3a,#1a0a2a); }
    .b6 { background: linear-gradient(135deg,#1a1a0a,#2e2a0f,#1f1a0a); }
 
    /* Grid dot pattern on banner */
    .proj-banner::before {
      content: ''; position: absolute; inset: 0;
      background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
      background-size: 24px 24px;
    }
 
    /* Card body */
    .proj-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
    .proj-title {
      font-size: 17px; font-weight: 700; margin-bottom: 9px;
    }
    .proj-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; flex: 1; margin-bottom: 18px; }
    .proj-stack { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
    .stack-pill {
      font-family: var(--font-m); font-size: 11px; font-weight: 400;
      color: var(--a1); background: var(--a1-dim);
      border: 1px solid rgba(198,241,53,0.2);
      border-radius: 6px; padding: 4px 10px;
    }
    .proj-links { display: flex; gap: 10px; }
    .proj-btn {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 13px; font-weight: 500; color: var(--text-2);
      border: 1px solid var(--border); border-radius: 8px;
      padding: 7px 14px;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }
    .proj-btn:hover { border-color: var(--a1); color: var(--a1); background: var(--a1-dim); }
 
    /* =============================================================
       SECTION 10 — RESUME / EDUCATION SECTION
       ============================================================= */
    #resume { background: var(--bg-2); }
 
    .resume-grid { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
 
    /* PDF preview card */
    .cv-card {
      background: var(--bg-3); border: 1px solid var(--border);
      border-radius: var(--radius); overflow: hidden;
      position: sticky; top: calc(var(--nav-h) + 24px);
    }
    .cv-preview {
      height: 380px; background: linear-gradient(160deg, var(--bg-4), var(--bg-2));
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 16px;
      border-bottom: 1px solid var(--border);
      position: relative; overflow: hidden;
    }
    .cv-preview::before {
      content: ''; position: absolute; inset: 0;
      background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
      background-size: 20px 20px;
    }
    .cv-icon-wrap {
      width: 88px; height: 88px; border-radius: 20px;
      background: linear-gradient(135deg, var(--a1), var(--a2));
      display: flex; align-items: center; justify-content: center;
      font-size: 40px; box-shadow: 0 12px 40px rgba(198,241,53,0.3);
      position: relative; z-index: 1;
    }
    .cv-filename { font-family: var(--font-m); font-size: 13px; color: var(--text-2); z-index: 1; }
    .cv-meta { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
    .cv-meta-row { display: flex; justify-content: space-between; font-size: 13px; }
    .cv-meta-key { color: var(--text-3); font-family: var(--font-m); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; align-self: center; }
    .cv-meta-val { color: var(--text-2); font-weight: 500; }
    .cv-btns { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; }
    .cv-dl-btn {
      display: flex; align-items: center; justify-content: center; gap: 9px;
      background: var(--a1); color: #000;
      padding: 13px; border-radius: 12px;
      font-weight: 700; font-size: 15px;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .cv-dl-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(198,241,53,0.3); }
 
    /* Education timeline */
    .edu-timeline { display: flex; flex-direction: column; gap: 0; }
    .edu-item {
      display: flex; gap: 24px; padding-bottom: 40px; position: relative;
    }
    .edu-item:last-child { padding-bottom: 0; }
 
    /* Timeline line */
    .edu-item:not(:last-child) .edu-dot-col::after {
      content: ''; position: absolute;
      left: 12px; top: 28px; bottom: 0; width: 1px;
      background: var(--border);
    }
    .edu-dot-col { position: relative; flex-shrink: 0; }
    .edu-dot {
      width: 26px; height: 26px; border-radius: 50%;
      background: linear-gradient(135deg, var(--a1), var(--a2));
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 700; color: #000; z-index: 1;
    }
    .edu-content {
      background: var(--bg-3); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 22px 26px; flex: 1;
      transition: border-color 0.2s;
    }
    .edu-content:hover { border-color: var(--border-h); }
    .edu-year { font-family: var(--font-m); font-size: 11px; color: var(--a1); letter-spacing: 1px; margin-bottom: 8px; }
    .edu-degree { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
    .edu-school { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
    .edu-grade {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--bg-4); border: 1px solid var(--border);
      border-radius: 8px; padding: 5px 12px;
      font-family: var(--font-m); font-size: 12px; color: var(--a2);
    }
 
    /* Certifications */
    .certs-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; }
    .cert-tile {
      background: var(--bg-3); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 24px;
      transition: border-color 0.2s, transform 0.2s;
    }
    .cert-tile:hover { border-color: var(--a1); transform: translateY(-3px); }
    .cert-emoji { font-size: 32px; margin-bottom: 12px; }
    .cert-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
    .cert-by { font-family: var(--font-m); font-size: 11px; color: var(--a1); letter-spacing: 1px; }
 
    /* =============================================================
       SECTION 11 — CONTACT SECTION
       Direct email via EmailJS — no backend needed!
       ============================================================= */
    #contact { background: var(--bg-1); }
 
    .contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
 
    /* Left info panel */
    .contact-info h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
    .contact-info p { font-size: 16px; color: var(--text-2); line-height: 1.8; margin-bottom: 36px; }
 
    .contact-card-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
    .cc {
      display: flex; align-items: center; gap: 14px;
      background: var(--bg-3); border: 1px solid var(--border);
      border-radius: 14px; padding: 14px 18px;
      transition: border-color 0.2s, transform 0.2s;
    }
    .cc:hover { border-color: var(--a1); transform: translateX(4px); }
    .cc-ico {
      width: 42px; height: 42px; border-radius: 11px; background: var(--bg-4);
      display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
    }
    .cc-lbl { font-family: var(--font-m); font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
    .cc-val { font-size: 14px; font-weight: 600; color: var(--text-1); }
 
    /* Social buttons row */
    .social-row { display: flex; gap: 10px; flex-wrap: wrap; }
    .soc-btn {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--bg-3); border: 1px solid var(--border);
      border-radius: 12px; padding: 11px 18px;
      font-size: 14px; font-weight: 600; color: var(--text-2);
      transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
    }
    .soc-btn:hover { border-color: var(--a1); color: var(--a1); transform: translateY(-2px); background: var(--a1-dim); }
    .soc-btn.whatsapp:hover { border-color: #25D366; color: #25D366; background: rgba(37,211,102,0.08); }
 
    /* ── Contact Form ── */
    .contact-form {
      background: var(--bg-3); border: 1px solid var(--border);
      border-radius: 24px; padding: 36px;
    }
    .form-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
    .form-sub { font-size: 14px; color: var(--text-2); margin-bottom: 28px; }
 
    .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-grp { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
    .form-lbl {
      font-family: var(--font-m); font-size: 11px;
      color: var(--text-3); text-transform: uppercase; letter-spacing: 1.5px;
    }
    .form-field {
      background: var(--bg-4); border: 1px solid var(--border);
      border-radius: 12px; padding: 13px 16px;
      font-family: var(--font-h); font-size: 15px; color: var(--text-1);
      outline: none; resize: none; width: 100%;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    }
    .form-field::placeholder { color: var(--text-3); }
    .form-field:focus {
      border-color: var(--a1);
      box-shadow: 0 0 0 3px rgba(198,241,53,0.12);
      background: var(--bg-3);
    }
 
    /* Status message after submit */
    .form-msg {
      border-radius: 12px; padding: 14px 18px;
      font-size: 14px; font-weight: 500;
      display: none; margin-bottom: 16px;
    }
    .form-msg.ok {
      display: block;
      background: rgba(61,255,160,0.1);
      border: 1px solid rgba(61,255,160,0.25);
      color: #3dffa0;
    }
    .form-msg.err {
      display: block;
      background: rgba(255,107,107,0.1);
      border: 1px solid rgba(255,107,107,0.25);
      color: var(--a3);
    }
    .form-msg.loading {
      display: block;
      background: var(--a1-dim);
      border: 1px solid rgba(198,241,53,0.2);
      color: var(--a1);
    }
 
    /* Submit button */
    .btn-submit {
      width: 100%; padding: 15px;
      background: linear-gradient(135deg, var(--a1), #aadd00);
      color: #000; border-radius: 14px;
      font-size: 16px; font-weight: 800; letter-spacing: 0.3px;
      transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
      display: flex; align-items: center; justify-content: center; gap: 10px;
    }
    .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(198,241,53,0.35); }
    .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
 
    /* =============================================================
       SECTION 12 — FOOTER
       ============================================================= */
    footer {
      background: var(--bg-0);
      border-top: 1px solid var(--border);
      padding: 44px 6%;
    }
    .footer-inner {
      max-width: 1160px; margin: 0 auto;
      display: flex; align-items: center;
      justify-content: space-between; flex-wrap: wrap; gap: 20px;
    }
    .footer-brand { font-size: 18px; font-weight: 900; letter-spacing: -0.5px; }
    .footer-copy { font-size: 13px; color: var(--text-3); }
    .footer-copy span { color: var(--a1); }
    .footer-links { display: flex; gap: 20px; }
    .footer-links a { font-size: 13px; color: var(--text-3); transition: color 0.2s; }
    .footer-links a:hover { color: var(--a1); }
 
    /* =============================================================
       SECTION 13 — SCROLL-TO-TOP BUTTON
       ============================================================= */
    #scrollTop {
      position: fixed; bottom: 28px; right: 28px; z-index: 800;
      width: 44px; height: 44px; border-radius: 12px;
      background: var(--a1); color: #000;
      display: flex; align-items: center; justify-content: center;
      font-size: 18px; font-weight: 700;
      opacity: 0; pointer-events: none;
      transform: translateY(8px);
      transition: opacity 0.3s, transform 0.3s;
      box-shadow: 0 8px 28px rgba(198,241,53,0.35);
    }
    #scrollTop.show { opacity: 1; pointer-events: all; transform: translateY(0); }
    #scrollTop:hover { transform: translateY(-3px) scale(1.05); }
 
    /* =============================================================
       SECTION 14 — KEYFRAME ANIMATIONS
       ============================================================= */
    @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
 
    /* =============================================================
       SECTION 15 — RESPONSIVE BREAKPOINTS
       ============================================================= */
 
    /* Tablet */
    @media (max-width: 1024px) {
      .proj-bento { grid-template-columns: 1fr 1fr; }
      .proj-card:first-child { grid-column: span 2; }
      .resume-grid { grid-template-columns: 1fr; }
      .cv-card { position: relative; top: auto; max-width: 360px; }
      .certs-row { grid-template-columns: 1fr 1fr 1fr; }
    }
 
    /* Large Mobile / Small Tablet */
    @media (max-width: 900px) {
      .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
      .hero-photo-col { order: -1; max-width: 320px; margin: 0 auto; }
      .hero-desc { margin: 0 auto 40px; }
      .hero-ctas { justify-content: center; }
      .hero-stats { justify-content: center; }
      .float-card.card-1 { left: -16px; }
      .float-card.card-2 { right: -16px; }
      .about-grid { grid-template-columns: 1fr; gap: 48px; }
      .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
    }
 
    /* Mobile */
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
      section { padding: 90px 0 64px; }
      .hero-name { letter-spacing: -2px; }
      .proj-bento { grid-template-columns: 1fr; }
      .proj-card:first-child { grid-column: span 1; }
      .proj-card:first-child .proj-banner { height: 160px; font-size: 48px; }
      .certs-row { grid-template-columns: 1fr; }
      .form-row-2 { grid-template-columns: 1fr; }
      .hero-stats { gap: 20px; flex-wrap: wrap; }
      .hs-sep { display: none; }
      footer .footer-inner { flex-direction: column; align-items: flex-start; }
    }
 
    /* Small phones */
    @media (max-width: 480px) {
      .contact-form { padding: 24px; }
      .float-card { display: none; } /* hide on tiny screens */
      .sec-title { letter-spacing: -1px; }
    }