@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  /* Colors */
  --color-bg-base: #09090b;
  --color-bg-surface: #121214;
  --color-bg-surface-hover: #1e1e21;
  --color-bg-glass: rgba(18, 18, 20, 0.92);
  --color-bg-glass-hover: rgba(30, 30, 33, 0.96);

  --color-text-primary: #f4f4f5;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;
  --color-text-dim: #3f3f46;

  /* Accent - Nordic Arctic Blue */
  --color-accent: #0076ff;
  --color-accent-rgb: 0, 118, 255;
  --color-accent-glow: rgba(0, 118, 255, 0.15);
  --color-accent-hover: #3b9aff;

  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Borders & Dividers */
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);
  --color-divider: rgba(255, 255, 255, 0.04);

  /* Spacing Grid (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-window: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-dock: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);

  /* Animation Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Desktop Dimensions */
  --dock-height: 64px;
  --statusbar-height: 28px;
  --window-title-height: 38px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
}

html, body, #app {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Base Headings & Text */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
  user-select: text;
}

a:hover {
  color: var(--color-accent-hover);
}

/* Utility classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.glass {
  background: var(--color-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
}

.interactive-hover {
  transition: all 0.2s var(--ease-out-expo);
}

.interactive-hover:hover {
  background: var(--color-bg-surface-hover);
  border-color: var(--color-border-hover);
}

/* Text selections */
::selection {
  background: var(--color-accent-glow);
  color: var(--color-text-primary);
}

#app {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
#desk-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  background: radial-gradient(circle at 10% 10%, rgba(43, 29, 22, 0.4) 0%, rgba(20, 14, 10, 0.9) 80%),
              repeating-linear-gradient(90deg, #1b120c 0px, #1b120c 30px, #20150e 30px, #20150e 60px, #170f0a 60px, #170f0a 90px);
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  z-index: 5;
}

.desk-surface {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

/* Desk Accessories */
.desk-mat {
  width: 80%;
  max-width: 1000px;
  aspect-ratio: 1.65 / 1;
  max-height: 80vh;
  background: #18181b;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8),
              0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  --scene-scale: 1;
}

.desk-mat::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.02);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

/* DSLR Camera (Top-down View - Top Right) */
.dslr-camera {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 110px;
  height: 82px;
  transform-origin: top right;
  transform: scale(var(--scene-scale));
  z-index: 3;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-expo), filter 0.3s ease;
}

.dslr-camera:hover {
  transform: scale(calc(var(--scene-scale) * 1.08)) translateY(-2px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.9));
}

.dslr-body {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(135deg, #27272a 0%, #18181b 60%, #09090b 100%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8),
              inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.dslr-grip {
  position: absolute;
  left: 0;
  top: 6px;
  width: 22px;
  height: calc(100% - 12px);
  background: #111113;
  border-radius: 6px 0 0 6px;
  box-shadow: inset -2px 0 5px rgba(0,0,0,0.8);
  border-right: 1px solid rgba(255,255,255,0.04);
}

.dslr-viewfinder-bump {
  position: absolute;
  top: -4px;
  left: 20px;
  width: 44px;
  height: 8px;
  background: #27272a;
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.dslr-shutter {
  position: absolute;
  top: -5px;
  left: 8px;
  width: 12px;
  height: 8px;
  background: linear-gradient(180deg, #d4d4d8 0%, #71717a 100%);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.dslr-dial {
  position: absolute;
  top: -6px;
  right: 12px;
  width: 14px;
  height: 9px;
  background: linear-gradient(90deg, #3f3f46, #18181b, #3f3f46);
  border-radius: 3px 3px 0 0;
  border: 1px solid #18181b;
}

.dslr-lens-base {
  position: absolute;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
  width: 62px;
  height: 62px;
  background: radial-gradient(circle, #27272a 0%, #09090b 100%);
  border-radius: 50%;
  border: 3px solid #18181b;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7), inset 0 0 8px rgba(0,0,0,0.9);
  position: relative;
}

.dslr-lens-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: repeating-conic-gradient(#18181b 0deg 15deg, #27272a 15deg 30deg);
  border: 1.5px solid #ef4444;
  z-index: 1;
}

.dslr-lens-glass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #0284c7 0%, #030712 75%);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.95), 0 0 6px rgba(0,0,0,0.6);
  z-index: 2;
}

.dslr-reflection {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 12px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: rotate(-30deg);
  filter: blur(1px);
}

/* Desk Photo Gallery Overlay Modal (Minimalist) */
.desk-gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-expo);
}

.desk-gallery-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.desk-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.desk-gallery-modal {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
  transform: scale(0.94);
  transition: transform 0.35s var(--ease-elastic);
}

.desk-gallery-overlay.active .desk-gallery-modal {
  transform: scale(1);
}

.desk-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: 10px;
}

.minimal-gallery-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

.desk-gallery-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.desk-gallery-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  transform: scale(1.08);
}

.desk-gallery-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.desk-gallery-scroll-container::-webkit-scrollbar {
  display: none;
}

.desk-gallery-card {
  flex: 0 0 calc((100% - 32px) / 1.3); /* 100% center image with 15% left peek & 15% right peek */
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.25s var(--ease-out-expo);
  cursor: pointer;
}

.desk-gallery-card:hover {
  transform: translateY(-4px);
}

.desk-card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border);
}

