    /* ===================== DESIGN TOKENS ===================== */
    :root {
      --bg-base: #060606;
      --bg-surface: #0d0d0d;
      --bg-card: #121212;
      --bg-card-alt: #171717;
      --bg-glass: rgba(18, 18, 18, 0.75);
      --accent-primary: #66d9ff;
      --accent-secondary: #2f8bd9;
      --accent-glow: rgba(102, 217, 255, 0.35);
      --text-primary: #ffffff;
      --text-muted: #b8b8b8;
      --border: #2a2a2a;
      --gradient-hero: linear-gradient(145deg, #1a1a1a 0%, #2c2c2c 50%, #121212 100%);
      --card-gradient: linear-gradient(145deg, #121212, #171717);
      --modal-bg: rgba(0, 0, 0, 0.85);
    }

    [data-theme="light"] {
      --bg-base: #ffffff;
      --bg-surface: #f8f9fa;
      --bg-card: #ffffff;
      --bg-card-alt: #f8f9fa;
      --bg-glass: rgba(255, 255, 255, 0.95);
      --accent-primary: #0077b6;
      --accent-secondary: #023e8a;
      --accent-glow: rgba(0, 119, 182, 0.15);
      --text-primary: #0f172a;
      --text-muted: #64748b;
      --border: #e2e8f0;
      --gradient-hero: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 52%, #94a3b8 100%);
      --card-gradient: linear-gradient(145deg, #ffffff, #f8f9fa);
      --modal-bg: rgba(255, 255, 255, 0.9);
    }

    /* Selection Color */
    ::selection {
      background: var(--accent-primary);
      color: #fff;
    }

    /* Scroll Progress Bar */
    #scrollProgress {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 3px;
      background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
      z-index: 10001;
      box-shadow: 0 0 12px var(--accent-glow);
      transition: width 0.1s ease-out;
    }
    /* ===================== RESET & BASE ===================== */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
      font-size: 16px;
      scrollbar-gutter: stable;
    }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--bg-base);
      color: var(--text-primary);
      line-height: 1.7;
      overflow-x: hidden;
      cursor: none;
    }

    body.touch-device,
    body.has-reduced-motion {
      cursor: auto;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      max-width: 100%;
      display: block;
    }

    button {
      cursor: none;
      border: none;
      background: none;
      font-family: inherit;
    }

    body.touch-device button,
    body.has-reduced-motion button {
      cursor: pointer;
    }

    /* Skip link */
    .skip-link {
      position: absolute;
      top: -100px;
      left: 0;
      background: var(--accent-primary);
      color: #000;
      padding: 8px 16px;
      z-index: 99999;
      font-weight: 700;
      border-radius: 0 0 8px 0;
    }

    .skip-link:focus {
      top: 0;
    }

    /* ===================== THEME TOGGLE ===================== */
    .theme-toggle {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      color: var(--text-primary);
      width: 40px;
      height: 40px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      transition: all 0.3s;
      margin: 0 12px;
      cursor: none;
    }

    [data-theme="light"] .theme-toggle {
      background: rgba(0, 0, 0, 0.03);
    }

    .theme-toggle:hover {
      border-color: var(--accent-primary);
      color: var(--accent-primary);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px var(--accent-glow);
    }

    [data-theme="light"] #cursor-dot, [data-theme="light"] #cursor-ring {
      mix-blend-mode: multiply;
      opacity: 0.8;
    }

    /* Global Transition for Theme */
    body {
      transition: background-color 0.4s ease, color 0.4s ease;
    }

    /* ===================== CUSTOM CURSOR ===================== */
    #cursor-dot {
      position: fixed;
      width: 12px;
      height: 12px;
      background: var(--accent-primary);
      border-radius: 50%;
      pointer-events: none;
      z-index: 99998;
      transform: translate(-50%, -50%);
      transition: width 0.15s, height 0.15s, background 0.15s;
      box-shadow: 0 0 8px var(--accent-primary);
    }

    #cursor-ring {
      position: fixed;
      width: 32px;
      height: 32px;
      border: 1.5px solid var(--accent-primary);
      border-radius: 50%;
      pointer-events: none;
      z-index: 99997;
      transform: translate(-50%, -50%);
      transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s;
      opacity: 0.6;
    }

    body.cursor-hover #cursor-ring {
      width: 48px;
      height: 48px;
      background: rgba(102, 217, 255, 0.12);
      border-color: var(--accent-primary);
    }

    body.cursor-click #cursor-dot {
      transform: translate(-50%, -50%) scale(1.8);
      opacity: 0.5;
    }

    /* ===================== LOADING SCREEN ===================== */
    #loading-screen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--bg-base);
      z-index: 99999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: opacity 0.5s ease;
    }

    #loading-screen.hidden {
      opacity: 0;
      pointer-events: none;
    }

    /* Refresh indicator */
    #refresh-toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: #0d0d24;
      border: 1px solid #1a1a3a;
      border-left: 3px solid var(--accent-primary);
      color: #8888aa;
      font-size: 12px;
      font-family: 'JetBrains Mono', monospace;
      padding: 8px 16px;
      border-radius: 8px;
      z-index: 9999;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s, transform 0.3s;
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    #refresh-toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    #refresh-toast .spin {
      animation: spinRing 1s linear infinite;
      display: inline-block;
    }

    .loading-logo {
      font-family: 'Fraunces', serif;
      font-size: 64px;
      font-weight: 800;
      color: var(--accent-primary);
      text-shadow: 0 0 30px var(--accent-primary), 0 0 60px rgba(102, 217, 255, 0.35);
      letter-spacing: 8px;
      animation: logoPulse 1s ease-in-out infinite alternate;
      margin-bottom: 40px;
    }

    @keyframes logoPulse {
      from {
        text-shadow: 0 0 20px var(--accent-primary), 0 0 40px rgba(102, 217, 255, 0.25);
      }

      to {
        text-shadow: 0 0 40px var(--accent-primary), 0 0 80px rgba(102, 217, 255, 0.45), 0 0 120px rgba(102, 217, 255, 0.18);
      }
    }

    .loading-bar-wrap {
      width: 240px;
      height: 3px;
      background: var(--border);
      border-radius: 2px;
      overflow: hidden;
    }

    .loading-bar {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
      border-radius: 2px;
      transition: width 0.05s linear;
      box-shadow: 0 0 10px var(--accent-primary);
    }

    .loading-text {
      margin-top: 16px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: var(--text-muted);
      letter-spacing: 2px;
    }

    /* ===================== HEADER / NAV ===================== */
        .header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1001;
      height: 80px;
      background: transparent;
      transition: all 0.4s ease;
      border-bottom: 1px solid transparent;
    }

    .header.scrolled {
      height: 70px;
      background: var(--bg-glass);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    }

    .header.scrolled {
      background: var(--bg-base);
      backdrop-filter: blur(30px);
      -webkit-backdrop-filter: blur(30px);
    }

    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .brand-link {
      font-family: 'DM Sans', sans-serif;
      font-size: 24px;
      font-weight: 700;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 10px;
      letter-spacing: 0.3px;
    }

    .brand-link::after {
      content: 'nb';
      display: inline-flex;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: 1.5px solid var(--text-primary);
      color: var(--text-primary);
      align-items: center;
      justify-content: center;
      font-family: 'Fraunces', serif;
      font-size: 16px;
      order: -1;
    }

    .nav-menu {
      display: flex;
      align-items: center;
      gap: 32px;
    }

    .nav-link {
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      font-weight: 500;
      color: var(--text-muted);
      position: relative;
      padding: 4px 0;
      transition: color 0.3s;
      letter-spacing: 0.5px;
    }

    .nav-link::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
    }

    .nav-link:hover,
    .nav-link.active {
      color: var(--accent-primary) !important;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
      width: 100%;
    }

    .nav-link.active::before {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 18px;
      height: 2px;
      background: var(--accent-primary);
      border-radius: 999px;
    }

    .nav-link.nav-cta {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-primary);
      padding: 7px 16px;
      border-radius: 999px;
      font-weight: 500;
      box-shadow: none;
    }

    .nav-link.nav-cta::after,
    .nav-link.nav-cta::before {
      display: none;
    }

    .nav-link.nav-cta:hover {
      background: #f3f3f3;
      color: #1b1c22;
    }

    .nav-toggle {
      display: none;
      color: var(--text-primary);
      font-size: 20px;
      padding: 8px;
      background: none;
      border: 1px solid var(--border);
      border-radius: 8px;
    }

    /* ===================== HERO SECTION ===================== */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: center;
      overflow: hidden;
      background: var(--gradient-hero);
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 78% 56%, rgba(255, 255, 255, 0.05), transparent 50%),
        radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.03), transparent 20%);
      animation: heroGlow 8s ease-in-out infinite alternate;
      z-index: 1;
    }

    @keyframes heroGlow {
      0% {
        opacity: 0.6;
      }

      100% {
        opacity: 1;
      }
    }

    .hero-container {
      position: relative;
      z-index: 10;
      max-width: 1200px;
      margin: 0 auto;
      padding: 100px 24px 60px;
      display: grid;
      grid-template-columns: 60% 40%;
      gap: 48px;
      align-items: center;
      width: 100%;
    }

    /* left col */
    .hero-label {
      display: none;
    }

    .hero-label .cursor-blink {
      display: inline-block;
      width: 8px;
      height: 14px;
      background: var(--accent-primary);
      animation: blink 1s step-end infinite;
    }

    @keyframes blink {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0;
      }
    }

    .hero-title {
      font-family: 'Fraunces', serif;
      font-size: clamp(52px, 7.2vw, 92px);
      font-weight: 700;
      line-height: 1.02;
      color: var(--text-primary);
      margin-bottom: 14px;
      letter-spacing: -0.5px;
    }

    .hero-title span.word {
      display: inline-block;
      opacity: 0;
      transform: translateY(30px);
    }

    .hero-typewriter {
      font-family: 'DM Sans', sans-serif;
      font-size: clamp(22px, 2.7vw, 34px);
      font-weight: 400;
      color: var(--text-primary);
      opacity: 0.9;
      min-height: 46px;
      margin-bottom: 14px;
      white-space: nowrap;
      overflow: hidden;
    }

    .hero-desc {
      color: var(--text-muted);
      font-size: 18px;
      max-width: 520px;
      margin-bottom: 34px;
      line-height: 1.65;
    }

    .hero-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 20px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: 8px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      font-weight: 600;
      transition: all 0.3s ease;
      letter-spacing: 0.5px;
      position: relative;
      overflow: hidden;
    }

    .btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(255, 255, 255, 0.05);
      opacity: 0;
      transition: opacity 0.2s;
    }

    .btn:hover::before {
      opacity: 1;
    }

    .btn-cyan {
      background: transparent;
      color: var(--text-primary);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 10px 24px;
      box-shadow: none;
    }

    .btn-cyan:hover {
      background: var(--text-primary);
      color: var(--bg-base);
      transform: translateY(-2px);
    }

    .btn-cyan-outline {
      display: none;
    }

    .btn-cyan-outline:hover {
      background: rgba(102, 217, 255, 0.1);
      box-shadow: 0 0 20px var(--accent-glow);
      transform: translateY(-2px);
    }

    .btn-violet {
      background: var(--accent-secondary);
      color: #fff;
      box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    }

    .btn-violet:hover {
      box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
      transform: translateY(-2px);
    }

    .btn-ghost {
      display: none;
    }

    .hero-socials {
      display: none;
    }

    .social-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      font-size: 16px;
      transition: all 0.3s;
    }

    .social-icon:hover {
      border-color: var(--accent-primary);
      color: var(--accent-primary);
      box-shadow: 0 0 16px var(--accent-glow);
      transform: translateY(-3px);
    }

    /* right col — profile */
    .hero-visual {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .profile-hex-wrap {
      position: relative;
      width: 500px;
      height: 500px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hex-ring {
      position: absolute;
      inset: 32px;
      border-radius: 50%;
      border: 1px solid rgba(235, 237, 243, 0.45);
      background: transparent;
      animation: none;
    }

    @keyframes spinRing {
      from {
        transform: rotate(0deg);
      }

      to {
        transform: rotate(360deg);
      }
    }

    .hex-glow-blob {
      display: none;
    }

    .profile-hex {
      width: 430px;
      height: 430px;
      clip-path: none;
      border-radius: 50%;
      overflow: hidden;
      border: none;
      position: relative;
      z-index: 1;
    }

    .profile-hex img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

        .orbit-node {
      position: absolute;
      width: 44px;
      height: 44px;
      background: var(--bg-card);
      border: 1.5px solid var(--accent-primary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-primary);
      font-size: 18px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      z-index: 5;
    }

    .orbit-node:hover {
      border-color: var(--accent-primary);
      transform: translateY(-2px);
    }

    .orbit-node.n1 {
      top: 78px;
      right: 52px;
    }

    .orbit-node.n2 {
      top: 146px;
      right: 24px;
    }

    .orbit-node.n3 {
      top: 228px;
      right: 6px;
    }

    .orbit-node.n4 {
      bottom: 116px;
      left: 42px;
    }

    .orbit-node.n5 {
      bottom: 38px;
      left: 84px;
    }

    /* stat badges */
    .badge {
      position: absolute;
      background: var(--bg-card);
      border: 1px solid var(--border);
      backdrop-filter: blur(10px);
      border-radius: 12px;
      padding: 8px 14px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
      animation: badgeFloat 3s ease-in-out infinite;
    }

    .badge i {
      color: var(--accent-primary);
    }

    .badge-1 {
      top: 20px;
      right: -30px;
      animation-delay: 0s;
    }

    .badge-2 {
      bottom: 40px;
      left: -40px;
      animation-delay: 1s;
    }

    .badge-3 {
      bottom: 10px;
      right: -20px;
      animation-delay: 2s;
    }

    @keyframes badgeFloat {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-6px);
      }
    }

    /* scroll indicator */
    .scroll-indicator {
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: var(--text-muted);
      font-size: 11px;
      font-family: 'JetBrains Mono', monospace;
      letter-spacing: 2px;
      animation: fadeOutScroll 1s ease 3s forwards;
      opacity: 1;
    }

    @keyframes fadeOutScroll {
      to {
        opacity: 0;
        pointer-events: none;
      }
    }

    .scroll-arrow {
      width: 20px;
      height: 30px;
      border: 1.5px solid var(--text-muted);
      border-radius: 10px;
      position: relative;
    }

    .scroll-arrow::after {
      content: '';
      position: absolute;
      top: 6px;
      left: 50%;
      transform: translateX(-50%);
      width: 4px;
      height: 4px;
      background: var(--accent-primary);
      border-radius: 50%;
      animation: scrollBounce 1.5s ease-in-out infinite;
    }

    @keyframes scrollBounce {
      0% {
        top: 6px;
        opacity: 1;
      }

      100% {
        top: 18px;
        opacity: 0;
      }
    }

    /* ===================== SECTIONS COMMON ===================== */
    section {
      padding: 120px 0;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    .section-header {
      text-align: center;
      margin-bottom: 60px;
    }

    .section-subtitle {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      letter-spacing: 4px;
      color: var(--accent-primary);
      margin-bottom: 12px;
    }

    .section-title {
      font-family: 'Fraunces', serif;
      font-size: clamp(32px, 4vw, 48px);
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 16px;
    }

    .section-desc {
      color: var(--text-muted);
      font-size: 16px;
      max-width: 500px;
      margin: 0 auto;
    }

    .details-btn,
    .btn-sm {
      padding: 6px 16px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 600;
      background: transparent;
      border: 1px solid var(--accent-primary);
      color: var(--accent-primary);
      transition: all 0.2s;
    }

    .details-btn:hover,
    .btn-sm:hover {
      background: var(--accent-primary);
      color: #000;
    }

    /* ===================== ABOUT ===================== */
    .about {
      background: var(--bg-base);
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: start;
    }

    .about-text p {
      color: var(--text-muted);
      margin-bottom: 16px;
      font-size: 15px;
    }

    .about-stats-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 32px;
    }

    .about-stat-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      text-align: center;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
      animation: achievementFloat 6s ease-in-out infinite;
    }

    .about-stat-card:nth-child(2) {
      animation-delay: 0.2s;
    }

    .about-stat-card:nth-child(3) {
      animation-delay: 0.4s;
    }

    .about-stat-card:hover {
      transform: translateY(-6px);
      border-color: var(--accent-primary);
      box-shadow: 0 10px 28px var(--accent-glow);
    }

    .about-stat-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    }

    @keyframes achievementFloat {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-4px);
      }
    }

    .about-stat-card i {
      font-size: 24px;
      color: var(--accent-primary);
      margin-bottom: 8px;
      display: block;
    }

    .about-stat-card .stat-num {
      font-family: 'Fraunces', serif;
      font-size: 28px;
      font-weight: 800;
      color: var(--text-primary);
      display: block;
    }

    .about-stat-card .stat-lbl {
      font-size: 12px;
      color: var(--text-muted);
      font-family: 'JetBrains Mono', monospace;
      letter-spacing: 1px;
    }

    /* globe canvas */
    #aboutCanvas {
      width: 400px;
      height: 400px;
      border-radius: 50%;
      border: 1px solid var(--border);
      position: relative;
    }

    .globe-wrap {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .globe-label {
      position: absolute;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--accent-primary);
      background: rgba(9, 9, 24, 0.9);
      border: 1px solid var(--accent-primary);
      padding: 4px 10px;
      border-radius: 6px;
      pointer-events: none;
      white-space: nowrap;
    }

    /* Timeline */
    .timeline-section {
      padding-top: 60px;
    }

    .timeline-title {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 28px;
      text-align: center;
      margin-bottom: 48px;
      color: var(--text-primary);
    }

    .timeline {
      position: relative;
      padding: 0 20px;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 50%;
      top: 0;
      bottom: 0;
      width: 3px;
      background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
      transform: translateX(-50%);
      border-radius: 6px;
    }

    .tl-item {
      display: grid;
      grid-template-columns: 1fr 60px 1fr;
      gap: 20px;
      align-items: center;
      margin-bottom: 48px;
      opacity: 0;
      transform: translateY(30px);
      position: relative;
    }

    .tl-item.visible {
      opacity: 1;
      transform: translateY(0);
      transition: all 0.6s ease;
    }

    .tl-item::before {
      content: attr(data-year);
      position: absolute;
      left: 50%;
      top: -16px;
      transform: translateX(-50%);
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      letter-spacing: 1px;
      color: var(--accent-primary);
      background: var(--bg-card);
      border: 1px solid rgba(102, 217, 255, 0.35);
      border-radius: 999px;
      padding: 3px 9px;
    }

    .tl-left {
      text-align: right;
    }

    .tl-right {
      text-align: left;
    }

    .tl-empty {
      min-height: 1px;
    }

    /* keeps grid structure consistent */
    .tl-node {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--bg-card);
      border: 2px solid var(--accent-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent-primary);
      font-size: 16px;
      position: relative;
      z-index: 2;
      margin: 0 auto;
      box-shadow: 0 0 20px var(--accent-glow);
      transition: transform 0.3s;
    }

    .tl-node:hover {
      transform: scale(1.2);
    }

    .tl-card {
      background: var(--card-gradient);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 22px;
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    }

    .tl-card:hover {
      border-color: var(--accent-primary);
      box-shadow: 0 0 20px var(--accent-glow);
    }

    .tl-card h4 {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 16px;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .tl-card .tl-inst {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--accent-primary);
      margin-bottom: 4px;
    }

    .tl-card .tl-period {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    .tl-card p {
      font-size: 13px;
      color: var(--text-muted);
    }

    /* ===================== SERVICES ===================== */
    .services {
      background: var(--bg-surface);
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      perspective: 1000px;
    }

    .service-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 32px 24px;
      transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
      transform-style: preserve-3d;
      position: relative;
      overflow: hidden;
    }

    #certifications .services-grid {
      grid-template-columns: repeat(3, 1fr);
    }

    #certifications .service-card {
      height: 300px;
      padding: 24px 20px;
      display: flex;
      flex-direction: column;
    }

    #certifications .service-icon-wrap {
      width: 56px;
      height: 56px;
      margin-bottom: 16px;
    }

    #certifications .service-icon-wrap i {
      font-size: 20px;
    }

    #certifications .service-card h3 {
      font-size: 17px;
      line-height: 1.35;
      margin-bottom: 10px;
    }

    #certifications .service-card p {
      margin-bottom: 14px;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    #certifications .read-more-btn {
      margin-top: auto !important;
    }

    .service-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 50% -20%, rgba(102, 217, 255, 0.07), transparent 60%);
      pointer-events: none;
    }

    .service-card:hover {
      transform: translateZ(30px) rotateX(-5deg);
      border-color: var(--accent-primary);
      box-shadow: 0 20px 60px rgba(102, 217, 255, 0.14);
    }

    .service-icon-wrap {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(102, 217, 255, 0.14), rgba(47, 139, 217, 0.16));
      border: 1px solid rgba(102, 217, 255, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      box-shadow: 0 0 20px rgba(102, 217, 255, 0.16);
    }

    .service-icon-wrap i {
      font-size: 24px;
      color: var(--accent-primary);
    }

    .service-card h3 {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 18px;
      color: var(--text-primary);
      margin-bottom: 12px;
    }

    .service-card p {
      color: var(--text-muted);
      font-size: 14px;
      margin-bottom: 20px;
    }

    .read-more-btn {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: var(--accent-primary);
      letter-spacing: 1px;
      background: transparent;
      padding: 0;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: gap 0.2s;
    }

    .read-more-btn::after {
      content: '→';
    }

    .read-more-btn:hover {
      gap: 10px;
    }

    /* ===================== SKILLS ===================== */
    .skills {
      background: var(--bg-base);
    }

    .skills-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
      max-width: 940px;
      margin: 0 auto;
    }

    .tech-skills h3,
    .pro-skills h3 {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 22px;
      color: var(--text-primary);
      margin-bottom: 24px;
    }

    .skill-assessment {
      font-size: 12px;
      color: var(--text-muted);
      font-family: 'JetBrains Mono', monospace;
      background: var(--bg-card);
      border: 1px solid var(--border);
      padding: 10px 14px;
      border-radius: 10px;
      margin-bottom: 24px;
    }

    .skill-item {
      margin-bottom: 16px;
      background: var(--card-gradient);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 14px;
    }

    .skill-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .skill-name {
      font-weight: 600;
      font-size: 14px;
      flex: 1;
      color: var(--text-primary);
    }

    .skill-level {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--accent-primary);
      background: rgba(102, 217, 255, 0.1);
      border: 1px solid rgba(102, 217, 255, 0.25);
      padding: 2px 8px;
      border-radius: 4px;
    }

    .skill-pct {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      color: var(--text-muted);
    }

    .skill-bar-bg {
      height: 8px;
      background: #252525;
      border-radius: 999px;
      overflow: hidden;
    }

    .skill-bar-fill {
      height: 100%;
      width: 0%;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
      box-shadow: 0 0 10px rgba(102, 217, 255, 0.4);
      position: relative;
      overflow: hidden;
      transition: width 1s ease;
    }

    .skill-bar-fill::after {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 60%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
      animation: shimmer 2s ease-in-out infinite;
    }

    @keyframes shimmer {
      to {
        left: 200%;
      }
    }

    .skill-details {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 6px;
      font-family: 'JetBrains Mono', monospace;
    }

    /* Strength Grid */
    .strength-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .strength-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      background: var(--card-gradient);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 24px 20px;
      transition: all 0.4s ease;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .strength-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
      opacity: 0;
      transition: opacity 0.4s;
    }

    .strength-card:hover {
      transform: translateY(-5px);
      border-color: rgba(102, 217, 255, 0.3);
      background: var(--bg-card-alt);
    }

    .strength-card:hover::before {
      opacity: 1;
    }

    .strength-icon {
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(102, 217, 255, 0.1);
      color: var(--accent-primary);
      border-radius: 12px;
      font-size: 24px;
      margin-bottom: 8px;
    }

    .strength-card h4 {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 16px;
      color: var(--text-primary);
      margin: 0;
    }

    .strength-card p {
      font-size: 13px;
      line-height: 1.6;
      color: var(--text-muted);
      margin: 0;
    }

    /* Tech stack board */
    .tech-cloud {
      margin-top: 60px;
    }

    .tech-cloud h3 {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 22px;
      color: var(--text-primary);
      margin-bottom: 32px;
      text-align: center;
    }

    .tech-stack-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .tech-group {
      background: var(--card-gradient);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 14px;
    }

    .tech-group h4 {
      font-family: 'JetBrains Mono', monospace;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 11px;
      color: var(--accent-primary);
      margin-bottom: 10px;
    }

    .tech-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tech-tag {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: var(--text-primary);
      background: var(--bg-card-alt);
      border: 1px solid var(--border);
      padding: 7px 11px;
      border-radius: 999px;
      transition: all 0.2s;
    }

    .tech-tag:hover {
      border-color: var(--accent-primary);
      color: var(--accent-primary);
      box-shadow: 0 0 12px var(--accent-glow);
      transform: translateY(-2px);
    }

    /* ===================== PORTFOLIO ===================== */
    .portfolio {
      background: var(--bg-surface);
    }

    .portfolio-controls {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 40px;
    }

    .search-wrap {
      position: relative;
    }

    .search-input {
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--text-primary);
      border-radius: 8px;
      padding: 10px 16px 10px 40px;
      font-size: 14px;
      width: 240px;
      font-family: 'DM Sans', sans-serif;
      transition: border-color 0.3s;
      outline: none;
    }

    .search-input:focus {
      border-color: var(--accent-primary);
    }

    .search-input::placeholder {
      color: var(--text-muted);
    }

    .search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 14px;
      pointer-events: none;
    }

    .filter-btns {
      display: flex;
      gap: 8px;
    }

    .filter-btn {
      padding: 8px 18px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 600;
      border: 1px solid var(--border);
      color: var(--text-muted);
      background: var(--bg-card);
      transition: all 0.2s;
      font-family: 'JetBrains Mono', monospace;
    }

    .filter-btn:hover,
    .filter-btn.active {
      border-color: var(--accent-primary);
      color: var(--accent-primary);
      background: rgba(102, 217, 255, 0.08);
    }

    /* 3D flip cards */
    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .port-item {
      height: 300px;
      perspective: 1000px;
      opacity: 0;
      transition: transform 0.3s ease, opacity 0.5s ease;
    }

    .port-item:hover {
      transform: scale(1.03);
    }

    .port-item.visible {
      opacity: 1;
      transition: opacity 0.5s ease;
    }

    .port-item.hidden {
      display: none;
    }

    .port-flipper {
      position: relative;
      width: 100%;
      height: 100%;
      transform-style: preserve-3d;
      transition: transform 0.6s ease;
    }

    .port-item:hover .port-flipper {
      transform: rotateY(180deg);
    }

    .port-item.is-flipped .port-flipper {
      transform: rotateY(180deg) !important;
    }

    .port-front,
    .port-back {
      position: absolute;
      inset: 0;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      border-radius: 16px;
      overflow: hidden;
    }

    .port-front {
      background: var(--bg-card);
      border: 1px solid var(--border);
    }

    .port-front img {
      width: 100%;
      height: 220px;
      object-fit: cover;
    }

    .port-front-overlay {
      padding: 12px 16px;
      background: linear-gradient(0deg, var(--bg-card), transparent);
    }

    .port-front-overlay h3 {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 15px;
      color: var(--text-primary);
    }

    .port-cat-badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--accent-primary);
      background: rgba(102, 217, 255, 0.1);
      border: 1px solid rgba(102, 217, 255, 0.2);
      padding: 2px 8px;
      border-radius: 4px;
      display: inline-block;
      margin-top: 4px;
    }

    .port-back {
      background: var(--bg-card);
      border: 1px solid var(--accent-primary);
      transform: rotateY(180deg);
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .port-back h3 {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 16px;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .port-back p {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 12px;
    }

    .port-tech {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 12px;
    }

    .port-tech span {
      font-size: 11px;
      font-family: 'JetBrains Mono', monospace;
      color: var(--accent-primary);
      background: rgba(102, 217, 255, 0.1);
      border: 1px solid rgba(102, 217, 255, 0.2);
      padding: 2px 8px;
      border-radius: 4px;
    }

    .port-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .port-btn {
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 600;
      border: 1px solid var(--accent-primary);
      color: var(--accent-primary);
      background: transparent;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .port-btn:hover {
      background: var(--accent-primary);
      color: #000;
    }

    /* ===================== GITHUB ACTIVITY ===================== */
    .github-activity {
      background: var(--bg-base);
    }

    .gh-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 32px;
    }

    .gh-stat-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      text-align: center;
    }

    .gh-stat-card i {
      font-size: 24px;
      color: var(--accent-primary);
      display: block;
      margin-bottom: 8px;
    }

    .gh-stat-card .num {
      font-family: 'Fraunces', serif;
      font-size: 28px;
      font-weight: 800;
      color: var(--text-primary);
      display: block;
    }

    .gh-stat-card .lbl {
      font-size: 13px;
      color: var(--text-muted);
    }

    .gh-repo-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 32px;
    }

    .gh-repo-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 22px;
      display: flex;
      flex-direction: column;
      min-height: 235px;
      transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    }

    .gh-repo-card:hover {
      transform: translateY(-4px);
      border-color: var(--accent-primary);
      box-shadow: 0 14px 30px rgba(102, 217, 255, 0.12);
    }

    .gh-repo-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .gh-repo-name {
      font-family: 'Fraunces', serif;
      font-size: 18px;
      font-weight: 700;
      color: var(--text-primary);
      line-height: 1.25;
    }

    .gh-repo-name a {
      color: inherit;
    }

    .gh-repo-name a:hover {
      color: var(--accent-primary);
    }

    .gh-repo-visibility {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--accent-primary);
      border: 1px solid rgba(102, 217, 255, 0.22);
      background: rgba(102, 217, 255, 0.08);
      border-radius: 999px;
      padding: 5px 8px;
      flex-shrink: 0;
    }

    .gh-repo-desc {
      color: var(--text-muted);
      font-size: 14px;
      margin-bottom: 16px;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 90px;
    }

    .gh-repo-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 16px;
    }

    .gh-meta-pill {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--text-primary);
      border: 1px solid var(--border);
      background: var(--bg-card-alt);
      border-radius: 999px;
      padding: 6px 10px;
    }

    .gh-repo-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: auto;
    }

    .gh-repo-stats {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--text-muted);
      font-size: 12px;
      font-family: 'JetBrains Mono', monospace;
    }

    .gh-repo-stats span {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .gh-repo-link {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: var(--accent-primary);
    }

    .gh-repo-link:hover {
      text-decoration: underline;
    }

    .gh-status {
      margin-top: 24px;
      text-align: center;
      font-size: 13px;
      color: var(--text-muted);
    }

    .gh-link-wrap {
      text-align: center;
      margin-top: 32px;
    }
      color: var(--text-muted);
      letter-spacing: 1px;
    }

    /* ===================== CONTACT ===================== */
    .contact {
      background: var(--bg-surface);
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: start;
    }

    .contact-form-wrap h3 {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 22px;
      color: var(--text-primary);
      margin-bottom: 24px;
    }

    .form-group {
      margin-bottom: 20px;
      position: relative;
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 12px;
      color: var(--text-primary);
      padding: 14px 16px;
      font-size: 16px;
      font-family: 'DM Sans', sans-serif;
      outline: none;
      transition: border-color 0.3s, box-shadow 0.3s;
    }

    .form-group input {
      height: 52px;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
      color: var(--text-muted);
    }

    .form-group input:focus,
    .form-group textarea:focus {
      border-color: var(--accent-primary);
      box-shadow: 0 0 0 3px var(--accent-glow);
    }

    .form-group textarea {
      height: 160px;
      min-height: 160px;
      max-height: 160px;
      resize: none;
      overflow-y: auto;
      line-height: 1.6;
    }

    .form-group label.visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
    }

    .submit-btn {
      width: 100%;
      padding: 14px;
      background: var(--accent-primary);
      color: #000;
      font-weight: 700;
      font-size: 15px;
      border-radius: 8px;
      transition: all 0.3s;
      letter-spacing: 0.5px;
      box-shadow: 0 0 20px rgba(102, 217, 255, 0.3);
    }

    .submit-btn:hover {
      box-shadow: 0 0 40px rgba(102, 217, 255, 0.5);
      transform: translateY(-2px);
    }

    .reply-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(102, 217, 255, 0.1);
      border: 1px solid rgba(102, 217, 255, 0.2);
      color: var(--accent-primary);
      font-size: 12px;
      font-family: 'JetBrains Mono', monospace;
      padding: 4px 12px;
      border-radius: 20px;
      margin-bottom: 20px;
    }

    .contact-info-side {
      display: flex;
      flex-direction: column;
      gap: 20px;
      padding-top: 60px;
    }

    .contact-card {
      background: var(--bg-glass);
      backdrop-filter: blur(10px);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 24px;
      display: flex;
      gap: 16px;
      align-items: flex-start;
      transition: border-color 0.3s, box-shadow 0.3s;
    }

    .contact-card:hover {
      border-color: var(--accent-primary);
      box-shadow: 0 0 20px var(--accent-glow);
    }

    .contact-card-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(102, 217, 255, 0.14), rgba(47, 139, 217, 0.16));
      border: 1px solid rgba(102, 217, 255, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .contact-card-icon i {
      color: var(--accent-primary);
      font-size: 18px;
    }

    .contact-card h4 {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 15px;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .contact-card p {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 6px;
    }

    .contact-link {
      font-size: 12px;
      font-family: 'JetBrains Mono', monospace;
      color: var(--accent-primary);
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .contact-link::after {
      content: '→';
      transition: margin 0.2s;
    }

    .contact-link:hover::after {
      margin-left: 4px;
    }

    /* ===================== FOOTER ===================== */
    .footer {
      background: var(--bg-card);
      border-top: 1px solid transparent;
      position: relative;
    }

    .footer::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 48px;
      padding: 60px 0 40px;
    }

    .footer-brand h3 {
      font-family: 'Fraunces', serif;
      font-weight: 800;
      font-size: 24px;
      color: var(--text-primary);
      margin-bottom: 8px;
      text-shadow: 0 0 20px var(--accent-glow);
    }

    .footer-brand p {
      font-size: 14px;
      color: var(--text-muted);
      margin-bottom: 20px;
    }

    .footer-socials {
      display: flex;
      gap: 10px;
    }

    .footer-social {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      font-size: 14px;
      transition: all 0.3s;
    }

    .footer-social:hover {
      border-color: var(--accent-primary);
      color: var(--accent-primary);
      box-shadow: 0 0 12px var(--accent-glow);
    }

    .footer-col h4 {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 14px;
      color: var(--text-primary);
      margin-bottom: 16px;
      letter-spacing: 1px;
    }

    .footer-col nav {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-col nav a {
      font-size: 13px;
      color: var(--text-muted);
      transition: color 0.2s;
    }

    .footer-col nav a:hover {
      color: var(--accent-primary);
    }

    .footer-bottom {
      border-top: 1px solid var(--border);
      padding: 20px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
    }

    .footer-bottom p {
      font-size: 13px;
      color: var(--text-muted);
    }

    .footer-bottom-links {
      display: flex;
      gap: 20px;
    }

    .footer-bottom-links a {
      font-size: 12px;
      color: var(--text-muted);
      transition: color 0.2s;
    }

    .footer-bottom-links a:hover {
      color: var(--accent-primary);
    }

    /* ===================== SCROLL TO TOP ===================== */
    #scrollToTop {
      position: fixed;
      bottom: 100px;
      right: 28px;
      z-index: 998;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--accent-primary);
      color: #000;
      font-size: 16px;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 20px rgba(102, 217, 255, 0.4);
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.3s;
      pointer-events: none;
    }

    #scrollToTop.visible {
      opacity: 1;
      transform: translateY(0);
      pointer-events: all;
    }

    #scrollToTop:hover {
      box-shadow: 0 0 30px rgba(102, 217, 255, 0.55);
      transform: translateY(-3px);
    }

    /* ===================== MODALS ===================== */
    .modal {
      position: fixed;
      inset: 0;
      z-index: 9000;
      background: var(--modal-bg);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .modal.open {
      display: flex;
    }

    .modal-box {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-top: 3px solid var(--accent-primary);
      border-radius: 16px;
      max-width: 600px;
      width: 100%;
      max-height: 85vh;
      overflow-y: auto;
      animation: modalIn 0.3s ease;
    }

    @keyframes modalIn {
      from {
        opacity: 0;
        transform: scale(0.92);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 24px 24px 0;
      margin-bottom: 20px;
    }

    .modal-header h2 {
      font-family: 'Fraunces', serif;
      font-weight: 800;
      font-size: 22px;
      color: var(--text-primary);
    }

    .modal-close {
      color: var(--text-muted);
      font-size: 18px;
      padding: 4px 8px;
      border-radius: 6px;
      transition: color 0.2s, background 0.2s;
    }

    .modal-close:hover {
      color: var(--accent-primary);
      background: rgba(102, 217, 255, 0.1);
    }

    .modal-body {
      padding: 0 24px 24px;
    }

    .modal-details-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
      margin-top: 20px;
    }

    @media (max-width: 768px) {
      .modal-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
    }

    .modal-section h3 {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 16px;
      color: var(--accent-primary);
      margin: 0 0 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .modal-section h3 i {
      font-size: 14px;
      opacity: 0.8;
    }

    .modal-body p {
      color: var(--text-muted);
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 16px;
    }

    .modal-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .modal-list li {
      position: relative;
      padding-left: 20px;
      margin-bottom: 8px;
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.5;
    }

    .modal-list li::before {
      content: '→';
      position: absolute;
      left: 0;
      color: var(--accent-primary);
      font-weight: bold;
    }

    .modal-tech {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .modal-tech span {
      font-size: 11px;
      font-family: 'JetBrains Mono', monospace;
      color: var(--accent-primary);
      background: rgba(102, 217, 255, 0.08);
      border: 1px solid rgba(102, 217, 255, 0.15);
      padding: 4px 10px;
      border-radius: 6px;
      transition: all 0.2s;
    }

    .modal-tech span:hover {
      background: rgba(102, 217, 255, 0.15);
      transform: translateY(-1px);
    }

    .modal-footer-actions {
      display: flex;
      gap: 12px;
      margin-top: 30px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
    }

    .modal-btn {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      transition: all 0.3s;
      text-decoration: none;
    }

    .modal-btn-primary {
      background: var(--accent-primary);
      color: #000;
    }

    .modal-btn-primary:hover {
      box-shadow: 0 0 15px var(--accent-glow);
      transform: translateY(-2px);
    }

    .modal-btn-outline {
      border: 1px solid var(--border);
      color: var(--text-primary);
    }

    .modal-btn-outline:hover {
      border-color: var(--accent-primary);
      color: var(--accent-primary);
      background: rgba(102, 217, 255, 0.05);
    }

    .cert-preview-wrap {
      margin-top: 6px;
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      background: var(--bg-surface);
    }

    .cert-preview-wrap img {
      width: 100%;
      height: auto;
      display: block;
    }

    /* ===================== CHATBOT ===================== */
    #chatToggle {
      position: fixed;
      bottom: 28px;
      right: 28px;
      z-index: 9999;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
      color: #fff;
      font-size: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 24px rgba(102, 217, 255, 0.3);
      transition: transform 0.3s, box-shadow 0.3s;
      position: fixed;
    }

    #chatToggle:hover {
      transform: scale(1.1);
      box-shadow: 0 4px 32px rgba(102, 217, 255, 0.45);
    }

    .chat-online-dot {
      position: absolute;
      top: 2px;
      right: 2px;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #22c55e;
      border: 2px solid var(--bg-base);
      animation: dotPulse 2s ease-in-out infinite;
    }

    @keyframes dotPulse {

      0%,
      100% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.3);
      }
    }

    .chat-tooltip {
      position: absolute;
      bottom: 64px;
      right: 0;
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--text-primary);
      font-size: 12px;
      font-family: 'JetBrains Mono', monospace;
      padding: 6px 12px;
      border-radius: 8px;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
    }

    #chatToggle:hover .chat-tooltip {
      opacity: 1;
    }

    #chatWindow {
      position: fixed;
      bottom: 96px;
      right: 28px;
      z-index: 9998;
      width: 360px;
      height: 500px;
      background: var(--bg-glass);
      border: 1px solid var(--border);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-radius: 20px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(102, 217, 255, 0.16);
      transform: translateY(20px);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    }

    #chatWindow.open {
      transform: translateY(0);
      opacity: 1;
      pointer-events: all;
    }

    .chat-header {
      padding: 14px 16px;
      background: linear-gradient(90deg, var(--bg-surface), var(--bg-card));
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .chat-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Fraunces', serif;
      font-weight: 800;
      font-size: 16px;
      color: #000;
      flex-shrink: 0;
    }

    .chat-header-info {
      flex: 1;
    }

    .chat-header-info h4 {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 14px;
      color: var(--text-primary);
      line-height: 1;
    }

    .chat-status {
      font-size: 11px;
      color: #22c55e;
      display: flex;
      align-items: center;
      gap: 4px;
      margin-top: 2px;
    }

    .chat-status::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #22c55e;
    }

    .chat-close {
      color: var(--text-muted);
      font-size: 16px;
      transition: color 0.2s;
    }

    .chat-close:hover {
      color: var(--accent-primary);
    }

    #chatMessages {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      scroll-behavior: smooth;
    }

    #chatMessages::-webkit-scrollbar {
      width: 4px;
    }

    #chatMessages::-webkit-scrollbar-track {
      background: transparent;
    }

    #chatMessages::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 2px;
    }

    .msg {
      display: flex;
      gap: 8px;
      align-items: flex-end;
    }

    .msg.bot {
      flex-direction: row;
    }

    .msg.user {
      flex-direction: row-reverse;
    }

    .msg-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Fraunces', serif;
      font-weight: 800;
      font-size: 12px;
      color: #000;
      flex-shrink: 0;
    }

    .msg-bubble {
      max-width: 76%;
      border-radius: 12px;
      padding: 10px 13px;
      font-size: 13px;
      line-height: 1.6;
    }

    .msg.bot .msg-bubble {
      background: var(--bg-card-alt);
      border-left: 3px solid var(--accent-primary);
      border-radius: 12px 12px 12px 0;
      color: var(--text-primary);
    }

    .msg.user .msg-bubble {
      background: var(--accent-secondary);
      border-radius: 12px 12px 0 12px;
      color: #fff;
    }

    .msg-time {
      font-size: 10px;
      color: var(--text-muted);
      margin-top: 4px;
      display: block;
    }

    .typing-dots {
      display: flex;
      gap: 4px;
      padding: 4px 0;
    }

    .typing-dots span {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent-primary);
      animation: typingBounce 1.2s ease-in-out infinite;
    }

    .typing-dots span:nth-child(2) {
      animation-delay: 0.2s;
    }

    .typing-dots span:nth-child(3) {
      animation-delay: 0.4s;
    }

    @keyframes typingBounce {

      0%,
      60%,
      100% {
        transform: translateY(0);
      }

      30% {
        transform: translateY(-6px);
      }
    }

    .quick-chips {
      padding: 8px 12px;
      border-top: 1px solid var(--border);
      display: flex;
      gap: 6px;
      overflow-x: auto;
      scroll-behavior: smooth;
    }

    .quick-chips::-webkit-scrollbar {
      display: none;
    }

        .quick-chip {
      background: var(--bg-card-alt);
      border: 1.5px solid var(--border);
      color: var(--text-primary);
      padding: 8px 16px;
      border-radius: 999px;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.3s;
      white-space: nowrap;
    }

    .quick-chip:hover {
      border-color: var(--accent-primary);
      color: var(--accent-primary);
    }

    /* Animation for Skills quick-chip */
    @keyframes pulse-subtle {
      0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(102, 217, 255, 0.4); }
      70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(102, 217, 255, 0); }
      100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(102, 217, 255, 0); }
    }
    .pulse-animation {
      animation: pulse-subtle 2s infinite;
      border-color: var(--accent-primary) !important;
      color: var(--accent-primary) !important;
    }

    .chat-input-row {
      padding: 10px 12px;
      border-top: 1px solid var(--border);
      display: flex;
      gap: 8px;
      align-items: center;
    }

        #chatInput {
      flex: 1;
      background: var(--bg-card-alt);
      border: 1.5px solid var(--border);
      color: var(--text-primary);
      padding: 12px 16px;
      border-radius: 12px;
      font-size: 14px;
      outline: none;
      transition: border-color 0.3s;
    }

    #chatInput:focus {
      border-color: var(--accent-primary);
    }

    #chatInput::placeholder {
      color: var(--text-muted);
    }

    #chatSend {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
      color: #fff;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: transform 0.2s, box-shadow 0.2s;
      box-shadow: 0 0 10px rgba(102, 217, 255, 0.3);
    }

    #chatSend:hover {
      transform: scale(1.1);
      box-shadow: 0 0 16px rgba(102, 217, 255, 0.45);
    }

    /* ===================== MOBILE NAV OVERLAY ===================== */
    #mobileNav {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: var(--bg-base);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 32px;
      transform: translateX(100%);
      transition: transform 0.4s ease;
    }

    #mobileNav.open {
      transform: translateX(0);
    }

    #mobileNav .nav-link {
      font-family: 'Fraunces', serif;
      font-size: 32px;
      font-weight: 700;
      color: var(--text-muted);
    }

    #mobileNav .nav-link:hover {
      color: var(--accent-primary);
    }

    .nav-toggle {
      display: none;
      width: 40px;
      height: 40px;
      border-radius: 8px;
      border: 1px solid var(--border);
      color: var(--text-primary);
      font-size: 16px;
      align-items: center;
      justify-content: center;
      background: var(--bg-card);
      z-index: 1001;
      position: relative;
    }

    /* ===================== ACCESSIBILITY ===================== */
    :focus-visible {
      outline: 2px solid var(--accent-primary);
      outline-offset: 3px;
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
    }

    /* ===================== RESPONSIVE ===================== */
    @media(max-width:1024px) {
      .services-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      #certifications .services-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .gh-repo-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .footer-grid {
        grid-template-columns: 1fr 1fr;
      }

      .profile-hex-wrap {
        width: 380px;
        height: 380px;
      }

      .profile-hex {
        width: 300px;
        height: 300px;
      }

      .hex-ring {
        inset: 22px;
      }

          .orbit-node {
      position: absolute;
      width: 44px;
      height: 44px;
      background: var(--bg-card);
      border: 1.5px solid var(--accent-primary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-primary);
      font-size: 18px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      z-index: 5;
    }
    }

    @media(max-width:768px) {
      section {
        padding: 80px 0;
      }

      .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
      }

      .hero-title {
        font-size: 54px;
      }

      .hero-visual {
        order: -1;
      }

      .profile-hex-wrap {
        width: 300px;
        height: 300px;
      }

      .profile-hex {
        width: 230px;
        height: 230px;
      }

      .hex-ring {
        inset: 18px;
      }

      /* Shrink and adjust social nodes for mobile to prevent overflow */
      /* handled */ .old-node {
        width: 38px;
        height: 38px;
        font-size: 16px;
      }

      .orbit-node.n1 { top: 40px; right: 20px; }
      .orbit-node.n2 { top: 110px; right: -5px; }
      .orbit-node.n3 { top: 180px; right: 10px; }
      .orbit-node.n4 { bottom: 60px; left: 10px; }
      .orbit-node.n5 { bottom: 10px; left: 40px; }

          .orbit-node {
      position: absolute;
      width: 44px;
      height: 44px;
      background: var(--bg-card);
      border: 1.5px solid var(--accent-primary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-primary);
      font-size: 18px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      z-index: 5;
    }

      .badge-1,
      .badge-2,
      .badge-3 {
        display: none;
      }

      .hero-buttons,
      .hero-socials {
        justify-content: center;
      }

      .hero-desc {
        margin: 0 auto 32px;
      }

      .about-grid {
        grid-template-columns: 1fr;
      }

      #aboutCanvas {
        display: none;
      }

      .about-stats-row {
        grid-template-columns: repeat(3, 1fr);
      }

      .timeline-title {
        margin-bottom: 30px;
      }

      .timeline {
        padding: 0;
      }

      .timeline::before {
        left: 18px;
        transform: none;
      }

      .tl-item {
        display: block;
        position: relative;
        margin-bottom: 28px;
        padding-left: 56px;
      }

      .tl-node {
        position: absolute;
        left: 0;
        top: 14px;
        width: 36px;
        height: 36px;
        font-size: 13px;
      }

      .tl-item::before {
        left: 18px;
        top: -12px;
        transform: translateX(-50%);
      }

      .tl-empty {
        display: none;
      }

      .tl-right,
      .tl-left {
        text-align: left;
      }

      .tl-card {
        padding: 16px;
        border-radius: 12px;
      }

      .services-grid {
        grid-template-columns: 1fr;
      }

      .skills-grid {
        grid-template-columns: 1fr;
      }

      .tech-stack-grid {
        grid-template-columns: 1fr;
      }

      .portfolio-grid {
        grid-template-columns: 1fr;
      }

      .port-item:hover .port-flipper {
        transform: none;
      }

      .contact-grid {
        grid-template-columns: 1fr;
      }

      .footer-grid {
        grid-template-columns: 1fr 1fr;
      }

      .nav-menu {
        display: none;
      }

      .nav-toggle {
        display: flex;
      }

      #chatWindow {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100dvh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        opacity: 1;
      }

      #chatWindow.open {
        transform: translateY(0);
        pointer-events: all;
      }

      #chatMessages {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      .chat-input-row {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: var(--bg-card);
        padding: 10px 12px 20px;
        z-index: 10;
      }

      .quick-chips {
        flex-shrink: 0;
      }

      #cursor-dot,
      #cursor-ring {
        display: none;
      }

      /* Prevent chat toggle + scroll-to-top overlap on mobile */
      #chatToggle {
        bottom: 24px;
        right: 16px;
      }

      body.chat-is-open #chatToggle {
        display: none !important;
      }

      #scrollToTop {
        bottom: 90px;
        right: 16px;
      }

      /* When chat is open the toggle moves with the full-screen window — hide scroll btn */
      body.chat-is-open #scrollToTop {
        display: none;
      }

      .portfolio-controls {
        flex-direction: column;
        align-items: flex-start;
      }

      .search-input {
        width: 100%;
      }

      .gh-stats {
        grid-template-columns: 1fr;
      }

      .gh-repo-grid {
        grid-template-columns: 1fr;
      }

      #certifications .services-grid {
        grid-template-columns: 1fr !important;
      }

      #certifications .service-card {
        height: 300px;
        padding: 22px 18px;
      }

      #certifications .service-card p {
        font-size: 13px;
        line-height: 1.55;
      }
    }

    @media(max-width:480px) {
      .hero-buttons {
        flex-direction: column;
        align-items: center;
      }

      .about-stats-row {
        grid-template-columns: 1fr 1fr;
      }

      .footer-grid {
        grid-template-columns: 1fr;
      }

      .footer-bottom {
        flex-direction: column;
        text-align: center;
      }
    }

    /* prefers-reduced-motion */
    @media(prefers-reduced-motion:reduce) {
      * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }

      .hex-ring {
        animation: none;
      }

      #heroCanvas {
        display: none;
      }
    }

    /* Print */
    @media print {

      .header,
      .footer,
      #scrollToTop,
      #chatToggle,
      #chatWindow,
      .modal,
      #loading-screen,
      #cursor-dot,
      #cursor-ring {
        display: none !important;
      }

      body {
        background: #fff !important;
        color: #000 !important;
      }
    }
