@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,600;1,300;1,600&family=Fira+Code:wght@300;400;500&family=Instrument+Sans:wght@400;500;600;700&family=Unbounded:wght@700;900&display=swap');

/* ═══════════════════════════════════════
   THEME SYSTEM - Morning / Sunset / Night
   ═══════════════════════════════════════ */

/* NIGHT (Default) */
:root,
[data-theme="night"] {
  --bg-primary: #080d1a;
  --bg-secondary: #0d1b2a;
  --bg-tertiary: #1b263b;
  --teal: #00f0c8;
  --amber: #ffb347;
  --rose: #ff6b9d;
  --lavender: #b39ddb;
  --ice: #80deea;
  --accent: #00f0c8;
  --accent-secondary: #ffb347;
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.85);
  --text-muted: rgba(255,255,255,0.6);
  --text-faint: rgba(255,255,255,0.4);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.5);
  --glass-hover-border: rgba(0, 240, 200, 0.4);
  --glass-hover-glow: rgba(0, 240, 200, 0.12);
  --card-bg: rgba(8, 13, 26, 0.35);
  --dock-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  --dock-border: rgba(255, 255, 255, 0.25);
  --hero-gradient-a: #00f0c8;
  --hero-gradient-b: #b39ddb;
  --cursor-color: #00f0c8;
  --cursor-hover: #ffb347;
  --sky-top: #080d1a;
  --sky-bottom: #0d1b2a;
  --mountain-far: #1b263b;
  --mountain-mid: #415a77;
  --mountain-front: #0d1b2a;
  --horizon-glow: rgba(255,179,71,0.2);
  --mist-color: rgba(255,255,255,0.1);
  --scene-sun: radial-gradient(circle, #fff 0%, #ffb347 40%, transparent 70%);
  --aurora-a: rgba(0, 240, 200, 0.08);
  --aurora-b: rgba(179, 157, 219, 0.06);
  --aurora-c: rgba(255, 107, 157, 0.04);
  --overlay-tint: rgba(8, 13, 26, 0.2);
  --font-display: 'Unbounded', sans-serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-code: 'Fira Code', monospace;
}

/* MORNING */
[data-theme="morning"] {
  --bg-primary: #f5efe6;
  --bg-secondary: #e8ddd0;
  --bg-tertiary: #d4c5b0;
  --teal: #2196a3;
  --amber: #e8913a;
  --rose: #d4687a;
  --lavender: #8e7cc3;
  --ice: #5ba3b5;
  --accent: #2196a3;
  --accent-secondary: #e8913a;
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26,26,46,0.85);
  --text-muted: rgba(26,26,46,0.55);
  --text-faint: rgba(26,26,46,0.35);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-highlight: rgba(255, 255, 255, 0.8);
  --glass-hover-border: rgba(33, 150, 163, 0.5);
  --glass-hover-glow: rgba(33, 150, 163, 0.15);
  --card-bg: rgba(255, 255, 255, 0.25);
  --dock-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.3) 100%);
  --dock-border: rgba(255, 255, 255, 0.7);
  --hero-gradient-a: #2196a3;
  --hero-gradient-b: #e8913a;
  --cursor-color: #2196a3;
  --cursor-hover: #e8913a;
  --sky-top: #87ceeb;
  --sky-bottom: #ffecd2;
  --mountain-far: #a8c4d4;
  --mountain-mid: #7ea8b8;
  --mountain-front: #c4a882;
  --horizon-glow: rgba(255, 200, 100, 0.4);
  --mist-color: rgba(255, 255, 255, 0.3);
  --scene-sun: radial-gradient(circle, #fffbe0 0%, #ffd700 40%, transparent 70%);
  --aurora-a: rgba(135, 206, 235, 0.15);
  --aurora-b: rgba(255, 215, 0, 0.1);
  --aurora-c: rgba(255, 236, 210, 0.08);
  --overlay-tint: rgba(245, 239, 230, 0.15);
}

/* SUNSET */
[data-theme="sunset"] {
  --bg-primary: #1a0a1e;
  --bg-secondary: #2d1233;
  --bg-tertiary: #4a1942;
  --teal: #ff6b35;
  --amber: #ffd23f;
  --rose: #ff2e63;
  --lavender: #c77dff;
  --ice: #ff9a56;
  --accent: #ff6b35;
  --accent-secondary: #ffd23f;
  --text-primary: #fff5f0;
  --text-secondary: rgba(255,245,240,0.85);
  --text-muted: rgba(255,245,240,0.6);
  --text-faint: rgba(255,245,240,0.4);
  --glass-bg: rgba(255, 100, 50, 0.08);
  --glass-border: rgba(255, 200, 150, 0.2);
  --glass-highlight: rgba(255, 200, 150, 0.5);
  --glass-hover-border: rgba(255, 107, 53, 0.5);
  --glass-hover-glow: rgba(255, 107, 53, 0.15);
  --card-bg: rgba(26, 10, 30, 0.4);
  --dock-bg: linear-gradient(135deg, rgba(255, 150, 100, 0.2) 0%, rgba(200, 100, 255, 0.08) 100%);
  --dock-border: rgba(255, 200, 150, 0.3);
  --hero-gradient-a: #ff6b35;
  --hero-gradient-b: #c77dff;
  --cursor-color: #ff6b35;
  --cursor-hover: #ffd23f;
  --sky-top: #1a0a1e;
  --sky-bottom: #ff6b35;
  --mountain-far: #4a1942;
  --mountain-mid: #6b2450;
  --mountain-front: #1a0a1e;
  --horizon-glow: rgba(255, 107, 53, 0.4);
  --mist-color: rgba(255, 100, 50, 0.1);
  --scene-sun: radial-gradient(circle, #fff5e0 0%, #ff6b35 40%, transparent 70%);
  --aurora-a: rgba(255, 107, 53, 0.1);
  --aurora-b: rgba(199, 125, 255, 0.08);
  --aurora-c: rgba(255, 46, 99, 0.06);
  --overlay-tint: rgba(26, 10, 30, 0.2);
}

/* ═══════════════════════════════════════
   GLOBAL RESET & BASE
   ═══════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; overflow-x: hidden; }
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1), color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Film grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a, button { cursor: none; text-decoration: none; color: inherit; font-family: inherit; }

/* ═══════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════ */
#theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 5px;
  border-radius: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 1px var(--glass-highlight);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.8s ease, border-color 0.8s ease;
}
#theme-toggle.visible {
  opacity: 1;
  transform: translateY(0);
}
.theme-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: none;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.4s ease;
  color: var(--text-muted);
}
.theme-btn:hover {
  transform: scale(1.15);
  color: var(--text-primary);
}
.theme-btn.active {
  color: var(--text-primary);
}
#theme-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.2;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.5s ease;
  z-index: 1;
  box-shadow: 0 0 20px var(--accent);
}
[data-theme="morning"] #theme-slider { transform: translateX(0); }
[data-theme="sunset"] #theme-slider { transform: translateX(40px); }
[data-theme="night"] #theme-slider { transform: translateX(80px); }