.desk-card-small-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .desk-gallery-modal {
    width: 94%;
    padding: 14px 10px;
  }
  .desk-gallery-scroll-container {
    gap: 12px;
  }
  .desk-gallery-card {
    flex: 0 0 calc((100% - 24px) / 1.3);
  }
}

/* Gallery Card Zoom Lightbox Modal */
.gallery-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo);
}

.gallery-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.95);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 10;
  transform: scale(0.9);
  transition: transform 0.35s var(--ease-elastic);
}

.gallery-lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-border);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  transform: scale(1.1);
}

.lightbox-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .lightbox-content {
    width: 95%;
    padding: 16px;
  }
  .lightbox-media {
    height: 260px;
  }
}



/* Designer Notebook */
.notebook {
  position: absolute;
  bottom: 8%;
  right: 6%;
  width: 140px;
  height: 190px;
  background: #111;
  border-radius: var(--radius-sm) var(--radius-md) var(--radius-md) var(--radius-sm);
  box-shadow: 5px 15px 30px rgba(0,0,0,0.6),
              -2px 0 5px rgba(0,0,0,0.4);
  transform-origin: bottom right;
  transform: rotate(5deg) scale(var(--scene-scale));
  border-left: 5px solid #222;
}

.notebook-strap {
  position: absolute;
  right: 15px;
  top: 0;
  width: 10px;
  height: 100%;
  background: #27272a;
  box-shadow: 1px 0 2px rgba(0,0,0,0.4);
}

/* Movie Poster (Framed on Desk Surface) */
/* Movie Posters Stack (Interstellar + Spider-Man + Mission: Impossible) */
.posters-container {
  position: absolute;
  top: 4%;
  left: 4%;
  width: 175px;
  height: 220px;
  z-index: 2;
  cursor: pointer;
  transform-origin: top left;
  transform: scale(var(--scene-scale));
}

.movie-poster {
  position: absolute;
  width: 125px;
  height: 175px;
  background: #09090b;
  border: 3.5px solid #27272a;
  border-radius: 4px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out-expo), z-index 0.35s ease, box-shadow 0.35s ease;
}

/* Stack Positions: 0 (bottom), 1 (middle), 2 (top) */
.movie-poster[data-order="0"] {
  top: 0px;
  left: 0px;
  transform: rotate(-10deg);
  z-index: 1;
}

.movie-poster[data-order="1"] {
  top: 10px;
  left: 12px;
  transform: rotate(5deg);
  z-index: 5;
}

.movie-poster[data-order="2"] {
  top: 20px;
  left: 24px;
  transform: rotate(-2deg);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
}

.movie-poster:hover {
  transform: translateY(-8px) scale(1.06) !important;
  z-index: 20 !important;
}

.movie-poster.interstellar-poster {
  border-color: #1e293b;
}

.movie-poster.spiderman-poster {
  border-color: #312e81;
}

.movie-poster.mission-poster {
  border-color: #78350f;
}

.poster-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #070a14 0%, #030509 55%, #180929 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  position: relative;
}

