/* ═══════════════════════════════════════════════
       CSS VARIABLES — THEME SYSTEM
    ═══════════════════════════════════════════════ */
    :root {
      --gold: #c9a84c;
      --gold-light: #e8c97a;
      --gold-dim: #7a6229;
      --crimson: #8b1a2f;
      --parchment: #f5efe0;
      --ink: #1a1208;

      /* Dark theme (default) */
      --bg-primary: #0d0d18;
      --bg-secondary: #111128;
      --bg-card: #131326;
      --bg-glass: rgba(20, 20, 45, 0.7);
      --text-primary: #f0e8d0;
      --text-secondary: #a89b7e;
      --text-muted: #5c5540;
      --border: rgba(201, 168, 76, 0.18);
      --border-bright: rgba(201, 168, 76, 0.5);
      --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.08);
      --shadow-deep: 0 20px 60px rgba(0,0,0,0.5);
      --nav-bg: rgba(13, 13, 24, 0.92);
      --hero-overlay: linear-gradient(135deg, rgba(13,13,24,0.97) 0%, rgba(13,13,24,0.88) 100%);
    }

    [data-theme="light"] {
      --bg-primary: #f8f4ea;
      --bg-secondary: #efe9d8;
      --bg-card: #ffffff;
      --bg-glass: rgba(255, 252, 245, 0.85);
      --text-primary: #1a1208;
      --text-secondary: #4a3f28;
      --text-muted: #9a8e72;
      --border: rgba(122, 98, 41, 0.2);
      --border-bright: rgba(122, 98, 41, 0.5);
      --shadow-gold: 0 0 40px rgba(122, 98, 41, 0.1);
      --shadow-deep: 0 20px 60px rgba(0,0,0,0.12);
      --nav-bg: rgba(248, 244, 234, 0.94);
      --hero-overlay: linear-gradient(135deg, rgba(248,244,234,0.97) 0%, rgba(248,244,234,0.88) 100%);
    }

    /* ═══════════════════════════════════════════════
       RESET & BASE
    ═══════════════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; font-size: 16px; }
    body {
      font-family: 'Cormorant Garamond', Georgia, serif;
      background: var(--bg-primary);
      color: var(--text-primary);
      line-height: 1.7;
      overflow-x: hidden;
      transition: background 0.4s ease, color 0.4s ease;
      cursor: none;
    }
    ::selection { background: var(--gold); color: var(--ink); }

    /* Custom Cursor */
    #cursor {
      position: fixed; top: 0; left: 0; z-index: 9999;
      pointer-events: none; mix-blend-mode: difference;
    }
    #cursor-dot {
      width: 8px; height: 8px; background: var(--gold);
      border-radius: 50%; position: absolute;
      transform: translate(-50%, -50%);
      transition: transform 0.1s ease;
    }
    #cursor-ring {
      width: 36px; height: 36px;
      border: 1.5px solid var(--gold);
      border-radius: 50%; position: absolute;
      transform: translate(-50%, -50%);
      transition: all 0.18s ease;
      opacity: 0.6;
    }
    body:has(a:hover) #cursor-ring,
    body:has(button:hover) #cursor-ring { transform: translate(-50%, -50%) scale(1.6); opacity: 0.3; }

    /* ═══════════════════════════════════════════════
       SCROLLBAR
    ═══════════════════════════════════════════════ */
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: var(--bg-secondary); }
    ::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 10px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--gold); }

    /* ═══════════════════════════════════════════════
       NAVIGATION
    ═══════════════════════════════════════════════ */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      background: var(--nav-bg);
      backdrop-filter: blur(20px) saturate(180%);
      border-bottom: 1px solid var(--border);
      padding: 0 clamp(1rem, 5vw, 3rem);
      height: 64px;
      display: flex; align-items: center; justify-content: space-between;
      transition: all 0.4s ease;
    }
    .nav-logo {
      font-family: 'Cinzel', serif;
      font-size: 1.15rem; font-weight: 600;
      color: var(--gold);
      letter-spacing: 0.12em;
      text-decoration: none;
      display: flex; align-items: center; gap: 10px;
    }
    .nav-logo svg { width: 28px; height: 28px; }
    .nav-links {
      display: flex; align-items: center; gap: 2rem;
      list-style: none;
    }
    .nav-links a {
      font-family: 'Cinzel', serif;
      font-size: 0.72rem; font-weight: 500;
      letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--text-secondary);
      text-decoration: none;
      transition: color 0.3s;
      position: relative;
    }
    .nav-links a::after {
      content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
      height: 1px; background: var(--gold);
      transform: scaleX(0); transform-origin: right;
      transition: transform 0.3s ease;
    }
    .nav-links a:hover { color: var(--gold); }
    .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

    .nav-actions { display: flex; align-items: center; gap: 1rem; }
    .theme-toggle {
      width: 44px; height: 24px;
      background: var(--bg-card); border: 1px solid var(--border-bright);
      border-radius: 20px; cursor: pointer;
      position: relative; transition: all 0.3s ease;
      display: flex; align-items: center; padding: 2px 4px;
    }
    .theme-toggle-thumb {
      width: 18px; height: 18px; border-radius: 50%;
      background: var(--gold);
      transition: transform 0.3s ease;
      display: flex; align-items: center; justify-content: center;
      font-size: 10px;
    }
    [data-theme="light"] .theme-toggle-thumb { transform: translateX(18px); }

    .hamburger {
      display: none; flex-direction: column; gap: 5px;
      cursor: pointer; padding: 4px; background: none; border: none;
    }
    .hamburger span {
      display: block; width: 24px; height: 1.5px;
      background: var(--gold); transition: all 0.3s ease;
    }

    /* Mobile Menu */
    .mobile-menu {
      display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
      background: var(--bg-primary); z-index: 99;
      flex-direction: column; align-items: center; justify-content: center;
      gap: 2.5rem; opacity: 0; transform: translateY(-10px);
      pointer-events: none; transition: all 0.4s ease;
    }
    .mobile-menu.open {
      opacity: 1; transform: translateY(0); pointer-events: all;
    }
    .mobile-menu a {
      font-family: 'Cinzel', serif; font-size: 1.2rem; letter-spacing: 0.2em;
      color: var(--text-secondary); text-decoration: none;
      transition: color 0.3s;
    }
    .mobile-menu a:hover { color: var(--gold); }

    /* ═══════════════════════════════════════════════
       ORNAMENTAL DIVIDER
    ═══════════════════════════════════════════════ */
    .ornament {
      display: flex; align-items: center; gap: 1rem;
      margin: 1rem auto;
    }
    .ornament::before, .ornament::after {
      content: ''; flex: 1; height: 1px;
      background: linear-gradient(to right, transparent, var(--border-bright), transparent);
    }
    .ornament-sym {
      color: var(--gold); font-size: 1rem; letter-spacing: 4px;
      user-select: none;
    }

    /* ═══════════════════════════════════════════════
       HERO SECTION
    ═══════════════════════════════════════════════ */
    #hero {
      min-height: 100vh; padding-top: 64px;
      display: flex; align-items: center;
      position: relative; overflow: hidden;
    }
    .hero-bg-pattern {
      position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
      background-image:
        repeating-linear-gradient(0deg, transparent, transparent 80px, var(--gold) 80px, var(--gold) 81px),
        repeating-linear-gradient(90deg, transparent, transparent 80px, var(--gold) 80px, var(--gold) 81px);
      z-index: 0;
    }
    .hero-glow {
      position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
      width: 600px; height: 600px; border-radius: 50%;
      background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
      pointer-events: none; z-index: 0;
    }
    .hero-content {
      position: relative; z-index: 2;
      width: 100%; max-width: 1200px; margin: 0 auto;
      padding: 0 clamp(1.5rem, 6vw, 5rem);
      display: grid; grid-template-columns: 1fr auto;
      align-items: center; gap: 4rem;
    }
    .hero-text { max-width: 680px; }
    .hero-eyebrow {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.78rem; letter-spacing: 0.3em;
      color: var(--gold); text-transform: uppercase;
      margin-bottom: 1.5rem;
      display: flex; align-items: center; gap: 12px;
      opacity: 0; animation: fadeUp 0.8s 0.2s ease forwards;
    }
    .hero-eyebrow::before {
      content: ''; width: 32px; height: 1px; background: var(--gold);
    }
    .hero-name {
      font-family: 'Cinzel', serif;
      font-size: clamp(3rem, 7vw, 5.5rem);
      font-weight: 700; line-height: 1.05;
      color: var(--text-primary);
      margin-bottom: 0.5rem;
      opacity: 0; animation: fadeUp 0.9s 0.35s ease forwards;
    }
    .hero-name span { color: var(--gold); }
    .hero-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.2rem, 2.5vw, 1.7rem);
      font-style: italic; font-weight: 300;
      color: var(--text-secondary); margin-bottom: 2rem;
      opacity: 0; animation: fadeUp 0.9s 0.5s ease forwards;
    }
    .hero-desc {
      font-size: 1.1rem; color: var(--text-secondary);
      line-height: 1.9; max-width: 560px; margin-bottom: 3rem;
      opacity: 0; animation: fadeUp 0.9s 0.65s ease forwards;
    }
    .hero-btns {
      display: flex; flex-wrap: wrap; gap: 1rem;
      opacity: 0; animation: fadeUp 0.9s 0.8s ease forwards;
    }
    .btn-primary {
      font-family: 'Cinzel', serif; font-size: 0.78rem;
      letter-spacing: 0.2em; text-transform: uppercase;
      padding: 14px 32px; background: var(--gold); color: var(--ink);
      border: none; cursor: pointer; text-decoration: none;
      transition: all 0.3s ease; display: inline-block;
      clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
      font-weight: 600;
    }
    .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.3); }
    .btn-outline {
      font-family: 'Cinzel', serif; font-size: 0.78rem;
      letter-spacing: 0.2em; text-transform: uppercase;
      padding: 13px 32px; background: transparent;
      border: 1px solid var(--border-bright); color: var(--text-primary);
      cursor: pointer; text-decoration: none;
      transition: all 0.3s ease; display: inline-block;
    }
    .btn-outline:hover { border-color: var(--gold); color: var(--gold); }

    /* Hero Avatar */
    .hero-avatar-wrap {
      position: relative;
      opacity: 0; animation: fadeIn 1s 0.6s ease forwards;
      flex-shrink: 0;
    }
    .hero-avatar {
      width: 260px; height: 260px; position: relative;
    }
    .avatar-frame {
      width: 100%; height: 100%;
      border: 2px solid var(--border-bright);
      clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
      overflow: hidden; position: relative;
    }
    .avatar-initials {
      width: 100%; height: 100%;
      background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
      display: flex; align-items: center; justify-content: center;
      font-family: 'Cinzel', serif; font-size: 4.5rem; font-weight: 700;
      color: var(--gold); letter-spacing: 0.1em;
    }
    .avatar-badge {
      position: absolute; bottom: -12px; right: -12px;
      background: var(--bg-card); border: 1px solid var(--border-bright);
      padding: 8px 14px;
      font-family: 'Source Code Pro', monospace;
      font-size: 0.7rem; color: var(--gold);
      letter-spacing: 0.1em;
    }
    .avatar-corner {
      position: absolute; width: 20px; height: 20px;
      border-color: var(--gold); border-style: solid;
    }
    .avatar-corner.tl { top: -8px; left: -8px; border-width: 2px 0 0 2px; }
    .avatar-corner.tr { top: -8px; right: -8px; border-width: 2px 2px 0 0; }
    .avatar-corner.bl { bottom: -8px; left: -8px; border-width: 0 0 2px 2px; }
    .avatar-corner.br { bottom: -8px; right: -8px; border-width: 0 2px 2px 0; }

    /* Scroll indicator */
    .scroll-hint {
      position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      opacity: 0; animation: fadeIn 1s 1.5s ease forwards;
    }
    .scroll-hint span {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.65rem; letter-spacing: 0.25em;
      color: var(--text-muted); text-transform: uppercase;
    }
    .scroll-line {
      width: 1px; height: 50px;
      background: linear-gradient(to bottom, var(--gold), transparent);
      animation: scrollPulse 2s infinite ease;
    }

    /* ═══════════════════════════════════════════════
       SECTION BASE
    ═══════════════════════════════════════════════ */
    section { padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 6vw, 5rem); }
    .section-container { max-width: 1200px; margin: 0 auto; }

    .section-label {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.72rem; letter-spacing: 0.35em;
      color: var(--gold); text-transform: uppercase;
      display: flex; align-items: center; gap: 12px;
      margin-bottom: 1rem;
    }
    .section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
    .section-title {
      font-family: 'Cinzel', serif;
      font-size: clamp(2rem, 4vw, 3rem); font-weight: 600;
      color: var(--text-primary); margin-bottom: 1rem; line-height: 1.15;
    }
    .section-title em { color: var(--gold); font-style: normal; }
    .section-subtitle {
      font-size: 1.15rem; color: var(--text-secondary);
      max-width: 600px; line-height: 1.8;
      margin-bottom: 3.5rem;
    }

    /* Reveal animation */
    .reveal {
      opacity: 0; transform: translateY(30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    /* ═══════════════════════════════════════════════
       ABOUT SECTION
    ═══════════════════════════════════════════════ */
    #about { background: var(--bg-secondary); }
    .about-grid {
      display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem;
      align-items: center;
    }
    .about-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      padding: 2.5rem; position: relative;
    }
    .about-card::before {
      content: '❝'; position: absolute; top: -0.8rem; left: 1.5rem;
      font-size: 3rem; color: var(--gold); line-height: 1;
      font-family: Georgia, serif;
    }
    .about-card blockquote {
      font-size: 1.2rem; line-height: 1.9; color: var(--text-secondary);
      font-style: italic; margin-bottom: 1.5rem;
    }
    .about-card cite {
      font-family: 'Source Code Pro', monospace; font-style: normal;
      font-size: 0.78rem; color: var(--gold); letter-spacing: 0.1em;
    }
    .about-info p {
      font-size: 1.1rem; color: var(--text-secondary);
      line-height: 1.9; margin-bottom: 1.5rem;
    }
    .about-tags {
      display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem;
    }
    .tag {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.72rem; letter-spacing: 0.1em;
      padding: 5px 14px; border: 1px solid var(--border-bright);
      color: var(--gold); background: transparent; cursor: default;
      transition: all 0.3s;
    }
    .tag:hover { background: var(--gold); color: var(--ink); }

    /* Quick facts */
    .quick-facts {
      display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
      border: 1px solid var(--border); margin-top: 3rem;
      background: var(--border);
    }
    .fact-item {
      background: var(--bg-card); padding: 1.4rem 1.6rem;
    }
    .fact-label {
      font-family: 'Source Code Pro', monospace; font-size: 0.68rem;
      letter-spacing: 0.2em; color: var(--text-muted);
      text-transform: uppercase; margin-bottom: 0.4rem;
    }
    .fact-val {
      font-family: 'Cinzel', serif; font-size: 0.95rem;
      color: var(--text-primary); font-weight: 500;
    }

    /* ═══════════════════════════════════════════════
       EDUCATION
    ═══════════════════════════════════════════════ */
    #education { background: var(--bg-primary); }
    .edu-timeline { position: relative; }
    .edu-timeline::before {
      content: ''; position: absolute; left: 18px; top: 0; bottom: 0;
      width: 1px; background: linear-gradient(to bottom, var(--gold), transparent);
    }
    .edu-item {
      display: flex; gap: 2.5rem; margin-bottom: 3rem; position: relative;
    }
    .edu-dot {
      width: 36px; height: 36px; flex-shrink: 0;
      border: 2px solid var(--gold-dim); background: var(--bg-primary);
      border-radius: 50%; position: relative; z-index: 1;
      display: flex; align-items: center; justify-content: center;
      margin-top: 0.5rem; transition: all 0.3s;
    }
    .edu-dot-inner {
      width: 12px; height: 12px; background: var(--gold);
      border-radius: 50%; transition: all 0.3s;
    }
    .edu-item:hover .edu-dot { border-color: var(--gold); box-shadow: 0 0 16px rgba(201,168,76,0.4); }
    .edu-card {
      background: var(--bg-card); border: 1px solid var(--border);
      padding: 2rem 2.2rem; flex: 1;
      transition: all 0.3s; position: relative;
    }
    .edu-card:hover { border-color: var(--gold-dim); }
    .edu-card::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0;
      height: 2px; background: linear-gradient(to right, var(--gold), transparent);
      transform: scaleX(0); transform-origin: left;
      transition: transform 0.4s ease;
    }
    .edu-card:hover::before { transform: scaleX(1); }
    .edu-year {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.72rem; letter-spacing: 0.2em;
      color: var(--gold); margin-bottom: 0.5rem;
    }
    .edu-degree {
      font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 600;
      color: var(--text-primary); margin-bottom: 0.4rem;
    }
    .edu-school {
      font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.8rem;
    }
    .edu-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

    /* ═══════════════════════════════════════════════
       SKILLS
    ═══════════════════════════════════════════════ */
    #skills { background: var(--bg-secondary); }
    .skills-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1.5rem;
    }
    .skill-category {
      background: var(--bg-card); border: 1px solid var(--border);
      padding: 2rem; transition: border-color 0.3s;
    }
    .skill-category:hover { border-color: var(--gold-dim); }
    .skill-cat-icon {
      font-size: 1.8rem; margin-bottom: 1rem;
      filter: drop-shadow(0 0 8px rgba(201,168,76,0.4));
    }
    .skill-cat-title {
      font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600;
      color: var(--text-primary); margin-bottom: 1.5rem;
      padding-bottom: 0.8rem; border-bottom: 1px solid var(--border);
    }
    .skill-list { list-style: none; }
    .skill-list li {
      display: flex; align-items: center; justify-content: space-between;
      padding: 0.6rem 0; border-bottom: 1px solid rgba(201,168,76,0.06);
      font-size: 0.95rem; color: var(--text-secondary);
    }
    .skill-list li:last-child { border-bottom: none; }
    .skill-bar-wrap {
      width: 100px; height: 3px; background: var(--border);
      border-radius: 2px; overflow: hidden;
    }
    .skill-bar {
      height: 100%; background: linear-gradient(to right, var(--gold-dim), var(--gold));
      border-radius: 2px; transform: scaleX(0); transform-origin: left;
      transition: transform 1s ease;
    }
    .skill-bar.animated { transform: scaleX(1); }

    /* Tech pills */
    .tech-pills {
      display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem;
    }
    .pill {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.72rem; padding: 4px 12px;
      border: 1px solid var(--border);
      color: var(--text-muted); transition: all 0.3s;
    }
    .pill:hover { border-color: var(--gold); color: var(--gold); }

    /* ═══════════════════════════════════════════════
       RESEARCH & PROJECTS
    ═══════════════════════════════════════════════ */
    #research { background: var(--bg-primary); }
    .research-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
      gap: 1.5rem;
    }
    .research-card {
      background: var(--bg-card); border: 1px solid var(--border);
      padding: 2rem; cursor: default;
      transition: all 0.3s ease; position: relative; overflow: hidden;
    }
    .research-card::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 60%);
      opacity: 0; transition: opacity 0.3s;
    }
    .research-card:hover { border-color: var(--gold-dim); transform: translateY(-4px); box-shadow: var(--shadow-deep); }
    .research-card:hover::after { opacity: 1; }
    .research-type {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.68rem; letter-spacing: 0.2em;
      color: var(--gold); text-transform: uppercase;
      margin-bottom: 1rem;
      display: flex; align-items: center; gap: 8px;
    }
    .research-type::before { content: ''; width: 16px; height: 1px; background: var(--gold); }
    .research-title {
      font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 600;
      color: var(--text-primary); margin-bottom: 1rem; line-height: 1.4;
    }
    .research-desc {
      font-size: 0.95rem; color: var(--text-secondary);
      line-height: 1.8; margin-bottom: 1.5rem;
    }
    .research-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .r-tag {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.65rem; padding: 3px 10px;
      background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2);
      color: var(--gold-dim);
    }

    /* ═══════════════════════════════════════════════
       EXPERIENCE
    ═══════════════════════════════════════════════ */
    #experience { background: var(--bg-secondary); }
    .exp-grid { display: grid; gap: 1.5rem; }
    .exp-card {
      background: var(--bg-card); border: 1px solid var(--border);
      padding: 2rem 2.5rem; display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 0 2rem; align-items: start;
      transition: all 0.3s;
    }
    .exp-card:hover { border-color: var(--gold-dim); }
    .exp-icon {
      width: 52px; height: 52px;
      border: 1px solid var(--border-bright);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.6rem; flex-shrink: 0;
    }
    .exp-info {}
    .exp-role {
      font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 600;
      color: var(--text-primary); margin-bottom: 0.3rem;
    }
    .exp-org { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.8rem; }
    .exp-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
    .exp-meta { text-align: right; flex-shrink: 0; }
    .exp-date {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.72rem; color: var(--gold);
      letter-spacing: 0.1em;
    }
    .exp-type {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.65rem; color: var(--text-muted);
      margin-top: 0.3rem;
    }

    /* ═══════════════════════════════════════════════
       LIBRARY PHILOSOPHY (Special Section)
    ═══════════════════════════════════════════════ */
    #philosophy {
      background: var(--bg-primary);
      position: relative; overflow: hidden;
    }
    .philosophy-bg {
      position: absolute; inset: 0; opacity: 0.03;
      background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23c9a84c' stroke-width='0.5'/%3E%3C/svg%3E");
      background-size: 60px 60px;
    }
    .laws-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 1px; background: var(--border); border: 1px solid var(--border);
    }
    .law-card {
      background: var(--bg-secondary); padding: 2.2rem 1.8rem;
      position: relative; overflow: hidden; transition: background 0.3s;
    }
    .law-card:hover { background: var(--bg-card); }
    .law-num {
      font-family: 'Cinzel', serif; font-size: 3.5rem; font-weight: 700;
      color: rgba(201,168,76,0.12); position: absolute; top: 0.5rem; right: 1rem;
      line-height: 1;
    }
    .law-title {
      font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600;
      color: var(--gold); margin-bottom: 0.8rem; position: relative;
    }
    .law-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; position: relative; }

    /* ═══════════════════════════════════════════════
       CERTIFICATIONS & AWARDS
    ═══════════════════════════════════════════════ */
    #certifications { background: var(--bg-secondary); }
    .certs-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.2rem;
    }
    .cert-card {
      background: var(--bg-card); border: 1px solid var(--border);
      padding: 1.6rem; display: flex; gap: 1.2rem;
      transition: all 0.3s;
    }
    .cert-card:hover { border-color: var(--gold-dim); }
    .cert-icon {
      width: 48px; height: 48px; flex-shrink: 0;
      background: rgba(201,168,76,0.08); border: 1px solid var(--border-bright);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem;
    }
    .cert-info {}
    .cert-name {
      font-family: 'Cinzel', serif; font-size: 0.9rem; font-weight: 600;
      color: var(--text-primary); margin-bottom: 0.3rem; line-height: 1.3;
    }
    .cert-issuer { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
    .cert-date {
      font-family: 'Source Code Pro', monospace; font-size: 0.68rem;
      color: var(--gold);
    }

    /* ═══════════════════════════════════════════════
       INTERESTS (Personal)
    ═══════════════════════════════════════════════ */
    #interests { background: var(--bg-primary); }
    .interests-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 1.2rem;
    }
    .interest-card {
      background: var(--bg-card); border: 1px solid var(--border);
      padding: 2rem 1.5rem; text-align: center;
      transition: all 0.3s; cursor: default;
    }
    .interest-card:hover { border-color: var(--gold-dim); transform: translateY(-4px); }
    .interest-icon { font-size: 2.2rem; margin-bottom: 1rem; }
    .interest-title {
      font-family: 'Cinzel', serif; font-size: 0.95rem; font-weight: 600;
      color: var(--text-primary); margin-bottom: 0.5rem;
    }
    .interest-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

    /* ═══════════════════════════════════════════════
       STATS COUNTER
    ═══════════════════════════════════════════════ */
    .stats-bar {
      background: var(--bg-card); border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 2.5rem clamp(1.5rem, 6vw, 5rem);
    }
    .stats-inner {
      max-width: 1200px; margin: 0 auto;
      display: grid; grid-template-columns: repeat(4, 1fr);
      divide-x: 1px solid var(--border);
    }
    .stat-item {
      text-align: center; padding: 1rem;
      border-right: 1px solid var(--border);
    }
    .stat-item:last-child { border-right: none; }
    .stat-num {
      font-family: 'Cinzel', serif; font-size: 2.8rem; font-weight: 700;
      color: var(--gold); line-height: 1; margin-bottom: 0.4rem;
    }
    .stat-label {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.7rem; letter-spacing: 0.2em; color: var(--text-muted);
      text-transform: uppercase;
    }

    /* ═══════════════════════════════════════════════
       LANGUAGES
    ═══════════════════════════════════════════════ */
    .langs-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 1.2rem;
    }
    .lang-card {
      background: var(--bg-card); border: 1px solid var(--border);
      padding: 1.6rem 1.8rem;
    }
    .lang-name {
      font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600;
      color: var(--text-primary); margin-bottom: 0.5rem;
    }
    .lang-level {
      font-family: 'Source Code Pro', monospace; font-size: 0.7rem;
      color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.8rem;
    }
    .lang-dots { display: flex; gap: 4px; }
    .lang-dot {
      width: 10px; height: 10px; border-radius: 50%;
      border: 1.5px solid var(--border-bright);
    }
    .lang-dot.filled { background: var(--gold); border-color: var(--gold); }

    /* ═══════════════════════════════════════════════
       CONTACT
    ═══════════════════════════════════════════════ */
    #contact {
      background: var(--bg-secondary); text-align: center;
    }
    .contact-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
      text-align: left; max-width: 900px; margin: 0 auto;
    }
    .contact-form { }
    .form-group { margin-bottom: 1.2rem; }
    .form-label {
      display: block; font-family: 'Source Code Pro', monospace;
      font-size: 0.7rem; letter-spacing: 0.2em; color: var(--gold);
      text-transform: uppercase; margin-bottom: 0.5rem;
    }
    .form-input, .form-textarea {
      width: 100%; background: var(--bg-card); border: 1px solid var(--border);
      padding: 12px 16px; color: var(--text-primary);
      font-family: 'Cormorant Garamond', serif; font-size: 1rem;
      transition: border-color 0.3s; outline: none; resize: vertical;
    }
    .form-input:focus, .form-textarea:focus {
      border-color: var(--gold-dim);
    }
    .form-textarea { min-height: 120px; }
    .contact-info { }
    .contact-item {
      display: flex; align-items: flex-start; gap: 1rem;
      margin-bottom: 1.8rem;
    }
    .contact-item-icon {
      width: 42px; height: 42px; flex-shrink: 0;
      border: 1px solid var(--border-bright);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem; margin-top: 2px;
    }
    .contact-item-label {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.68rem; letter-spacing: 0.15em;
      color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.3rem;
    }
    .contact-item-val {
      font-size: 1rem; color: var(--text-primary);
      text-decoration: none; transition: color 0.3s;
    }
    .contact-item-val:hover { color: var(--gold); }

    .social-links { display: flex; gap: 1rem; margin-top: 2.5rem; }
    .social-link {
      width: 44px; height: 44px;
      border: 1px solid var(--border); background: var(--bg-card);
      display: flex; align-items: center; justify-content: center;
      color: var(--text-secondary); text-decoration: none;
      font-size: 1rem; transition: all 0.3s;
    }
    .social-link:hover { border-color: var(--gold); color: var(--gold); }

    /* ═══════════════════════════════════════════════
       FOOTER
    ═══════════════════════════════════════════════ */
    footer {
      background: var(--bg-primary); border-top: 1px solid var(--border);
      padding: 2rem clamp(1.5rem, 6vw, 5rem);
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 1rem;
    }
    .footer-copy {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.1em;
    }
    .footer-badge {
      font-family: 'Source Code Pro', monospace;
      font-size: 0.68rem; color: var(--gold);
      letter-spacing: 0.15em;
    }

    /* Back to top */
    #back-top {
      position: fixed; bottom: 2rem; right: 2rem; z-index: 50;
      width: 44px; height: 44px;
      background: var(--bg-card); border: 1px solid var(--border-bright);
      display: flex; align-items: center; justify-content: center;
      color: var(--gold); cursor: pointer; font-size: 1.2rem;
      opacity: 0; transform: translateY(10px);
      transition: all 0.3s; text-decoration: none;
    }
    #back-top.visible { opacity: 1; transform: translateY(0); }
    #back-top:hover { background: var(--gold); color: var(--ink); }

    /* ═══════════════════════════════════════════════
       KEYFRAME ANIMATIONS
    ═══════════════════════════════════════════════ */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    @keyframes scrollPulse {
      0%, 100% { opacity: 1; height: 50px; }
      50% { opacity: 0.3; height: 30px; }
    }
    @keyframes shimmer {
      0% { background-position: -200% center; }
      100% { background-position: 200% center; }
    }

    /* ═══════════════════════════════════════════════
       RESPONSIVE
    ═══════════════════════════════════════════════ */
    @media (max-width: 900px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .mobile-menu { display: flex; }
      .hero-content { grid-template-columns: 1fr; }
      .hero-avatar-wrap { display: none; }
      .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .contact-grid { grid-template-columns: 1fr; }
      .stats-inner { grid-template-columns: repeat(2, 1fr); }
      .stat-item:nth-child(2) { border-right: none; }
      .exp-card { grid-template-columns: auto 1fr; }
      .exp-meta { grid-column: 2; }
    }
    @media (max-width: 600px) {
      .stats-inner { grid-template-columns: 1fr 1fr; }
      .quick-facts { grid-template-columns: 1fr; }
      .exp-card { grid-template-columns: 1fr; }
      .exp-icon { display: none; }
      body { cursor: auto; }
      #cursor { display: none; }
    }