:root {
      --rk-bg: #050505; --rk-bg2: #111111; --rk-accent: #D61B1B; --rk-accent2: #FF3B3B;
      --rk-gold: #C9A84C; --rk-text: #FFFFFF; --rk-text2: #AFAFAF;
      --rk-border: rgba(255,255,255,0.08); --rk-glass: rgba(255,255,255,0.05);
      --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
      --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
      --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { font-family: 'Inter', sans-serif; background: var(--rk-bg); color: var(--rk-text); overflow-x: hidden; line-height: 1.6; }
    ::selection { background: rgba(214, 27, 27, 0.3); color: white; }
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--rk-bg); }
    ::-webkit-scrollbar-thumb { background: var(--rk-accent); border-radius: 3px; }

    #loading-screen { position: fixed; inset: 0; z-index: 9999; background: #050505; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo); }
    #loading-screen.hidden { opacity: 0; pointer-events: none; transform: scale(1.1); }
    .load-logo { width: 100px; height: 100px; margin-bottom: 24px; animation: loadPulse 2s ease-in-out infinite; }
    @keyframes loadPulse { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }
    .load-text { font-size: 14px; color: #AFAFAF; letter-spacing: 6px; text-transform: uppercase; font-family: 'Space Grotesk'; animation: textPulse 1.5s ease-in-out infinite; }
    @keyframes textPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
    .load-bar-container { margin-top: 20px; width: 200px; height: 2px; background: rgba(255,255,255,0.08); border-radius: 1px; overflow: hidden; }
    .load-bar { height: 100%; background: linear-gradient(90deg, #D61B1B, #FF3B3B); border-radius: 1px; transition: width 0.3s ease; }
    .load-percent { margin-top: 12px; font-size: 12px; color: #666; font-family: 'Orbitron'; letter-spacing: 2px; }

    #ember-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.6; }

    .navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; background: transparent; transition: all 0.4s var(--ease-smooth); transform: translateY(-100%); animation: navSlideDown 0.8s var(--ease-out-expo) 2.8s forwards; }
    @keyframes navSlideDown { to { transform: translateY(0); } }
    .navbar.scrolled { background: rgba(5,5,5,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
    .nav-logo-img-wrap {
      position: relative;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .nav-logo-img-wrap img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #D61B1B;
      box-shadow: 0 0 16px rgba(214,27,27,0.35);
      transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-smooth);
      position: relative;
      z-index: 2;
    }
    .nav-logo:hover .nav-logo-img-wrap img {
      transform: scale(1.15) rotate(5deg);
      box-shadow: 0 0 30px rgba(214,27,27,0.5);
    }
    .nav-logo-ring {
      position: absolute;
      inset: -4px;
      border: 1px solid rgba(214,27,27,0.3);
      border-radius: 50%;
      opacity: 0;
      transform: scale(0.8);
      transition: all 0.5s var(--ease-spring);
      z-index: 1;
    }
    .nav-logo:hover .nav-logo-ring {
      opacity: 1;
      transform: scale(1.2);
      animation: navRingPulse 1.5s ease-in-out infinite;
    }
    @keyframes navRingPulse {
      0%, 100% { box-shadow: 0 0 0 rgba(214,27,27,0); border-color: rgba(214,27,27,0.3); }
      50% { box-shadow: 0 0 15px rgba(214,27,27,0.3); border-color: rgba(214,27,27,0.6); }
    }
    .nav-logo-name {
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 2px;
      color: #fff;
      transition: all 0.4s var(--ease-smooth);
    }
    .nav-logo:hover .nav-logo-name {
      letter-spacing: 3px;
      text-shadow: 0 0 20px rgba(214,27,27,0.3);
    }
    .nav-logo-tag {
      font-size: 10px;
      color: #AFAFAF;
      letter-spacing: 3px;
      transition: all 0.4s var(--ease-smooth);
    }
    .nav-logo:hover .nav-logo-tag {
      color: #D61B1B;
      letter-spacing: 4px;
    }
    .nav-links { display: flex; gap: 32px; align-items: center; }
    .nav-links a { font-size: 13px; color: #AFAFAF; text-decoration: none; letter-spacing: 1px; transition: color 0.3s, transform 0.3s var(--ease-spring); position: relative; font-family: 'Space Grotesk'; }
    .nav-links a:hover { color: #D61B1B; transform: translateY(-2px); }
    .nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 1px; background: linear-gradient(90deg, #D61B1B, #FF3B3B); transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo); }
    .nav-links a:hover::after { width: 100%; left: 0; }
    .nav-cta { padding: 10px 24px; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; font-size: 12px; font-weight: 500; color: #fff; text-decoration: none; letter-spacing: 1px; transition: all 0.4s var(--ease-spring); background: rgba(255,255,255,0.03); font-family: 'Space Grotesk'; position: relative; overflow: hidden; }
    .nav-cta::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(214,27,27,0.2), transparent); transition: left 0.6s var(--ease-smooth); }
    .nav-cta:hover::before { left: 100%; }
    .nav-cta:hover { border-color: rgba(214,27,27,0.5); box-shadow: 0 0 20px rgba(214,27,27,0.2); transform: translateY(-2px) scale(1.02); }
    .mobile-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; }
    .mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(5,5,5,0.95); backdrop-filter: blur(20px); padding: 20px 32px; border-top: 1px solid rgba(255,255,255,0.05); }
    .mobile-menu.active { display: block; animation: menuSlide 0.4s var(--ease-out-expo); }
    @keyframes menuSlide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    .mobile-menu a { display: block; padding: 12px 0; color: #AFAFAF; text-decoration: none; font-size: 14px; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: color 0.3s, padding-left 0.3s var(--ease-out-expo); }
    .mobile-menu a:hover { color: #D61B1B; padding-left: 10px; }
    .mobile-menu a:last-child { border-bottom: none; }

    .section { position: relative; padding: 120px 64px; z-index: 1; }
    .section-inner { max-width: 1400px; margin: 0 auto; }
    .section-subtitle { font-size: 12px; color: #D61B1B; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 12px; font-family: 'Space Grotesk'; font-weight: 500; }
    .section-title { font-family: 'Orbitron'; font-size: clamp(28px, 4vw, 48px); font-weight: 700; color: #fff; letter-spacing: 2px; text-transform: uppercase; }

    .hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 48px 64px 80px; overflow: hidden; }
    .hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 70% 50%, rgba(214,27,27,0.08) 0%, transparent 60%), radial-gradient(ellipse at 30% 80%, rgba(255,59,59,0.05) 0%, transparent 50%), linear-gradient(180deg, #050505 0%, #0a0a0a 50%, #050505 100%); }
    .hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 300px; background: linear-gradient(to top, #050505, transparent); }
    .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1400px; margin: 0 auto; width: 100%; }
    .hero-label { font-size: 12px; color: #D61B1B; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; font-family: 'Space Grotesk'; }
    .hero-name { font-family: 'Orbitron'; font-size: clamp(48px, 8vw, 96px); font-weight: 700; line-height: 0.95; letter-spacing: -2px; }
    .hero-name span { display: block; }
    .hero-name .red { background: linear-gradient(135deg, #D61B1B, #FF3B3B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

    .hero-desc { 
      font-size: 16px; color: #AFAFAF; line-height: 1.7; margin-top: 24px; max-width: 480px;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.8s var(--ease-out-expo) 0.6s;
    }
    .hero-left.visible .hero-desc {
      opacity: 1;
      transform: translateY(0);
    }
    .hero-btns { 
      margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.8s var(--ease-out-expo) 0.8s;
    }
    .hero-left.visible .hero-btns {
      opacity: 1;
      transform: translateY(0);
    }
    .btn-primary { padding: 14px 32px; background: linear-gradient(135deg, #D61B1B, #FF3B3B); color: #fff; text-decoration: none; border-radius: 8px; font-size: 13px; font-weight: 600; letter-spacing: 1px; transition: all 0.4s var(--ease-spring); border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: 'Space Grotesk'; text-transform: uppercase; box-shadow: 0 4px 20px rgba(214,27,27,0.3); position: relative; overflow: hidden; }
    .btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent); opacity: 0; transition: opacity 0.4s; }
    .btn-primary:hover::after { opacity: 1; }
    .btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 40px rgba(214,27,27,0.5); }
    .btn-primary:active { transform: translateY(-1px) scale(0.98); }
    .btn-outline { padding: 14px 32px; border: 1px solid rgba(255,255,255,0.15); color: #fff; text-decoration: none; border-radius: 8px; font-size: 13px; font-weight: 500; letter-spacing: 1px; transition: all 0.4s var(--ease-spring); background: rgba(255,255,255,0.03); display: inline-flex; align-items: center; gap: 8px; font-family: 'Space Grotesk'; text-transform: uppercase; cursor: pointer; position: relative; overflow: hidden; }
    .btn-outline::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(214,27,27,0.1); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s var(--ease-out-expo), height 0.6s var(--ease-out-expo); }
    .btn-outline:hover::before { width: 300px; height: 300px; }
    .btn-outline:hover { border-color: #D61B1B; box-shadow: 0 0 25px rgba(214,27,27,0.2); transform: translateY(-3px); }
    .hero-scroll { 
      margin-top: 48px; display: flex; align-items: center; gap: 8px; 
      color: #666; font-size: 12px; letter-spacing: 2px; 
      animation: scrollBounce 2s ease-in-out infinite;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.8s var(--ease-out-expo) 1.2s;
    }
    .hero-left.visible .hero-scroll {
      opacity: 1;
      transform: translateY(0);
    }
    @keyframes scrollBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
    /* ========== SCROLL-SCRUBBING HEADER ANIMATION ========== */
    .scroll-anim-section {
      position: relative;
      width: 100%;
      height: 300vh; /* scroll distance that "plays" the sequence */
      z-index: 5;
    }
    .scroll-anim-sticky {
      position: sticky;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #050505;
    }
    #scrollAnimCanvas {
      width: 100%;
      height: 100%;
      display: block;
    }
    .scroll-anim-loader {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      background: #050505;
      z-index: 6;
      transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
    }
    .scroll-anim-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
    .scroll-anim-loader-ring { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(214,27,27,0.2); border-top-color: #D61B1B; animation: spin 0.9s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .scroll-anim-loader-text { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #AFAFAF; font-family: 'Space Grotesk'; }
    .scroll-anim-progress-track { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 160px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 1px; overflow: hidden; z-index: 7; opacity: 0; transition: opacity 0.5s; }
    .scroll-anim-sticky:hover .scroll-anim-progress-track,
    .scroll-anim-section.in-view .scroll-anim-progress-track { opacity: 1; }
    .scroll-anim-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #D61B1B, #FF3B3B); }
    .scroll-anim-hint { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: #AFAFAF; font-family: 'Space Grotesk'; z-index: 7; opacity: 0.7; display: flex; align-items: center; gap: 8px; transition: opacity 0.4s; }
    .scroll-anim-section.at-end .scroll-anim-hint { opacity: 0; }
    @media (max-width: 768px) {
      .scroll-anim-section { height: 250vh; }
      .scroll-anim-progress-track { width: 120px; bottom: 20px; }
      .scroll-anim-hint { bottom: 34px; font-size: 9px; letter-spacing: 2px; }
    }
    /* Mobile: single-viewport autoplay intro instead of a long scroll-scrub section */
    .scroll-anim-section.mobile-mode {
      height: 100vh;
    }
    .scroll-anim-section.mobile-mode .scroll-anim-progress-track,
    .scroll-anim-section.mobile-mode .scroll-anim-hint {
      display: none;
    }
    .hero-profile-box { width: 100%; display: flex; justify-content: center; margin-bottom: 28px; }
    .hero-profile-img { width: 220px; height: 220px; object-fit: contain; background: #0a0a0a; border-radius: 16px; border: 2px solid rgba(214,27,27,0.4); box-shadow: 0 0 30px rgba(214,27,27,0.2); padding: 8px; }
    .hero-site-description { display: flex; flex-direction: column; justify-content: center; padding: 40px 32px; }
    .site-desc-title { font-family: 'Orbitron'; font-size: 15px; color: #D61B1B; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px; }
    .site-desc-text { font-size: 17px; color: #d0d0d0; line-height: 1.9; margin-bottom: 18px; }
    .hero-artwork { position: relative; display: flex; justify-content: center; align-items: center; }
    .hero-artwork-inner { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); background:#0a0a0a; }
    .hero-artwork-inner.hero-site-description { aspect-ratio: auto; overflow: visible; max-width: 520px; background: rgba(255,255,255,0.02); }
    .hero-artwork-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
    .hero-artwork-bg img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
    .hero-artwork-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,5,5,0.9) 100%); z-index: 1; }
    .hero-badge { position: absolute; top: 20px; right: 20px; z-index: 2; width: 40px; height: 40px; border: 1px solid rgba(214,27,27,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
    .hero-ring-1 { position: absolute; top: -20px; right: -20px; width: 100px; height: 100px; border: 1px solid rgba(214,27,27,0.15); border-radius: 50%; }
    .hero-ring-2 { position: absolute; bottom: -30px; left: -30px; width: 150px; height: 150px; border: 1px solid rgba(214,27,27,0.1); border-radius: 50%; }

    .reveal { opacity: 0; transform: translateY(60px) scale(0.95); transition: all 1s var(--ease-out-expo); }
    .reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
    .reveal-left { opacity: 0; transform: translateX(-80px); transition: all 1s var(--ease-out-expo); }
    .reveal-left.visible { opacity: 1; transform: translateX(0); }
    .reveal-right { opacity: 0; transform: translateX(80px); transition: all 1s var(--ease-out-expo); align-self: start; }
    .reveal-right.visible { opacity: 1; transform: translateX(0); }
    .reveal-scale { opacity: 0; transform: scale(0.7); transition: all 1s var(--ease-spring); }
    .reveal-scale.visible { opacity: 1; transform: scale(1); }
    .reveal-rotate { opacity: 0; transform: rotate(-10deg) scale(0.9); transition: all 1s var(--ease-spring); }
    .reveal-rotate.visible { opacity: 1; transform: rotate(0) scale(1); }
    .reveal-blur { opacity: 0; filter: blur(20px); transform: translateY(40px); transition: all 1.2s var(--ease-out-expo); }
    .reveal-blur.visible { opacity: 1; filter: blur(0); transform: translateY(0); }
    .reveal-flip { opacity: 0; transform: perspective(1000px) rotateY(90deg); transition: all 1.2s var(--ease-out-expo); }
    .reveal-flip.visible { opacity: 1; transform: perspective(1000px) rotateY(0); }

    .stagger-children > * { opacity: 0; transform: translateY(30px); }
    .stagger-children.visible > *:nth-child(1) { animation: staggerIn 0.6s var(--ease-out-expo) 0.0s forwards; }
    .stagger-children.visible > *:nth-child(2) { animation: staggerIn 0.6s var(--ease-out-expo) 0.1s forwards; }
    .stagger-children.visible > *:nth-child(3) { animation: staggerIn 0.6s var(--ease-out-expo) 0.2s forwards; }
    .stagger-children.visible > *:nth-child(4) { animation: staggerIn 0.6s var(--ease-out-expo) 0.3s forwards; }
    .stagger-children.visible > *:nth-child(5) { animation: staggerIn 0.6s var(--ease-out-expo) 0.4s forwards; }
    .stagger-children.visible > *:nth-child(6) { animation: staggerIn 0.6s var(--ease-out-expo) 0.5s forwards; }
    @keyframes staggerIn { to { opacity: 1; transform: translateY(0); } }

    .tabs-container { position: relative; }
    .tabs-nav { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 16px; }
    .tab-btn { padding: 10px 24px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: #AFAFAF; font-size: 13px; font-weight: 500; letter-spacing: 1px; cursor: pointer; transition: all 0.4s var(--ease-spring); font-family: 'Space Grotesk'; text-transform: uppercase; position: relative; overflow: hidden; }
    .tab-btn:hover { color: #fff; border-color: rgba(255,255,255,0.1); transform: translateY(-2px); }
    .tab-btn.active { color: #D61B1B; border-color: rgba(214,27,27,0.3); background: rgba(214,27,27,0.08); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(214,27,27,0.15); }
    .tab-panel { display: none; }
    .tab-panel.active { display: block; animation: tabFadeIn 0.6s var(--ease-out-expo); }
    @keyframes tabFadeIn { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

    .app-showcase { display: flex; flex-direction: column; align-items: center; }
    .app-header-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
    .app-logo-wrap { width: 120px; height: 120px; border-radius: 24px; overflow: hidden; border: 2px solid rgba(214,27,27,0.3); box-shadow: 0 0 40px rgba(214,27,27,0.15); transition: all 0.5s var(--ease-spring); }
    .app-logo-wrap:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 60px rgba(214,27,27,0.3); }
    .app-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
    .app-title-block { text-align: left; }
    .app-title-block h3 { font-family: 'Orbitron'; font-size: 28px; color: #fff; letter-spacing: 2px; }
    .app-title-block .tagline { font-size: 14px; color: #D61B1B; letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; }
    .app-screens-row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; width: 100%; justify-content: center; flex-wrap: wrap; }
    .app-screens-row::-webkit-scrollbar { height: 4px; }
    .app-screens-row::-webkit-scrollbar-track { background: transparent; }
    .app-screens-row::-webkit-scrollbar-thumb { background: rgba(214,27,27,0.3); border-radius: 2px; }
    .app-screen { flex: 0 0 auto; width: 220px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); transition: all 0.6s var(--ease-spring); transform-style: preserve-3d; perspective: 1000px; }
    .app-screen:hover { transform: translateY(-12px) scale(1.05) rotateX(5deg); border-color: rgba(214,27,27,0.4); box-shadow: 0 25px 50px rgba(214,27,27,0.2); }
    .app-screen img { width: 100%; height: auto; display: block; transition: transform 0.6s var(--ease-smooth); }
    .app-screen:hover img { transform: scale(1.05); }

    .game-showcase { display: flex; flex-direction: column; align-items: center; }
    .game-header-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
    .game-title-block { text-align: center; }
    .game-title-block h3 { font-family: 'Orbitron'; font-size: 32px; color: #fff; letter-spacing: 2px; }
    .game-title-block .tagline { font-size: 14px; color: #D61B1B; letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; }
    .game-screens-row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; width: 100%; justify-content: center; flex-wrap: wrap; }
    .game-screens-row::-webkit-scrollbar { height: 4px; }
    .game-screens-row::-webkit-scrollbar-track { background: transparent; }
    .game-screens-row::-webkit-scrollbar-thumb { background: rgba(214,27,27,0.3); border-radius: 2px; }
    .game-screen { flex: 0 0 auto; width: 420px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); transition: all 0.6s var(--ease-spring); transform-style: preserve-3d; perspective: 1000px; }
    .game-screen:hover { transform: translateY(-12px) scale(1.03) rotateY(3deg); border-color: rgba(214,27,27,0.4); box-shadow: 0 25px 50px rgba(214,27,27,0.2); }
    .game-screen img { width: 100%; height: auto; display: block; transition: transform 0.6s var(--ease-smooth); }
    .game-screen:hover img { transform: scale(1.05); }

    .about-tab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1200px; margin: 0 auto; }
    .about-photo-stack { position: relative; display: flex; justify-content: center; }
    .about-photo-main { width: 320px; height: 400px; border-radius: 16px; overflow: hidden; border: 2px solid rgba(214,27,27,0.2); box-shadow: 0 20px 60px rgba(0,0,0,0.5); position: relative; z-index: 2; transition: all 0.6s var(--ease-spring); }
    .about-photo-main:hover { transform: scale(1.03) rotate(-2deg); box-shadow: 0 30px 80px rgba(214,27,27,0.2); }
    .about-photo-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-smooth); }
    .about-photo-main:hover img { transform: scale(1.1); }
    .about-photo-1 { position: absolute; width: 200px; height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); top: -20px; left: -40px; z-index: 1; transform: rotate(-8deg); opacity: 0.6; transition: all 0.6s var(--ease-spring); }
    .about-photo-1:hover { transform: rotate(-5deg) scale(1.05) translateY(-10px); opacity: 0.9; z-index: 3; }
    .about-photo-1 img { width: 100%; height: 100%; object-fit: cover; }
    .about-photo-2 { position: absolute; width: 180px; height: 240px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); bottom: -10px; right: -30px; z-index: 1; transform: rotate(6deg); opacity: 0.5; transition: all 0.6s var(--ease-spring); }
    .about-photo-2:hover { transform: rotate(3deg) scale(1.05) translateY(-10px); opacity: 0.9; z-index: 3; }
    .about-photo-2 img { width: 100%; height: 100%; object-fit: cover; }
    .about-info h3 { font-family: 'Orbitron'; font-size: 32px; color: #fff; letter-spacing: 2px; margin-bottom: 8px; }
    .about-info .location { font-size: 14px; color: #D61B1B; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 6px; }
    .about-info p { font-size: 15px; color: #AFAFAF; line-height: 1.8; margin-bottom: 16px; }
    .about-stats-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
    .about-stat { padding: 16px 24px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; text-align: center; min-width: 100px; transition: all 0.4s var(--ease-spring); cursor: pointer; }
    .about-stat:hover { transform: translateY(-5px) scale(1.05); border-color: rgba(214,27,27,0.3); box-shadow: 0 10px 30px rgba(214,27,27,0.1); }
    .about-stat .num { font-family: 'Orbitron'; font-size: 22px; color: #D61B1B; font-weight: 700; }
    .about-stat .lbl { font-size: 11px; color: #AFAFAF; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
    .showcase-description { margin-top: 44px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.08); max-width: 760px; }
    .showcase-description .short-desc { font-size: 17px; color: #fff; font-weight: 500; line-height: 1.6; margin-bottom: 18px; }
    .showcase-description p { font-size: 15px; color: #AFAFAF; line-height: 1.8; margin-bottom: 14px; }
    .showcase-features-title { font-family: 'Orbitron'; font-size: 14px; color: #D61B1B; letter-spacing: 3px; text-transform: uppercase; margin: 24px 0 16px; }
    .feature-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 0 0 20px; padding: 0; }
    .feature-list li { font-size: 14px; color: #AFAFAF; line-height: 1.5; transition: all 0.3s var(--ease-smooth); padding: 4px 8px; border-radius: 6px; }
    .feature-list li:hover { color: #fff; background: rgba(214,27,27,0.08); transform: translateX(5px); }
    .showcase-cta { color: #fff; font-weight: 500; margin-top: 20px; }
    @media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }

    .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 32px; }
    .project-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; transition: all 0.6s var(--ease-spring); position: relative; transform-style: preserve-3d; perspective: 1000px; }
    .project-card:hover { transform: translateY(-12px) rotateX(2deg); border-color: rgba(214,27,27,0.3); box-shadow: 0 25px 50px rgba(214,27,27,0.15); }
    .project-thumb { height: 220px; background: linear-gradient(135deg, #1a0a0a, #0d0d0d); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
    .project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-smooth); }
    .project-card:hover .project-thumb img { transform: scale(1.1); }
    .project-thumb-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,5,5,0.8), transparent); transition: opacity 0.4s; }
    .project-card:hover .project-thumb-overlay { opacity: 0.6; }
    .project-badge { position: absolute; top: 16px; right: 16px; z-index: 10; padding: 6px 12px; background: rgba(214,27,27,0.15); border: 1px solid rgba(214,27,27,0.3); border-radius: 4px; font-size: 11px; color: #FF3B3B; letter-spacing: 1px; text-transform: uppercase; animation: badgePulse 2s ease-in-out infinite; }
    @keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 rgba(214,27,27,0); } 50% { box-shadow: 0 0 15px rgba(214,27,27,0.3); } }
    .project-content { padding: 24px; }
    .project-title { font-size: 20px; font-weight: 600; margin: 0 0 8px; color: #fff; font-family: 'Orbitron'; }
    .project-subtitle { font-size: 13px; color: #D61B1B; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 12px; }
    .project-desc { font-size: 14px; color: #AFAFAF; line-height: 1.6; margin: 0 0 20px; }
    .project-actions { display: flex; gap: 12px; flex-wrap: wrap; }
    .project-btn { padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: all 0.4s var(--ease-spring); cursor: pointer; border: none; font-family: 'Space Grotesk'; letter-spacing: 0.5px; position: relative; overflow: hidden; }
    .project-btn-primary { background: rgba(214,27,27,0.1); border: 1px solid rgba(214,27,27,0.2); color: #FF3B3B; }
    .project-btn-primary:hover { background: rgba(214,27,27,0.25); transform: translateY(-2px) scale(1.02); box-shadow: 0 5px 20px rgba(214,27,27,0.2); }
    .project-btn-secondary { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #AFAFAF; }
    .project-btn-secondary:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px) scale(1.02); background: rgba(255,255,255,0.08); }

    .skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
    .skills-orbit { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; }
    .orbit-container { position: relative; width: 300px; height: 300px; }
    .orbit-ring { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.05); border-radius: 50%; animation: orbitRotate 30s linear infinite; }
    .orbit-ring-inner { position: absolute; inset: 40px; border: 1px solid rgba(255,255,255,0.03); border-radius: 50%; animation: orbitRotateReverse 25s linear infinite; }
    @keyframes orbitRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    @keyframes orbitRotateReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
    .orbit-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border: 2px solid rgba(214,27,27,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(5,5,5,0.8); z-index: 10; animation: orbitPulse 3s ease-in-out infinite; }
    @keyframes orbitPulse { 0%, 100% { box-shadow: 0 0 20px rgba(214,27,27,0.2); } 50% { box-shadow: 0 0 40px rgba(214,27,27,0.4); } }
    .skill-node { position: absolute; top: 50%; left: 50%; padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; font-size: 12px; color: #AFAFAF; white-space: nowrap; transition: all 0.5s var(--ease-spring); cursor: pointer; font-family: 'Space Grotesk'; letter-spacing: 1px; }
    .skill-node:hover { background: rgba(214,27,27,0.2); border-color: rgba(214,27,27,0.5); color: #fff; box-shadow: 0 0 30px rgba(214,27,27,0.3); transform: translate(-50%, -50%) scale(1.3) !important; z-index: 20; }

    .achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .achieve-card { padding: 24px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; text-align: center; transition: all 0.5s var(--ease-spring); cursor: pointer; }
    .achieve-card:hover { border-color: rgba(214,27,27,0.3); background: rgba(255,255,255,0.05); transform: translateY(-8px) scale(1.05); box-shadow: 0 15px 40px rgba(214,27,27,0.15); }
    .achieve-value { font-size: 28px; font-weight: 700; color: #D61B1B; margin-bottom: 4px; font-family: 'Orbitron'; }
    .achieve-label { font-size: 11px; color: #AFAFAF; letter-spacing: 1px; }

    .contact-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 48px; transition: all 0.5s var(--ease-spring); }
    .contact-card:hover { border-color: rgba(214,27,27,0.2); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .form-group { margin-bottom: 0; }
    .form-label { display: block; font-size: 12px; color: #AFAFAF; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; font-family: 'Space Grotesk'; }
    .form-input { width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 14px; outline: none; transition: all 0.4s var(--ease-spring); font-family: 'Inter'; }
    .form-input::placeholder { color: rgba(255,255,255,0.2); }
    .form-input:focus { border-color: rgba(214,27,27,0.5); box-shadow: 0 0 25px rgba(214,27,27,0.15); transform: translateY(-2px); background: rgba(255,255,255,0.05); }
    textarea.form-input { resize: vertical; min-height: 120px; }
    .form-submit { padding: 16px 32px; background: linear-gradient(135deg, #D61B1B, #FF3B3B); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: all 0.4s var(--ease-spring); font-family: 'Space Grotesk'; text-transform: uppercase; box-shadow: 0 4px 20px rgba(214,27,27,0.3); position: relative; overflow: hidden; }
    .form-submit::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.6s var(--ease-smooth); }
    .form-submit:hover::after { left: 100%; }
    .form-submit:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 40px rgba(214,27,27,0.5); }
    .form-submit:active { transform: translateY(-1px) scale(0.98); }
    .social-links { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
    .social-link { display: flex; align-items: center; gap: 8px; color: #AFAFAF; text-decoration: none; font-size: 13px; transition: all 0.4s var(--ease-spring); font-family: 'Space Grotesk'; padding: 8px 16px; border-radius: 8px; }
    .social-link:hover { color: #D61B1B; transform: translateY(-3px) scale(1.05); background: rgba(214,27,27,0.08); }
    .social-link svg { transition: transform 0.4s var(--ease-spring); }
    .social-link:hover svg { transform: scale(1.2) rotate(10deg); }

    .footer { position: relative; padding: 48px 64px; border-top: 1px solid rgba(255,255,255,0.06); z-index: 1; }
    .footer-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
    .footer-social { display: flex; gap: 20px; }
    .footer-social a { color: #666; transition: all 0.4s var(--ease-spring); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
    .footer-social a:hover { color: #D61B1B; background: rgba(214,27,27,0.1); transform: translateY(-3px) scale(1.1); }
    .footer-copy { font-size: 12px; color: #666; }

    .noise-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; 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='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); }

    @keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
    @keyframes aboutFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.05); } }

    .img-reveal { position: relative; overflow: hidden; }
    .img-reveal::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #D61B1B, #FF3B3B); transform: translateX(-101%); transition: transform 0.8s var(--ease-out-expo); }
    .img-reveal.visible::after { transform: translateX(101%); }
    .img-reveal img { transform: scale(1.2); transition: transform 1.2s var(--ease-out-expo) 0.3s; }
    .img-reveal.visible img { transform: scale(1); }

    .glitch-text { position: relative; }
    .glitch-text::before, .glitch-text::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    .glitch-text::before { left: 2px; text-shadow: -1px 0 #D61B1B; clip: rect(24px, 550px, 90px, 0); animation: glitch-anim-1 3s infinite linear alternate-reverse; }
    .glitch-text::after { left: -2px; text-shadow: -1px 0 #FF3B3B; clip: rect(85px, 550px, 140px, 0); animation: glitch-anim-2 2.5s infinite linear alternate-reverse; }

    /* Text scramble effect */
    .scramble-text {
      display: inline-block;
      min-width: 1ch;
    }
    .scramble-text.scrambling {
      animation: none !important;
    }
    .scramble-text.scrambling::before,
    .scramble-text.scrambling::after {
      display: none;
    }

    /* Typing cursor effect */
    .typing-cursor {
      position: relative;
      display: inline-block;
    }
    .typing-cursor::after {
      content: '|';
      position: absolute;
      right: -8px;
      color: #D61B1B;
      animation: cursorBlink 0.8s step-end infinite;
    }
    @keyframes cursorBlink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }

    /* Hero tags stagger animation */
    .hero-tags {
      margin-top: 20px;
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.8s var(--ease-out-expo) 0.5s;
    }
    .hero-left.visible .hero-tags {
      opacity: 1;
      transform: translateY(0);
    }
    .hero-tags span {
      font-size: 13px;
      color: #AFAFAF;
      letter-spacing: 2px;
      text-transform: uppercase;
      opacity: 0;
      transform: translateX(-20px);
      transition: all 0.5s var(--ease-out-expo);
    }
    .hero-left.visible .hero-tags span:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.8s; }
    .hero-left.visible .hero-tags span:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.9s; }
    .hero-left.visible .hero-tags span:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 1.0s; }
    .hero-left.visible .hero-tags span:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 1.1s; }
    .hero-left.visible .hero-tags span:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: 1.2s; }
    .hero-tags .sep { color: #333; }
    .hero-tags span:hover {
      color: #D61B1B;
      text-shadow: 0 0 10px rgba(214,27,27,0.3);
      transform: translateX(5px);
    }
    @keyframes glitch-anim-1 { 0% { clip: rect(20px, 9999px, 15px, 0); } 20% { clip: rect(60px, 9999px, 70px, 0); } 40% { clip: rect(20px, 9999px, 50px, 0); } 60% { clip: rect(10px, 9999px, 80px, 0); } 80% { clip: rect(50px, 9999px, 20px, 0); } 100% { clip: rect(70px, 9999px, 60px, 0); } }
    @keyframes glitch-anim-2 { 0% { clip: rect(10px, 9999px, 80px, 0); } 20% { clip: rect(80px, 9999px, 10px, 0); } 40% { clip: rect(30px, 9999px, 50px, 0); } 60% { clip: rect(60px, 9999px, 30px, 0); } 80% { clip: rect(20px, 9999px, 70px, 0); } 100% { clip: rect(50px, 9999px, 40px, 0); } }

    .shimmer { position: relative; overflow: hidden; }
    .shimmer::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); animation: shimmer 3s infinite; }
    @keyframes shimmer { 0% { left: -100%; } 100% { left: 200%; } }

    /* ========== HEADER SCROLL-ANIM OVERLAYS ========== */
    .header-scanline {
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.05) 2px,
        rgba(0,0,0,0.05) 4px
      );
      z-index: 3;
      pointer-events: none;
      opacity: 0.5;
    }
    .header-vignette {
      position: absolute;
      inset: 0;
      box-shadow: inset 0 0 140px rgba(0,0,0,0.6);
      z-index: 4;
      pointer-events: none;
      transition: box-shadow 1s var(--ease-smooth);
    }
    .scroll-anim-section.in-view .header-vignette {
      box-shadow: inset 0 0 100px rgba(214,27,27,0.12);
    }

    /* ========== PROFILE IMAGE ENHANCED ========== */
    #profile-box {
      position: relative;
      width: 100%;
      display: flex;
      justify-content: center;
      margin-bottom: 28px;
      perspective: 1000px;
      transform-style: preserve-3d;
    }
    .hero-profile-img {
      width: 220px;
      height: 220px;
      object-fit: contain;
      background: #0a0a0a;
      border-radius: 16px;
      border: 2px solid rgba(214,27,27,0.4);
      box-shadow: 0 0 30px rgba(214,27,27,0.2);
      padding: 8px;
      position: relative;
      z-index: 5;
      transition: all 0.6s var(--ease-spring);
      animation: profileFloat 4s ease-in-out infinite;
    }
    @keyframes profileFloat {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      25% { transform: translateY(-8px) rotate(1deg); }
      50% { transform: translateY(-4px) rotate(0deg); }
      75% { transform: translateY(-10px) rotate(-1deg); }
    }
    #profile-box:hover .hero-profile-img {
      transform: scale(1.08) rotateY(5deg) rotateX(-3deg);
      box-shadow: 0 0 50px rgba(214,27,27,0.4), 0 0 100px rgba(214,27,27,0.1);
      border-color: rgba(214,27,27,0.7);
      animation: none;
    }

    /* Profile rings */
    .profile-ring-outer,
    .profile-ring-middle,
    .profile-ring-inner {
      position: absolute;
      border-radius: 50%;
      border: 1px solid;
      pointer-events: none;
      transition: all 0.8s var(--ease-out-expo);
    }
    .profile-ring-outer {
      width: 280px;
      height: 280px;
      border-color: rgba(214,27,27,0.08);
      animation: ringRotate 20s linear infinite;
    }
    .profile-ring-middle {
      width: 260px;
      height: 260px;
      border-color: rgba(214,27,27,0.12);
      animation: ringRotateReverse 15s linear infinite;
    }
    .profile-ring-inner {
      width: 240px;
      height: 240px;
      border-color: rgba(214,27,27,0.18);
      animation: ringRotate 10s linear infinite;
    }
    @keyframes ringRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    @keyframes ringRotateReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

    #profile-box:hover .profile-ring-outer {
      width: 300px; height: 300px;
      border-color: rgba(214,27,27,0.2);
      animation-duration: 8s;
    }
    #profile-box:hover .profile-ring-middle {
      width: 280px; height: 280px;
      border-color: rgba(214,27,27,0.3);
      animation-duration: 6s;
    }
    #profile-box:hover .profile-ring-inner {
      width: 260px; height: 260px;
      border-color: rgba(214,27,27,0.4);
      animation-duration: 4s;
    }

    /* Profile glow effect */
    .profile-glow {
      position: absolute;
      width: 200px;
      height: 200px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(214,27,27,0.15), transparent 70%);
      z-index: 1;
      animation: glowPulse 3s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes glowPulse {
      0%, 100% { transform: scale(1); opacity: 0.6; }
      50% { transform: scale(1.3); opacity: 1; }
    }

    /* Profile particles */
    .profile-particles {
      position: absolute;
      width: 300px;
      height: 300px;
      pointer-events: none;
      z-index: 6;
    }
    .profile-particle {
      position: absolute;
      width: 4px;
      height: 4px;
      background: #D61B1B;
      border-radius: 50%;
      opacity: 0;
      animation: particleFloat 3s ease-in-out infinite;
    }
    @keyframes particleFloat {
      0% { transform: translate(0, 0) scale(0); opacity: 0; }
      20% { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); }
      80% { opacity: 0.5; }
      100% { transform: translate(calc(var(--tx) * 2), calc(var(--ty) * 2)) scale(0); opacity: 0; }
    }

    /* Profile entrance */
    .reveal-scale {
      opacity: 0;
      transform: scale(0.3) rotate(-15deg);
      transition: all 1.2s var(--ease-spring);
    }
    .reveal-scale.visible {
      opacity: 1;
      transform: scale(1) rotate(0deg);
    }
    .reveal-scale.visible .profile-ring-outer {
      animation: ringRotate 20s linear infinite, ringExpand 1s var(--ease-out-expo) 0.5s backwards;
    }
    .reveal-scale.visible .profile-ring-middle {
      animation: ringRotateReverse 15s linear infinite, ringExpand 1s var(--ease-out-expo) 0.7s backwards;
    }
    .reveal-scale.visible .profile-ring-inner {
      animation: ringRotate 10s linear infinite, ringExpand 1s var(--ease-out-expo) 0.9s backwards;
    }
    @keyframes ringExpand {
      from { transform: scale(0); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    @media (max-width: 1024px) {
      .hero-grid { grid-template-columns: 1fr; gap: 40px; }
      .hero-artwork { order: -1; }
      .skills-grid { grid-template-columns: 1fr; gap: 40px; }
      .about-tab-grid { grid-template-columns: 1fr; gap: 40px; }
      .about-photo-stack { order: -1; }
      .section { padding: 80px 32px; }
      .hero { padding: 40px 32px 60px; }
      .footer { padding: 32px; }
      .nav-links, .nav-cta { display: none; }
      .mobile-toggle { display: block; }
      .navbar { padding: 16px 24px; }
      .game-screen { width: 320px; }
      .app-screen { width: 160px; }
    }
    @media (max-width: 768px) {
      .projects-grid { grid-template-columns: 1fr; }
      .achievements-grid { grid-template-columns: repeat(2, 1fr); }
      .form-grid { grid-template-columns: 1fr; }
      .footer-inner { flex-direction: column; text-align: center; }
      .section-title { font-size: 28px; }
      .about-photo-main { width: 260px; height: 340px; }
      .about-photo-1, .about-photo-2 { display: none; }
      .game-screen { width: 280px; }
      .app-screen { width: 140px; }
    }
