    /* ── Reset & Tokens ─────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
        /* === Dark theme (Itachi — muted maroon) === */
        --bg:       #0F0A0B;
        --bg2:      #16100F;
        --bg3:      #1F1816;
        --surface:  #251C1B;
        --border:   rgba(255,255,255,0.06);
        --text:     #EDE6E2;
        --muted:    #968780;
        --accent:   #8B2C2C;
        --accent2:  #5C1818;
        --green:    #34d399;
        --nav-bg:   rgba(15,10,11,0.85);

        --font-head: "Century Gothic", Futura, "CenturyGothic", AppleGothic, sans-serif;
        --font-body: "Century Gothic", Futura, "CenturyGothic", AppleGothic, sans-serif;
        --radius:   12px;
        --transition: 0.22s ease;
      }

      /* === Light theme (Byakuya — Senbonzakura petals) === */
      [data-theme="light"] {
        --bg:       #F5EEEC;
        --bg2:      #EFE5E3;
        --bg3:      #E8DBD8;
        --surface:  #FFFFFF;
        --border:   rgba(0,0,0,0.07);
        --text:     #2D2426;
        --muted:    #8A7F7E;
        --accent:   #B8696F;
        --accent2:  #8E4A4F;
        --nav-bg:   rgba(245,238,236,0.85);
      }

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--text);
      line-height: 1.7;
      font-size: 16px;
      overflow-x: hidden;
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    ul { list-style: none; }

    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    /* ── Scrollbar ──────────────────────────────────────────── */
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

    /* ── Skip Link ──────────────────────────────────────────── */
    .skip-link {
      position: absolute;
      top: -999px; left: -999px;
      background: var(--accent); color: #fff;
      padding: .5rem 1rem; border-radius: 6px;
      font-weight: 600; z-index: 9999;
    }
    .skip-link:focus { top: 1rem; left: 1rem; }

    /* ── Nav ────────────────────────────────────────────────── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      background: var(--nav-bg);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
    }

    .nav-logo {
      font-family: var(--font-head);
      font-size: 1.4rem;
      font-weight: 800;
      letter-spacing: -0.5px;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .nav-links {
      display: flex;
      gap: 2rem;
    }

    .nav-links a {
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--muted);
      transition: color var(--transition);
      letter-spacing: 0.3px;
    }

    .nav-links a:hover { color: var(--text); }

    .nav-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--accent);
      color: #fff !important;
      padding: 0.45rem 1.1rem;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 500;
      transition: opacity var(--transition), transform var(--transition);
    }

    .nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

    /* hamburger */
    .theme-toggle {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text);
      width: 40px;
      height: 40px;
      border-radius: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
      margin-right: 0.75rem;
    }

    .theme-toggle:hover {
      border-color: var(--accent);
      color: var(--accent);
    }
    
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 4px;
    }

    .hamburger span {
      display: block; width: 22px; height: 2px;
      background: var(--text); border-radius: 2px;
      transition: var(--transition);
    }

    /* ── Hero ───────────────────────────────────────────────── */
    #home {
      min-height: auto;
      padding-top: 7rem;
      padding-bottom: 5rem; 
      display: flex;
      align-items: center;
      padding: 100px 0 80px;
      position: relative;
      overflow: hidden;
    }

    .hero-glow {
      position: absolute;
      top: -200px; right: -200px;
      width: 600px; height: 600px;
      background: radial-gradient(circle, rgba(139,44,44,0.10) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-glow-2 {
      position: absolute;
      bottom: -150px; left: -150px;
      width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(92,24,24,0.08) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 3rem;
      align-items: center;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(52,211,153,0.1);
      border: 1px solid rgba(52,211,153,0.25);
      color: var(--green);
      padding: 0.3rem 0.9rem;
      border-radius: 100px;
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0.5px;
      margin-bottom: 1.5rem;
    }

    .hero-badge::before {
      content: '';
      display: inline-block;
      width: 6px; height: 6px;
      background: var(--green);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50%       { opacity: 0.5; transform: scale(0.85); }
    }

    .hero-title {
      font-family: var(--font-head);
      font-size: clamp(2.4rem, 5vw, 3.8rem);
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: -1.5px;
      margin-bottom: 1.25rem;
    }

    .hero-title .highlight {
      background: linear-gradient(135deg, var(--accent) 30%, var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-sub {
      font-size: 1.05rem;
      color: var(--muted);
      max-width: 520px;
      margin-bottom: 2rem;
      line-height: 1.75;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: var(--accent);
      color: #fff;
      padding: 0.7rem 1.6rem;
      border-radius: 10px;
      font-weight: 500;
      font-size: 0.95rem;
      transition: opacity var(--transition), transform var(--transition);
    }

    .btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

    .btn-ghost {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      border: 1px solid var(--border);
      color: var(--text);
      padding: 0.7rem 1.6rem;
      border-radius: 10px;
      font-weight: 500;
      font-size: 0.95rem;
      transition: background var(--transition), border-color var(--transition), transform var(--transition);
    }

    .btn-ghost:hover {
      background: var(--surface);
      border-color: rgba(255,255,255,0.15);
      transform: translateY(-2px);
    }

    .hero-socials {
      display: flex;
      gap: 0.75rem;
      margin-top: 2rem;
    }

    .hero-socials a {
      width: 40px; height: 40px;
      border: 1px solid var(--border);
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      color: var(--muted);
      font-size: 1rem;
      transition: color var(--transition), border-color var(--transition), background var(--transition);
    }

    .hero-socials a:hover {
      color: var(--text);
      border-color: rgba(255,255,255,0.2);
      background: var(--surface);
    }

    .hero-img-wrap {
      position: relative;
      flex-shrink: 0;
    }

    .hero-avatar {
      width: 280px; height: 280px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid var(--border);
      position: relative;
      z-index: 1;
    }

    .hero-avatar-ring {
      position: absolute;
      inset: -14px;
      border-radius: 50%;
      border: 2px dashed rgba(79,142,247,0.3);
      animation: spin 20s linear infinite;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── Section Base ───────────────────────────────────────── */
    section { padding: 90px 0; }

    .section-label {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.75rem;
    }

    .section-label::before {
      content: '';
      display: inline-block;
      width: 20px; height: 2px;
      background: var(--accent);
      border-radius: 1px;
    }

    .section-title {
      font-family: var(--font-head);
      font-size: clamp(1.8rem, 3.5vw, 2.5rem);
      font-weight: 800;
      letter-spacing: -0.8px;
      line-height: 1.15;
      margin-bottom: 0.5rem;
    }

    .section-desc {
      color: var(--muted);
      max-width: 520px;
      font-size: 1rem;
      margin-bottom: 3rem;
    }

    /* ── About ──────────────────────────────────────────────── */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }

    .about-img {
      width: 100%;
      aspect-ratio: 4/5;
      object-fit: cover;
      border-radius: 20px;
      border: 1px solid var(--border);
    }

    .about-stats {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 1rem;
      margin: 2rem 0;
    }

    .stat-card {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem 1rem;
      text-align: center;
    }

    .stat-num {
      font-family: var(--font-head);
      font-size: 1.7rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
      margin-bottom: 0.25rem;
    }

    .stat-label {
      font-size: 0.78rem;
      color: var(--muted);
      font-weight: 400;
    }

    /* ── Skills ─────────────────────────────────────────────── */
    #skills { background: var(--bg2); }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .skill-category {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.75rem;
    }

    .skill-cat-title {
      font-family: var(--font-head);
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 0.25rem;
    }

    .skill-cat-sub {
      font-size: 0.78rem;
      color: var(--muted);
      margin-bottom: 1.5rem;
    }

    .skill-item {
      margin-bottom: 1.1rem;
    }

    .skill-item:last-child { margin-bottom: 0; }

    .skill-meta {
      display: flex;
      justify-content: space-between;
      font-size: 0.85rem;
      margin-bottom: 0.4rem;
    }

    .skill-name { font-weight: 500; }

    .skill-pct {
      color: var(--muted);
      font-size: 0.78rem;
    }

    .skill-bar-track {
      width: 100%;
      height: 5px;
      background: rgba(255,255,255,0.07);
      border-radius: 3px;
      overflow: hidden;
    }

    .skill-bar-fill {
      height: 100%;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      width: 0%;
      transition: width 1s cubic-bezier(.4,0,.2,1);
    }

    /* ── Timeline ───────────────────────────────────────────── */
    .timeline-tabs {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 2.5rem;
    }

    .tab-btn {
      padding: 0.5rem 1.25rem;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--muted);
      font-family: var(--font-body);
      font-size: 0.88rem;
      cursor: pointer;
      transition: all var(--transition);
    }

    .tab-btn.active,
    .tab-btn:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .timeline-panel { display: none; }
    .timeline-panel.active { display: block; }

    .timeline {
      position: relative;
      padding-left: 2rem;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 5px; top: 6px; bottom: 6px;
      width: 2px;
      background: var(--border);
      border-radius: 1px;
    }

    .timeline-item {
      position: relative;
      margin-bottom: 2rem;
    }

    .timeline-item:last-child { margin-bottom: 0; }

    .timeline-dot {
      position: absolute;
      left: -1.78rem; top: 5px;
      width: 12px; height: 12px;
      border-radius: 50%;
      background: var(--bg);
      border: 2px solid var(--accent);
    }

    .timeline-item-inner {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
    }

    .tl-date {
      font-size: 0.75rem;
      color: var(--accent);
      font-weight: 600;
      letter-spacing: 0.5px;
      margin-bottom: 0.3rem;
    }

    .tl-title {
      font-family: var(--font-head);
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 0.2rem;
    }

    .tl-org {
      font-size: 0.85rem;
      color: var(--muted);
    }

    /* ── Contact ────────────────────────────────────────────── */
    #contact { background: var(--bg2); }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 3rem;
      align-items: start;
    }

    .contact-info-item {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .contact-icon {
      width: 44px; height: 44px;
      flex-shrink: 0;
      border-radius: 10px;
      background: rgba(79,142,247,0.12);
      border: 1px solid rgba(79,142,247,0.2);
      display: flex; align-items: center; justify-content: center;
      color: var(--accent);
      font-size: 1rem;
    }

    .contact-info-label {
      font-size: 0.78rem;
      color: var(--muted);
      margin-bottom: 0.15rem;
    }

    .contact-info-val {
      font-size: 0.95rem;
      font-weight: 500;
    }

    .contact-form {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2rem;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      margin-bottom: 1rem;
    }

    .form-group.full { grid-column: 1 / -1; }

    label {
      font-size: 0.8rem;
      color: var(--muted);
      font-weight: 500;
    }

    input, textarea, select {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      font-family: var(--font-body);
      font-size: 0.9rem;
      padding: 0.65rem 0.9rem;
      transition: border-color var(--transition);
      width: 100%;
      outline: none;
    }

    input:focus, textarea:focus, select:focus {
      border-color: var(--accent);
    }

    textarea { resize: vertical; min-height: 120px; }

    .btn-submit {
      width: 100%;
      padding: 0.8rem;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-family: var(--font-body);
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: opacity var(--transition), transform var(--transition);
      display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    }

    .btn-submit:hover { opacity: 0.88; transform: translateY(-1px); }

    /* ── Footer ─────────────────────────────────────────────── */
      footer {
        background: var(--bg);
        border-top: 1px solid var(--border);
        padding: 2.5rem 0;
        position: relative;
        z-index: 1;
      }

      .footer-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
        position: relative;
      }

      .footer-links {
        position: relative;
      }

    .footer-logo {
      font-family: var(--font-head);
      font-size: 1.1rem;
      font-weight: 800;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .footer-copy {
      font-size: 0.82rem;
      color: var(--muted);
    }

    .footer-links {
      display: flex;
      gap: 1.5rem;
    }

    .footer-links a {
      font-size: 0.82rem;
      color: var(--muted);
      transition: color var(--transition);
    }

    .footer-links a:hover { color: var(--text); }

    /* ── Animations ─────────────────────────────────────────── */
    .fade-in {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ── Responsive ─────────────────────────────────────────── */
    @media (max-width: 900px) {
      .skills-grid { grid-template-columns: 1fr; }
      .about-grid  { grid-template-columns: 1fr; }
      .contact-grid { grid-template-columns: 1fr; }
      .hero-grid { grid-template-columns: 1fr; }
      .hero-img-wrap { display: none; }
    }

    @media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
      display: flex;
      flex-direction: column;
      position: fixed;
      top: 64px;
      right: 0;
      bottom: 0;
      left: 0;
      background: var(--bg);
      padding: 1.25rem 1.5rem;
      gap: 0.25rem;
      z-index: 1000;
      overflow-y: auto;
    }
  .nav-links.open li {
      width: 100%;
    }
  .nav-links.open {
      display: flex !important;
      flex-direction: column;
      position: fixed;
      top: 64px;
      left: 0;
      right: 0;
      width: 100%;
      height: calc(100vh - 64px);
      background: var(--bg);
      padding: 1.25rem 1.5rem;
      gap: 0.25rem;
      z-index: 9999;
      overflow-y: auto;
      margin: 0;
  }
  .nav-links.open a.nav-cta {
      margin-top: 0.75rem;
      border-bottom: none;
      text-align: center;
    }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}