.spiderman-inner {
  background: linear-gradient(180deg, #1e1b4b 0%, #030712 50%, #831843 100%);
}

.mission-inner {
  background: linear-gradient(180deg, #451a03 0%, #09090b 50%, #7f1d1d 100%);
}

.poster-badge {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #38bdf8;
  font-family: var(--font-display);
}

.spiderman-badge {
  color: #ef4444;
}

.mission-badge {
  color: #f59e0b;
}

.mission-graphic {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.fuse-symbol {
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.7));
}

.mission-title {
  font-size: 8.5px;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
  line-height: 1.1;
}

.poster-graphic {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.5) 0%, rgba(168, 85, 247, 0.15) 70%, transparent 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.spiderman-graphic {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.spider-symbol {
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.7));
}

.poster-title {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-align: center;
  margin-top: auto;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.spiderman-title {
  font-size: 8.5px;
  color: #f87171;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
  line-height: 1.1;
}

.poster-subtitle {
  font-size: 5.5px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.2;
  margin-top: 2px;
  opacity: 0.8;
}

/* Formula 1 Car Model (Realistic Top-down Layout - Positioned down left) */
.f1-car {
  position: absolute;
  bottom: 5%;
  left: 4%;
  width: 64px;
  height: 132px;
  transform-origin: bottom left;
  transform: rotate(-28deg) scale(var(--scene-scale));
  transform-style: preserve-3d;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.85));
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-expo);
  z-index: 3;
}

.f1-car:hover {
  transform: rotate(-28deg) translateY(-6px) scale(calc(var(--scene-scale) * 1.08));
}

.f1-front-wing-main {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 12px;
  background: #18181b;
  border-radius: 2px;
  border: 1px solid #ef4444;
}

.f1-wing-flap {
  position: absolute;
  top: 2px;
  width: 24px;
  height: 3px;
  background: #ef4444;
}
.f1-wing-flap.left { left: 3px; }
.f1-wing-flap.right { right: 3px; }

.f1-endplate {
  position: absolute;
  top: -2px;
  width: 3px;
  height: 16px;
  background: #111;
  border-radius: 1px;
}
.f1-endplate.left { left: 0; }
.f1-endplate.right { right: 0; }

.f1-nose {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 44px;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border-radius: 6px 6px 3px 3px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4px;
  z-index: 2;
}

.f1-number {
  font-size: 8px;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-display);
}

.f1-halo {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 24px;
  border: 2px solid #27272a;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  z-index: 4;
}

.f1-cockpit {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 28px;
  background: #09090b;
  border-radius: 9px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.f1-helmet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fbbf24, #d97706);
  box-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.f1-sidepod {
  position: absolute;
  top: 44px;
  width: 18px;
  height: 44px;
  background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%);
  border-radius: 8px 8px 3px 3px;
  z-index: 1;
}
.f1-sidepod.left { left: 4px; }
.f1-sidepod.right { right: 4px; }

.f1-engine-cover {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 48px;
  background: #7f1d1d;
  border-radius: 2px;
  z-index: 2;
}

.f1-rear-wing-main {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 14px;
  background: #18181b;
  border-radius: 2px;
  border-top: 2px solid #ef4444;
  z-index: 3;
}

.f1-tire {
  position: absolute;
  background: linear-gradient(90deg, #09090b, #27272a, #09090b);
  border-radius: 3px;
  border: 1px solid #000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.8);
}

.f1-tire.front-left { top: 12px; left: -5px; width: 12px; height: 26px; }
.f1-tire.front-right { top: 12px; right: -5px; width: 12px; height: 26px; }
.f1-tire.rear-left { bottom: 6px; left: -7px; width: 15px; height: 28px; }
.f1-tire.rear-right { bottom: 6px; right: -7px; width: 15px; height: 28px; }



/* Laptop Component */
.laptop-container {
  width: 480px;
  height: 320px;
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
  transform-origin: center center;
  transform: scale(var(--scene-scale));
}

/* Laptop Base (Keyboard Part) */
.laptop-base {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #27272a 0%, #18181b 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  position: absolute;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Keyboard Inset */
.keyboard-area {
  width: 90%;
  height: 50%;
  margin-top: 15px;
  background: #09090b;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.9);
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  gap: 3px;
  padding: 6px;
}

.key-row {
  display: flex;
  gap: 3px;
}

.key {
  flex: 1;
  background: #1c1c1f;
  border-radius: 1.5px;
  border-bottom: 1.5px solid #09090b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
  line-height: 1;
  text-transform: uppercase;
}

.key-sm { flex: 0.8; font-size: 4px; color: rgba(255, 255, 255, 0.5); }
.key-med { flex: 1.4; font-size: 4.5px; color: rgba(255, 255, 255, 0.55); }
.key-lg { flex: 1.7; font-size: 4.5px; color: rgba(255, 255, 255, 0.55); }
.key-xl { flex: 2.2; font-size: 4.5px; color: rgba(255, 255, 255, 0.55); }

.key.spacebar {
  flex: 5.5;
}

/* Trackpad */
.trackpad {
  width: 32%;
  height: 25%;
  margin-top: 15px;
  background: #1e1e21;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}

/* Screen Lid */
.laptop-lid {
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease-out-expo);
  z-index: 10;
}

/* Lid States */
.laptop-lid.closed {
  transform: rotateX(0deg);
}

.laptop-lid.open {
  transform: rotateX(-105deg);
}

/* Lid Front (When Laptop is Closed) */
.lid-outer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3f3f46, #18181b);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  backface-visibility: hidden;
  box-shadow: inset 0 2px 10px rgba(255,255,255,0.1);
}

.laptop-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 0.1em;
  color: #71717a;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.lid-tap-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transition: color 0.3s ease;
}

.laptop-container:hover .lid-tap-text {
  color: rgba(255, 255, 255, 0.9);
}

.tap-experience-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 18, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #f4f4f5;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  white-space: nowrap;
  animation: tap-pulse 2s infinite ease-in-out;
  pointer-events: none;
}

.tap-pulse-dot {
  width: 7px;
  height: 7px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
}

@keyframes tap-pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translateX(-50%) scale(1.04);
    opacity: 1;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
  }
}

/* Lid Back (The Display Screen) */
.lid-inner {
  position: absolute;
  inset: 0;
  background: #09090b;
  border-radius: var(--radius-lg);
  transform: rotateY(180deg) rotateZ(180deg); /* Flip to back */
  backface-visibility: hidden;
  border: 8px solid #18181b;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The screen overlay which we zoom into */
.laptop-screen-content {
  width: 100%;
  height: 100%;
  position: relative;
  background: #09090b;
  opacity: 0;
  transition: opacity 0.5s ease 0.6s;
  overflow: hidden;
}

.laptop-lid.open .laptop-screen-content {
  opacity: 1;
}

/* Screen boot screen */
.boot-screen {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 0.8s ease 1.5s;
}

.boot-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--color-text-primary);
  opacity: 0;
  transform: scale(0.9);
  animation: logo-fade 1.2s ease forwards 0.4s;
}

@keyframes logo-fade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.boot-progress {
  width: 100px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

.boot-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--color-text-primary);
  animation: progress-fill 1s ease forwards 0.6s;
}

@keyframes progress-fill {
  to {
    width: 100%;
  }
}


#desktop-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
  display: none; /* Shown after transition */
  opacity: 0;
  background-color: var(--color-bg-base);
  /* Premium Dark Mesh Gradient */
  background-image: 
    radial-gradient(at 10% 20%, rgba(13, 10, 36, 0.8) 0px, transparent 50%),
    radial-gradient(at 90% 10%, rgba(8, 28, 48, 0.8) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(26, 12, 42, 0.7) 0px, transparent 50%),
    radial-gradient(at 80% 90%, rgba(20, 10, 30, 0.8) 0px, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E");
}

/* Status Bar */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--statusbar-height);
  padding: 0 var(--space-4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.system-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
  cursor: pointer;
}

.active-app-name {
  color: var(--color-text-primary);
  font-weight: 600;
}

.status-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Desktop Icon Grid */
.desktop-grid {
  position: absolute;
  top: calc(var(--statusbar-height) + var(--space-6));
  left: var(--space-6);
  bottom: calc(var(--dock-height) + var(--space-8));
  display: grid;
  grid-template-rows: repeat(auto-fill, 90px);
  grid-auto-flow: column;
  gap: var(--space-6);
  z-index: 10;
}

.desktop-icon {
  width: 75px;
  height: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-sm);
}

