/* ==========================================================================
   SEBASTIAN GOMEZ ROMAN ??? ARCHITECT & 3D ARTIST PORTFOLIO
   High-Performance Architecture (Subtle Scale Crop to Hide Logo & Black Bars)
   ========================================================================== */

:root {
  --c-ivory: #FBFFF1;
  --c-navy-electric: #090C9B;
  --c-navy-glow: rgba(9, 12, 155, 0.45);
  --c-blue-accent: #3066BE;
  --c-sky-light: #B4C5E4;
  --c-slate: #3C3744;
  --c-slate-dark: #12141d;
  
  --bg-color: #FBFFF1;
  --text-color: #090C9B;
  --header-pill-bg: rgba(251, 255, 241, 0.88);
  --header-pill-border: rgba(9, 12, 155, 0.18);
  --counter-color: #090C9B;
  
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-full: 9999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Theme */
body.dark-mode {
  --bg-color: #0e1017;
  --text-color: #FBFFF1;
  --header-pill-bg: rgba(24, 27, 36, 0.85);
  --header-pill-border: rgba(180, 197, 228, 0.18);
  --counter-color: #FBFFF1;
}

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

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient Dynamic Backdrop */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 95vw;
  height: 80vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(9, 12, 155, 0.15) 0%, rgba(48, 102, 190, 0.06) 50%, transparent 75%);
  filter: blur(120px);
  opacity: 0.9;
}

body.dark-mode .ambient-glow {
  background: radial-gradient(circle, var(--c-navy-electric) 0%, rgba(9, 12, 155, 0.35) 45%, transparent 75%);
}

.ambient-image-layer {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  filter: blur(75px) brightness(0.95) saturate(1.2);
  transform: scale(1.1);
  transition: background-image 0.8s var(--ease-out-expo), opacity 0.6s ease;
  opacity: 0.3;
}

body.dark-mode .ambient-image-layer {
  filter: blur(70px) brightness(0.35) saturate(1.4);
  opacity: 0.55;
}

.ambient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(251, 255, 241, 0.7) 95%);
}

body.dark-mode .ambient-overlay {
  background: radial-gradient(circle at center, transparent 25%, rgba(14, 16, 23, 0.9) 95%);
}

/* App Layout */
.app-layout {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem 2.2rem;
  overflow: hidden;
}

/* Header (Clean Desktop 3-Column Layout) */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 30;
  width: 100%;
  height: 48px;
  flex-shrink: 0;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-color);
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-title {
  font-size: 0.74rem;
  color: var(--c-slate);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

body.dark-mode .brand-title {
  color: var(--c-sky-light);
}

/* Center Category Nav Filter (Desktop) */
.category-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--header-pill-bg);
  backdrop-filter: blur(20px);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--header-pill-border);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.nav-pill {
  background: transparent;
  border: none;
  color: var(--c-slate);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s var(--ease-out-expo);
  white-space: nowrap;
}

body.dark-mode .nav-pill {
  color: var(--c-sky-light);
}

.nav-pill:hover {
  color: var(--c-navy-electric);
  background: rgba(9, 12, 155, 0.08);
}

body.dark-mode .nav-pill:hover {
  color: #FBFFF1;
  background: rgba(48, 102, 190, 0.22);
}

.nav-pill.active {
  background: var(--c-navy-electric);
  color: #FBFFF1 !important;
  box-shadow: 0 4px 16px var(--c-navy-glow);
}

.nav-pill .count {
  font-size: 0.68rem;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.08rem 0.38rem;
  border-radius: var(--radius-full);
}

/* Right Header Actions (Desktop) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background: var(--header-pill-bg);
  border: 1px solid var(--header-pill-border);
  color: var(--text-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-theme-toggle:hover {
  transform: rotate(30deg);
  background: var(--c-navy-electric);
  color: #FBFFF1;
}

.lang-switch-container {
  display: flex;
  align-items: center;
  background: var(--header-pill-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--header-pill-border);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.35rem;
  flex-shrink: 0;
}

.btn-lang {
  background: transparent;
  border: none;
  color: var(--c-slate);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.48rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

body.dark-mode .btn-lang {
  color: var(--c-sky-light);
}

.btn-lang.active {
  background: var(--c-navy-electric);
  color: #FBFFF1;
}

.lang-divider {
  font-size: 0.7rem;
  color: rgba(9, 12, 155, 0.25);
}

body.dark-mode .lang-divider {
  color: rgba(180, 197, 228, 0.3);
}

.btn-sound-toggle {
  background: var(--header-pill-bg);
  border: 1px solid var(--header-pill-border);
  backdrop-filter: blur(15px);
  color: var(--text-color);
  padding: 0.42rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-sound-toggle:hover {
  background: var(--c-navy-electric);
  color: #FBFFF1;
}

.btn-contact-primary {
  background: var(--c-navy-electric);
  color: #FBFFF1;
  border: none;
  padding: 0.48rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  box-shadow: 0 4px 18px var(--c-navy-glow);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-contact-primary:hover {
  background: var(--c-blue-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(48, 102, 190, 0.4);
}

/* Mobile Hamburger Button */
.btn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--header-pill-bg);
  border: 1px solid var(--header-pill-border);
  cursor: pointer;
  color: var(--text-color);
  transition: all 0.25s ease;
  z-index: 40;
}