/* ═══════════════════════════════════════
   BOOT SCREEN
   ═══════════════════════════════════════ */
#boot-screen {
  position: fixed; inset: 0; z-index: 99999;
  background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.8s ease;
}
#boot-screen.fade-out { opacity: 0; pointer-events: none; }
.boot-logo { margin-bottom: 40px; animation: bootPulse 2s ease-in-out infinite; }
.boot-apple { filter: drop-shadow(0 0 20px rgba(255,255,255,0.3)); }
@keyframes bootPulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
.boot-progress-track {
  width: 200px; height: 4px; background: rgba(255,255,255,0.15);
  border-radius: 4px; overflow: hidden;
}
.boot-progress-bar {
  width: 0%; height: 100%; background: #fff;
  border-radius: 4px; transition: width 0.1s linear;
}
.boot-text {
  margin-top: 16px; font-family: var(--font-code); font-size: 0.7rem;
  color: rgba(255,255,255,0.4); letter-spacing: 2px;
}

/* ═══════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════ */
#mac-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 100000;
  transform-origin: top left;
  will-change: transform;
}
#mac-cursor svg {
  width: 100%;
  height: 100%;
  transform-origin: 4px 2px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
body.hovering #mac-cursor svg {
  transform: scale(1.2);
}

/* ═══════════════════════════════════════
   LIQUID GLASS
   ═══════════════════════════════════════ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(32px) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.1);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.8s ease, border-color 0.8s ease;
}
.glass::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
  z-index: 1;
}
.glass::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border-radius: inherit; pointer-events: none;
}
.glass.interactive:hover {
  backdrop-filter: blur(40px) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.1);
  border-color: var(--glass-hover-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 40px var(--glass-hover-glow);
}

/* ═══════════════════════════════════════
   macOS DOCK
   ═══════════════════════════════════════ */
#dock-wrapper {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; align-items: flex-end; justify-content: center;
}
#dock {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 16px;
  background: var(--dock-bg);
  backdrop-filter: blur(60px) saturate(300%) brightness(1.1);
  -webkit-backdrop-filter: blur(60px) saturate(300%) brightness(1.1);
  border: 1px solid var(--dock-border);
  border-top-color: var(--glass-highlight);
  border-radius: 28px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
  transition: background 0.8s ease, border-color 0.8s ease;
}
.dock-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: none;
}
.dock-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: none;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.dock-icon img { width: 100%; height: 100%; object-fit: contain; transform-origin: bottom center; }
.dock-icon:hover { color: var(--accent); }
.dock-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 15px);
  font-family: var(--font-code); font-size: 0.75rem;
  color: #fff; background: rgba(0,0,0,0.85);
  padding: 6px 12px; border-radius: 6px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(5px);
  transition: all 0.2s ease;
  letter-spacing: 1px;
  z-index: 9999;
}
.dock-item:hover[data-tooltip]::after {
  opacity: 1; transform: translateY(0);
}
.dock-divider {
  width: 1px; height: 32px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 6px; align-self: center;
}

/* ═══════════════════════════════════════
   CONTENT LAYER
   ═══════════════════════════════════════ */
#content-layer {
  position: relative; z-index: 1; padding-bottom: 100px;
}
.section-wrapper {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px 5% 140px; max-width: 1400px; margin: 0 auto;
}
.glass-container {
  background: var(--card-bg);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  padding: 60px; border-radius: 32px;
  transition: background 0.8s ease;
}
.section-title {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase; margin-bottom: 40px; color: var(--text-primary);
  transition: color 0.8s ease;
}
.section-title span { color: var(--accent-secondary); transition: color 0.8s ease; }

/* ═══════════════════════════════════════
   HERO - Premium Entrance
   ═══════════════════════════════════════ */
#hero {
  height: 100vh; display: flex; flex-direction: column; justify-content: center;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

/* Aurora shimmer behind hero */
#hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 20% 50%, var(--aurora-a) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, var(--aurora-b) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, var(--aurora-c) 0%, transparent 50%);
  animation: auroraShift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
  transition: background 0.8s ease;
}
@keyframes auroraShift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(5%, -3%) rotate(2deg) scale(1.05); }
  66% { transform: translate(-3%, 5%) rotate(-1deg) scale(0.98); }
  100% { transform: translate(2%, -2%) rotate(1deg) scale(1.02); }
}

/* Floating light orbs */
#hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--aurora-a), transparent 70%);
  top: 20%;
  right: 10%;
  animation: floatOrb 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
}
@keyframes floatOrb {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-30px, 20px); }
}

.hero-label {
  font-family: var(--font-code); font-size: 1rem; color: var(--accent); margin-bottom: 20px;
  transition: color 0.8s ease;
}
.hero-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(4rem, 10vw, 12rem); line-height: 1;
  background: linear-gradient(135deg, var(--hero-gradient-a), var(--hero-gradient-b));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative; display: inline-block;
  animation: glitchLoop 5s infinite;
  transition: background 0.8s ease;
}

/* Premium metallic shimmer on hero name */
.hero-name::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255,255,255,0.15) 40%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0.15) 60%,
    transparent 80%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
  background-size: 200% 100%;
}
@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes glitchLoop {
  0%, 96% { text-shadow: none; transform: none; }
  97% { text-shadow: -4px 0 cyan, 4px 0 var(--rose); transform: translate(-2px, 1px); }
  98% { text-shadow: 4px 0 cyan, -4px 0 var(--rose); transform: translate(2px, -1px); }
  99% { text-shadow: none; transform: none; }
}
.hero-last-name {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem, 5vw, 5rem); color: var(--text-primary);
  line-height: 1; margin-bottom: 20px;
  transition: color 0.8s ease;
}
.hero-typewriter {
  font-family: var(--font-code); font-size: 1.2rem; color: var(--accent-secondary);
  margin-bottom: 10px; min-height: 1.5em;
  transition: color 0.8s ease;
}
.hero-tagline {
  font-family: var(--font-body); font-style: italic; font-size: 1.4rem;
  color: var(--text-secondary); max-width: 600px; margin-bottom: 40px;
  transition: color 0.8s ease;
}
.hero-ctas { display: flex; gap: 20px; }

/* Magnetic button base */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000));
  color: var(--bg-primary);
  padding: 16px 32px; font-family: var(--font-body); font-weight: 600; border-radius: 12px;
  text-transform: lowercase; letter-spacing: 1px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.8s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 30%, transparent); }

.btn-ghost {
  padding: 16px 32px; font-family: var(--font-body); font-weight: 600; border-radius: 12px;
  text-transform: lowercase; letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.8s ease;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ═══════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════ */
.marquee-container {
  width: 100%; overflow: hidden; background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 15px 0; backdrop-filter: blur(10px); position: relative; z-index: 1;
}
.marquee {
  display: flex; white-space: nowrap; font-family: var(--font-code); color: var(--text-muted);
  font-size: 1.1rem; letter-spacing: 2px; animation: marqueeAnim 20s linear infinite;
  transition: color 0.8s ease;
}
.marquee span { margin: 0 30px; color: var(--accent); transition: color 0.8s ease; }
@keyframes marqueeAnim { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══════════════════════════════════════
   PROFILE PICTURE
   ═══════════════════════════════════════ */
#quote-section {
  height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 5%;
}
.cinematic-quote {
  font-family: var(--font-heading); font-style: italic; font-weight: 300;
  font-size: clamp(2rem, 4vw, 4rem); max-width: 1000px; line-height: 1.3;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.profile-picture {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent);
  box-shadow: 0 10px 40px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.8s ease;
}
.profile-picture:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px color-mix(in srgb, var(--accent) 50%, transparent);
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.about-text { font-size: 1.2rem; line-height: 1.8; color: var(--text-secondary); transition: color 0.8s ease; }
.about-text p { margin-bottom: 20px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { padding: 30px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.stat-num {
  font-family: var(--font-display); font-size: 2.5rem; color: var(--accent-secondary);
  margin-bottom: 10px; transition: color 0.8s ease;
}
.stat-label { font-family: var(--font-code); font-size: 0.85rem; color: var(--text-muted); transition: color 0.8s ease; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.skill-pill {
  font-family: var(--font-code); font-size: 0.85rem; padding: 6px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.05); border: 1px solid;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.skill-pill:hover { transform: translateY(-3px); }

/* ═══════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════ */
.skill-category { margin-bottom: 36px; }
.skill-category-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  text-transform: lowercase; color: var(--accent);
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.8s ease;
}
.skill-items-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.skill-item-compact {
  padding: 16px 20px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all 0.3s ease;
}
.skill-item-compact:hover { transform: translateY(-2px); }
.skill-item-name {
  font-family: var(--font-code); font-size: 0.85rem;
  color: var(--text-secondary); text-transform: lowercase;
  transition: color 0.8s ease;
}
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skill-card { padding: 32px; display: flex; flex-direction: column; }
.skill-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.skill-icon { font-size: 2rem; }
.skill-name { font-family: var(--font-display); font-size: 1.2rem; }
.skill-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; flex-grow: 1; transition: color 0.8s ease; }
.skill-bar-bg { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.skill-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--lavender)); transition: width 1.5s ease-out, background 0.8s ease; }

/* ═══════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════ */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.project-card { padding: 40px; }
.project-num { font-family: var(--font-code); color: var(--accent); margin-bottom: 16px; font-size: 1.1rem; transition: color 0.8s ease; }
.project-title { font-family: var(--font-body); font-weight: 600; font-size: 1.8rem; margin-bottom: 16px; }
.project-desc { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; transition: color 0.8s ease; }
.project-features {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px;
}
.feature-item {
  font-family: var(--font-code); font-size: 0.85rem;
  color: var(--text-muted); padding-left: 4px;
  transition: color 0.8s ease;
}
.project-impact {
  font-size: 0.95rem; color: var(--accent-secondary); font-style: italic;
  line-height: 1.5; margin-bottom: 20px; opacity: 0.85;
  transition: color 0.8s ease;
}
.project-tech { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tech-badge {
  font-family: var(--font-code); font-size: 0.8rem; padding: 4px 12px; border-radius: 4px;
  background: rgba(255,255,255,0.1);
}
.ghost-project { border-style: dashed; opacity: 0.6; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }

/* ═══════════════════════════════════════
   EXPERIENCE
   ═══════════════════════════════════════ */
.timeline { position: relative; padding-left: 40px; }
.timeline-line {
  position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-secondary));
  border-radius: 4px; transition: background 0.8s ease;
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot {
  position: absolute; left: -46px; top: 20px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg-primary); border: 4px solid var(--accent);
  transition: background 0.8s ease, border-color 0.8s ease;
}
.timeline-card { padding: 30px; border-left: 4px solid var(--accent); transition: border-color 0.8s ease; }
.timeline-item:nth-child(3) .timeline-card { border-left-color: var(--accent-secondary); }
.timeline-item:nth-child(3) .timeline-dot { border-color: var(--accent-secondary); }
.timeline-date { font-family: var(--font-code); font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; transition: color 0.8s ease; }
.timeline-title { font-family: var(--font-body); font-weight: 600; font-size: 1.5rem; margin-bottom: 10px; }
.timeline-title span { font-weight: 400; color: var(--text-muted); transition: color 0.8s ease; }

/* ═══════════════════════════════════════
   HIGHLIGHTS
   ═══════════════════════════════════════ */
.highlight-group-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  text-transform: lowercase; color: var(--accent-secondary);
  margin-bottom: 20px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.8s ease;
}
.achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.achieve-card { padding: 30px; display: flex; flex-direction: column; gap: 16px; text-align: center; align-items: center; position: relative; z-index: 5; }
.achieve-icon { font-size: 2.5rem; }
.highlight-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-primary); transition: color 0.8s ease; }
.highlight-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; flex-grow: 1; transition: color 0.8s ease; }

/* ═══════════════════════════════════════
   BLOG
   ═══════════════════════════════════════ */
.blog-quote {
  font-family: var(--font-heading); font-style: italic; font-weight: 300;
  font-size: 2.5rem; text-align: center; margin-bottom: 60px;
  color: var(--accent); transition: color 0.8s ease;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { padding: 40px; }
.blog-date { font-family: var(--font-code); font-size: 0.9rem; color: var(--text-muted); display: block; margin-bottom: 16px; transition: color 0.8s ease; }

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
#contact { text-align: center; }
.contact-giant {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3rem, 8vw, 8rem); line-height: 1; margin-bottom: 24px;
}
.contact-giant span {
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  transition: background 0.8s ease;
}
.contact-subtitle { font-family: var(--font-heading); font-style: italic; font-weight: 300; font-size: 1.8rem; margin-bottom: 50px; }
.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; }
.social-btn { display: flex; align-items: center; gap: 10px; padding: 16px 32px; font-weight: 500; border-radius: 100px; }
.social-btn svg { width: 24px; height: 24px; fill: currentColor; }
.availability { font-family: var(--font-code); color: var(--text-muted); transition: color 0.8s ease; }
.availability span { color: var(--accent); animation: blink 1s infinite; transition: color 0.8s ease; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

footer {
  padding: 40px 5%; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 100px;
  font-family: var(--font-code); font-size: 0.9rem;
  color: var(--text-muted); transition: color 0.8s ease;
}

/* ═══════════════════════════════════════
   REVEAL ANIMATIONS (GSAP-enhanced base)
   ═══════════════════════════════════════ */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal.active { opacity: 1; transform: translate(0) scale(1) rotate(0); }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.85); }
.reveal-fan { transform: rotateX(45deg) translateY(50px); transform-origin: bottom; }

/* Hero entrance animations (triggered by GSAP) */
.hero-entrance .hero-label,
.hero-entrance .hero-name,
.hero-entrance .hero-last-name,
.hero-entrance .hero-typewriter,
.hero-entrance .hero-tagline,
.hero-entrance .hero-ctas {
  opacity: 0;
  transform: translateY(40px);
}

