/* Pure CSS for Trunk Lockscreen Depth Portfolio (cPanel Ready) — Scenic Wallpaper Background Edition */
html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   CSS VARIABLES FOR LIGHT & DARK FROSTED GLASS ON SCENIC WALLPAPER
   ========================================================================== */
:root,
body.theme-light {
  --bg-page: #dbeafe;
  --text-primary: #0f172a;
  --text-secondary: #1e293b;
  --text-muted: #475569;
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-card-outer: rgba(255, 255, 255, 0.78);
  --surface-card: rgba(255, 255, 255, 0.78);
  --surface-card-footer: rgba(255, 255, 255, 0.55);
  --surface-stat: rgba(255, 255, 255, 0.68);
  --surface-tag: rgba(255, 255, 255, 0.75);
  --text-tag: #0f172a;
  --shadow-card: 0 20px 50px -12px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-card-hover: 0 28px 65px -12px rgba(15, 23, 42, 0.2), inset 0 1px 0 #ffffff;
  --spotlight-color: rgba(255, 255, 255, 0.45);
  --accent-sky: #0284c7;
  --accent-amber: #d97706;
  --contact-banner-bg: rgba(255, 255, 255, 0.8);
  --scrollbar-track: #e2e8f0;
  --scrollbar-thumb: rgba(15, 23, 42, 0.28);
}