.desktop-icon:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.06);
}

.desktop-icon-shape {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-out-expo);
}

.desktop-icon:hover .desktop-icon-shape {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.desktop-icon-label {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text-secondary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.desktop-icon:hover .desktop-icon-label {
  color: var(--color-text-primary);
}

/* Taskbar Dock */
.dock-container {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  pointer-events: none;
  height: var(--dock-height);
  padding: 0 var(--space-3);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-dock);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-container.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.status-power-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.status-power-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
  transform: scale(1.04);
}

.dock-item.dock-off-btn {
  color: #f87171;
}

.dock-item.dock-off-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.dock-item {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  position: relative;
  transition: all 0.2s var(--ease-elastic);
}

.dock-item:hover {
  transform: translateY(-6px) scale(1.12);
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.dock-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  width: 4px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s var(--ease-out-expo);
}

.dock-item.active::after {
  opacity: 1;
  transform: scale(1);
}

.dock-divider {
  width: 1px;
  height: 24px;
  background: var(--color-border);
  margin: 0 var(--space-1);
}

/* Tooltips */
.dock-tooltip {
  position: absolute;
  bottom: 58px;
  background: rgba(18, 18, 20, 0.9);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: var(--space-1) var(--space-3);
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.15s var(--ease-out-expo);
  box-shadow: var(--shadow-sm);
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.window-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Let clicks pass to desktop unless on a window */
  z-index: 20;
}

.window {
  position: absolute;
  width: 680px;
  height: 480px;
  min-width: 320px;
  min-height: 240px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-window);
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto; /* Active pointer events for window */
  opacity: 0;
  transform: scale(0.96);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.window.fullscreen {
  top: 28px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 28px) !important;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.window.fullscreen .window-body {
  padding-bottom: calc(var(--dock-height) + 36px);
}

/* Active Window State */
.window.active-focus {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Window Header */
.window-header {
  height: var(--window-title-height);
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--color-divider);
  cursor: grab;
  user-select: none;
}

.window-header:active {
  cursor: grabbing;
}

.window-title-area {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
}

.window-icon {
  width: 14px;
  height: 14px;
  color: var(--color-text-secondary);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.window-control-btn {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.window-control-btn:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.window-control-btn.close-btn:hover {
  color: var(--color-error);
  background: rgba(239, 68, 68, 0.1);
}

/* Window Body */
.window-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6) var(--space-8);
  color: var(--color-text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Template layout styles inside windows */
.app-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.about-header {
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
}

.about-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #1f1f2e, #0e0e16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--color-text-primary);
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.detail-item-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.detail-item-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* Generic List layouts (Projects, Experience) */
.list-container {
  display: flex;
  flex-col: column;
  gap: var(--space-5);
}

.card-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  transition: all 0.2s ease;
}

.card-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--color-border-hover);
}

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

.card-title {
  font-size: 15px;
  color: var(--color-text-primary);
  font-weight: 600;
}

.card-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
}

.card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  margin-right: 6px;
  margin-top: 6px;
}

.bullets-list {
  margin-top: var(--space-3);
  padding-left: var(--space-4);
}

.bullets-list li {
  margin-bottom: 6px;
  font-size: 13px;
}

/* Contact Window */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.socials-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.social-link:hover {
  color: var(--color-text-primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

.form-input, .form-textarea {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.04);
}

.form-submit-btn {
  background: var(--color-text-primary);
  color: var(--color-bg-base);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
}

.form-submit-btn:hover {
  background: var(--color-text-secondary);
  transform: translateY(-1px);
}

/* Certificate Image Placeholder & Hover Expansion */
.cert-image-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  z-index: 10;
}

.cert-image-placeholder {
  width: 175px;
  height: 110px;
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
  user-select: none;
}

.cert-image-placeholder:hover,
.cert-image-placeholder.expanded {
  transform: scale(3.2);
  z-index: 9999;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.98), 0 0 0 1.5px rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, #27272a 0%, #09090b 100%);
}

.cert-img-inner {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(234, 179, 8, 0.45);
  border-radius: 3px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: rgba(18, 18, 20, 0.8);
}

.cert-watermark-seal {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  opacity: 0.85;
}

.cert-img-header {
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #eab308;
  font-family: var(--font-display);
}