/* ═══════════════════════════════════════
   RESPONSIVE - TABLET (max-width: 1024px)
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .glass-container { padding: 40px; border-radius: 24px; }
  .section-wrapper { padding: 80px 5% 100px; }
  .contact-subtitle { font-size: 1.4rem; }
  .blog-quote { font-size: 2rem; }
}

/* ═══════════════════════════════════════
   RESPONSIVE - MOBILE (max-width: 768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Hide custom cursor on touch ── */
  #mac-cursor { display: none !important; }
  body, a, button { cursor: auto !important; }

  /* ── Film grain reduce for perf ── */
  body::before { opacity: 0.02; }

  /* ── Theme toggle mobile position ── */
  #theme-toggle {
    top: 12px; right: 12px;
    padding: 3px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 1px var(--glass-highlight);
  }
  .theme-btn { width: 32px; height: 32px; font-size: 0.85rem; }
  #theme-slider { width: 32px; height: 32px; }
  [data-theme="sunset"] #theme-slider { transform: translateX(32px); }
  [data-theme="night"] #theme-slider { transform: translateX(64px); }

  /* ── Boot screen mobile ── */
  .boot-logo img, .boot-apple { width: 50px !important; }
  .boot-progress-track { width: 140px; height: 3px; }
  .boot-text { font-size: 0.6rem; letter-spacing: 1.5px; }

  /* ── Mobile Dock - Compact Bottom Nav ── */
  #dock-wrapper {
    bottom: 0; left: 0; right: 0;
    transform: none;
  }
  #dock {
    width: 100%;
    border-radius: 0;
    padding: 8px 6px 12px;
    gap: 2px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    backdrop-filter: blur(40px) saturate(250%);
    -webkit-backdrop-filter: blur(40px) saturate(250%);
    border: none;
    border-top: 1px solid var(--dock-border);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
  }
  #dock::-webkit-scrollbar { display: none; }
  .dock-icon {
    width: 38px; height: 38px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  }
  .dock-item { min-width: 38px; }
  .dock-item[data-tooltip]::after { display: none; }
  .dock-divider {
    height: 24px; margin: 0 3px;
  }

  /* ── Content Layer mobile padding ── */
  #content-layer { padding-bottom: 70px; }
  .section-wrapper {
    min-height: auto; padding: 60px 4% 80px;
  }
  .glass-container {
    padding: 24px 18px; border-radius: 20px;
  }

  /* ── Hero Section Mobile ── */
  #hero {
    height: 100vh; height: 100dvh;
    padding: 0 5%;
    justify-content: center;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  }
  .hero-label { font-size: 0.75rem; margin-bottom: 14px; }
  .hero-name {
    font-size: clamp(2.8rem, 14vw, 5rem);
    line-height: 0.95;
  }
  .hero-last-name {
    font-size: clamp(1.4rem, 6vw, 2.5rem);
    margin-bottom: 14px;
  }
  .hero-typewriter { font-size: 0.9rem; margin-bottom: 8px; }
  .hero-tagline { font-size: 1rem; margin-bottom: 28px; max-width: 90%; }
  .hero-ctas {
    flex-direction: column; gap: 12px;
    width: 100%; max-width: 280px;
  }
  .btn-primary, .btn-ghost {
    padding: 14px 24px; font-size: 0.9rem;
    text-align: center; width: 100%;
    border-radius: 14px;
  }

  /* ── Aurora + Orbs smaller for mobile ── */
  #hero::after { width: 150px; height: 150px; filter: blur(40px); }

  /* ── Marquee ── */
  .marquee-container { padding: 10px 0; }
  .marquee { font-size: 0.85rem; letter-spacing: 1px; }

  /* ── Profile Picture ── */
  #quote-section { height: auto; padding: 60px 5%; min-height: 50vh; }
  .profile-picture { width: 200px; height: 200px; border-width: 3px; }

  /* ── Section Titles ── */
  .section-title { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 28px; }

  /* ── About ── */
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-text { font-size: 1rem; line-height: 1.7; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 20px 14px; }
  .stat-num { font-size: 1.8rem; margin-bottom: 6px; }
  .stat-label { font-size: 0.75rem; }

  /* ── Skills ── */
  .skill-category { margin-bottom: 24px; }
  .skill-category-title { font-size: 0.95rem; margin-bottom: 12px; }
  .skill-items-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .skill-item-compact { padding: 12px 14px; border-radius: 12px; gap: 8px; }
  .skill-item-name { font-size: 0.78rem; }
  .skill-bar-bg { height: 3px; }

  /* ── Projects ── */
  .projects-grid { grid-template-columns: 1fr; gap: 20px; }
  .project-card { padding: 24px 20px; }
  .project-num { font-size: 0.95rem; margin-bottom: 10px; }
  .project-title { font-size: 1.3rem; margin-bottom: 12px; }
  .project-desc { font-size: 0.95rem; margin-bottom: 16px; }
  .feature-item { font-size: 0.78rem; }
  .project-impact { font-size: 0.85rem; }
  .tech-badge { font-size: 0.72rem; padding: 3px 10px; }

  /* ── Experience / Timeline ── */
  .timeline { padding-left: 30px; }
  .timeline-dot { left: -36px; width: 14px; height: 14px; top: 16px; }
  .timeline-card { padding: 20px 16px; }
  .timeline-date { font-size: 0.8rem; }
  .timeline-title { font-size: 1.2rem; }

  /* ── Highlights ── */
  .achievements-grid { grid-template-columns: 1fr; gap: 16px; }
  .achieve-card { padding: 24px 20px; }
  .achieve-icon { font-size: 2rem; }
  .highlight-title { font-size: 1rem; }
  .highlight-desc { font-size: 0.9rem; margin-bottom: 16px; }
  .highlight-group-title { font-size: 0.95rem; margin-bottom: 14px; }

  /* ── Blog ── */
  .blog-quote { font-size: 1.4rem; margin-bottom: 36px; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card { padding: 24px 20px; }

  /* ── Contact ── */
  .contact-giant { font-size: clamp(2rem, 10vw, 4rem); margin-bottom: 16px; }
  .contact-subtitle { font-size: 1.1rem; margin-bottom: 32px; }
  .social-links { gap: 12px; }
  .social-btn { padding: 12px 24px; font-size: 0.9rem; border-radius: 50px; }
  .availability { font-size: 0.85rem; }

  /* ── Footer ── */
  footer { padding: 24px 5%; margin-top: 40px; font-size: 0.8rem; }

  /* ── Cinema Scenes Mobile Tweaks ── */
  #scene-3 .macbook-base { width: 70vw; height: 45vw; }
  #scene-3 .macbook-screen { width: 68vw; height: 42vw; bottom: calc(35% + 25vw); }
  #scene-4 .code-content { font-size: 2.5vw; padding: 12px; }
  #scene-4 .macbook-screen-zoom,
  #scene-5 .macbook-screen-zoom { width: 92vw; height: 60vw; border-width: 6px; border-radius: 8px; }
  #scene-5 .terminal-content { font-size: 2.8vw; padding: 12px; }
  #scene-7 .keyboard-close { width: 140vw; }

  /* ── Glass cards - disable 3D tilt on mobile ── */
  .glass.interactive { transform: none !important; }
}

