    /* ===== CSS VARIABLES ===== */
    :root {
      --bg-primary: #0a0f1e;
      --bg-secondary: #121829;
      --text-primary: #e0e0e0;
      --text-secondary: #a0a0a0;
      --text-muted: #6b7280;
      --accent-cyan: #00ffaa;
      --accent-magenta: #ff0080;
      --accent-amber: #ffaa00;
      --accent-blue: #0080ff;
      --glass-bg: rgba(10, 15, 30, 0.65);
      --glass-border: rgba(0, 255, 170, 0.2);
      --font-mono: 'JetBrains Mono', 'Courier New', monospace;
      --font-display: 'Orbitron', 'Arial Black', sans-serif;
      --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

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

    body {
      background: var(--bg-primary);
      color: var(--text-primary);
      font-family: var(--font-base);
      line-height: 1.6;
      overflow-x: hidden;
    }

    ::selection { background: rgba(0,255,170,.3); color: var(--accent-cyan); }
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(0,255,170,.25); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(0,255,170,.5); }

    /* ===== ACCESSIBILITY UTILITIES ===== */
    .sr-only {
      position: absolute;
      width: 1px; height: 1px;
      padding: 0; margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .skip-link {
      position: absolute;
      top: -100%; left: 16px;
      z-index: 10002;
      padding: 12px 20px;
      background: var(--bg-secondary);
      color: var(--accent-cyan);
      border: 1px solid rgba(0,255,170,.4);
      border-radius: 8px;
      font-family: var(--font-mono);
      font-size: .85rem;
      text-decoration: none;
      transition: top .2s ease;
    }
    .skip-link:focus {
      top: 16px;
    }

    /* Consistent, visible keyboard focus indicator across all interactive
       elements — :focus-visible so it only shows for keyboard/AT navigation,
       not mouse clicks. */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    [tabindex]:focus-visible {
      outline: 2px solid var(--accent-cyan);
      outline-offset: 3px;
      border-radius: 4px;
    }

    /* ===== SCROLL PROGRESS BAR ===== */
    .scroll-progress {
      position: fixed; top: 0; left: 0;
      width: 0%; height: 3px;
      background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta), var(--accent-amber));
      z-index: 10001;
      transition: width .05s linear;
    }

    /* ===== CUSTOM CURSOR ===== */
    /* Set by JS only once the custom cursor is actually running (hover-capable,
       motion-OK devices) — never hides the system cursor for anyone who wouldn't
       see the replacement, e.g. touch or prefers-reduced-motion visitors. */
    .custom-cursor-active, .custom-cursor-active * {
      cursor: none !important;
    }
    .cursor-dot {
      position: fixed;
      width: 8px; height: 8px;
      background: var(--accent-cyan);
      border-radius: 50%;
      pointer-events: none;
      z-index: 99999;
      transform: translate(-50%, -50%);
      transition: transform .08s ease, background .3s ease;
      mix-blend-mode: difference;
    }
    .cursor-ring {
      position: fixed;
      width: 40px; height: 40px;
      border: 2px solid rgba(0,255,170,.4);
      border-radius: 50%;
      pointer-events: none;
      z-index: 99998;
      transform: translate(-50%, -50%);
      transition: width .3s ease, height .3s ease, border-color .3s ease;
    }
    .cursor-ring.hover {
      width: 64px; height: 64px;
      border-color: var(--accent-magenta);
    }

    /* ===== LIQUID RIPPLE CURSOR CANVAS ===== */
    #ripple-canvas {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      z-index: 99997;
      pointer-events: none;
      mix-blend-mode: screen;
    }
    /* Glow trail that follows cursor */
    .cursor-glow {
      position: fixed;
      width: 120px; height: 120px;
      border-radius: 50%;
      pointer-events: none;
      z-index: 99996;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle, rgba(0,255,170,.06) 0%, transparent 70%);
      transition: opacity .3s ease;
      filter: blur(20px);
    }
    .cursor-glow.active {
      background: radial-gradient(circle, rgba(0,255,170,.12) 0%, rgba(255,0,128,.05) 40%, transparent 70%);
      width: 180px; height: 180px;
    }

    /* ===== CARD TILT GLOW TRACKING ===== */
    .card-glow-spot {
      position: absolute;
      width: 200px; height: 200px;
      border-radius: 50%;
      pointer-events: none;
      z-index: 3;
      background: radial-gradient(circle, rgba(0,255,170,.15), transparent 70%);
      transform: translate(-50%, -50%);
      opacity: 0;
      transition: opacity .3s ease;
      filter: blur(30px);
    }
    .project-card:hover .card-glow-spot,
    .project-card.tilting .card-glow-spot { opacity: 1; }
    .project-card.tilting {
      transition: none;
    }
    .project-card.tilting .card-face {
      box-shadow:
        0 25px 60px rgba(0,0,0,.4),
        0 0 40px rgba(0,255,170,.08),
        inset 0 0 30px rgba(0,255,170,.05);
    }

    @media (hover: none) {
      .cursor-dot, .cursor-ring, #ripple-canvas, .cursor-glow { display: none; }
    }

    /* ===== THREE.JS CANVAS ===== */
    #three-canvas {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      z-index: 0;
      pointer-events: none;
    }

    /* ===== LOADING SCREEN ===== */
    #loader {
      position: fixed; inset: 0;
      background: var(--bg-primary);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      z-index: 10000;
      transition: opacity .8s ease, visibility .8s ease;
    }
    #loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
    .loader-bar-wrap {
      width: 260px; height: 4px;
      background: rgba(255,255,255,.08);
      border-radius: 2px; overflow: hidden;
      margin-top: 24px;
    }
    .loader-bar {
      height: 100%; width: 0%;
      background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
      border-radius: 2px;
      transition: width .3s ease;
    }
    .loader-text {
      font-family: var(--font-display);
      font-size: 1rem;
      letter-spacing: 6px;
      color: var(--accent-cyan);
      text-shadow: 0 0 20px rgba(0,255,170,.4);
    }
    .loader-percent {
      font-family: var(--font-mono);
      font-size: .75rem;
      color: var(--text-secondary);
      margin-top: 10px;
      letter-spacing: 2px;
    }

    /* ===== NAVIGATION ===== */
    nav {
      position: fixed; top: 0; left: 0; width: 100%;
      z-index: 1000;
      padding: 20px 40px;
      display: flex; align-items: center; justify-content: space-between;
      background: rgba(10,15,30,.4);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(0,255,170,.08);
      transition: transform .4s ease, background .3s ease;
    }
    nav.nav-hidden { transform: translateY(-100%); }
    .nav-logo {
      font-family: var(--font-display);
      font-size: 1.25rem; font-weight: 900;
      color: var(--accent-cyan);
      text-decoration: none;
      letter-spacing: 3px;
      text-shadow: 0 0 12px rgba(0,255,170,.4);
    }
    .nav-links { display: flex; gap: 32px; list-style: none; }
    .nav-links a {
      font-family: var(--font-mono);
      font-size: .85rem;
      color: var(--text-secondary);
      text-decoration: none;
      letter-spacing: 1px;
      position: relative;
      transition: color .3s ease;
    }
    .nav-links a::after {
      content: ''; position: absolute; bottom: -4px; left: 0;
      width: 0; height: 2px;
      background: var(--accent-cyan);
      transition: width .3s ease;
    }
    .nav-links a:hover { color: var(--accent-cyan); }
    .nav-links a:hover::after { width: 100%; }
    .nav-links a.active { color: var(--accent-cyan); }
    .nav-links a.active::after { width: 100%; }

    .nav-toggle {
      display: none; background: none; border: none; cursor: pointer;
      flex-direction: column; gap: 5px; padding: 4px;
    }
    .nav-toggle span {
      width: 24px; height: 2px;
      background: var(--accent-cyan);
      transition: .3s ease;
    }
    /* Morph hamburger into an X when the menu is open */
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    @media (max-width: 768px) {
      .nav-toggle { display: flex; }
      .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 260px; height: 100vh;
        flex-direction: column; gap: 0;
        background: rgba(10,15,30,.95);
        backdrop-filter: blur(30px);
        padding: 80px 32px 32px;
        transition: right .4s ease;
        border-left: 1px solid rgba(0,255,170,.1);
      }
      .nav-links.open { right: 0; }
      .nav-links a { padding: 16px 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.05); }
    }

    /* ===== SECTIONS ===== */
    .section {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      padding: 120px 40px 80px;
    }

    /* ===== SECTION DIVIDERS (animated wave) ===== */
    .section-divider {
      position: relative; z-index: 1;
      width: 100%; height: 80px;
      overflow: hidden;
    }
    .section-divider svg {
      position: absolute; bottom: 0; left: 0;
      width: 100%; height: 100%;
    }
    .section-divider .wave-path {
      fill: none;
      stroke: rgba(0,255,170,.15);
      stroke-width: 1.5;
      animation: waveDash 6s linear infinite;
    }
    .section-divider .wave-path2 {
      fill: none;
      stroke: rgba(255,0,128,.1);
      stroke-width: 1;
      animation: waveDash 8s linear infinite reverse;
    }
    @keyframes waveDash {
      0% { stroke-dashoffset: 0; }
      100% { stroke-dashoffset: -1200; }
    }

    /* ===== HERO ===== */
    #hero {
      text-align: center;
      pointer-events: none;
    }
    #hero > * { pointer-events: auto; }
    .hero-greeting {
      font-family: var(--font-mono);
      font-size: .95rem;
      color: var(--accent-magenta);
      letter-spacing: 4px;
      text-transform: uppercase;
      margin-bottom: 16px;
      opacity: 0; transform: translateY(30px);
      animation: fadeSlideUp .8s ease .6s forwards;
    }
    .hero-name {
      font-family: var(--font-display);
      font-size: clamp(2.5rem, 7vw, 5.5rem);
      font-weight: 900;
      letter-spacing: 4px;
      color: var(--accent-cyan);
      text-shadow: 0 0 30px rgba(0,255,170,.35), 0 0 60px rgba(0,255,170,.15);
      margin-bottom: 16px;
      opacity: 0; transform: translateY(30px);
      animation: fadeSlideUp .8s ease .8s forwards;
    }
    /* Hero name character split animation */
    .hero-name .char {
      display: inline-block;
      opacity: 0;
      transform: translateY(80px) rotateX(90deg);
      animation: charReveal .6s cubic-bezier(.23,1,.32,1) forwards;
    }
    @keyframes charReveal {
      to { opacity: 1; transform: translateY(0) rotateX(0); }
    }
    .hero-subtitle {
      font-family: var(--font-mono);
      font-size: clamp(1rem, 2.5vw, 1.4rem);
      color: var(--text-secondary);
      letter-spacing: 2px;
      margin-bottom: 12px;
      opacity: 0; transform: translateY(30px);
      animation: fadeSlideUp .8s ease 1.6s forwards;
    }
    /* Typewriter effect on subtitle */
    .typewriter {
      border-right: 2px solid var(--accent-cyan);
      animation: blink-caret .75s step-end infinite;
      overflow: hidden;
      white-space: nowrap;
      display: inline-block;
    }
    @keyframes blink-caret {
      from, to { border-color: transparent; }
      50% { border-color: var(--accent-cyan); }
    }
    .hero-tagline {
      font-family: var(--font-mono);
      font-size: .9rem;
      color: var(--accent-amber);
      letter-spacing: 1px;
      margin-bottom: 40px;
      opacity: 0; transform: translateY(30px);
      animation: fadeSlideUp .8s ease 1.8s forwards;
    }
    .hero-buttons {
      display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
      opacity: 0; transform: translateY(30px);
      animation: fadeSlideUp .8s ease 2s forwards;
    }
    .btn {
      font-family: var(--font-mono);
      font-size: .85rem; font-weight: 600;
      letter-spacing: 1px;
      padding: 14px 32px;
      border-radius: 8px;
      text-decoration: none;
      display: inline-flex; align-items: center; gap: 8px;
      transition: all .3s ease;
      cursor: pointer; border: none;
      position: relative;
      overflow: hidden;
    }
    .btn::before {
      content: ''; position: absolute;
      top: 50%; left: 50%;
      width: 0; height: 0;
      background: rgba(255,255,255,.1);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width .6s ease, height .6s ease;
    }
    .btn:hover::before { width: 300px; height: 300px; }
    .btn-primary {
      background: rgba(0,255,170,.12);
      color: var(--accent-cyan);
      border: 1px solid rgba(0,255,170,.3);
    }
    .btn-primary:hover {
      background: rgba(0,255,170,.25);
      border-color: rgba(0,255,170,.6);
      box-shadow: 0 0 30px rgba(0,255,170,.2);
      transform: translateY(-3px);
    }
    .btn-secondary {
      background: rgba(255,0,128,.1);
      color: var(--accent-magenta);
      border: 1px solid rgba(255,0,128,.25);
    }
    .btn-secondary:hover {
      background: rgba(255,0,128,.2);
      border-color: rgba(255,0,128,.5);
      box-shadow: 0 0 30px rgba(255,0,128,.15);
      transform: translateY(-3px);
    }
    .btn-outline {
      background: rgba(255,170,0,.08);
      color: var(--accent-amber);
      border: 1px solid rgba(255,170,0,.3);
    }
    .btn-outline:hover {
      background: rgba(255,170,0,.18);
      border-color: rgba(255,170,0,.6);
      box-shadow: 0 0 30px rgba(255,170,0,.15);
      transform: translateY(-3px);
    }

    .scroll-hint {
      position: absolute; bottom: 40px;
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      opacity: 0; animation: fadeSlideUp .8s ease 2.5s forwards;
    }
    .scroll-hint span {
      font-family: var(--font-mono); font-size: .7rem;
      color: var(--text-secondary); letter-spacing: 3px;
    }
    .scroll-mouse {
      width: 24px; height: 38px;
      border: 2px solid rgba(0,255,170,.4);
      border-radius: 12px;
      position: relative;
    }
    .scroll-mouse::after {
      content: ''; position: absolute;
      top: 8px; left: 50%; transform: translateX(-50%);
      width: 4px; height: 8px;
      background: var(--accent-cyan);
      border-radius: 2px;
      animation: scrollDot 2s ease-in-out infinite;
    }

    @keyframes fadeSlideUp {
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes scrollDot {
      0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
      50% { opacity: 0; transform: translateX(-50%) translateY(12px); }
    }

    /* ===== SECTION HEADERS ===== */
    .section-header {
      text-align: center;
      margin-bottom: 64px;
    }
    /* Once the one-time reveal-in transition has finished, drop the transform
       transition so the scroll-driven parallax below can update it directly
       every frame, instead of trailing behind through an .8s easing curve. */
    .section-header.parallax-active {
      transition: opacity .8s cubic-bezier(.23,1,.32,1);
    }
    .section-label {
      font-family: var(--font-mono);
      font-size: .8rem;
      color: var(--accent-magenta);
      letter-spacing: 4px;
      text-transform: uppercase;
      margin-bottom: 12px;
    }
    .section-title {
      font-family: var(--font-display);
      font-size: clamp(1.8rem, 4vw, 3rem);
      font-weight: 900;
      color: var(--accent-cyan);
      letter-spacing: 3px;
      text-shadow: 0 0 20px rgba(0,255,170,.25);
      position: relative;
      display: inline-block;
    }
    /* Glitch effect on section titles */
    .section-title::before,
    .section-title::after {
      content: attr(data-text);
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      opacity: 0;
    }
    .section-title.glitch-active::before {
      color: var(--accent-magenta);
      animation: glitch1 .3s ease forwards;
      clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
    }
    .section-title.glitch-active::after {
      color: var(--accent-blue);
      animation: glitch2 .3s ease forwards;
      clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    }
    @keyframes glitch1 {
      0% { opacity: .8; transform: translate(-3px, -2px); }
      50% { opacity: .6; transform: translate(3px, 1px); }
      100% { opacity: 0; transform: translate(0); }
    }
    @keyframes glitch2 {
      0% { opacity: .8; transform: translate(3px, 2px); }
      50% { opacity: .6; transform: translate(-3px, -1px); }
      100% { opacity: 0; transform: translate(0); }
    }

    /* ===== SCROLL REVEAL VARIANTS ===== */
    .reveal {
      opacity: 0;
      transform: translateY(50px);
      transition: opacity .8s cubic-bezier(.23,1,.32,1), transform .8s cubic-bezier(.23,1,.32,1);
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    .reveal-scale {
      opacity: 0;
      transform: scale(.85);
      transition: opacity .8s cubic-bezier(.23,1,.32,1), transform .8s cubic-bezier(.23,1,.32,1);
    }
    .reveal-scale.visible { opacity: 1; transform: scale(1); }

    /* ─── Text blur-in ─── */
    .reveal-blur {
      opacity: 0;
      filter: blur(20px);
      transform: translateY(20px);
      transition: opacity 1s ease, filter 1.2s ease, transform 1s ease;
    }
    .reveal-blur.visible { opacity: 1; filter: blur(0); transform: translateY(0); }

    /* ─── Elastic bounce from bottom ─── */
    .reveal-bounce {
      opacity: 0;
      transform: translateY(100px);
      transition: opacity .6s ease, transform 1.2s cubic-bezier(.68,-.55,.265,1.55);
    }
    .reveal-bounce.visible { opacity: 1; transform: translateY(0); }

    /* ─── Tilt-in from side ─── */
    .reveal-tilt-left {
      opacity: 0;
      transform: perspective(600px) rotateY(-15deg) translateX(-60px);
      transition: all 1s cubic-bezier(.23,1,.32,1);
    }
    .reveal-tilt-left.visible { opacity: 1; transform: perspective(600px) rotateY(0) translateX(0); }

    .reveal-tilt-right {
      opacity: 0;
      transform: perspective(600px) rotateY(15deg) translateX(60px);
      transition: all 1s cubic-bezier(.23,1,.32,1);
    }
    .reveal-tilt-right.visible { opacity: 1; transform: perspective(600px) rotateY(0) translateX(0); }

    /* ─── Text scramble effect ─── */
    .text-scramble {
      position: relative;
      display: inline-block;
    }
    .text-scramble .scramble-char {
      display: inline-block;
      transition: all .1s ease;
    }
    .text-scramble .scramble-char.glitching {
      color: var(--accent-magenta);
      text-shadow: 0 0 8px rgba(255,0,128,.5);
    }

    /* Stagger children */
    .stagger-children > * {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity .6s cubic-bezier(.23,1,.32,1), transform .6s cubic-bezier(.23,1,.32,1);
    }
    .stagger-children.visible > * { opacity: 1; transform: translateY(0); }
    .stagger-children.visible > *:nth-child(1) { transition-delay: .05s; }
    .stagger-children.visible > *:nth-child(2) { transition-delay: .1s; }
    .stagger-children.visible > *:nth-child(3) { transition-delay: .15s; }
    .stagger-children.visible > *:nth-child(4) { transition-delay: .2s; }
    .stagger-children.visible > *:nth-child(5) { transition-delay: .25s; }
    .stagger-children.visible > *:nth-child(6) { transition-delay: .3s; }
    .stagger-children.visible > *:nth-child(7) { transition-delay: .35s; }
    .stagger-children.visible > *:nth-child(8) { transition-delay: .4s; }
    .stagger-children.visible > *:nth-child(9) { transition-delay: .45s; }
    .stagger-children.visible > *:nth-child(10) { transition-delay: .5s; }

    /* ===== ABOUT ===== */
    #about { background: rgba(10,15,30,.3); }
    .about-content {
      max-width: 800px;
      text-align: center;
    }
    .about-content p {
      font-size: 1.05rem;
      color: var(--text-secondary);
      line-height: 1.8;
      margin-bottom: 20px;
    }
    /* Word-by-word reveal for about text */
    .about-content p .word {
      display: inline-block;
      opacity: 0;
      transform: translateY(15px);
      transition: opacity .4s ease, transform .4s ease;
    }
    .about-content p.words-visible .word {
      opacity: 1;
      transform: translateY(0);
    }
    .about-stats {
      display: flex; gap: 40px; justify-content: center;
      margin-top: 40px; flex-wrap: wrap;
    }
    .stat {
      text-align: center;
      position: relative;
    }
    .stat::after {
      content: '';
      position: absolute; bottom: -8px; left: 50%;
      transform: translateX(-50%);
      width: 0; height: 2px;
      background: var(--accent-cyan);
      transition: width .8s ease .4s;
    }
    .stat.counted::after { width: 80%; }
    .stat-value {
      font-family: var(--font-display);
      font-size: 2.5rem; font-weight: 900;
      color: var(--accent-cyan);
      text-shadow: 0 0 15px rgba(0,255,170,.3);
    }
    .stat-label {
      font-family: var(--font-mono);
      font-size: .75rem;
      color: var(--text-secondary);
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-top: 4px;
    }

    /* ===== PROJECTS ===== */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 32px;
      max-width: 1200px;
      width: 100%;
    }
    @media (min-width: 1024px) {
      .projects-grid { grid-template-columns: repeat(3, 1fr); }
    }

    /* 3D Flip Card System */
    .project-card {
      position: relative;
      height: 100%;
      perspective: 1500px;
      transform-style: preserve-3d;
      opacity: 0;
      animation: cardReveal .8s ease-out forwards;
      /* No transition on transform — JS handles tilt smoothly via rAF */
    }
    .project-card.card-revealed {
      /* After reveal animation completes, ensure transform is unlocked */
      animation: none;
      opacity: 1;
      /* Idle-state scroll parallax (set by JS via --parallax-y). Only applies
         at rest — .tilting sets an inline transform that always overrides this. */
      transform: translateY(var(--parallax-y, 0px));
      transition: transform .1s linear;
    }
    .project-card[data-card-index="0"] { animation-delay: .15s; }
    .project-card[data-card-index="1"] { animation-delay: .3s; }
    .project-card[data-card-index="2"] { animation-delay: .45s; }
    .project-card[data-card-index="3"] { animation-delay: .6s; }
    .project-card[data-card-index="4"] { animation-delay: .75s; }
    .project-card[data-card-index="5"] { animation-delay: .9s; }
    .project-card[data-card-index="6"] { animation-delay: 1.05s; }
    .project-card[data-card-index="7"] { animation-delay: 1.2s; }
    @keyframes cardReveal {
      from { opacity: 0; transform: translateY(40px) rotateX(8deg); }
      to   { opacity: 1; transform: translateY(0) rotateX(0); }
    }

    /* Flip container — rotates on Y */
    .card-flip-container {
      position: relative;
      width: 100%;
      min-height: 420px;
      transform-style: preserve-3d;
      transition: transform 1.5s cubic-bezier(.175,.885,.32,1.275);
    }
    .project-card.flipped .card-flip-container {
      transform: rotateY(180deg);
    }

    /* Card faces — shared */
    .card-face {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      min-height: 420px;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      display: flex; flex-direction: column;
      background: rgba(10,15,30,.7);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border: 2px solid rgba(0,255,170,.2);
      border-radius: 16px;
      overflow: hidden;
      cursor: pointer;
      transition: border-color .4s ease, background .4s ease, box-shadow .4s ease;
    }
    .card-face-front { z-index: 2; }
    .card-face-back {
      transform: rotateY(180deg);
      padding: 32px;
    }

    /* Glow border pulse on hover */
    .card-face::before {
      content: '';
      position: absolute; inset: -1px;
      background: linear-gradient(135deg, rgba(0,255,170,.12), rgba(255,0,128,.12), rgba(0,255,170,.12));
      border-radius: 16px;
      opacity: 0;
      z-index: -1;
      transition: opacity .4s ease;
      filter: blur(10px);
    }
    @media (hover: hover) and (pointer: fine) {
      .card-face:hover::before { opacity: .7; }
      .card-face:hover {
        border-color: rgba(0,255,170,.5);
        background: rgba(10,15,30,.85);
        box-shadow:
          0 20px 50px rgba(0,255,170,.15),
          0 0 30px rgba(0,255,170,.1),
          inset 0 0 20px rgba(0,255,170,.08);
      }
    }

    /* Shimmer rotation on hover */
    .card-face::after {
      content: '';
      position: absolute; top: -50%; left: -50%;
      width: 200%; height: 200%;
      background: conic-gradient(from 0deg, transparent, rgba(0,255,170,.04), transparent, rgba(255,0,128,.04), transparent);
      animation: cardShimmer 8s linear infinite;
      opacity: 0;
      transition: opacity .4s ease;
      pointer-events: none;
    }
    .card-face:hover::after { opacity: 1; }
    @keyframes cardShimmer { to { transform: rotate(360deg); } }

    /* Front face content */
    .project-content {
      flex: 1;
      padding: 32px;
      display: flex; flex-direction: column;
      gap: 16px;
    }
    .project-icon { font-size: 2.4rem; margin-bottom: 4px; }
    .project-title {
      font-family: var(--font-display);
      font-size: 1.2rem; font-weight: 700;
      color: var(--accent-cyan);
      letter-spacing: 1px;
      transition: all .3s ease;
      position: relative;
      display: inline-block;
    }
    .project-title::after {
      content: ''; position: absolute;
      bottom: -2px; left: 0;
      width: 0; height: 2px;
      background: var(--accent-magenta);
      transition: width .4s ease;
    }
    @media (hover: hover) {
      .project-card:hover .project-title {
        color: var(--accent-magenta);
        text-shadow: 0 0 10px rgba(255,0,128,.4);
      }
      .project-card:hover .project-title::after { width: 100%; }
      .project-card:hover .tag {
        background: rgba(0,255,170,.2);
        border-color: rgba(0,255,170,.5);
        box-shadow: 0 0 8px rgba(0,255,170,.2);
      }
    }
    .project-desc {
      font-size: .9rem;
      color: var(--text-secondary);
      line-height: 1.6;
      flex-grow: 1;
    }
    .project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .tag {
      font-family: var(--font-mono);
      font-size: .7rem;
      padding: 4px 10px;
      background: rgba(0,255,170,.08);
      border: 1px solid rgba(0,255,170,.2);
      border-radius: 4px;
      color: var(--accent-cyan);
      letter-spacing: .5px;
      transition: all .3s ease;
    }
    .project-actions {
      display: flex; gap: 12px; margin-top: auto;
    }
    .project-actions a,
    .project-actions button {
      flex: 1;
      font-family: var(--font-mono);
      font-size: .82rem; font-weight: 600;
      letter-spacing: 1px;
      padding: 10px 16px;
      border-radius: 6px;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex; align-items: center; justify-content: center;
      text-align: center;
      transition: all .3s ease;
    }
    .btn-card-primary {
      background: rgba(0,255,170,.12);
      color: var(--accent-cyan);
      border: 1px solid rgba(0,255,170,.3);
    }
    .btn-card-primary:hover {
      background: rgba(0,255,170,.25);
      border-color: rgba(0,255,170,.6);
      box-shadow: 0 0 15px rgba(0,255,170,.3);
      transform: translateY(-2px);
    }
    .btn-flip {
      background: rgba(255,0,128,.1);
      color: var(--accent-magenta);
      border: 1px solid rgba(255,0,128,.25);
    }
    .btn-flip:hover {
      background: rgba(255,0,128,.2);
      border-color: rgba(255,0,128,.5);
      box-shadow: 0 0 15px rgba(255,0,128,.3);
      transform: translateY(-2px);
    }

    /* Back face content */
    .card-back-content {
      display: flex; flex-direction: column;
      gap: 20px; height: 100%;
    }
    .back-section { flex: 1; }
    .back-section h4 {
      font-family: var(--font-display);
      font-size: 1rem;
      color: var(--accent-cyan);
      margin-bottom: 10px;
      letter-spacing: 1px;
    }
    .back-section p,
    .back-section ul {
      font-size: .88rem;
      line-height: 1.6;
      color: rgba(255,255,255,.8);
    }
    .back-section ul { list-style: none; padding: 0; }
    .back-section li {
      padding-left: 1.2em;
      position: relative;
      margin-bottom: .5em;
    }
    .back-section li::before {
      content: '▹';
      position: absolute; left: 0;
      color: var(--accent-cyan);
    }
    .btn-flip-back {
      width: 100%;
      padding: 10px 16px;
      font-family: var(--font-mono);
      font-size: .85rem; font-weight: 600;
      letter-spacing: 1px;
      background: linear-gradient(135deg, rgba(255,0,128,.2), rgba(255,0,128,.1));
      color: var(--accent-magenta);
      border: 1px solid rgba(255,0,128,.3);
      border-radius: 6px;
      cursor: pointer;
      transition: all .3s ease;
      margin-top: auto;
    }
    .btn-flip-back:hover {
      background: linear-gradient(135deg, rgba(255,0,128,.4), rgba(255,0,128,.2));
      border-color: rgba(255,0,128,.6);
      box-shadow: 0 0 15px rgba(255,0,128,.3);
      transform: translateY(-2px);
    }

    /* Touch devices */
    @media (hover: none) and (pointer: coarse) {
      .project-card { touch-action: manipulation; }
    }

    .more-projects { text-align: center; margin-top: 48px; }
    .more-projects a {
      font-family: var(--font-mono);
      font-size: .9rem;
      color: var(--accent-cyan);
      text-decoration: none;
      letter-spacing: 1px;
      position: relative;
      transition: color .3s ease;
    }
    .more-projects a::after {
      content: ''; position: absolute; bottom: -4px; left: 0;
      width: 0; height: 2px; background: var(--accent-magenta);
      transition: width .3s ease;
    }
    .more-projects a:hover { color: var(--accent-magenta); }
    .more-projects a:hover::after { width: 100%; }

    /* ===== SKILLS ===== */
    #skills { background: rgba(10,15,30,.3); }
    .skills-groups {
      display: flex;
      flex-direction: column;
      gap: 40px;
      max-width: 900px;
      width: 100%;
    }
    .skills-group-title {
      font-family: var(--font-mono);
      font-size: .8rem;
      color: var(--accent-magenta);
      letter-spacing: 3px;
      text-transform: uppercase;
      text-align: center;
      margin-bottom: 20px;
    }
    .skills-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 24px;
      width: 100%;
    }
    .skill-item {
      background: var(--glass-bg);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(0,255,170,.1);
      border-radius: 16px;
      padding: 28px 16px;
      text-align: center;
      transition: all .4s cubic-bezier(.23,1,.32,1);
      cursor: default;
      position: relative;
      overflow: hidden;
    }
    /* Pulse glow on skill items */
    .skill-item::before {
      content: '';
      position: absolute;
      top: 50%; left: 50%;
      width: 0; height: 0;
      background: radial-gradient(circle, rgba(0,255,170,.15), transparent);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width .6s ease, height .6s ease;
      z-index: 0;
    }
    .skill-item:hover::before { width: 200px; height: 200px; }
    .skill-item:hover {
      border-color: rgba(0,255,170,.4);
      transform: translateY(-6px) scale(1.04);
      box-shadow: 0 12px 40px rgba(0,255,170,.1);
    }
    .skill-icon-wrap {
      width: 56px; height: 56px;
      margin: 0 auto 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 2.2rem;
      filter: drop-shadow(0 0 10px rgba(0,255,170,.2));
      transition: transform .4s cubic-bezier(.23,1,.32,1);
      position: relative; z-index: 1;
    }
    .skill-icon-wrap svg {
      width: 40px;
      height: 40px;
    }
    /* Enlarge Node.js, Java, Linux logos — their glyphs read smaller than the rest at 40px */
    .skill-item[data-skill="nodejs"] .skill-icon-wrap svg,
    .skill-item[data-skill="java"] .skill-icon-wrap svg,
    .skill-item[data-skill="linux"] .skill-icon-wrap svg {
      width: 48px;
      height: 48px;
    }
    /* Monogram fallback for logos rendered as a badge instead of a pictorial mark */
    .skill-icon-badge {
      display: flex; align-items: center; justify-content: center;
      width: 40px; height: 40px;
      border: 2px solid currentColor;
      border-radius: 10px;
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 1.1rem;
    }
    .skill-icon-badge.badge-svelte { color: #ff3e00; }
    .skill-icon-badge.badge-firebase { color: #ffa000; }
    .skill-icon-badge.badge-kotlin { color: #7f52ff; }
    .skill-item:hover .skill-icon-wrap { transform: scale(1.2) rotate(10deg); }
    .skill-name {
      font-family: var(--font-display);
      font-size: .7rem;
      color: var(--accent-cyan);
      letter-spacing: 1px;
      position: relative; z-index: 1;
    }

    /* ===== EXPERIENCE TIMELINE ===== */
    #experience { padding-bottom: 100px; }
    .timeline {
      position: relative;
      max-width: 700px;
      width: 100%;
    }
    .timeline::before {
      content: ''; position: absolute;
      left: 20px; top: 0; bottom: 0;
      width: 2px;
      background: rgba(255,255,255,.05);
    }
    /* Animated line grow */
    .timeline-line-progress {
      position: absolute;
      left: 20px; top: 0;
      width: 2px; height: 0%;
      background: linear-gradient(180deg, var(--accent-cyan), var(--accent-magenta));
      z-index: 1;
      transition: height .15s linear;
      box-shadow: 0 0 8px rgba(0,255,170,.3);
    }
    .timeline-item {
      position: relative;
      padding: 0 0 48px 56px;
    }
    .timeline-dot {
      position: absolute; left: 12px; top: 6px;
      width: 18px; height: 18px;
      background: var(--bg-primary);
      border: 2px solid var(--accent-cyan);
      border-radius: 50%;
      box-shadow: 0 0 12px rgba(0,255,170,.3);
      z-index: 2;
      transition: all .4s ease;
    }
    .timeline-item.visible .timeline-dot {
      animation: dotPulse 1s ease forwards;
    }
    @keyframes dotPulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.4); background: var(--accent-cyan); box-shadow: 0 0 25px rgba(0,255,170,.7); }
      100% { transform: scale(1); background: var(--bg-primary); }
    }
    .timeline-item:hover .timeline-dot {
      background: var(--accent-cyan);
      box-shadow: 0 0 20px rgba(0,255,170,.6);
    }
    .timeline-date {
      font-family: var(--font-mono);
      font-size: .75rem;
      color: var(--accent-magenta);
      letter-spacing: 2px;
      margin-bottom: 6px;
    }
    .timeline-title {
      font-family: var(--font-display);
      font-size: 1.1rem;
      color: var(--accent-cyan);
      letter-spacing: 1px;
      margin-bottom: 4px;
    }
    .timeline-desc {
      font-size: .9rem;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    /* ===== CONTACT ===== */
    #contact { background: rgba(10,15,30,.3); }
    .contact-content {
      text-align: center;
      max-width: 800px;
      width: 100%;
      margin: 0 auto;
    }
    .contact-content > p {
      font-size: 1.05rem;
      color: var(--text-secondary);
      line-height: 1.8;
      margin-bottom: 40px;
    }
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      text-align: left;
      margin-bottom: 48px;
    }
    @media (max-width: 768px) {
      .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    }
    .contact-form {
      display: flex; flex-direction: column; gap: 16px;
    }
    .contact-form input, .contact-form textarea {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(0,255,170,.15);
      border-radius: 10px;
      padding: 14px 18px;
      font-family: var(--font-mono);
      font-size: .9rem;
      color: var(--text-primary);
      outline: none;
      transition: all .3s ease;
      resize: vertical;
    }
    .contact-form input:focus, .contact-form textarea:focus {
      border-color: var(--accent-cyan);
      box-shadow: 0 0 20px rgba(0,255,170,.1);
      background: rgba(255,255,255,.06);
    }
    .contact-form input::placeholder, .contact-form textarea::placeholder {
      color: var(--text-muted); opacity: .6;
    }
    .contact-form button {
      font-family: var(--font-mono);
      font-size: .9rem; font-weight: 600;
      letter-spacing: 2px;
      padding: 14px 28px;
      background: linear-gradient(135deg, rgba(0,255,170,.15), rgba(0,128,255,.15));
      color: var(--accent-cyan);
      border: 1px solid rgba(0,255,170,.3);
      border-radius: 10px;
      cursor: pointer;
      transition: all .3s ease;
      text-transform: uppercase;
    }
    .contact-form button:hover {
      background: linear-gradient(135deg, rgba(0,255,170,.3), rgba(0,128,255,.3));
      border-color: rgba(0,255,170,.6);
      box-shadow: 0 0 25px rgba(0,255,170,.2);
      transform: translateY(-2px);
    }
    .contact-form button:disabled {
      opacity: .6;
      cursor: not-allowed;
      transform: none;
    }
    .form-status {
      font-family: var(--font-mono);
      font-size: .8rem;
      letter-spacing: .5px;
      min-height: 1.2em;
    }
    .form-status.success { color: var(--accent-cyan); }
    .form-status.error { color: var(--accent-magenta); }
    .contact-info {
      display: flex; flex-direction: column; gap: 24px;
    }
    .contact-info-item {
      display: flex; align-items: flex-start; gap: 16px;
      padding: 16px;
      background: var(--glass-bg);
      border: 1px solid rgba(0,255,170,.1);
      border-radius: 12px;
      transition: all .3s ease;
    }
    .contact-info-item:hover {
      border-color: rgba(0,255,170,.3);
      transform: translateX(4px);
      box-shadow: 0 4px 20px rgba(0,255,170,.08);
    }
    .contact-info-icon {
      width: 40px; height: 40px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem;
      background: rgba(0,255,170,.1);
      border-radius: 10px;
      flex-shrink: 0;
    }
    .contact-info-text { flex: 1; }
    .contact-info-label {
      font-family: var(--font-mono);
      font-size: .7rem;
      color: var(--accent-cyan);
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 4px;
    }
    .contact-info-value {
      color: var(--text-secondary);
      font-size: .9rem;
    }
    .contact-info-value a {
      color: var(--text-secondary);
      text-decoration: none;
      transition: color .3s;
    }
    .contact-info-value a:hover { color: var(--accent-cyan); }
    .contact-email-row {
      display: flex; align-items: center; gap: 8px;
    }
    .copy-email-btn {
      background: rgba(0,255,170,.08);
      border: 1px solid rgba(0,255,170,.2);
      border-radius: 6px;
      color: var(--text-secondary);
      font-size: .8rem;
      line-height: 1;
      padding: 4px 7px;
      cursor: pointer;
      transition: all .3s ease;
    }
    .copy-email-btn:hover { color: var(--accent-cyan); border-color: rgba(0,255,170,.5); }
    .copy-email-btn.copied { color: var(--accent-cyan); border-color: rgba(0,255,170,.6); }
    .availability-badge {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 6px 14px;
      background: rgba(0,255,170,.08);
      border: 1px solid rgba(0,255,170,.2);
      border-radius: 20px;
      font-family: var(--font-mono);
      font-size: .75rem;
      color: var(--accent-cyan);
      letter-spacing: 1px;
    }
    .availability-dot {
      width: 8px; height: 8px;
      background: var(--accent-cyan);
      border-radius: 50%;
      animation: pulse-dot 2s ease-in-out infinite;
    }
    @keyframes pulse-dot {
      0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(0,255,170,.5); }
      50% { opacity: .5; box-shadow: 0 0 12px rgba(0,255,170,.8); }
    }
    .contact-social {
      display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
      margin-top: 8px;
    }
    .contact-social a {
      width: 48px; height: 48px;
      display: flex; align-items: center; justify-content: center;
      border: 1px solid rgba(0,255,170,.2);
      border-radius: 12px;
      color: var(--text-secondary);
      font-size: 1.2rem;
      transition: all .3s ease;
      position: relative; overflow: hidden;
    }
    .contact-social a::before {
      content: ''; position: absolute;
      inset: 0;
      background: rgba(0,255,170,.08);
      transform: translateY(100%);
      transition: transform .3s ease;
    }
    .contact-social a:hover::before { transform: translateY(0); }
    .contact-social a:hover {
      border-color: rgba(0,255,170,.5);
      color: var(--accent-cyan);
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0,255,170,.15);
    }
    .contact-social a svg {
      width: 22px; height: 22px;
      fill: currentColor;
      position: relative; z-index: 1;
    }
    /* ===== FOOTER ===== */
    footer {
      position: relative; z-index: 1;
      text-align: center;
      padding: 40px 20px;
      border-top: 1px solid rgba(0,255,170,.06);
    }
    footer p {
      font-family: var(--font-mono);
      font-size: .75rem;
      color: var(--text-secondary);
      letter-spacing: 2px;
    }
    footer a { color: var(--accent-cyan); text-decoration: none; }

    /* ===== FLOATING SCROLL-TO-TOP ===== */
    .scroll-top {
      position: fixed;
      bottom: 30px; right: 30px;
      width: 48px; height: 48px;
      background: rgba(0,255,170,.1);
      border: 1px solid rgba(0,255,170,.3);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      z-index: 999;
      cursor: pointer;
      opacity: 0; transform: translateY(20px);
      transition: all .3s ease;
      pointer-events: none;
      color: var(--accent-cyan);
      font-size: 1.2rem;
    }
    .scroll-top.show {
      opacity: 1; transform: translateY(0);
      pointer-events: auto;
    }
    .scroll-top:hover {
      background: rgba(0,255,170,.25);
      box-shadow: 0 0 20px rgba(0,255,170,.2);
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .section { padding: 100px 20px 60px; }
      nav { padding: 16px 20px; }
      .about-stats { gap: 24px; }
      .projects-grid { grid-template-columns: 1fr; gap: 24px; }
      .card-flip-container, .card-face { min-height: 380px; }
      .skills-container { grid-template-columns: repeat(3, 1fr); gap: 16px; }
      .timeline::before { left: 14px; }
      .timeline-line-progress { left: 14px; }
      .timeline-item { padding-left: 44px; }
      .timeline-dot { left: 6px; }
    }

    @media (max-width: 480px) {
      .skills-container { grid-template-columns: repeat(2, 1fr); }
    }

    /* ===== REDUCED MOTION ===== */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }
