/* ===== LOADING SCREEN ===== */
    .site-loader {
      position: fixed;
      inset: 0;
      z-index: 10000;
      background: #0a0a0b;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                  visibility 0.6s;
    }
    .site-loader.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    .loader-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
    }
    .loader-logo {
      width: 56px;
      height: 56px;
      color: #f0eff2;
      animation: loader-pulse 2s ease-in-out infinite;
      filter: drop-shadow(0 0 20px rgba(124, 106, 245, 0.4));
    }
    @keyframes loader-pulse {
      0%, 100% { transform: scale(1); opacity: 0.8; }
      50% { transform: scale(1.08); opacity: 1; }
    }
    .loader-bar {
      width: 180px;
      height: 3px;
      background: rgba(255,255,255,0.06);
      border-radius: 4px;
      overflow: hidden;
    }
    .loader-bar-fill {
      width: 0%;
      height: 100%;
      background: linear-gradient(90deg, #7c6af5, #22d3ee);
      border-radius: 4px;
      animation: loader-fill 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes loader-fill {
      0% { width: 0%; }
      30% { width: 40%; }
      60% { width: 70%; }
      100% { width: 90%; }
    }
    .loader-text {
      font-family: 'DM Mono', monospace;
      font-size: 0.75rem;
      color: rgba(240, 239, 242, 0.4);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      animation: loader-text-pulse 2s ease-in-out infinite;
    }
    @keyframes loader-text-pulse {
      0%, 100% { opacity: 0.4; }
      50% { opacity: 0.8; }
    }

/* ===== CSS TOKENS ===== */
    :root {
      --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
      --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
      --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
      --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
      --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
      --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
      --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
      --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

      --space-1:  0.25rem;
      --space-2:  0.5rem;
      --space-3:  0.75rem;
      --space-4:  1rem;
      --space-6:  1.5rem;
      --space-8:  2rem;
      --space-10: 2.5rem;
      --space-12: 3rem;
      --space-16: 4rem;
      --space-20: 5rem;
      --space-24: 6rem;

      --radius-sm: 0.375rem;
      --radius-md: 0.5rem;
      --radius-lg: 0.75rem;
      --radius-xl: 1rem;
      --radius-2xl: 1.5rem;
      --radius-full: 9999px;

      --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
      --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
      --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

      --font-display: 'Space Grotesk', system-ui, sans-serif;
      --font-mono: 'DM Mono', monospace;
      --font-body: 'Space Grotesk', system-ui, sans-serif;
    }

    /* Dark Theme Tokens */
    [data-theme="dark"] {
      --bg: #0a0a0b;
      --bg-surface: #111113;
      --bg-surface-2: #17171a;
      --bg-card: #1a1a1e;
      --bg-card-hover: #1f1f24;
      --border: rgba(255,255,255,0.07);
      --border-strong: rgba(255,255,255,0.12);
      --text: #f0eff2;
      --text-muted: #7d7c84;
      --text-faint: #48474f;
      --accent: #7c6af5;
      --accent-glow: rgba(124, 106, 245, 0.15);
      --accent-dim: rgba(124, 106, 245, 0.08);
      --accent-2: #22d3ee;
      --accent-3: #f97316;
      --green: #22c55e;
    }

    [data-theme="light"] {
      --bg: #f5f4f8;
      --bg-surface: #ffffff;
      --bg-surface-2: #fafafc;
      --bg-card: #ffffff;
      --bg-card-hover: #f8f7fb;
      --border: rgba(0,0,0,0.07);
      --border-strong: rgba(0,0,0,0.12);
      --text: #0f0e14;
      --text-muted: #5c5b65;
      --text-faint: #a8a7b0;
      --accent: #5b4fe0;
      --accent-glow: rgba(91, 79, 224, 0.12);
      --accent-dim: rgba(91, 79, 224, 0.06);
      --accent-2: #0891b2;
      --accent-3: #ea580c;
      --green: #16a34a;
    }

    /* ===== BASE ===== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 5rem;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
    }

    body {
      font-family: var(--font-body);
      font-size: var(--text-base);
      color: var(--text);
      background: var(--bg);
      min-height: 100dvh;
      line-height: 1.6;
      transition: background 0.4s, color 0.4s;
      overflow-x: hidden;
    }

    ::selection { background: var(--accent-glow); color: var(--text); }
    :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
    img, svg { display: block; max-width: 100%; }
    h1,h2,h3,h4 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
    p, li { text-wrap: pretty; }

    a, button, [role="button"] {
      transition: color var(--transition-interactive),
                  background var(--transition-interactive),
                  border-color var(--transition-interactive),
                  box-shadow var(--transition-interactive),
                  transform var(--transition-interactive),
                  opacity var(--transition-interactive);
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    /* ===== NOISE TEXTURE ===== */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 0;
      opacity: 0.4;
    }

    /* ===== SCROLL ANIMATIONS ===== */
    .fade-in {
      opacity: 1;
    }

    @supports (animation-timeline: scroll()) {
      .fade-in {
        opacity: 0;
        animation: reveal-fade linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 60%;
      }
      @keyframes reveal-fade { to { opacity: 1; } }

      .slide-up {
        opacity: 0;
        clip-path: inset(30% 0 0 0);
        animation: reveal-up linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 70%;
      }
      @keyframes reveal-up { to { opacity: 1; clip-path: inset(0 0 0 0); } }

      .slide-left {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        animation: reveal-left linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 70%;
      }
      @keyframes reveal-left { to { opacity: 1; clip-path: inset(0 0 0 0); } }
    }

    /* ===== NAVBAR ===== */
    #navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      padding: var(--space-3) var(--space-6);
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
    }
    #navbar.scrolled {
      background: oklch(from var(--bg) l c h / 0.85);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      font-size: var(--text-sm);
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: var(--space-2);
    }
    .nav-logo .logo-mark {
      width: 32px;
      height: 32px;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: var(--space-1);
      list-style: none;
    }
    .nav-links a {
      font-size: var(--text-sm);
      color: var(--text-muted);
      text-decoration: none;
      padding: var(--space-2) var(--space-3);
      border-radius: var(--radius-md);
      font-weight: 500;
    }
    .nav-links a:hover { color: var(--text); background: var(--border); }

    .nav-actions { display: flex; align-items: center; gap: var(--space-2); }
    .theme-toggle {
      width: 36px; height: 36px;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-muted);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
    }
    .theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }

    .btn-primary {
      background: var(--accent);
      color: #fff;
      border: none;
      padding: var(--space-2) var(--space-4);
      border-radius: var(--radius-md);
      font-size: var(--text-sm);
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: var(--space-2);
      white-space: nowrap;
    }
    .btn-primary:hover {
      background: #6b5ad4;
      transform: translateY(-1px);
      box-shadow: 0 8px 24px var(--accent-glow);
    }
    .btn-primary:active { transform: translateY(0); }

    .btn-ghost {
      background: transparent;
      color: var(--text-muted);
      border: 1px solid var(--border);
      padding: var(--space-2) var(--space-4);
      border-radius: var(--radius-md);
      font-size: var(--text-sm);
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: var(--space-2);
    }
    .btn-ghost:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-card); }

    .hamburger {
      display: none;
      width: 36px; height: 36px;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-muted);
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    /* ===== MOBILE NAV ===== */
    .mobile-nav {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 99;
      background: var(--bg);
      padding: 5rem var(--space-6) var(--space-8);
      flex-direction: column;
      gap: var(--space-4);
    }
    .mobile-nav.open { display: flex; }
    .mobile-nav a {
      font-size: var(--text-xl);
      font-weight: 700;
      color: var(--text);
      text-decoration: none;
      padding: var(--space-2) 0;
      border-bottom: 1px solid var(--border);
    }
    .mobile-nav a:hover { color: var(--accent); }

    /* ===== HERO ===== */
    #hero {
      min-height: 100dvh;
      display: flex;
      align-items: center;
      padding: var(--space-24) var(--space-6) var(--space-16);
      position: relative;
      overflow: hidden;
    }

    /* Animated grid background */
    .hero-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(124,106,245,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,106,245,0.04) 1px, transparent 1px);
      background-size: 60px 60px;
      animation: grid-drift 20s linear infinite;
    }
    @keyframes grid-drift {
      0% { transform: translateY(0); }
      100% { transform: translateY(60px); }
    }

    /* Glow blobs */
    .hero-blob-1 {
      position: absolute;
      top: 15%;
      right: -10%;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(124,106,245,0.12) 0%, transparent 70%);
      border-radius: 50%;
      animation: pulse-blob 8s ease-in-out infinite;
    }
    .hero-blob-2 {
      position: absolute;
      bottom: 0;
      left: -10%;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(34,211,238,0.07) 0%, transparent 70%);
      border-radius: 50%;
      animation: pulse-blob 10s ease-in-out infinite 2s;
    }
    @keyframes pulse-blob {
      0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
      50% { transform: scale(1.1) translate(30px, -20px); opacity: 1; }
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 900px;
      margin: 0 auto;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: var(--space-2);
      background: var(--accent-dim);
      border: 1px solid rgba(124,106,245,0.2);
      color: var(--accent);
      font-size: var(--text-xs);
      font-weight: 600;
      padding: var(--space-1) var(--space-3);
      border-radius: var(--radius-full);
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: var(--space-6);
    }
    .hero-badge .dot {
      width: 6px; height: 6px;
      background: var(--accent);
      border-radius: 50%;
      animation: ping 2s ease-in-out infinite;
    }
    @keyframes ping {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.4); opacity: 0.7; }
    }

    .hero-name {
      font-size: var(--text-hero);
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 0.95;
      margin-bottom: var(--space-4);
    }
    .hero-name .accent-word {
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero-title {
      font-size: var(--text-xl);
      color: var(--text-muted);
      font-weight: 400;
      margin-bottom: var(--space-8);
      font-family: var(--font-mono);
    }
    .hero-title .cursor {
      display: inline-block;
      width: 2px;
      height: 1.1em;
      background: var(--accent);
      margin-left: 2px;
      vertical-align: middle;
      animation: blink 1.2s step-end infinite;
    }
    @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

    .hero-desc {
      font-size: var(--text-lg);
      color: var(--text-muted);
      max-width: 60ch;
      margin-bottom: var(--space-10);
      line-height: 1.7;
    }

    .hero-stats {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-6);
      margin-bottom: var(--space-10);
    }
    .stat-item { text-align: left; }
    .stat-number {
      font-size: var(--text-2xl);
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--text);
      line-height: 1;
    }
    .stat-number span { color: var(--accent); }
    .stat-label {
      font-size: var(--text-xs);
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-top: var(--space-1);
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-3);
      align-items: center;
    }

    .hero-scroll {
      position: absolute;
      bottom: var(--space-8);
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--space-2);
      color: var(--text-faint);
      font-size: var(--text-xs);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      animation: scroll-bounce 2.5s ease-in-out infinite;
    }
    @keyframes scroll-bounce {
      0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
      50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
    }

    /* ===== SECTION CONTAINER ===== */
    .section {
      padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
      position: relative;
    }
    .section-inner {
      max-width: 1100px;
      margin: 0 auto;
    }
    .section-label {
      font-size: var(--text-xs);
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
      font-family: var(--font-mono);
      display: flex;
      align-items: center;
      gap: var(--space-3);
      margin-bottom: var(--space-4);
    }
    .section-label::before {
      content: '';
      display: block;
      width: 20px;
      height: 1px;
      background: var(--accent);
    }
    .section-title {
      font-size: var(--text-3xl);
      font-weight: 800;
      letter-spacing: -0.03em;
      margin-bottom: var(--space-4);
      color: var(--text);
    }
    .section-subtitle {
      font-size: var(--text-lg);
      color: var(--text-muted);
      max-width: 55ch;
      line-height: 1.7;
    }

    .section-divider {
      width: 100%;
      height: 1px;
      background: var(--border);
    }

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

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-16);
      align-items: start;
      margin-top: var(--space-12);
    }

    .about-text p {
      color: var(--text-muted);
      margin-bottom: var(--space-6);
      line-height: 1.8;
      font-size: var(--text-base);
    }

    .skill-groups {
      display: flex;
      flex-direction: column;
      gap: var(--space-6);
    }

    .skill-group-title {
      font-size: var(--text-xs);
      font-weight: 600;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-family: var(--font-mono);
      margin-bottom: var(--space-3);
    }

    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-2);
    }

    .tag {
      font-size: var(--text-xs);
      font-weight: 500;
      padding: var(--space-1) var(--space-3);
      border-radius: var(--radius-full);
      border: 1px solid var(--border);
      color: var(--text-muted);
      background: var(--bg-card);
      font-family: var(--font-mono);
      white-space: nowrap;
      transition: all var(--transition-interactive);
    }
    .tag:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--accent-dim);
    }
    .tag.accent {
      border-color: rgba(124,106,245,0.3);
      color: var(--accent);
      background: var(--accent-dim);
    }

    /* ===== EXPERIENCE ===== */
    #experience { background: var(--bg-surface); }

    .timeline {
      position: relative;
      margin-top: var(--space-12);
      padding-left: var(--space-8);
    }
    .timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 1px;
      background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
    }

    .timeline-item {
      position: relative;
      margin-bottom: var(--space-12);
    }
    .timeline-item:last-child { margin-bottom: 0; }

    .timeline-dot {
      position: absolute;
      left: calc(-1 * var(--space-8));
      top: 4px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--accent);
      border: 2px solid var(--bg-surface);
      box-shadow: 0 0 0 4px var(--accent-dim);
      transform: translateX(-50%);
    }

    .timeline-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: var(--space-4);
      flex-wrap: wrap;
      margin-bottom: var(--space-3);
    }

    .timeline-role {
      font-size: var(--text-lg);
      font-weight: 700;
      color: var(--text);
    }

    .timeline-company {
      color: var(--accent);
      font-weight: 600;
    }

    .timeline-period {
      font-size: var(--text-xs);
      color: var(--text-muted);
      font-family: var(--font-mono);
      padding: var(--space-1) var(--space-3);
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      white-space: nowrap;
    }

    .timeline-points {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: var(--space-2);
    }
    .timeline-points li {
      font-size: var(--text-sm);
      color: var(--text-muted);
      padding-left: var(--space-4);
      position: relative;
      line-height: 1.7;
    }
    .timeline-points li::before {
      content: '→';
      position: absolute;
      left: 0;
      color: var(--accent);
      font-size: var(--text-xs);
      top: 3px;
    }

    /* ===== PROJECTS ===== */
    #projects { background: var(--bg); }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
      gap: var(--space-6);
      margin-top: var(--space-12);
      align-items: start;
    }

    .project-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-2xl);
      overflow: hidden;
      transition: transform var(--transition-interactive),
                  box-shadow var(--transition-interactive),
                  border-color var(--transition-interactive);
      cursor: pointer;
      position: relative;
    }
    .project-card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: var(--radius-2xl);
      background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--transition-interactive);
    }
    .project-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px var(--border-strong);
      border-color: rgba(124,106,245,0.2);
    }
    .project-card:hover::before { opacity: 1; }

    .project-screenshot {
      width: 100%;
      aspect-ratio: 16/10;
      background: var(--bg-surface-2);
      overflow: hidden;
      position: relative;
    }
    .project-screenshot img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .project-card:hover .project-screenshot img {
      transform: scale(1.04);
    }

    /* Placeholder screenshot with icon */
    .project-screenshot-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: var(--space-3);
      background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
      position: relative;
      overflow: hidden;
    }
    .project-screenshot-placeholder::after {
      content: '';
      position: absolute;
      inset: 0;
      background: none;
    }
    .app-icon-large {
      width: 64px;
      height: 64px;
      border-radius: 18px;
      background: var(--accent-dim);
      border: 1px solid rgba(124,106,245,0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      position: relative;
      z-index: 1;
      box-shadow: 0 8px 32px var(--accent-glow);
    }
    .mock-screen {
      width: 120px;
      height: 80px;
      background: var(--bg-card);
      border-radius: 8px;
      border: 1px solid var(--border-strong);
      position: relative;
      z-index: 1;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .mock-bar {
      height: 6px;
      margin: 6px;
      border-radius: 3px;
      background: var(--border);
    }
    .mock-bar.accent { background: var(--accent); width: 60%; }
    .mock-bar.short { width: 40%; }

    .project-badge {
      position: absolute;
      top: var(--space-3);
      right: var(--space-3);
      display: flex;
      gap: var(--space-1);
      z-index: 2;
    }

    .store-badge {
      width: 28px;
      height: 28px;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,0.1);
      text-decoration: none;
    }

    .project-body {
      padding: var(--space-5);
      position: relative;
      z-index: 1;
    }

    .project-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: var(--space-2);
    }

    .project-name {
      font-size: var(--text-lg);
      font-weight: 700;
      color: var(--text);
    }

    .project-category {
      font-size: var(--text-xs);
      font-family: var(--font-mono);
      color: var(--text-faint);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .project-desc {
      font-size: var(--text-sm);
      color: var(--text-muted);
      margin-bottom: var(--space-4);
      line-height: 1.7;
    }

    .project-tech {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-1);
    }

    .tech-chip {
      font-size: 10px;
      font-family: var(--font-mono);
      padding: 2px 8px;
      border-radius: var(--radius-full);
      background: var(--bg-surface-2);
      border: 1px solid var(--border);
       color: #a2adb2;
       letter-spacing: 1px;
    }

    /* Featured project - full width */
    .project-card.featured {
      grid-column: 1 / -1;
    }
    .project-card.featured .project-screenshot {
      aspect-ratio: 21/9;
    }

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

    .contact-wrapper {
      margin-top: var(--space-12);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-8);
      align-items: stretch;
    }

    /* Contact panel — single cohesive glass card */
    .contact-panel {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-2xl);
      overflow: hidden;
      position: relative;
      display: flex;
      flex-direction: column;
    }
    .contact-panel::before {
      content: '';
      position: absolute;
      inset: -1px;
      border-radius: var(--radius-2xl);
      background: linear-gradient(160deg, rgba(124,106,245,0.25), transparent 40%, transparent 60%, rgba(124,106,245,0.1));
      z-index: -1;
      pointer-events: none;
    }
    .contact-panel-intro {
      padding: var(--space-6) var(--space-6) var(--space-4);
      color: var(--text-muted);
      font-size: var(--text-sm);
      line-height: 1.7;
    }

    /* Contact rows */
    .contact-row {
      display: flex;
      align-items: center;
      gap: var(--space-4);
      padding: var(--space-4) var(--space-6);
      text-decoration: none;
      color: var(--text);
      transition: background 0.25s, padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      border-top: 1px solid var(--border);
    }
    .contact-row:hover {
      background: rgba(124,106,245,0.04);
      padding-left: calc(var(--space-6) + 4px);
    }
    .contact-row-icon {
      width: 38px; height: 38px;
      border-radius: var(--radius-md);
      background: var(--accent-dim);
      border: 1px solid rgba(124,106,245,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      flex-shrink: 0;
      transition: all 0.3s;
    }
    .contact-row:hover .contact-row-icon {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
      box-shadow: 0 4px 12px var(--accent-glow);
    }
    .contact-row-text { flex: 1; min-width: 0; }
    .contact-row-label {
      font-size: 14px;
      color: #02ddf6  
   
    }
    .contact-row-value {
      font-size: var(--text-sm);
      font-weight: 600;
      color: var(--text);
      margin-top: 1px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .contact-row-arrow {
      color: var(--text-faint);
      opacity: 0;
      transform: translateX(-6px);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      flex-shrink: 0;
    }
    .contact-row:hover .contact-row-arrow { opacity: 1; transform: translateX(0); }

    /* Social footer inside panel */
    .contact-panel-footer {
      display: flex;
      border-top: 1px solid var(--border);
      margin-top: auto;
    }
    .contact-social {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: var(--space-2);
      padding: var(--space-4) var(--space-3);
      text-decoration: none;
      color: var(--text-muted);
      font-size: var(--text-xs);
      font-weight: 600;
      transition: all 0.25s;
    }
    .contact-social:not(:last-child) {
      border-right: 1px solid var(--border);
    }
    .contact-social svg {
      color: var(--accent);
      flex-shrink: 0;
    }
    .contact-social:hover {
      background: rgba(124,106,245,0.06);
      color: var(--text);
    }
    /* Contact form */
    .contact-form-panel {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-2xl);
      padding: var(--space-6);
      display: flex;
      flex-direction: column;
    }
    .contact-form-panel .form-label-title {
      font-size: var(--text-sm);
      font-weight: 700;
      color: var(--text);
      margin-bottom: var(--space-5);
      font-family: var(--font-body);
    }
    .contact-form {
      display: flex;
      flex-direction: column;
      gap: var(--space-4);
      flex: 1;
    }
    .form-group { display: flex; flex-direction: column; gap: var(--space-2); }
    .form-label {
      font-size: var(--text-xs);
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-family: var(--font-mono);
    }
    .form-input, .form-textarea {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: var(--space-3) var(--space-4);
      font-size: var(--text-sm);
      color: var(--text);
      font-family: var(--font-body);
      transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
      resize: none;
    }
    .form-input:focus, .form-textarea:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-dim);
    }
    .form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
    .form-textarea { min-height: 120px; }

    .form-submit {
      background: var(--accent);
      color: #fff;
      border: none;
      padding: var(--space-4) var(--space-6);
      border-radius: var(--radius-lg);
      font-size: var(--text-sm);
      font-weight: 700;
      cursor: pointer;
      font-family: var(--font-body);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: var(--space-2);
      transition: all var(--transition-interactive);
    }
    .form-submit:hover {
      background: #6b5ad4;
      transform: translateY(-1px);
      box-shadow: 0 8px 24px var(--accent-glow);
    }
    .form-submit:active { transform: translateY(0); }

    /* ===== TESTIMONIALS ===== */
    #testimonials { background: var(--bg); }

    .testimonials-grid {
      column-count: 2;
      column-gap: var(--space-6);
      margin-top: var(--space-12);
    }

    .testimonial-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-2xl);
      padding: var(--space-6);
      position: relative;
      overflow: hidden;
      transition: transform var(--transition-interactive),
                  box-shadow var(--transition-interactive),
                  border-color var(--transition-interactive);
    }
    .testimonial-card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: var(--radius-2xl);
      background: linear-gradient(135deg, rgba(124,106,245,0.06), transparent 50%);
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--transition-interactive);
    }
    .testimonial-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px var(--border-strong);
      border-color: rgba(124,106,245,0.25);
    }
    .testimonial-card:hover::before { opacity: 1; }

    .testimonial-header {
      display: flex;
      align-items: center;
      gap: var(--space-3);
      margin-bottom: var(--space-4);
    }

    .testimonial-avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      position: relative;
    }
    .testimonial-avatar::after {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
      z-index: -1;
      opacity: 0;
      transition: opacity 0.4s;
    }
    .testimonial-card:hover .testimonial-avatar::after { opacity: 0.5; }
    .testimonial-avatar span {
      font-size: 16px;
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.02em;
      font-family: var(--font-display);
    }
    .testimonial-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
      position: relative;
      z-index: 1;
    }

    .testimonial-meta { flex: 1; min-width: 0; }
    .testimonial-name {
      font-size: var(--text-sm);
      font-weight: 700;
      color: var(--text);
      margin: 0;
    }
    .testimonial-project {
      font-size: var(--text-xs);
      color: var(--accent);
      font-family: var(--font-mono);
      margin: 0;
      margin-top: 2px;
    }

    .testimonial-rating {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 2px;
      flex-shrink: 0;
    }
    .rating-value {
      font-size: 14px;
      font-weight: 800;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .testimonial-star {
      color: var(--text-faint);
      font-size: 14px;
      transition: color 0.3s, transform 0.3s;
    }
    .testimonial-star.filled {
      color: #facc15;
      filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.4));
    }
    .testimonial-card:hover .testimonial-star.filled {
      animation: star-pulse 0.6s ease-in-out;
    }
    @keyframes star-pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.2); }
    }

    .testimonial-date {
      font-size: 10px;
      color: var(--text-faint);
      font-family: var(--font-mono);
      letter-spacing: 0.05em;
    }

    .testimonial-tags {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-1);
      margin-bottom: var(--space-4);
    }
    .testimonial-tag {
      font-size: 10px;
      font-family: var(--font-mono);
      font-weight: 500;
      padding: 2px 10px;
      border-radius: var(--radius-full);
      border: 1px solid rgba(124,106,245,0.2);
      color: var(--accent);
      background: var(--accent-dim);
      letter-spacing: 0.04em;
      transition: all var(--transition-interactive);
    }
    .testimonial-card:hover .testimonial-tag {
      border-color: rgba(124,106,245,0.4);
      background: rgba(124,106,245,0.12);
    }

    .testimonial-quote-icon {
      color: var(--accent);
      margin-bottom: var(--space-2);
    }

    .testimonial-text {
      font-size: var(--text-sm);
      color: var(--text-muted);
      line-height: 1.8;
      margin: 0;
      font-style: italic;
      position: relative;
    }

    @media (max-width: 768px) {
      .testimonials-grid { column-count: 1; }
      .testimonial-header { flex-wrap: wrap; }
      .testimonial-rating { flex-direction: row; align-items: center; width: 100%; margin-top: var(--space-2); }
    }

    /* ===== FOOTER ===== */
    footer {
      padding: var(--space-8) var(--space-6);
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: var(--space-4);
      background: var(--bg);
    }
    footer p {
      font-size: var(--text-xs);
      color: var(--text-faint);
      font-family: var(--font-mono);
    }
    .footer-links {
      display: flex;
      gap: var(--space-4);
      list-style: none;
    }
    .footer-links a {
      font-size: var(--text-xs);
      color: var(--text-faint);
      text-decoration: none;
      font-family: var(--font-mono);
    }
    .footer-links a:hover { color: var(--text-muted); }

    /* Performance Badges */
    .footer-perf {
      display: flex;
      align-items: center;
      gap: var(--space-4);
      padding-top: var(--space-4);
      border-top: 1px solid var(--border);
    }
    .perf-label {
      font-size: 10px;
      font-family: var(--font-mono);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-faint);
      white-space: nowrap;
    }
    .perf-badges {
      display: flex;
      gap: var(--space-3);
    }
    .perf-badge {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      position: relative;
    }
    .perf-ring {
      width: 36px;
      height: 36px;
    }
    .perf-ring circle:last-child {
      transition: stroke-dasharray 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .perf-score {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, calc(-50% - 5px));
      font-size: 10px;
      font-weight: 800;
      font-family: var(--font-mono);
      color: #22c55e;
      line-height: 1;
    }
    .perf-cat {
      font-size: 8px;
      font-family: var(--font-mono);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-faint);
      font-weight: 600;
    }

    /* ===== SKIP TO CONTENT (Keyboard Nav) ===== */
    .skip-to-content {
      position: fixed;
      top: -100px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10001;
      background: var(--accent);
      color: #fff;
      padding: var(--space-3) var(--space-6);
      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
      font-size: var(--text-sm);
      font-weight: 700;
      font-family: var(--font-body);
      text-decoration: none;
      transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 4px 20px var(--accent-glow);
    }
    .skip-to-content:focus {
      top: 0;
      outline: none;
    }

    /* ===== ENHANCED KEYBOARD FOCUS ===== */
    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
      border-radius: var(--radius-sm);
    }
    .nav-links a:focus-visible,
    .btn-primary:focus-visible,
    .btn-ghost:focus-visible {
      outline-offset: 4px;
      box-shadow: 0 0 0 4px var(--accent-dim);
    }
    .project-card:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 4px;
      transform: translateY(-4px);
      box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 4px var(--accent-dim);
    }
    .testimonial-card:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 4px;
    }
    .contact-row:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: -2px;
      background: rgba(124,106,245,0.04);
    }
    .gallery-item:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
      box-shadow: 0 0 20px var(--accent-glow);
    }
    .theme-toggle:focus-visible,
    .hamburger:focus-visible,
    .back-to-top:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
      box-shadow: 0 0 0 4px var(--accent-dim);
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .nav-links, .nav-actions .btn-primary, .nav-actions .btn-ghost { display: none; }
      .hamburger { display: flex; }
      .about-grid { grid-template-columns: 1fr; gap: var(--space-10); }
      .contact-wrapper { grid-template-columns: 1fr; }
      .timeline { padding-left: var(--space-6); }
      .hero-desc { font-size: var(--text-base); }
      .project-card.featured .project-screenshot { aspect-ratio: 16/10; }
      footer { flex-direction: column; text-align: center; }
    }

    @media (max-width: 480px) {
      .hero-stats { gap: var(--space-4); }
      .hero-actions { flex-direction: column; align-items: flex-start; }
      .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; justify-content: center; }
    }

    /* ===== CURSOR GLOW ===== */
    .cursor-glow {
      position: fixed;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
      pointer-events: none;
      z-index: 0;
      transform: translate(-50%, -50%);
      transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                  top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      mix-blend-mode: screen;
    }
    @media (hover: none) { .cursor-glow { display: none; } }

    /* ===== ANIMATED GRADIENT BORDER ON HOVER ===== */
    @property --angle {
      syntax: '<angle>';
      initial-value: 0deg;
      inherits: false;
    }

    /* Loading bar at top */
    .progress-bar {
      position: fixed;
      top: 0; left: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      z-index: 200;
      transform-origin: left;
      transform: scaleX(0);
      transition: transform 0.3s;
    }

    /* ===== BACK TO TOP ===== */
    .back-to-top {
      position: fixed;
      bottom: var(--space-8);
      right: var(--space-6);
      width: 44px;
      height: 44px;
      border-radius: var(--radius-lg);
      background: var(--accent);
      color: #fff;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 90;
      opacity: 0;
      transform: translateY(20px);
      pointer-events: none;
      transition: opacity 0.4s, transform 0.4s, background 0.2s, box-shadow 0.2s;
      box-shadow: 0 4px 20px var(--accent-glow);
    }
    .back-to-top.visible {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    .back-to-top:hover {
      background: #6b5ad4;
      transform: translateY(-3px);
      box-shadow: 0 8px 30px var(--accent-glow);
    }

    /* ===== SHIMMER PLACEHOLDER ===== */
    .shimmer-wrap {
      position: relative;
      overflow: hidden;
      background: var(--bg-surface-2);
    }
    .shimmer-wrap::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
      animation: shimmer-slide 1.8s ease-in-out infinite;
    }
    @keyframes shimmer-slide {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }
    .shimmer-wrap img {
      opacity: 0;
      transition: opacity 0.5s ease;
    }
    .shimmer-wrap img.loaded {
      opacity: 1;
    }
    .shimmer-wrap img.loaded + .shimmer-wrap::after,
    .shimmer-wrap:has(img.loaded)::after {
      display: none;
    }

    /* ===== SKILLS SHOWCASE ===== */
    #skills { background: var(--bg-surface); }

    .skills-row-layout {
      display: grid;
      grid-template-columns: 320px 1fr;
      gap: var(--space-20);
      align-items: start;
      margin-top: var(--space-12);
    }

    .skills-text-side {
      position: sticky;
      top: 6rem;
    }
    .skills-text-side .skills-eyebrow {
      font-size: var(--text-xs);
      font-weight: 600;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-family: var(--font-mono);
      margin-bottom: var(--space-3);
    }
    .skills-text-side h3 {
      font-size: var(--text-xl);
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--text);
      margin-bottom: var(--space-4);
    }
    .skills-text-side p {
      font-size: var(--text-sm);
      color: var(--text-muted);
      line-height: 1.8;
    }
    .skills-counter {
      display: flex;
      gap: var(--space-6);
      margin-top: var(--space-6);
      padding-top: var(--space-6);
      border-top: 1px solid var(--border);
    }
    .skills-counter .counter-item .counter-num {
      font-size: var(--text-xl);
      font-weight: 800;
      color: var(--text);
      line-height: 1;
    }
    .skills-counter .counter-item .counter-num span { color: var(--accent); }
    .skills-counter .counter-item .counter-label {
      font-size: 10px;
      color: var(--text-faint);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-family: var(--font-mono);
      margin-top: 2px;
    }

    .skills-mosaic {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: var(--space-3);
    }

    .skill-tile {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: var(--space-2);
      padding: var(--space-4) var(--space-2);
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: default;
      position: relative;
      overflow: hidden;
    }

    .skill-tile::before {
      content: '';
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 0.4s;
    }

    .skill-tile:hover {
      transform: translateY(-4px) scale(1.05);
      box-shadow: 0 12px 32px rgba(0,0,0,0.25), 0 0 20px var(--accent-glow);
      border-color: var(--accent);
    }
    .skill-tile:hover::before { opacity: 1; }

    .skill-tile img,
    .skill-tile svg.skill-svg {
      width: 32px;
      height: 32px;
      position: relative;
      z-index: 1;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
    }
    .skill-tile:hover img,
    .skill-tile:hover svg.skill-svg { transform: scale(1.15) rotate(-3deg); }

    .skill-tile .skill-name {
      font-size: 9px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-family: var(--font-mono);
      position: relative;
      z-index: 1;
      text-align: center;
      white-space: nowrap;
    }

    @media (max-width: 768px) {
      .skills-row-layout { grid-template-columns: 1fr; gap: var(--space-8); }
      .skills-text-side { position: static; }
      .skills-mosaic { grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
      .skill-tile { padding: var(--space-3) var(--space-2); }
      .skill-tile img,
      .skill-tile svg.skill-svg { width: 28px; height: 28px; }
    }
    @media (max-width: 480px) {
      .skills-mosaic { grid-template-columns: repeat(3, 1fr); }
    }

    /* ===== PROJECT CARDS ENHANCED ===== */
    .project-body { padding: var(--space-6); }

    .app-icon-display {
      width: 72px;
      height: 72px;
      border-radius: 18px;
      object-fit: cover;
      position: relative;
      z-index: 1;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
      border: none;
    }

    .project-badge { gap: var(--space-2); }

    .store-link {
      display: flex;
      align-items: center;
      text-decoration: none;
      background: rgba(0,0,0,0.65);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: var(--radius-md);
      padding: 4px 8px;
      transition: all var(--transition-interactive);
    }
    .store-link:hover {
      background: rgba(0,0,0,0.85);
      border-color: rgba(255,255,255,0.25);
      transform: scale(1.05);
    }
    .store-link img {
      height: 22px;
      width: auto;
    }

    .expand-hint {
      display: flex;
      align-items: center;
      gap: var(--space-2);
      color: var(--text-faint);
      font-size: var(--text-xs);
      font-family: var(--font-mono);
      transition: color var(--transition-interactive);
    }
    .expand-hint svg {
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .project-card.expanded .expand-hint svg {
      transform: rotate(180deg);
    }
    .project-card:hover .expand-hint { color: var(--accent); }

    /* ===== EXPANDABLE GALLERY ===== */
    .project-gallery-wrapper {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .project-card.expanded .project-gallery-wrapper {
      grid-template-rows: 1fr;
    }

    .project-gallery {
      overflow: hidden;
    }

    .project-gallery-inner {
      padding: 0 var(--space-6) var(--space-6);
      border-top: 1px solid var(--border);
    }

    .gallery-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: var(--space-4) 0 var(--space-3);
    }
    .gallery-title {
      font-size: var(--text-xs);
      font-weight: 600;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-family: var(--font-mono);
    }
    .gallery-nav {
      display: flex;
      gap: var(--space-2);
    }
    .gallery-nav-btn {
      width: 32px; height: 32px;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      background: var(--bg-surface-2);
      color: var(--text-muted);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      font-size: 14px;
    }
    .gallery-nav-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--accent-dim);
    }

    .gallery-scroll {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      gap: var(--space-3);
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: var(--accent) var(--bg-surface-2);
      padding-bottom: var(--space-3);
      scroll-behavior: smooth;
    }
    .gallery-scroll::-webkit-scrollbar { height: 4px; }
    .gallery-scroll::-webkit-scrollbar-track { background: var(--bg-surface-2); border-radius: 2px; }
    .gallery-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

    .gallery-item {
      flex: 0 0 auto;
      width: 180px;
      scroll-snap-align: start;
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid var(--border);
      background: var(--bg-surface-2);
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
      cursor: pointer;
      position: relative;
      z-index: 1;
    }
    .gallery-item:hover {
      box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px var(--accent-glow);
      z-index: 10;
      border-color: var(--accent);
    }
    .gallery-item img {
      width: 100%;
      height: auto;
      object-fit: cover;
      display: block;
      transition: filter 0.4s;
    }
    .gallery-item:hover img {
      filter: brightness(1.08);
    }

    /* Gallery scroll & nav prevent card collapse */
    .gallery-scroll,
    .gallery-nav-btn,
    .gallery-item {
      pointer-events: auto;
    }

    /* Hail dual-app split */
    .hail-split {
      display: flex;
      gap: var(--space-6);
      padding: 0 var(--space-6) var(--space-6);
      border-top: 1px solid var(--border);
    }
    .hail-app-section {
      flex: 1;
    }
    .hail-app-label {
      font-size: var(--text-xs);
      font-weight: 700;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-family: var(--font-mono);
      padding: var(--space-4) 0 var(--space-3);
      display: flex;
      align-items: center;
      gap: var(--space-2);
    }
    .hail-app-label .hail-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--accent);
    }

    @media (max-width: 768px) {
      .gallery-item { width: 150px; }
      .hail-split { flex-direction: column; gap: var(--space-4); }
    }

    @media (max-width: 480px) {
      .gallery-item { width: 130px; }
    }

    /* ===== LIGHTBOX OVERLAY ===== */
    #lightbox {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    #lightbox.open {
      opacity: 1;
      pointer-events: auto;
    }
    .lb-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(5, 4, 10, 0.92);
      backdrop-filter: blur(20px) saturate(0.6);
      -webkit-backdrop-filter: blur(20px) saturate(0.6);
    }
    .lb-inner {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      width: 100%;
      max-width: 480px;
      padding: 0 20px;
    }

    /* Top bar */
    .lb-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
    }
    .lb-title {
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      color: var(--text-muted);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .lb-counter {
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      color: var(--accent);
      font-weight: 600;
      letter-spacing: 0.1em;
    }
    .lb-close {
      width: 36px; height: 36px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.06);
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .lb-close:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); transform: rotate(90deg); }

    /* Phone frame + image stage */
    .lb-stage {
      position: relative;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
    }
    .lb-phone {
      width: min(280px, 72vw);
      aspect-ratio: 9/19.5;
      background: #0c0c0e;
      border-radius: 38px;
      border: 2px solid rgba(255,255,255,0.1);
      box-shadow:
        0 0 0 6px rgba(255,255,255,0.04),
        0 40px 100px rgba(0,0,0,0.8),
        0 0 60px var(--accent-glow);
      overflow: hidden;
      position: relative;
      flex-shrink: 0;
    }
    /* Notch */
    .lb-phone::before {
      content: '';
      position: absolute;
      top: 12px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px; height: 8px;
      background: #0c0c0e;
      border-radius: 4px;
      z-index: 10;
      box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
    }
    .lb-img-wrap {
      width: 100%;
      height: 100%;
      overflow: hidden;
      position: relative;
    }
    .lb-img-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      display: block;
      transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
      will-change: transform, opacity;
    }
    .lb-img-wrap img.slide-exit-left  { transform: translateX(-100%); opacity: 0; }
    .lb-img-wrap img.slide-exit-right { transform: translateX(100%);  opacity: 0; }
    .lb-img-wrap img.slide-enter-left { transform: translateX(100%);  opacity: 0; }
    .lb-img-wrap img.slide-enter-right{ transform: translateX(-100%); opacity: 0; }
    .lb-img-wrap img.slide-active     { transform: translateX(0);     opacity: 1; }

    /* Arrow buttons */
    .lb-arrow {
      width: 44px; height: 44px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.07);
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      flex-shrink: 0;
      backdrop-filter: blur(8px);
    }
    .lb-arrow:hover {
      background: var(--accent);
      border-color: var(--accent);
      transform: scale(1.1);
      box-shadow: 0 0 20px var(--accent-glow);
    }
    .lb-arrow:active { transform: scale(0.95); }
    .lb-arrow svg { pointer-events: none; }

    /* Dot indicators */
    .lb-dots {
      display: flex;
      gap: 6px;
      align-items: center;
    }
    .lb-dot {
      width: 6px; height: 6px;
      border-radius: 3px;
      background: rgba(255,255,255,0.2);
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .lb-dot.active {
      width: 22px;
      background: var(--accent);
      box-shadow: 0 0 8px var(--accent-glow);
    }
    .lb-dot:hover:not(.active) { background: rgba(255,255,255,0.4); }

    /* Swipe hint */
    .lb-hint {
      font-family: var(--font-mono);
      font-size: 12px;
      color: #9e91f8;
      letter-spacing: 0.06em;
    }

    /* Phone entry animation */
    @keyframes lb-phone-in {
      from { transform: scale(0.82) translateY(20px); opacity: 0; }
      to   { transform: scale(1) translateY(0); opacity: 1; }
    }
    #lightbox.open .lb-phone {
      animation: lb-phone-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    @keyframes lb-ui-in {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    #lightbox.open .lb-topbar,
    #lightbox.open .lb-dots,
    #lightbox.open .lb-hint {
      animation: lb-ui-in 0.4s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    /* gallery-item hover — just glow, no scale */
    .gallery-item { cursor: zoom-in; }

    /* ===== TOP RATED BADGE ===== */
    .top-rated-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
      margin-left: var(--space-2);
      vertical-align: middle;
    }
    .top-rated-icon {
      height: 20px;
      width: auto;
      display: none;
      vertical-align: middle;
    }
    .top-rated-text {
      font-size: var(--text-xs);
      font-weight: 600;
      color: var(--text);
      font-family: var(--font-body);
      letter-spacing: 0.01em;
    }
    [data-theme="dark"] .top-rated-dark { display: inline-block; }
    [data-theme="light"] .top-rated-light { display: inline-block; }

    /* ===== ENHANCED TESTIMONIALS ===== */
    @supports (grid-template-rows: masonry) {
      .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
        grid-template-rows: masonry;
        gap: var(--space-6);
      }
    }
    .testimonial-card {
      break-inside: avoid;
      margin-bottom: var(--space-6);
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-2xl);
      padding: var(--space-6);
      position: relative;
      overflow: hidden;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                  box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                  border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .testimonial-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      opacity: 0;
      transition: opacity 0.4s;
    }
    .testimonial-card:hover::before { opacity: 1; }
    .testimonial-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 24px 64px rgba(0,0,0,0.25), 0 0 0 1px var(--border-strong), 0 0 40px var(--accent-glow);
      border-color: rgba(124,106,245,0.3);
    }

    .testimonial-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      position: relative;
      box-shadow: 0 4px 12px var(--accent-glow);
    }
    .testimonial-avatar::after {
      content: '✓';
      position: absolute;
      bottom: -2px;
      right: -2px;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--green);
      color: #fff;
      font-size: 9px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid var(--bg-card);
      z-index: 2;
    }

    .testimonial-text {
      font-size: var(--text-sm);
      color: var(--text-muted);
      line-height: 1.85;
      margin: 0;
      font-style: italic;
      position: relative;
      letter-spacing: 0.01em;
    }

    .testimonial-quote-icon {
      color: var(--accent);
      margin-bottom: var(--space-3);
      opacity: 0.6;
      transition: opacity 0.3s;
    }
    .testimonial-card:hover .testimonial-quote-icon { opacity: 1; }

    .testimonial-tag {
      font-size: 10px;
      font-family: var(--font-mono);
      font-weight: 500;
      padding: 3px 10px;
      border-radius: var(--radius-full);
      border: 1px solid rgba(124,106,245,0.2);
      color: var(--accent);
      background: var(--accent-dim);
      letter-spacing: 0.04em;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .testimonial-card:hover .testimonial-tag {
      border-color: rgba(124,106,245,0.45);
      background: rgba(124,106,245,0.14);
      transform: translateY(-1px);
    }

    .rating-value {
      font-size: 15px;
      font-weight: 800;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 4px;
      background: rgba(250, 204, 21, 0.08);
      padding: 2px 8px;
      border-radius: var(--radius-full);
      border: 1px solid rgba(250, 204, 21, 0.15);
    }

    @media (max-width: 768px) {
      .testimonials-grid {
        column-count: 1;
      }
    }