/* ═══════════════════════════════════════
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .section-wrapper { padding: 40px 3.5% 60px; }
  .glass-container { padding: 20px 14px; border-radius: 16px; }

  .hero-label { font-size: 0.65rem; }
  .hero-name { font-size: clamp(2.4rem, 16vw, 4rem); }
  .hero-last-name { font-size: clamp(1.2rem, 7vw, 2rem); }
  .hero-tagline { font-size: 0.9rem; }
  .hero-typewriter { font-size: 0.8rem; }
  .hero-ctas { max-width: 100%; }
  .btn-primary, .btn-ghost { padding: 12px 20px; font-size: 0.85rem; }

  .section-title { font-size: clamp(1.6rem, 9vw, 2.5rem); margin-bottom: 20px; }

  .about-text { font-size: 0.9rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 16px 10px; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.7rem; }

  .skill-items-row { grid-template-columns: 1fr; }
  .skill-item-compact { padding: 10px 12px; }

  .project-card { padding: 20px 16px; }
  .project-title { font-size: 1.15rem; }

  .timeline { padding-left: 24px; }
  .timeline-dot { left: -30px; width: 12px; height: 12px; }
  .timeline-card { padding: 16px 14px; }
  .timeline-title { font-size: 1.05rem; }

  .contact-giant { font-size: clamp(1.6rem, 12vw, 3rem); }
  .contact-subtitle { font-size: 0.95rem; }
  .social-btn { padding: 10px 20px; font-size: 0.85rem; }

  .profile-picture { width: 160px; height: 160px; }

  .dock-icon { width: 34px; height: 34px; }
  #dock { padding: 6px 4px 10px; gap: 1px; }
  .dock-divider { height: 20px; margin: 0 2px; }

  .blog-quote { font-size: 1.2rem; margin-bottom: 24px; }

  .achieve-card { padding: 20px 16px; }
  .achieve-icon { font-size: 1.8rem; }
  .highlight-title { font-size: 0.9rem; }
  .highlight-desc { font-size: 0.85rem; }
}

/* ═══════════════════════════════════════
   TOUCH DEVICE HELPERS
   ═══════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .glass.interactive:hover {
    transform: none;
    backdrop-filter: blur(32px) saturate(200%) brightness(1.1);
    -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.1);
  }
  .dock-item:hover[data-tooltip]::after { display: none; }
  .skill-item-compact:hover { transform: none; }
  .btn-primary:hover { transform: none; }
  .btn-ghost:hover { transform: none; }
  .profile-picture:hover { transform: none; }
  .skill-pill:hover { transform: none; }

  .dock-item { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; }
  .theme-btn { min-height: 44px; min-width: 44px; }
}

/* ═══════════════════════════════════════
   LANDSCAPE MOBILE
   ═══════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  #hero { height: auto; min-height: 100vh; padding: 40px 5%; }
  .hero-name { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hero-last-name { font-size: clamp(1rem, 4vw, 1.8rem); }
  #quote-section { min-height: auto; padding: 40px 5%; }
  .profile-picture { width: 140px; height: 140px; }
  .dock-icon { width: 32px; height: 32px; }
}

/* ═══════════════════════════════════════
   SAFE AREA (iPhone notch / Dynamic Island)
   ═══════════════════════════════════════ */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    #dock {
      padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
    #content-layer {
      padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
  }
}

/* ═══════════════════════════════════════
   CINEMA BACKGROUND - Theme-Aware
   ═══════════════════════════════════════ */
#cinema {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--bg-primary); overflow: hidden;
  transition: background 0.8s ease;
}
.scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; will-change: opacity;
}
.layer {
  position: absolute; inset: -10%; width: 120%; height: 120%;
  will-change: transform;
}

/* Scene 1 - Mountains */
#scene-1 .layer-far { background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-bottom) 100%); transition: background 1s ease; }
#scene-1 .stars { background: radial-gradient(1px 1px at 40px 60px, #fff, transparent), radial-gradient(1px 1px at 20px 50px, rgba(255,255,255,0.8), transparent), radial-gradient(2px 2px at 30px 100px, #fff, transparent), radial-gradient(1px 1px at 40px 60px, rgba(255,255,255,0.8), transparent); background-repeat: repeat; background-size: 200px 200px; opacity: 0.6; transition: opacity 1s ease; }
[data-theme="morning"] #scene-1 .stars { opacity: 0; }
[data-theme="sunset"] #scene-1 .stars { opacity: 0.2; }
#scene-1 .mountain-back { bottom: 0; height: 60%; background: var(--mountain-far); clip-path: polygon(0 100%, 0 50%, 20% 20%, 40% 60%, 60% 10%, 80% 50%, 100% 30%, 100% 100%); transition: background 1s ease; }
#scene-1 .mountain-mid { bottom: 0; height: 50%; background: var(--mountain-mid); clip-path: polygon(0 100%, 0 40%, 30% 10%, 50% 50%, 70% 20%, 100% 60%, 100% 100%); transition: background 1s ease; }
#scene-1 .mountain-front { bottom: 0; height: 40%; background: var(--mountain-front); clip-path: polygon(0 100%, 0 70%, 25% 30%, 45% 80%, 75% 40%, 100% 70%, 100% 100%); transition: background 1s ease; }
#scene-1 .horizon-glow { bottom: 30%; height: 20%; background: radial-gradient(ellipse at bottom, var(--horizon-glow), transparent 70%); transition: background 1s ease; }
#scene-1 .mist { bottom: 0; height: 30%; background: linear-gradient(to top, var(--mist-color), transparent); filter: blur(20px); transition: background 1s ease; }