.cert-img-name {
  font-size: 7px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.cert-img-desc {
  font-size: 5px;
  color: #a1a1aa;
  line-height: 1.25;
  margin-top: 1px;
  max-width: 110px;
}

.cert-img-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 4.5px;
  color: #71717a;
  margin-top: auto;
}

.cert-stamp {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.cert-expand-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(24, 24, 27, 0.9);
  color: var(--color-text-secondary);
  font-size: 5.5px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid var(--color-border);
  transition: opacity 0.2s ease;
}

.cert-image-placeholder:hover .cert-expand-badge {
  opacity: 0;
}


/* ==========================================================================
   RESPONSIVE.CSS — Layout-only responsive overrides for SNITH Portfolio
   Imported LAST so media queries cascade over all component styles.
   
   Breakpoints:
   - Desktop XL (1920px+):       Reference — no overrides
   - Desktop (1440–1919px):      Reference — no overrides
   - Laptop (1200–1439px):       No overrides needed
   - Small Laptop (992–1199px):  Slight reductions
   - Tablet Landscape (768–991px): Layout adjustments
   - Tablet Portrait (600–767px):  Grid reflow, touch targets
   - Large Mobile (480–599px):   Full-screen windows
   - Mobile (320–479px):         Maximum adaptation
   ========================================================================== */


/* ==========================================================================
   SMALL LAPTOP (992–1199px)
   Same experience, slightly tighter spacing.
   ========================================================================== */

@media (max-width: 1199px) {

  /* Desk Scene — uniform scale preserving all proportions */
  .desk-mat {
    width: 85%;
    max-width: 880px;
    --scene-scale: 0.88;
  }

  /* Desktop Grid — slightly reduced gap */
  .desktop-grid {
    gap: var(--space-5);
  }

  /* Dock — slightly reduced padding */
  .dock-container {
    padding: 0 var(--space-2);
  }
}

/* Laptop version only: reduce the size of the F1 car & move rear wing back */
@media (min-width: 992px) and (max-width: 1439px) {
  .f1-car {
    width: 48px;
    height: 99px;
  }

  .f1-rear-wing-main {
    bottom: -18px;
  }
}


/* ==========================================================================
   TABLET LANDSCAPE (768–991px)
   Layout adjustments. Workspace preserved. Auto-sizing windows.
   ========================================================================== */

@media (max-width: 991px) {

  /* Desk Scene — uniform scale preserving all proportions */
  .desk-mat {
    width: 88%;
    max-width: 750px;
    --scene-scale: 0.74;
  }

  /* Desktop Grid — 2-column layout */
  .desktop-grid {
    grid-template-rows: repeat(auto-fill, 88px);
    grid-auto-flow: column;
    gap: var(--space-4);
    left: var(--space-4);
  }

  /* Dock — slightly smaller */
  .dock-container {
    height: 58px;
    gap: var(--space-1);
    padding: 0 var(--space-2);
    bottom: var(--space-3);
  }

  .dock-item {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .dock-divider {
    height: 20px;
  }

  .dock-tooltip {
    bottom: 50px;
  }

  /* Windows — auto-sized, prevent overflow */
  .window {
    max-width: 90vw;
    max-height: 80vh;
  }

  /* About details — responsive */
  .about-details {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Certificate hover — reduced scale for smaller viewport */
  .cert-image-placeholder:hover {
    transform: scale(2.4);
  }
}


/* ==========================================================================
   TABLET PORTRAIT (600–767px)
   Grid reflow, touch-friendly targets, larger icons.
   ========================================================================== */

@media (max-width: 767px) {

  /* Entry Overlay — responsive text sizing */
  #entry-overlay>div>div:first-child {
    font-size: clamp(22px, 6vw, 32px) !important;
    letter-spacing: 0.06em !important;
  }

  #entry-overlay>div>div:nth-child(2) {
    font-size: clamp(9px, 2.5vw, 11px) !important;
  }

  /* Desk Scene — uniform scale preserving all proportions */
  .desk-mat {
    width: min(92vw, calc(75vh * 1.65));
    --scene-scale: 0.60;
  }

  /* Desktop Grid — 3-column vertical grid */
  .desktop-grid {
    grid-template-rows: none;
    grid-auto-flow: row;
    display: grid;
    grid-template-columns: repeat(3, 75px);
    gap: var(--space-5);
    left: var(--space-4);
    top: calc(var(--statusbar-height) + var(--space-4));
    bottom: calc(var(--dock-height) + var(--space-6));
    align-content: start;
  }

  /* Icons — touch-friendly sizing */
  .desktop-icon {
    width: 75px;
    height: 88px;
  }

  .desktop-icon-shape {
    width: 48px;
    height: 48px;
  }

  /* Windows — near-fullscreen panels */
  .window {
    width: 95vw !important;
    max-width: 95vw;
    height: 85vh !important;
    max-height: 85vh;
    left: 2.5vw !important;
    top: calc(var(--statusbar-height) + 8px) !important;
    border-radius: var(--radius-md) !important;
  }

  .window-header {
    cursor: default;
  }

  .window-body {
    padding: var(--space-4) var(--space-5);
    padding-bottom: calc(var(--dock-height) + var(--space-6));
  }

  /* Dock — full width approach, always above windows */
  .dock-container {
    height: 56px;
    bottom: var(--space-2);
    border-radius: 16px;
    gap: 2px;
    padding: 0 var(--space-2);
    max-width: 96vw;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
  }

  .dock-item {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
  }

  /* Tooltips hidden on touch */
  .dock-item:hover .dock-tooltip {
    display: none;
  }

  /* Contact — single column */
  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Certificate hover / click expand — increased for smaller screens */
  .cert-image-placeholder:hover,
  .cert-image-placeholder.expanded {
    transform: scale(2.4);
    z-index: 99999 !important;
  }
}


