    :root {
      --primary: #3482FF;
      --primary-dark: #1A5FD4;
      --accent: #8B5CF6;
      --bg: #F7F7F7;
      --surface: rgba(255, 255, 255, 0.78);
      --surface-border: rgba(0, 0, 0, 0.06);
      --surface-container: #FFFFFF;
      --text-primary: #000000;
      --text-secondary: #8C93B0;
      --text-tertiary: #A9A9A9;
      --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
      --blur-amount: 20px;
      --nav-height: 56px;
      --radius-sm: 12px;
      --radius-md: 16px;
      --radius-lg: 20px;
    }

    [data-theme="dark"] {
      --primary: #277AF7;
      --primary-dark: #1A6AE0;
      --accent: #A78BFA;
      --bg: #000000;
      --surface: rgba(36, 36, 36, 0.82);
      --surface-border: rgba(255, 255, 255, 0.06);
      --surface-container: #242424;
      --text-primary: #E6FFFFFF;
      --text-secondary: #787E96;
      --text-tertiary: #737373;
      --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

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

    html {
      scroll-padding-top: var(--nav-height);
    }

    body {
      font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg);
      color: var(--text-primary);
      line-height: 1.6;
      overflow-x: hidden;
      transition: background 0.4s ease, color 0.4s ease;
    }

    ::selection {
      background: var(--primary);
      color: white;
    }

    /* ─── Scrollbar ─── */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 3px; }

    /* ─── Noise Overlay ─── */
    .noise {
      position: fixed;
      inset: 0;
      z-index: 10001;
      pointer-events: none;
      opacity: 0.03;
      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)'/%3E%3C/svg%3E");
      background-repeat: repeat;
      background-size: 256px 256px;
    }

    /* ─── Orb Background ─── */
    .orbs {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.15;
      animation: orbFloat 20s ease-in-out infinite;
    }

    .orb:nth-child(1) {
      width: 600px; height: 600px;
      background: var(--primary);
      top: -10%; left: -5%;
      animation-delay: 0s;
    }
    .orb:nth-child(2) {
      width: 500px; height: 500px;
      background: var(--accent);
      bottom: -5%; right: -5%;
      animation-delay: -7s;
    }
    .orb:nth-child(3) {
      width: 400px; height: 400px;
      background: #06D6A0;
      top: 50%; left: 50%;
      animation-delay: -14s;
    }

    @keyframes orbFloat {
      0%, 100% { transform: translate(0, 0) scale(1); }
      25% { transform: translate(60px, -80px) scale(1.1); }
      50% { transform: translate(-40px, 60px) scale(0.95); }
      75% { transform: translate(80px, 40px) scale(1.05); }
    }

    /* ─── Glass Card ─── */
    .glass {
      background: var(--surface);
      backdrop-filter: blur(var(--blur-amount));
      -webkit-backdrop-filter: blur(var(--blur-amount));
      border: 1px solid var(--surface-border);
      border-radius: var(--radius-md);
      box-shadow: var(--card-shadow);
      transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
    }

    .glass:hover {
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }

    /* ─── Navigation ─── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      height: var(--nav-height);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.4s ease, backdrop-filter 0.4s ease;
    }

    nav.scrolled {
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(30px);
      -webkit-backdrop-filter: blur(30px);
      border-bottom: 1px solid var(--surface-border);
    }

    [data-theme="dark"] nav.scrolled {
      background: rgba(0, 0, 0, 0.88);
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      max-width: 1100px;
      padding: 0 24px;
    }

    .nav-logo {
      font-size: 18px;
      font-weight: 700;
      color: var(--primary);
      letter-spacing: -0.5px;
    }

    .nav-links {
      display: flex;
      gap: 8px;
      list-style: none;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--text-secondary);
      font-size: 14px;
      font-weight: 500;
      padding: 8px 16px;
      border-radius: 10px;
      transition: all 0.25s ease;
      position: relative;
    }

    .nav-links a:hover,
    .nav-links a.active {
      color: var(--primary);
      background: rgba(52, 130, 255, 0.08);
    }

    .theme-toggle {
      background: none;
      border: none;
      color: var(--text-secondary);
      font-size: 20px;
      cursor: pointer;
      padding: 8px;
      border-radius: 10px;
      transition: all 0.25s ease;
      line-height: 1;
    }

    .theme-toggle:hover {
      color: var(--primary);
      background: rgba(52, 130, 255, 0.08);
    }

    /* ─── Contrast Reveal Blob ─── */
    :root {
      --blob-bg: rgba(0, 0, 0, 0.85);
      --blob-text: rgba(255, 255, 255, 0.92);
      --blob-accent: #8B5CF6;
    }

    [data-theme="dark"] {
      --blob-bg: rgba(255, 255, 255, 0.85);
      --blob-text: rgba(0, 0, 0, 0.92);
      --blob-accent: #A78BFA;
    }

    .hero-blob {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      z-index: 0;
    }

    .blob-pattern {
      position: absolute;
      inset: -60%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0;
    }

    .pattern-row {
      display: flex;
      flex-wrap: nowrap;
      white-space: nowrap;
      font-size: clamp(56px, 8vw, 100px);
      font-weight: 900;
      letter-spacing: clamp(10px, 2vw, 24px);
      line-height: 1.15;
      user-select: none;
      color: var(--primary);
      opacity: 0.055;
    }

    .pattern-row span {
      padding: 0;
    }

    /* Blob mask layer: background + inverted text */
    .blob-mask {
      position: absolute;
      inset: -60%;
      overflow: hidden;
      z-index: 2;
      pointer-events: none;
      will-change: clip-path, transform;
    }

    .blob-mask-inner {
      position: absolute;
      inset: 0;
      background: var(--blob-bg);
      transition: background 0.4s ease;
    }

    .blob-mask .pattern-row {
      color: var(--blob-text);
      opacity: 1;
      text-shadow:
        0 0 40px rgba(255, 255, 255, 0.15),
        0 0 80px rgba(255, 255, 255, 0.05);
    }

    .blob-mask .pattern-row .studio-accent {
      color: var(--blob-accent);
      text-shadow:
        0 0 50px rgba(139, 92, 246, 0.25),
        0 0 100px rgba(139, 92, 246, 0.1);
    }

    /* Blob edge glow */
    .blob-edge {
      position: absolute;
      inset: -60%;
      pointer-events: none;
      z-index: 3;
      will-change: clip-path, transform;
      box-shadow:
        0 0 60px rgba(255, 255, 255, 0.06),
        0 0 30px rgba(52, 130, 255, 0.04);
    }

    [data-mobile] .blob-mask,
    [data-mobile] .blob-edge,
    [data-mobile] .pattern-base,
    [data-mobile] .pattern-reveal {
      display: none !important;
    }

    .hero-title-shift {
      transition: transform 0.08s ease-out;
      will-change: transform;
    }

    .hero p {
      transition: transform 0.1s ease-out;
    }

    /* ─── Hero ─── */
    .hero {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 100px 24px 60px;
    }

    .hero-content {
      position: relative;
      z-index: 5;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .hero-avatar {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 48px;
      color: white;
      font-weight: 700;
      margin-bottom: 28px;
      animation: avatarPulse 4s ease-in-out infinite;
      box-shadow: 0 0 60px rgba(52, 130, 255, 0.2);
    }

    @keyframes avatarPulse {
      0%, 100% { box-shadow: 0 0 40px rgba(52, 130, 255, 0.2); }
      50% { box-shadow: 0 0 80px rgba(52, 130, 255, 0.35); }
    }

    .hero h1 {
      font-size: clamp(40px, 6vw, 72px);
      font-weight: 700;
      letter-spacing: -1.5px;
      margin-bottom: 12px;
      background: linear-gradient(135deg, var(--text-primary), var(--primary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero p {
      font-size: clamp(16px, 2vw, 22px);
      color: var(--text-secondary);
      max-width: 540px;
      font-weight: 400;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 20px;
      border-radius: 100px;
      font-size: 14px;
      font-weight: 500;
      color: var(--primary);
      background: rgba(52, 130, 255, 0.1);
      margin-bottom: 24px;
      border: 1px solid rgba(52, 130, 255, 0.15);
    }

    .hero-badge .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #22C55E;
      animation: dotPulse 2s ease-in-out infinite;
    }

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

    .hero-actions {
      display: flex;
      gap: 12px;
      margin-top: 8px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 40px;
      padding: 13px 24px;
      border-radius: 16px;
      font-size: 16px;
      font-weight: 500;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.25s ease;
      border: none;
    }

    .btn-primary {
      background: var(--primary);
      color: white;
    }

    .btn-primary:hover {
      background: var(--primary-dark);
    }

    .btn-glass {
      background: var(--surface);
      backdrop-filter: blur(var(--blur-amount));
      -webkit-backdrop-filter: blur(var(--blur-amount));
      border: 1px solid var(--surface-border);
      color: var(--text-primary);
    }

    .btn-glass:hover {
      background: rgba(52, 130, 255, 0.06);
    }

    /* ─── Scroll-Down Button ─── */
    .scroll-btn {
      position: absolute;
      bottom: 36px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      z-index: 20;
      border: none;
      background: none;
      padding: 0;
      color: var(--text-tertiary);
      transition: all 0.4s ease;
    }

    .scroll-btn:hover {
      color: var(--primary);
    }

    .scroll-btn.hidden {
      opacity: 0;
      pointer-events: none;
      transform: translateX(-50%) translateY(20px);
    }

    .scroll-btn-icon {
      position: relative;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 2px solid currentColor;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .scroll-btn:hover .scroll-btn-icon {
      background: var(--primary);
      border-color: var(--primary);
      color: white;
      box-shadow: 0 0 30px rgba(52, 130, 255, 0.3);
    }

    .scroll-btn-icon svg {
      width: 18px;
      height: 18px;
      animation: btnArrow 1.8s ease-in-out infinite;
    }

    @keyframes btnArrow {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(4px); }
    }

    .scroll-btn-label {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.5px;
      transition: color 0.3s ease;
    }

    /* ─── Sections (Card Style) ─── */
    section.hero {
      position: relative;
      z-index: 1;
      padding: 100px 24px 60px;
    }

    section:not(.hero) {
      position: relative;
      z-index: 1;
      padding: 60px 24px;
      margin: 0 auto 48px;
      max-width: 1148px;
      background: var(--surface-container);
      border-radius: 28px;
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    [data-theme="dark"] section:not(.hero) {
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.15);
    }

    .section-inner {
      max-width: 1100px;
      margin: 0 auto;
    }

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

    .section-header h2 {
      font-size: clamp(28px, 4vw, 32px);
      font-weight: 700;
      letter-spacing: -0.5px;
      margin-bottom: 8px;
    }

    .section-header p {
      color: var(--text-secondary);
      font-size: 16px;
      max-width: 480px;
      margin: 0 auto;
    }

    .section-label {
      display: inline-block;
      padding: 4px 14px;
      border-radius: 100px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--primary);
      background: rgba(52, 130, 255, 0.08);
      margin-bottom: 12px;
    }

    /* ─── About ─── */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .about-card {
      padding: 32px;
    }

    .about-card h3 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .about-card p {
      color: var(--text-secondary);
      font-size: 15px;
      line-height: 1.7;
    }

    .about-card .icon {
      font-size: 24px;
    }

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

    .stat-card {
      padding: 20px;
      text-align: center;
    }

    .stat-card .number {
      font-size: 28px;
      font-weight: 700;
      color: var(--primary);
    }

    .stat-card .label {
      font-size: 13px;
      color: var(--text-secondary);
      margin-top: 4px;
    }

    /* ─── Skills ─── */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 20px;
      max-width: 760px;
      margin: 0 auto;
    }

    .skill-card {
      padding: 28px 24px 24px;
      text-align: center;
    }

    .skill-card .skill-icon {
      width: 52px;
      height: 52px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 14px;
      border-radius: 16px;
      background: rgba(52, 130, 255, 0.06);
      color: var(--primary);
      transition: all 0.3s ease;
    }

    .skill-card:hover .skill-icon {
      background: rgba(52, 130, 255, 0.12);
      transform: scale(1.05);
    }

    .skill-card h4 {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 2px;
    }

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

    .skill-bar-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 14px;
    }

    .skill-bar {
      flex: 1;
      height: 5px;
      border-radius: 6px;
      background: rgba(52, 130, 255, 0.08);
      overflow: hidden;
      position: relative;
    }

    .skill-bar-fill {
      height: 100%;
      border-radius: 6px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      width: 0;
      transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .skill-pct {
      font-size: 15px;
      font-weight: 700;
      color: var(--text-secondary);
      min-width: 32px;
      text-align: right;
      font-variant-numeric: tabular-nums;
    }

    /* ─── Timeline / Awards ─── */
    .timeline {
      position: relative;
      padding-left: 32px;
      max-width: 620px;
      margin: 0 auto;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 11px;
      top: 8px;
      bottom: 8px;
      width: 2px;
      background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
      border-radius: 2px;
    }

    .timeline-item {
      position: relative;
      padding: 24px;
      margin-bottom: 16px;
      padding-left: 48px;
    }

    .timeline-item::before {
      content: '';
      position: absolute;
      left: -20px;
      top: 32px;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--primary);
      border: 3px solid var(--bg);
      box-shadow: 0 0 0 2px var(--primary), 0 0 20px rgba(52, 130, 255, 0.15);
      transition: background 0.4s ease, border-color 0.4s ease;
    }

    .timeline-item .date {
      font-size: 12px;
      font-weight: 600;
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .timeline-item h4 {
      font-size: 18px;
      font-weight: 600;
      margin: 4px 0;
    }

    .timeline-item .company {
      color: var(--text-secondary);
      font-size: 14px;
    }

    .timeline-item p {
      color: var(--text-secondary);
      font-size: 14px;
      margin-top: 8px;
      line-height: 1.6;
    }

    /* ─── Projects ─── */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 20px;
    }

    .project-card {
      padding: 24px;
      position: relative;
      overflow: hidden;
    }

    .project-card .project-icon {
      font-size: 32px;
      margin-bottom: 12px;
    }

    .project-card h4 {
      font-size: 17px;
      font-weight: 600;
      margin-bottom: 6px;
    }

    .project-card p {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .project-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 12px;
    }

    .project-tags span {
      padding: 4px 10px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 500;
      background: rgba(52, 130, 255, 0.08);
      color: var(--primary);
    }

    .project-card .glow {
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(52, 130, 255, 0.06), transparent 60%);
      pointer-events: none;
      transition: opacity 0.3s ease;
      opacity: 0;
    }

    .project-card:hover .glow {
      opacity: 1;
    }

    /* ─── Contact ─── */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .contact-info {
      padding: 32px;
    }

    .contact-info h3 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .contact-info p {
      color: var(--text-secondary);
      font-size: 15px;
      line-height: 1.7;
      margin-bottom: 24px;
    }

    .contact-links {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .contact-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px 16px;
      border-radius: 16px;
      text-decoration: none;
      color: var(--text-primary);
      font-size: 14px;
      font-weight: 500;
      transition: all 0.25s ease;
      background: rgba(52, 130, 255, 0.04);
    }

    .contact-link:hover {
      background: rgba(52, 130, 255, 0.1);
      transform: translateX(4px);
    }

    .contact-link .link-icon {
      font-size: 20px;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      background: rgba(52, 130, 255, 0.08);
    }

    .contact-form {
      padding: 32px;
    }

    .contact-form h3 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .form-group {
      margin-bottom: 16px;
    }

    .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 6px;
      color: var(--text-secondary);
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 13px 16px;
      border-radius: 16px;
      border: 1px solid var(--surface-border);
      background: var(--surface);
      color: var(--text-primary);
      font-size: 14px;
      font-family: inherit;
      transition: all 0.25s ease;
      outline: none;
    }

    .form-group input:focus,
    .form-group textarea:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(52, 130, 255, 0.1);
    }

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

    /* ─── Popup Card ─── */
    .popup-overlay {
      position: fixed;
      inset: 0;
      z-index: 10002;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .popup-overlay.show {
      opacity: 1;
      pointer-events: auto;
    }

    .popup-card {
      padding: 32px;
      max-width: 320px;
      width: 90%;
      text-align: center;
      transform: scale(0.9);
      transition: transform 0.3s ease;
      position: relative;
    }

    .popup-overlay.show .popup-card {
      transform: scale(1);
    }

    .popup-card h4 {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .popup-card .popup-value {
      font-size: 20px;
      font-weight: 700;
      color: var(--primary);
      padding: 12px;
      background: rgba(52, 130, 255, 0.06);
      border-radius: 12px;
      margin: 12px 0 16px;
      word-break: break-all;
      user-select: all;
    }

    .popup-card .popup-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 40px;
      padding: 10px 24px;
      border-radius: 16px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      border: none;
      transition: all 0.25s ease;
      text-decoration: none;
      width: 100%;
    }

    .popup-card .popup-btn-primary {
      background: var(--primary);
      color: white;
    }

    .popup-card .popup-btn-primary:hover {
      background: var(--primary-dark);
    }

    .popup-card .popup-btn-glass {
      background: var(--surface);
      border: 1px solid var(--surface-border);
      color: var(--text-primary);
    }

    .popup-card .popup-btn-glass:hover {
      background: rgba(52, 130, 255, 0.06);
    }

    .popup-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: none;
      background: rgba(0, 0, 0, 0.05);
      color: var(--text-secondary);
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.25s ease;
    }

    .popup-close:hover {
      background: rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] .popup-close {
      background: rgba(255, 255, 255, 0.1);
    }

    [data-theme="dark"] .popup-close:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    .popup-toast {
      position: fixed;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      padding: 10px 24px;
      border-radius: 12px;
      background: var(--text-primary);
      color: var(--bg);
      font-size: 14px;
      font-weight: 500;
      z-index: 10003;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .popup-toast.show {
      opacity: 1;
    }

    /* ─── Footer ─── */
    footer {
      position: relative;
      z-index: 1;
      padding: 40px 24px;
      text-align: center;
      border-top: 1px solid var(--surface-border);
    }

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

    footer .social-links {
      display: flex;
      justify-content: center;
      gap: 16px;
      margin-bottom: 16px;
    }

    footer .social-links a {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 18px;
      transition: all 0.25s ease;
      border: 1px solid var(--surface-border);
    }

    footer .social-links a:hover {
      color: var(--primary);
      border-color: var(--primary);
      transform: translateY(-2px);
    }

    /* ─── Animations (Damping Push-Down) ─── */
    .reveal {
      opacity: 0;
      transform: translateY(-60px);
      transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .reveal-left {
      opacity: 0;
      transform: translateX(-40px);
      transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .reveal-left.visible {
      opacity: 1;
      transform: translateX(0);
    }

    .reveal-right {
      opacity: 0;
      transform: translateX(40px);
      transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .reveal-right.visible {
      opacity: 1;
      transform: translateX(0);
    }

    .reveal-scale {
      opacity: 0;
      transform: scale(0.9);
      transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .reveal-scale.visible {
      opacity: 1;
      transform: scale(1);
    }

    /* stagger children */
    .stagger > * {
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
    .stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
    .stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
    .stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
    .stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
    .stagger.visible > *:nth-child(6) { transition-delay: 400ms; }
    .stagger.visible > *:nth-child(7) { transition-delay: 480ms; }

    .stagger.visible > * {
      opacity: 1;
      transform: translateY(0);
    }



    /* ─── Responsive ─── */
    @media (max-width: 768px) {
      .about-grid { grid-template-columns: 1fr; }
      .contact-grid { grid-template-columns: 1fr; }
      .projects-grid { grid-template-columns: 1fr; }
      .about-stats { grid-template-columns: repeat(3, 1fr); }
      .nav-links { display: none; }
      .hero { padding-top: 80px; }
      #journey .section-inner > div:last-child { grid-template-columns: 1fr !important; }
    }

    @media (max-width: 480px) {
      .about-stats { grid-template-columns: 1fr; }
      .hero-avatar { width: 80px; height: 80px; font-size: 32px; }
    }