/* Scene 2 - Window */
#scene-2 .outside { position: absolute; inset: 10%; background: var(--sky-top); overflow: hidden; border-radius: 10px; transition: background 1s ease; }
#scene-2 .horizon-glow { bottom: 30%; height: 30%; background: radial-gradient(ellipse at bottom, var(--horizon-glow), color-mix(in srgb, var(--horizon-glow) 50%, transparent), transparent 70%); transition: background 1s ease; }
#scene-2 .mountain-mid { bottom: 0; height: 50%; background: var(--mountain-mid); clip-path: polygon(0 100%, 0 40%, 30% 10%, 50% 50%, 70% 20%, 100% 60%, 100% 100%); transition: background 1s ease; }
#scene-2 .mountain-front { bottom: 0; height: 40%; background: var(--mountain-front); clip-path: polygon(0 100%, 0 70%, 25% 30%, 45% 80%, 75% 40%, 100% 70%, 100% 100%); transition: background 1s ease; }
#scene-2 .window-frame { position: absolute; inset: 0; box-shadow: inset 0 0 0 10vw rgba(20, 15, 10, 0.95); pointer-events: none; z-index: 2; }
#scene-2 .window-mullion-v { position: absolute; left: 50%; top: 0; bottom: 0; width: 2vw; background: rgba(20, 15, 10, 0.95); transform: translateX(-50%); z-index: 2; }
#scene-2 .window-mullion-h { position: absolute; top: 50%; left: 0; right: 0; height: 2vw; background: rgba(20, 15, 10, 0.95); transform: translateY(-50%); z-index: 2; }
#scene-2 .room-glow { position: absolute; inset: 0; background: radial-gradient(circle at 15% 80%, color-mix(in srgb, var(--accent-secondary) 15%, transparent), transparent 40%), radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--accent-secondary) 15%, transparent), transparent 40%); z-index: 3; mix-blend-mode: screen; }
#scene-2 .glass-reflection { position: absolute; inset: 10%; background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%, rgba(255,255,255,0.02) 100%); z-index: 4; }

/* Scene 3 - Desk */
#scene-3 .bg { background: color-mix(in srgb, var(--bg-primary) 80%, #000); }
#scene-3 .window-far { position: absolute; top: 10%; left: 30%; width: 40%; height: 30%; background: linear-gradient(to top, color-mix(in srgb, var(--rose) 10%, transparent), var(--bg-primary)); border-radius: 5px; opacity: 0.5; filter: blur(2px); }
#scene-3 .desk-surface { position: absolute; bottom: 0; left: -10%; width: 120%; height: 40%; background: linear-gradient(to bottom, #111 0%, #050505 100%); transform: perspective(500px) rotateX(60deg); transform-origin: bottom; }
#scene-3 .macbook-base { position: absolute; bottom: 35%; left: 50%; width: 40vw; height: 25vw; max-width: 500px; max-height: 300px; transform: translateX(-50%) perspective(800px) rotateX(45deg); background: linear-gradient(135deg, #2a2a2a, #1a1a1a); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 2; }
#scene-3 .keyboard { position: absolute; inset: 10%; background: #111; border-radius: 5px; background-image: radial-gradient(#333 1px, transparent 1px); background-size: 4% 8%; }
#scene-3 .trackpad { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); width: 30%; height: 20%; background: #222; border-radius: 4px; }
#scene-3 .macbook-screen { position: absolute; bottom: calc(35% + 15vw); left: 50%; transform: translateX(-50%); width: 38vw; height: 24vw; max-width: 480px; max-height: 290px; background: #0a0a0a; border: 4px solid #000; border-radius: 8px 8px 0 0; z-index: 3; box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 10%, transparent); overflow: hidden; }
#scene-3 .screen-glow { position: absolute; inset: 0; background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 20%, transparent), transparent); animation: pulseGlow 4s infinite alternate; }
#scene-3 .coffee-mug { position: absolute; bottom: 45%; left: 20%; width: 4vw; height: 5vw; background: #222; border-radius: 2px 2px 5px 5px; box-shadow: 1vw 0 0 -1.5vw #222; z-index: 4; }
#scene-3 .steam { position: absolute; bottom: calc(45% + 5vw); left: 21%; width: 2vw; height: 6vw; background: radial-gradient(ellipse, rgba(255,255,255,0.1), transparent); filter: blur(5px); animation: steamRise 3s infinite; }
@keyframes pulseGlow { 0% { opacity: 0.8; } 100% { opacity: 1; } }
@keyframes steamRise { 0% { transform: translateY(0) scaleX(1); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-20px) scaleX(1.5); opacity: 0; } }

/* Scene 4 - Code Editor */
#scene-4 .bg { background: #000; }
#scene-4 .macbook-screen-zoom { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80vw; height: 50vw; background: #1e1e1e; border: 10px solid #000; border-radius: 12px; box-shadow: 0 0 100px color-mix(in srgb, var(--accent) 30%, transparent); overflow: hidden; }
#scene-4 .editor-header { height: 30px; background: #2d2d2d; display: flex; align-items: center; padding: 0 15px; gap: 8px; }
#scene-4 .dot { width: 12px; height: 12px; border-radius: 50%; background: #ff5f56; }
#scene-4 .dot:nth-child(2) { background: #ffbd2e; }
#scene-4 .dot:nth-child(3) { background: #27c93f; }
#scene-4 .code-content { padding: 20px; font-family: monospace; font-size: 1.2vw; line-height: 1.5; color: #d4d4d4; }
#scene-4 .keyword { color: #c586c0; }
#scene-4 .function { color: #dcdcaa; }
#scene-4 .string { color: #ce9178; }
#scene-4 .comment { color: #6a9955; }
#scene-4 .cursor-blink { display: inline-block; width: 8px; height: 1.2em; background: #fff; vertical-align: middle; animation: blink 1s infinite; }
#scene-4 .intense-glow { position: absolute; inset: -50%; background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 15%, transparent), transparent 60%); pointer-events: none; z-index: 10; mix-blend-mode: screen; }