body.theme-dark {
  --bg-page: #060a12;
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-card-outer: rgba(255, 255, 255, 0.15);
  --surface-card: rgba(10, 16, 29, 0.62);
  --surface-card-footer: rgba(15, 23, 42, 0.48);
  --surface-stat: rgba(255, 255, 255, 0.06);
  --surface-tag: rgba(255, 255, 255, 0.09);
  --text-tag: #f1f5f9;
  --shadow-card: 0 24px 55px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --shadow-card-hover: 0 30px 70px -12px rgba(56, 189, 248, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --spotlight-color: rgba(56, 189, 248, 0.14);
  --accent-sky: #38bdf8;
  --accent-amber: #fbbf24;
  --contact-banner-bg: rgba(10, 16, 29, 0.68);
  --scrollbar-track: #060a12;
  --scrollbar-thumb: rgba(255, 255, 255, 0.22);
}

body {
  font-family: "Be Vietnam Pro", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  overflow-x: hidden;
  margin: 0;
  transition: background-color 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   HERO LOCK SCREEN & SECTION WALLPAPER DYNAMIC DAY/NIGHT CROSS-FADE
   ========================================================================== */
.hero-dynamic-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: opacity, transform, filter;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              filter 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light (Day) Layer Visibility */
body.theme-light .hero-img-day {
  opacity: 1;
  transform: scale(1);
}
body.theme-dark .hero-img-day {
  opacity: 0;
  transform: scale(1.015);
}

/* Dark (Night) Layer Visibility */
body.theme-light .hero-img-night {
  opacity: 0;
  transform: scale(1.015);
}
body.theme-dark .hero-img-night {
  opacity: 1;
  transform: scale(1);
}

/* Foreground Hair Cutout Layers */
body.theme-light .hero-cutout-day {
  opacity: 1;
}
body.theme-dark .hero-cutout-day {
  opacity: 0;
}
body.theme-light .hero-cutout-night {
  opacity: 0;
}
body.theme-dark .hero-cutout-night {
  opacity: 1;
}

/* Clean Bottom Vignette Overlays (Zero Yellow Tint on Clock) */
.hero-day-glow {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 40%, rgba(0, 0, 0, 0.68) 100%);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-night-glow {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28) 0%, transparent 42%, rgba(2, 6, 23, 0.82) 100%);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

body.theme-light .hero-day-glow {
  opacity: 1;
}
body.theme-dark .hero-day-glow {
  opacity: 0;
}
body.theme-light .hero-night-glow {
  opacity: 0;
}
body.theme-dark .hero-night-glow {
  opacity: 1;
}

/* Subtle Twinkling Starfield in Night Mode */
.hero-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  background-image:
    radial-gradient(1.5px 1.5px at 14% 12%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 26% 20%, rgba(186, 230, 253, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 38% 9%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 64% 14%, rgba(186, 230, 253, 0.85), transparent),
    radial-gradient(1px 1px at 77% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 88% 11%, rgba(255, 255, 255, 0.8), transparent);
}
body.theme-dark .hero-starfield {
  opacity: 0.8;
}

/* ==========================================================================
   LOWER SECTIONS SCENIC PHOTOGRAPHY WALLPAPER BACKDROP (DAY & NIGHT)
   ========================================================================== */
.theme-main-wrapper {
  position: relative;
  color: var(--text-primary);
  transition: color 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-wallpaper-backdrop {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.section-wallpaper-overlay {
  position: absolute;
  inset: 0;
  transition: background 0.9s ease;
}

/* ==========================================================================
   ANIMATED 60FPS TECH STAGE & ULTRA-CLEAN macOS GLASS WINDOW (ZERO AI CLUTTER)
   ========================================================================== */
.tech-animated-stage {
  background: radial-gradient(circle at 50% 25%, #f0f6ff 0%, #e1ecfa 55%, #d5e4f7 100%);
  transition: background 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

body.theme-dark .tech-animated-stage {
  background: radial-gradient(circle at 50% 25%, #091224 0%, #050914 55%, #020409 100%);
}

/* Living Ambient Backlight Halo Behind the macOS Window */
.macbook-ambient-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  height: 76%;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 1;
  filter: blur(85px);
  opacity: 0.75;
  background: radial-gradient(
    ellipse at center,
    rgba(14, 165, 233, 0.26) 0%,
    rgba(99, 102, 241, 0.18) 45%,
    transparent 75%
  );
  animation: haloPulse 8s ease-in-out infinite alternate;
  transition: background 0.85s ease;
}

body.theme-dark .macbook-ambient-halo {
  background: radial-gradient(
    ellipse at center,
    rgba(56, 189, 248, 0.25) 0%,
    rgba(59, 130, 246, 0.2) 45%,
    transparent 75%
  );
}

@keyframes haloPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.65;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.9;
  }
}

.macbook-pro-device {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  transition: max-width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.macbook-pro-device.is-maximized {
  max-width: 96vw;
}

/* Outer Anodized Glass-Titanium Frame (Minimalist, Zero Fake Notch) */
.macos-glass-frame {
  position: relative;
  padding: 5px;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.32) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 35px 90px -20px rgba(15, 23, 42, 0.22),
    0 12px 32px -8px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: background 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease;
}

body.theme-dark .macos-glass-frame {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 45px 110px -20px rgba(0, 0, 0, 0.85),
    0 0 55px -12px rgba(56, 189, 248, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Inner Display Screen Surface (macOS Sequoia Translucent Glass) */
.macbook-display-surface {
  position: relative;
  border-radius: 23px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 82vh;
  min-height: 620px;
  max-height: 860px;
  background: rgba(248, 251, 255, 0.74);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: background-color 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.6s ease,
              height 0.45s ease;
}

.macbook-pro-device.is-maximized .macbook-display-surface {
  height: 88vh;
  max-height: 940px;
}

body.theme-dark .macbook-display-surface {
  background: rgba(8, 13, 25, 0.76);
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1023px) {
  .macbook-display-surface {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    border-radius: 20px;
  }
  .macos-glass-frame {
    padding: 3px;
    border-radius: 23px;
  }
}

/* Single Unified macOS Titlebar (Clean, Editorial, No Redundant Bars) */
.macos-unified-header {
  min-height: 52px;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  flex-shrink: 0;
  z-index: 30;
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

@media (max-width: 1023px) {
  .macos-unified-header {
    position: sticky;
    top: 8px;
    margin: 6px 6px 0 6px;
    padding: 6px;
    min-height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.14);
  }
  body.theme-dark .macos-unified-header {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.55);
  }
}

body.theme-dark .macos-unified-header {
  background: rgba(12, 19, 34, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.macos-traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.macos-tl-btn {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
}
.macos-tl-btn:hover {
  transform: scale(1.14);
  filter: brightness(1.06);
}
.macos-tl-close { background: #ff5f57; }
.macos-tl-min   { background: #febc2e; }
.macos-tl-max   { background: #28c840; }

/* Native macOS Segmented Navigation Pill Track (Zero Scrollbar on All Devices) */
.macos-segmented-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3.5px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.05);
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.macos-segmented-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 639px) {
  .macos-segmented-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    padding: 3px;
    gap: 2px;
    border-radius: 12px;
  }
}

body.theme-dark .macos-segmented-nav {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.macos-seg-tab {
  padding: 5px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 639px) {
  .macos-seg-tab {
    padding: 6px 2px;
    font-size: 11px;
    border-radius: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.macos-seg-tab:hover {
  color: var(--text-primary);
}

.macos-seg-tab.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.theme-dark .macos-seg-tab.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* macOS Main Scrollable Content Area */
.macos-content-scroll {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  position: relative;
}

@media (max-width: 1023px) {
  .macos-content-scroll {
    overflow: visible;
  }
}

/* ==========================================================================
   iOS LOCKSCREEN CLOCK TYPOGRAPHY — PURE CRISP FROSTED WHITE (NO YELLOW)
   ========================================================================== */
.ios-clock-text {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.88;
  transform: scaleY(1.1);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.86) 0%,
    rgba(240, 249, 255, 0.66) 60%,
    rgba(224, 242, 254, 0.46) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(15, 23, 42, 0.14));
  user-select: none;
  transition: filter 0.85s ease, opacity 0.85s ease;
}

body.theme-dark .ios-clock-text {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(226, 232, 240, 0.66) 60%,
    rgba(186, 230, 253, 0.45) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.35));
}

.clock-frame-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.85s ease, border-color 0.85s ease;
}
body.theme-dark .clock-frame-box {
  background: rgba(15, 23, 42, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   MINIMALIST "Light | Dark" PILL SWITCH (ZERO ICONS, PURE APPLE TYPOGRAPHY)
   ========================================================================== */
.theme-toggle-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 2px;
  border-radius: 9999px;
  background: rgba(20, 22, 28, 0.46);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.theme-toggle-pill-slider {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

body.theme-dark .theme-toggle-pill-slider {
  transform: translateX(100%);
}

.theme-toggle-option {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 9999px;
  transition: color 0.35s ease;
  text-align: center;
  min-width: 52px;
}

body.theme-light .theme-opt-day {
  color: #020617;
}
body.theme-light .theme-opt-night {
  color: rgba(255, 255, 255, 0.78);
}
body.theme-light .theme-opt-night:hover {
  color: #ffffff;
}

body.theme-dark .theme-opt-day {
  color: rgba(255, 255, 255, 0.78);
}
body.theme-dark .theme-opt-day:hover {
  color: #ffffff;
}
body.theme-dark .theme-opt-night {
  color: #020617;
}

/* ==========================================================================
   SCROLL-REVEAL, 3D TILT, SPOTLIGHT & EDITORIAL CARD ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px) scale(0.975);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    480px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--spotlight-color),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Live Audio Equalizer Animation on Headphones Card */
@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 15px; }
}
.eq-bar {
  width: 3px;
  border-radius: 9999px;
  background: #34d399;
  animation: eqBounce 1.1s ease-in-out infinite;
}
.eq-bar:nth-child(2) { animation-delay: 0.2s; animation-duration: 0.85s; }
.eq-bar:nth-child(3) { animation-delay: 0.45s; animation-duration: 1.2s; }
.eq-bar:nth-child(4) { animation-delay: 0.15s; animation-duration: 0.95s; }

/* Animated Signal Dot on Capability Cards */
@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.9; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.signal-dot-ring::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  border: 1.5px solid currentColor;
  animation: pulseRing 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* Quick Look Modal Spring Entrance */
@keyframes modalQuickLookIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-quicklook-card {
  animation: modalQuickLookIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   PORTFOLIO SECTIONS — FROSTED GLASS LIGHT & DARK THEME SURFACES
   ========================================================================== */
.theme-section-divider {
  border-color: var(--border-subtle);
  transition: border-color 0.7s ease;
}

.theme-surface-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card-outer);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transition: background-color 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.45s ease,
              box-shadow 0.45s ease,
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-surface-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(14, 165, 233, 0.4);
}

.theme-card-footer {
  background: var(--surface-card-footer);
  border-top: 1px solid var(--border-subtle);
  transition: background-color 0.7s ease, border-color 0.7s ease;
}

.theme-stat-box {
  background: var(--surface-stat);
  border: 1px solid var(--border-subtle);
  transition: background-color 0.7s ease, border-color 0.7s ease;
}

.theme-tag-pill {
  background: var(--surface-tag);
  border: 1px solid var(--border-subtle);
  color: var(--text-tag);
  transition: background-color 0.55s ease, color 0.55s ease, border-color 0.55s ease;
}

.theme-text-primary {
  color: var(--text-primary);
  transition: color 0.6s ease;
}

.theme-text-secondary {
  color: var(--text-secondary);
  transition: color 0.6s ease;
}

.theme-text-muted {
  color: var(--text-muted);
  transition: color 0.6s ease;
}

.theme-accent-sky {
  color: var(--accent-sky);
  transition: color 0.6s ease;
}

.theme-accent-amber {
  color: var(--accent-amber);
  transition: color 0.6s ease;
}

.theme-contact-banner {
  background: var(--contact-banner-bg);
  border: 1px solid var(--border-card-outer);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  transition: background 0.8s ease, border-color 0.7s ease, box-shadow 0.7s ease;
}

/* ==========================================================================
   HERO GLASSMORPHISM CARDS
   ========================================================================== */
.glass-panel {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, transform 0.3s ease;
}
body.theme-dark .glass-panel {
  background: rgba(15, 23, 42, 0.46);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
}

.glass-pill {
  background: rgba(20, 22, 28, 0.46);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.glass-search-bar {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
body.theme-dark .glass-search-bar {
  background: rgba(15, 23, 42, 0.48);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Transparent Frosted Glass Search Dropdown (iOS Spotlight Glass) */
.glass-search-dropdown {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.13) 100%
  );
  backdrop-filter: blur(28px) saturate(185%);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.48);
  color: #ffffff;
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

body.theme-dark .glass-search-dropdown {
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.46) 0%,
    rgba(15, 23, 42, 0.28) 100%
  );
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 28px 65px -12px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
}

.glass-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.glass-scroll-area::-webkit-scrollbar {
  width: 5px;
}
.glass-scroll-area::-webkit-scrollbar-track {
  background: transparent !important;
  margin: 8px 0;
}
.glass-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
}
.glass-scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.z-35 {
  z-index: 35;
}

/* Smooth fade-in & staggered spring-up animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroWordSpringUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(0.92);
    filter: blur(8px);
  }
  65% {
    opacity: 1;
    transform: translate3d(0, -3px, 0) scale(1.01);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0px);
  }
}

.hero-word-rise {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: heroWordSpringUp 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--word-delay, 0ms);
}

@keyframes heroBlockSpringUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.96);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0px);
  }
}

.hero-bio-rise {
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: heroBlockSpringUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--bio-delay, 900ms);
}

.hero-card-rise {
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: heroBlockSpringUp 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 750ms;
}

/* Interactive Horizontal Drag-to-Scroll Carousel inside macOS Window */
.macos-carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 0.35rem;
  padding-bottom: 1rem;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.macos-carousel-track::-webkit-scrollbar {
  display: none;
}

.macos-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto !important;
}

.macos-carousel-track.is-dragging * {
  pointer-events: none;
}

/* Theme-Aware Translucent Frosted Glass Quick Look Modal Sheet */
body.theme-light .theme-modal-backdrop {
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

body.theme-dark .theme-modal-backdrop {
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

body.theme-light .theme-modal-sheet {
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(248, 250, 252, 0.56) 100%
  );
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: #0f172a;
  box-shadow: 0 32px 80px -12px rgba(15, 23, 42, 0.26),
              inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.theme-dark .theme-modal-sheet {
  background: linear-gradient(
    150deg,
    rgba(15, 23, 42, 0.68) 0%,
    rgba(10, 15, 29, 0.52) 100%
  );
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  box-shadow: 0 36px 90px -12px rgba(0, 0, 0, 0.72),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.macos-carousel-control-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 9999px;
  background: var(--stat-box-bg);
  border: 1px solid var(--stat-box-border);
}

.macos-carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card-bg);
  border: 1px solid var(--surface-card-border);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.2s ease,
              opacity 0.2s ease;
  cursor: pointer;
}

.macos-carousel-btn:hover:not(:disabled) {
  transform: scale(1.06);
  border-color: rgba(56, 189, 248, 0.5);
}

.macos-carousel-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.macos-carousel-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

/* Custom sleek transparent-track scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 9999px;
}