.hamburger-bar {
  width: 19px;
  height: 2.2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ==========================================================================
   CAROUSEL STAGE & GRID
   ========================================================================== */
.carousel-stage {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0.4rem 0;
  overflow: visible;
  perspective: 1400px;
}

/* Navigation Arrow Buttons */
.slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(251, 255, 241, 0.92);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(9, 12, 155, 0.2);
  color: var(--c-navy-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  z-index: 25;
  flex-shrink: 0;
}

body.dark-mode .slider-arrow {
  background: rgba(24, 27, 36, 0.85);
  border-color: rgba(180, 197, 228, 0.2);
  color: #FBFFF1;
}

.slider-arrow:hover {
  background: var(--c-navy-electric);
  color: #FBFFF1;
  transform: scale(1.08);
  box-shadow: 0 10px 25px var(--c-navy-glow);
}

.btn-prev {
  margin-right: 1.2rem;
}

.mobile-only, .mobile-only-flex {
  display: none !important;
}

/* Viewport */
.carousel-viewport {
  width: 70vw;
  height: 76vh;
  height: calc(100dvh - 180px);
  min-height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: grab;
  touch-action: pan-y;
  flex-shrink: 0;
}

.carousel-viewport:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  align-items: center;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Slide Cards */
.slide-card {
  position: relative;
  flex: 0 0 70vw;
  width: 70vw;
  min-width: 70vw;
  max-width: 1250px;
  height: 100%;
  margin: 0 1.2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #12141d;
  box-shadow: 0 25px 60px rgba(9, 12, 155, 0.15), 0 0 0 1px rgba(9, 12, 155, 0.15);
  display: flex;
  align-items: flex-end;
  opacity: 0.45;
  transform: scale(0.92);
  transform-origin: center center;
  transition: transform 0.65s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.65s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.5s ease;
  will-change: transform, opacity;
}

.slide-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 35px 85px rgba(9, 12, 155, 0.25), 0 0 0 1px rgba(9, 12, 155, 0.35), 0 0 50px var(--c-navy-glow);
}

.slide-card.is-filtered-out {
  display: none !important;
}

.card-media-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #12141d;
}

.warp-media-container {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

/* Streamable Embed Container (Subtle Scale Crop - Hides Logo & Black Bars) */
.streamable-player-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.streamable-player-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  border: none;
  pointer-events: none;
  background-color: #12141d;
  transform: translate(-50%, -50%) scale(1.15);
}

.card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease-out-expo), opacity 0.3s ease;
  background-color: transparent;
}

.slide-card:hover .card-media {
  transform: scale(1.04);
}

.card-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 12, 18, 0.94) 0%,
    rgba(10, 12, 18, 0.45) 45%,
    rgba(9, 12, 155, 0.12) 75%,
    transparent 100%
  );
  pointer-events: none;
}

/* Software Live Badge */
.card-software-badge {
  position: absolute;
  top: 2.2rem;
  right: 3rem;
  background: rgba(9, 12, 155, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(180, 197, 228, 0.4);
  color: #FBFFF1;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.95rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseLive 1.8s infinite;
}

.pulse-dot.render-dot {
  background-color: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Card Content Overlay */
.card-content {
  position: relative;
  z-index: 2;
  padding: 4.8rem 5.5rem 4.8rem 6.5rem;
  width: 100%;
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  pointer-events: auto;
}

.meta-tag-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.slide-category-badge {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--c-sky-light);
  text-transform: uppercase;
}

.slide-tech-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FBFFF1;
  background: rgba(48, 102, 190, 0.35);
  border: 1px solid rgba(180, 197, 228, 0.22);
  padding: 0.14rem 0.55rem;
  border-radius: var(--radius-xs);
}