/* Scene 5 - Terminal */
#scene-5 .bg { background: #000; }
#scene-5 .macbook-screen-zoom { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80vw; height: 50vw; background: #1e1e1e; border: 10px solid #000; border-radius: 12px; box-shadow: 0 0 120px rgba(40, 200, 100, 0.4); overflow: hidden; }
#scene-5 .editor-header { height: 30px; background: #2d2d2d; display: flex; align-items: center; padding: 0 15px; gap: 8px; }
#scene-5 .dot { width: 12px; height: 12px; border-radius: 50%; background: #ff5f56; }
#scene-5 .dot:nth-child(2) { background: #ffbd2e; }
#scene-5 .dot:nth-child(3) { background: #27c93f; }
#scene-5 .terminal-content { padding: 20px; font-family: monospace; font-size: 1.4vw; line-height: 1.8; color: #fff; }
#scene-5 .success { color: #4caf50; text-shadow: 0 0 10px rgba(76, 175, 80, 0.5); }
#scene-5 .window-light { position: absolute; top: -20%; left: -20%; width: 140%; height: 140%; background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent-secondary) 20%, transparent), transparent 50%); z-index: -1; }
#scene-5 .lens-flare { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.05) 50%, transparent 55%); z-index: 10; pointer-events: none; }

/* Scene 6 - City */
#scene-6 .outside { position: absolute; inset: 0; background: var(--sky-bottom); transition: background 1s ease; }
#scene-6 .mountain-silhouette { position: absolute; bottom: 30%; width: 100%; height: 40%; background: var(--mountain-far); clip-path: polygon(0 100%, 0 50%, 20% 20%, 40% 60%, 60% 10%, 80% 50%, 100% 30%, 100% 100%); transition: background 1s ease; }
#scene-6 .valley { position: absolute; bottom: 0; width: 100%; height: 40%; background: color-mix(in srgb, var(--bg-primary) 90%, #000); transition: background 1s ease; }
#scene-6 .city-lights { position: absolute; bottom: 10%; left: 50%; width: 60%; height: 20%; transform: translateX(-50%); background: radial-gradient(1px 1px at 10% 20%, var(--accent-secondary), transparent), radial-gradient(2px 2px at 30% 50%, var(--accent), transparent), radial-gradient(1px 1px at 50% 80%, #fff, transparent), radial-gradient(1px 1px at 70% 30%, var(--accent-secondary), transparent), radial-gradient(2px 2px at 85% 60%, var(--accent), transparent); background-size: 50px 50px; opacity: 0.8; filter: blur(1px); }
#scene-6 .network-grid { position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--accent) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent) 1px, transparent 1px); background-size: 50px 50px; transform: perspective(500px) rotateX(60deg); transform-origin: bottom; opacity: 0.3; }
#scene-6 .room-silhouette { position: absolute; inset: 0; box-shadow: inset 0 0 0 5vw #000; z-index: 10; }
#scene-6 .macbook-tiny { position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%); width: 10vw; height: 8vw; background: #000; box-shadow: 0 -5px 20px color-mix(in srgb, var(--accent) 50%, transparent); border-top: 2px solid color-mix(in srgb, var(--accent) 80%, transparent); z-index: 11; }

/* Scene 7 - Keyboard */
#scene-7 .bg { background: #111; }
#scene-7 .keyboard-close { position: absolute; bottom: -20%; left: 50%; transform: translateX(-50%) perspective(600px) rotateX(50deg); width: 120vw; height: 80vw; background: #1a1a1a; display: grid; grid-template-columns: repeat(15, 1fr); gap: 1vw; padding: 2vw; border-radius: 10px; }
#scene-7 .key { background: #222; border-radius: 0.5vw; box-shadow: 0 0.5vw 0 #111; transition: all 0.1s; }
#scene-7 .key.pressed { transform: translateY(0.5vw); background: #333; box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent); }
#scene-7 .screen-reflection { position: absolute; top: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 20%, transparent), transparent); pointer-events: none; }
#scene-7 .particles { position: absolute; top: 30%; left: 50%; width: 100%; height: 100%; transform: translateX(-50%); pointer-events: none; z-index: 10; }
#scene-7 .particle { position: absolute; bottom: 0; left: 50%; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); opacity: 0; }

/* Scene 8 - Sunrise/Sunset */
#scene-8 .sky { background: linear-gradient(to bottom, var(--sky-top) 0%, var(--mountain-mid) 50%, var(--accent-secondary) 100%); transition: background 1s ease; }
#scene-8 .sun { position: absolute; bottom: 30%; left: 50%; transform: translateX(-50%); width: 20vw; height: 20vw; background: var(--scene-sun); mix-blend-mode: screen; transition: background 1s ease; }
#scene-8 .mountain-back { bottom: 0; height: 50%; background: var(--mountain-far); clip-path: polygon(0 100%, 0 50%, 20% 20%, 40% 60%, 60% 10%, 80% 50%, 100% 30%, 100% 100%); transition: background 1s ease; }
#scene-8 .mountain-front { bottom: 0; height: 35%; background: var(--mountain-front); clip-path: polygon(0 100%, 0 70%, 25% 30%, 45% 80%, 75% 40%, 100% 70%, 100% 100%); transition: background 1s ease; }
#scene-8 .person { position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%); width: 4vw; height: 8vw; background: #050505; border-radius: 2vw 2vw 0 0; z-index: 5; }
#scene-8 .laptop-side { position: absolute; bottom: 12%; left: calc(50% + 2vw); width: 3vw; height: 2vw; background: #000; clip-path: polygon(0 100%, 0 0, 10% 0, 100% 90%, 100% 100%); z-index: 6; }
#scene-8 .screen-glow-side { position: absolute; bottom: 13%; left: calc(50% + 2.5vw); width: 1vw; height: 1vw; background: var(--accent); filter: blur(2px); z-index: 7; transition: background 1s ease; }
#scene-8 .signal-beam { position: absolute; bottom: 14%; left: calc(50% + 2.5vw); width: 2px; height: 30vh; background: linear-gradient(to top, var(--accent), transparent); box-shadow: 0 0 10px var(--accent); z-index: 8; transform-origin: bottom; animation: beamUp 2s ease-out forwards; transition: background 1s ease, box-shadow 1s ease; }
@keyframes beamUp { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }

/* ═══════════════════════════════════════
   SMOOTH SCROLL OVERRIDES
   ═══════════════════════════════════════ */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