/* ==========================================================================
   LARGE MOBILE (480–599px)
   Full-screen window panels, adapted dock, touch-first.
   ========================================================================== */

@media (max-width: 599px) {

  /* Desk Scene — uniform scale preserving all proportions */
  .desk-mat {
    width: min(94vw, calc(75vh * 1.65));
    --scene-scale: 0.50;
  }

  /* Desktop Grid — larger icons for touch */
  .desktop-grid {
    grid-template-columns: repeat(3, 80px);
    gap: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
  }

  .desktop-icon {
    width: 80px;
    height: 90px;
  }

  .desktop-icon-shape {
    width: 52px;
    height: 52px;
  }

  .desktop-icon-label {
    font-size: 10px;
  }

  /* Windows — full-screen panels */
  .window {
    width: 100% !important;
    height: calc(100% - var(--statusbar-height)) !important;
    max-width: 100vw;
    max-height: calc(100dvh - var(--statusbar-height));
    top: var(--statusbar-height) !important;
    left: 0 !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    border: none !important;
    border-top: 1px solid var(--color-border) !important;
  }

  .window-body {
    padding: var(--space-4) var(--space-4);
    padding-bottom: calc(var(--dock-height) + var(--space-8));
  }

  /* Window controls — larger touch targets */
  .window-control-btn {
    width: 28px;
    height: 28px;
  }

  /* Dock — full width fixed bottom, always above windows */
  .dock-container {
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    width: calc(100% - var(--space-4));
    max-width: calc(100vw - 16px);
    height: 54px;
    bottom: var(--space-1);
    border-radius: 14px;
    gap: 1px;
    padding: 0 var(--space-1);
    justify-content: center;
    z-index: 9999;
  }

  .dock-container.visible {
    transform: translateX(-50%) translateY(0);
  }

  .dock-item {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 9px;
  }

  .dock-item svg {
    width: 18px;
    height: 18px;
  }

  .dock-divider {
    height: 18px;
    margin: 0 1px;
  }

  /* About details — single column */
  .about-details {
    grid-template-columns: 1fr;
  }

  /* Status bar — slightly taller for touch */
  .status-bar {
    height: 32px;
    font-size: 11px;
    padding: 0 var(--space-3);
  }

  .status-power-btn {
    padding: 4px 8px;
    font-size: 10px;
  }

  /* Certificate hover / click expand — increased for mobile */
  .cert-image-placeholder:hover,
  .cert-image-placeholder.expanded {
    transform: scale(2.2);
    z-index: 99999 !important;
  }

  .cert-expand-badge {
    font-size: 5px;
  }
}