.slide-title {
  font-size: clamp(2.4rem, 3.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FBFFF1;
  text-shadow: 0 2px 25px rgba(0, 0, 0, 0.7);
}

.slide-description {
  font-size: 0.94rem;
  color: rgba(251, 255, 241, 0.9);
  max-width: 600px;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.btn-slide-cta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(251, 255, 241, 0.15);
  border: 1px solid rgba(251, 255, 241, 0.3);
  backdrop-filter: blur(14px);
  color: #FBFFF1;
  padding: 0.62rem 1.35rem 0.62rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: all 0.3s var(--ease-out-expo);
}

.cta-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FBFFF1;
  color: var(--c-navy-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.btn-slide-cta:hover {
  background: var(--c-navy-electric);
  border-color: var(--c-sky-light);
  box-shadow: 0 6px 20px var(--c-navy-glow);
}

.btn-slide-cta:hover .cta-circle {
  transform: translateX(3px);
}

/* Right Stage Dock */
.right-stage-dock {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding-left: 1.2rem;
  padding-right: 0.5rem;
  z-index: 25;
}

.slide-counter-display {
  font-size: 1.55rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  color: var(--counter-color);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.current-num { color: inherit; font-weight: 800; }
.divider { color: var(--c-slate); font-size: 1.05rem; opacity: 0.5; }
.total-num { color: var(--c-slate); font-size: 1.05rem; opacity: 0.6; }

body.dark-mode .divider, body.dark-mode .total-num {
  color: var(--c-sky-light);
}

/* Action Column */
.right-action-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.interaction-hint {
  font-style: italic;
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: right;
  color: var(--c-slate);
  white-space: nowrap;
}

body.dark-mode .interaction-hint {
  color: var(--c-sky-light);
}

/* ==========================================================================
   MOBILE SLIDE-OUT DRAWER
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(15px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 84vw;
  max-width: 360px;
  height: 100%;
  height: 100dvh;
  background: var(--bg-color);
  color: var(--text-color);
  border-left: 1px solid var(--header-pill-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out-expo);
  z-index: 10;
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--header-pill-border);
}

.drawer-close-btn {
  background: var(--header-pill-bg);
  border: 1px solid var(--header-pill-border);
  color: var(--text-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  flex: 1;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.drawer-section-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c-slate);
  opacity: 0.7;
}

body.dark-mode .drawer-section-label {
  color: var(--c-sky-light);
}

.drawer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drawer-menu-item {
  background: var(--header-pill-bg);
  border: 1px solid var(--header-pill-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-primary);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.drawer-menu-item.active {
  background: var(--c-navy-electric);
  color: #FBFFF1;
  border-color: transparent;
}

.drawer-item-count {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

.drawer-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.drawer-setting-btn {
  background: var(--header-pill-bg);
  border: 1px solid var(--header-pill-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
}

.drawer-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.drawer-contact-btn {
  width: 100%;
  padding: 0.85rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Custom Cursor Follower */
.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
  will-change: transform;
}

.custom-cursor-follower.visible {
  opacity: 1;
}

.cursor-inner {
  background: rgba(10, 12, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.cursor-arrows {
  color: var(--c-sky-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.cursor-text {
  color: #FBFFF1;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Cinema Modal & Contact Panels */
.cinema-modal, .contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s ease;
}

.cinema-modal.open, .contact-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop, .contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.9);
  backdrop-filter: blur(25px);
}

.modal-dialog {
  position: relative;
  z-index: 10;
  width: 92vw;
  max-width: 1440px;
  max-height: 92vh;
  background: #12141d;
  border: 1px solid rgba(180, 197, 228, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease-out-expo);
}

.cinema-modal.open .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 20;
  background: rgba(24, 27, 36, 0.85);
  border: 1px solid rgba(180, 197, 228, 0.25);
  color: #FBFFF1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-close-btn:hover {
  background: var(--c-navy-electric);
  transform: rotate(90deg);
}

.modal-media-container {
  width: 100%;
  height: 68vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-media-container img, .modal-media-container iframe, .modal-media-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
}

.modal-info-panel {
  padding: 1.6rem 2.4rem;
  background: #12141d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(180, 197, 228, 0.1);
}

.modal-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--c-sky-light);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FBFFF1;
  margin: 0.15rem 0;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: rgba(251, 255, 241, 0.7);
  max-width: 700px;
  line-height: 1.45;
}

.modal-tech-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spec-pill {
  background: rgba(9, 12, 155, 0.35);
  border: 1px solid rgba(180, 197, 228, 0.2);
  color: var(--c-sky-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
}

/* Contact Drawer */
.contact-panel {
  position: relative;
  z-index: 10;
  width: 90vw;
  max-width: 620px;
  background: #12141d;
  border: 1px solid rgba(180, 197, 228, 0.25);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 60px var(--c-navy-glow);
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-out-expo);
  color: #FBFFF1;
}

.contact-modal.open .contact-panel {
  transform: translateY(0);
}

.artist-profile-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.artist-avatar-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-navy-electric);
  border: 2px solid var(--c-sky-light);
  color: #FBFFF1;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FBFFF1;
}