/* ==========================================================================
   MOBILE (320–479px)
   Maximum adaptation. Full-screen everything. Touch-only.
   ========================================================================== */

@media (max-width: 479px) {

  /* Entry Overlay — compact */
  #entry-overlay>div>div:first-child {
    font-size: clamp(18px, 5.5vw, 24px) !important;
    letter-spacing: 0.04em !important;
  }

  #entry-overlay>div>div:nth-child(2) {
    font-size: 8px !important;
    letter-spacing: 0.15em !important;
  }

  #entry-overlay>div>div:nth-child(4) {
    font-size: 10px !important;
  }

  /* Desk Scene — uniform scale preserving all proportions */
  .desk-mat {
    width: min(95vw, calc(75vh * 1.65));
    --scene-scale: 0.42;
  }

  /* Lid tap text — smaller */
  .lid-tap-text {
    font-size: 8px !important;
    letter-spacing: 0.04em !important;
  }

  /* Desktop Grid — compact 3-column */
  .desktop-grid {
    grid-template-columns: repeat(3, 72px);
    gap: var(--space-3);
  }

  .desktop-icon {
    width: 72px;
    height: 84px;
  }

  .desktop-icon-shape {
    width: 50px;
    height: 50px;
  }

  .desktop-icon-label {
    font-size: 9px;
  }

  /* Dock — compact, scroll if needed */
  .dock-container {
    height: 50px;
    border-radius: 12px;
    gap: 0px;
    padding: 0 var(--space-1);
  }

  .dock-item {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
  }

  .dock-item svg {
    width: 16px;
    height: 16px;
  }

  .dock-divider {
    height: 16px;
    margin: 0 1px;
  }

  /* Window body — tighter padding */
  .window-body {
    padding: var(--space-3) var(--space-3);
    padding-bottom: calc(50px + var(--space-6));
    font-size: 13px;
  }

  /* Window title area — compact */
  .window-title-area {
    font-size: 11px;
    gap: var(--space-1);
  }

  /* Cards — tighter padding */
  .card-item {
    padding: var(--space-3) var(--space-3);
  }

  .card-title {
    font-size: 13.5px;
  }

  .card-subtitle {
    font-size: 11px;
  }

  /* Status bar */
  .status-bar {
    height: 30px;
    font-size: 10px;
  }

  .status-left {
    gap: var(--space-2);
  }

  .status-right {
    gap: var(--space-2);
  }

  .active-app-name {
    font-size: 11px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-power-btn {
    padding: 3px 6px;
    font-size: 9px;
    margin-left: 4px;
  }

  /* Certificate — click / hover expansion on mobile */
  .cert-image-placeholder:hover,
  .cert-image-placeholder.expanded {
    transform: scale(1.95);
    z-index: 99999 !important;
  }
}


/* ==========================================================================
   TOUCH DEVICE OVERRIDES
   Ensure touch targets meet accessibility minimums.
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {

  /* Disable hover-only effects that don't work on touch */
  .movie-poster:hover {
    transform: none !important;
    z-index: unset !important;
  }

  .f1-car:hover {
    transform: rotate(-28deg) !important;
  }

  /* Tooltips — hide on touch devices */
  .dock-tooltip {
    display: none !important;
  }

  /* Larger touch targets for control buttons */
  .window-control-btn {
    min-width: 32px;
    min-height: 32px;
  }

  /* Status power button — easier tap */
  .status-power-btn {
    min-height: 28px;
    min-width: 44px;
  }
}


/* ==========================================================================
   LANDSCAPE MOBILE (short height)
   Handle landscape phones where height is constrained.
   ========================================================================== */

@media (max-height: 500px) and (max-width: 991px) {

  .desk-mat {
    width: calc(85vh * 1.65);
    --scene-scale: 0.48;
  }

  /* Desktop icons — horizontal row for landscape */
  .desktop-grid {
    grid-template-columns: repeat(auto-fill, 70px);
    grid-template-rows: repeat(2, 80px);
    grid-auto-flow: column;
    align-content: start;
    gap: var(--space-2);
    top: calc(var(--statusbar-height) + var(--space-2));
    bottom: calc(var(--dock-height) + var(--space-4));
  }

  .dock-container {
    height: 46px;
    bottom: var(--space-1);
  }

  .dock-item {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
}