.artist-role {
  font-size: 0.82rem;
  color: var(--c-sky-light);
}

.contact-bio {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(251, 255, 241, 0.85);
  margin-bottom: 1.4rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(10, 12, 18, 0.6);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(180, 197, 228, 0.12);
  margin-bottom: 1.8rem;
}

.contact-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

.channel-label {
  color: rgba(251, 255, 241, 0.7);
  font-weight: 500;
}

.channel-value {
  color: #FBFFF1;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.channel-value:hover {
  color: var(--c-sky-light);
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-contact-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-contact-action.primary {
  background: var(--c-navy-electric);
  color: #FBFFF1;
  border: 1px solid rgba(180, 197, 228, 0.3);
  box-shadow: 0 4px 15px var(--c-navy-glow);
}

.btn-contact-action.primary:hover {
  background: var(--c-blue-accent);
  transform: translateY(-2px);
}

.btn-contact-action.secondary {
  background: rgba(24, 27, 36, 0.9);
  color: var(--c-sky-light);
  border: 1px solid rgba(180, 197, 228, 0.2);
}

.btn-contact-action.secondary:hover {
  background: rgba(48, 102, 190, 0.2);
  color: #FBFFF1;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (DESKTOP VS MOBILE)
   ========================================================================== */

/* Laptops & Standard Desktop */
@media (max-width: 1200px) {
  .app-layout { padding: 1rem 1.8rem; }
  .carousel-viewport { width: 68vw; }
  .slide-card { flex: 0 0 68vw; width: 68vw; min-width: 68vw; }
  .card-content { padding: 3.8rem 4rem; max-width: 82%; }
}

/* Mobile & Small Screen Breakpoint (<= 950px) - PERFECT MATHEMATICAL CENTERING */
@media (max-width: 950px) {
  .app-layout {
    padding: 0.9rem 1.1rem 0.8rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
  }

  /* Desktop Header Elements Hidden on Mobile */
  .desktop-only-flex, .desktop-only {
    display: none !important;
  }

  /* Mobile Hamburger & Bottom Bar Visible */
  .btn-hamburger {
    display: flex;
  }

  .mobile-only-flex {
    display: flex !important;
  }

  /* Header Top Fixed Bar */
  .site-header {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .brand-block {
    max-width: 78%;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-title {
    font-size: 0.68rem;
  }

  /* Main Carousel Stage: Flex-1 and centered vertically in middle of screen */
  .carousel-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
  }

  .carousel-viewport {
    width: 92vw;
    height: 60vh;
    height: calc(100dvh - 175px);
    min-height: 380px;
    max-height: 520px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
  }

  .slide-card {
    flex: 0 0 92vw;
    width: 92vw;
    min-width: 92vw;
    margin: 0 0.35rem;
    border-radius: var(--radius-md);
  }

  .streamable-player-container iframe {
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.15);
  }

  .card-software-badge {
    top: 1.1rem;
    right: 1.1rem;
    font-size: 0.65rem;
    padding: 0.28rem 0.7rem;
  }

  .card-content {
    padding: 1.8rem 1.3rem 1.6rem 1.4rem;
    max-width: 100%;
    gap: 0.45rem;
  }

  .slide-category-badge {
    font-size: 0.68rem;
  }

  .slide-tech-badge {
    font-size: 0.62rem;
  }

  .slide-title {
    font-size: clamp(1.5rem, 5.8vw, 1.9rem);
    line-height: 1.15;
  }

  .slide-description {
    font-size: 0.82rem;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.15rem;
  }

  .btn-slide-cta {
    padding: 0.48rem 1rem 0.48rem 0.6rem;
    font-size: 0.76rem;
  }

  .cta-circle {
    width: 24px;
    height: 24px;
  }

  /* Mobile Clean Bottom Dock (Separated and Anchored to Bottom) */
  .mobile-bottom-dock {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.2rem 0.2rem 0.2rem;
    margin-top: 0;
  }

  .mobile-nav-arrows {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .btn-prev-mobile, .btn-next-mobile {
    width: 42px;
    height: 42px;
  }

  .slide-counter-display {
    font-size: 1.35rem;
  }

  .interaction-hint {
    display: none;
  }

  .custom-cursor-follower {
    display: none !important;
  }

  .modal-dialog {
    width: 96vw;
    max-height: 94vh;
  }

  .modal-media-container {
    height: 48vh;
  }

  .modal-info-panel {
    padding: 1.1rem 1.3rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .contact-panel {
    width: 95vw;
    padding: 1.8rem 1.3rem;
  }

  .contact-actions {
    flex-direction: column;
  }
}