/* ============================================================
   style.css — Freethirty
   Style: Virgil Abloh / Editorial / Clean White
   Palette: White, Black, Blue accent, Green accent
   ============================================================ */

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

:root {
  --white: #FFFFFF;
  --bg: #F2F0EB;
  --black: #0A0A0A;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-300: #D0D0D0;
  --gray-500: #808080;
  --gray-700: #404040;

  --blue: #0831D9;
  --blue-light: #2960E8;
  --green: #00C853;
  --green-light: #00E676;
  --red: #FF0000;
  --red-light: #FF3333;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

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

:root.dark-mode {
  --white: #121212;
  --bg: #0A0A0A;
  --black: #F2F0EB;
  --gray-100: #1A1A1A;
  --gray-200: #262626;
  --gray-300: #333333;
  --gray-500: #8C8C8C;
  --gray-700: #CCCCCC;

  --blue: #3E64FF;
  --blue-light: #6080FF;
  --green: #00E676;
  --green-light: #69F0AE;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, padding-bottom 0.3s ease;
}

/* body.has-player padding removed to prevent empty scrolling space below the footer */

::selection {
  background: var(--blue);
  color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   HEADER (Navigation & Language)
   ============================================================ */

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.6s var(--ease-out-expo), border-color 0.6s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), visibility 0.6s;
}

#main-header.header-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-20px);
}

.header-inner {
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header States */
#main-header.on-landing {
  background: transparent;
  border-bottom-color: transparent;
}

#main-header.on-landing .logo-header-wrapper,
#main-header.on-landing .header-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

/* Logo in header */
.logo-header-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 400px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.logo-header-rotating {
  width: 36px;
  height: 36px;
  object-fit: contain;
  animation: globeRotate 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* Nav Links */
.header-nav {
  display: flex;
  gap: 32px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.nav-link {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--black);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--black);
}

.nav-link.active::after {
  width: 100%;
  background: var(--blue);
}

/* Language Switcher in Header */
#lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-opt {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--black);
  cursor: pointer;
  padding: 4px 2px;
  transition: opacity 0.3s;
  opacity: 0.4;
  text-transform: uppercase;
}

.lang-opt:hover {
  opacity: 0.8;
}

.lang-opt.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-sep {
  color: var(--black);
  opacity: 0.2;
  font-size: 11px;
}

/* ============================================================
   SPA VIEW SECTIONS
   ============================================================ */

#main-content {
  margin-top: 80px; /* offset for fixed header */
  position: relative;
  width: 100%;
}

.view-section {
  width: 100%;
  min-height: calc(100vh - 145px); /* 100vh - 80px (header) - 65px (footer height) */
  min-height: calc(100dvh - 145px);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s, height 0.6s;
  background: var(--bg);
  padding-bottom: 0;
  height: 0; /* collapse height when inactive */
  overflow: hidden; /* prevent layout stretching */
}

body.has-player .view-section {
  min-height: calc(100vh - 225px); /* 100vh - 80px (header) - 145px (footer with player height) */
  min-height: calc(100dvh - 225px);
}

.view-section.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  position: relative;
  height: auto; /* restore height when active */
  overflow: visible; /* restore overflow when active */
}

/* Specific view adjustments */
#view-landing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding-bottom: 0;
}

.landing-lang-switcher {
  position: absolute;
  top: 30px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 11px;
}

@media (max-width: 600px) {
  .landing-lang-switcher {
    top: 20px;
    right: 20px;
  }
}

.landing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 40px 20px;
}

/* ---- Logo — 3D Globe Rotation ---- */

.logo-container {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.logo-3d-wrapper {
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: globeRotate 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.logo-rotating {
  width: 240px;
  height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 0 0 transparent);
  transition: filter 0.3s;
  backface-visibility: visible;
}

.logo-rotating:hover {
  filter: drop-shadow(0 4px 20px rgba(8, 49, 217, 0.15));
}

/* 3D globe-like rotation — rotates on Y axis with subtle X tilt */
@keyframes globeRotate {
  0% {
    transform: rotateY(0deg) rotateX(0deg);
  }
  25% {
    transform: rotateY(90deg) rotateX(4deg);
  }
  50% {
    transform: rotateY(180deg) rotateX(0deg);
  }
  75% {
    transform: rotateY(270deg) rotateX(-4deg);
  }
  100% {
    transform: rotateY(360deg) rotateX(0deg);
  }
}

/* ---- Landing Text ---- */

.landing-text {
  text-align: center;
}

.landing-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 2;
  text-transform: uppercase;
  color: var(--black);
}

.title-portfolio {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 1px;
  font-size: 18px;
}

.title-by {
  color: var(--gray-500);
  font-size: 13px;
  margin: 0 4px;
  letter-spacing: 3px;
}

.title-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 4px;
  margin-top: 2px;
}

/* ---- Enter Button ---- */

.enter-button {
  background: none;
  border: 1px solid var(--black);
  padding: 14px 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease-out-expo), border-color 0.4s;
}

.enter-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--black);
  transition: left 0.4s var(--ease-out-expo);
  z-index: -1;
}

.enter-button:hover {
  color: var(--white);
  border-color: var(--black);
}

.enter-button:hover::before {
  left: 0;
}

.enter-button:active {
  transform: scale(0.97);
}

/* ---- Landing Tagline ---- */

.landing-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 14px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION 2 — ABOUT (Magazine Layout)
   ============================================================ */

#view-about {
  background: var(--bg);
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-magazine-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ---- Photo Column ---- */

.about-photo-col {
  display: flex;
  justify-content: center;
}

.about-photo-wrapper {
  max-width: 400px;
  width: 100%;
}

.about-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.about-photo-frame:hover .about-photo {
  transform: scale(1.03);
}

.photo-caption {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.caption-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
}

.caption-aka {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 400;
  margin-top: 2px;
}

/* ---- Text Column ---- */

.about-text-col {
  display: flex;
  align-items: flex-start;
}

.about-text-inner {
  max-width: 480px;
}

.about-kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.about-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 24px;
  font-weight: 400;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* ---- "Créativité" styled word — user's handwritten image styled inline ---- */

.img-creative {
  height: 1.5em;
  vertical-align: middle;
  display: inline-block;
  margin: 0 4px;
  transform: translateY(-2px) rotate(-1deg);
  transition: transform 0.3s var(--ease-out-expo), filter 0.3s;
  cursor: pointer;
}

.img-creative:hover {
  transform: translateY(-4px) rotate(2deg) scale(1.1);
  filter: drop-shadow(0 2px 8px rgba(8, 49, 217, 0.15));
}

/* ---- Socials ---- */

.about-socials {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.social-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.4s var(--ease-out-expo);
}

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

.social-link:hover::after {
  width: 100%;
}

.social-link svg {
  flex-shrink: 0;
}

/* ============================================================
   STATS STRIP
   ============================================================ */

.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin: 0;
  overflow: visible;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  padding: 0 24px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  width: 1px;
  background: var(--gray-200);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -1px;
  line-height: 1;
  transition: color 0.3s, transform 0.2s var(--ease-out-expo);
  display: inline-block;
}

.stat-number.blue-number {
  color: var(--blue);
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-number.clickable,
.stat-number-wrapper.clickable .stat-number {
  cursor: pointer;
  border-bottom: 2px dotted var(--blue);
  padding-bottom: 2px;
  transition: transform 0.2s var(--ease-out-expo), color 0.3s, border-color 0.3s;
}

.stat-number-wrapper.clickable {
  cursor: pointer;
}

.stat-number.clickable:hover,
.stat-number-wrapper.clickable:hover .stat-number {
  transform: translateY(-2px);
  color: var(--blue-light) !important;
  border-bottom-style: dashed;
  border-bottom-color: var(--blue-light);
}

/* Monospace pulsing [ + ] info badge (Virgil Abloh style) */
.stat-number.clickable::after,
.stat-number-wrapper.clickable::after {
  content: " [ + ]";
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.5px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  animation: info-pulse 2s infinite ease-in-out;
}

.stat-number.clickable:hover::after,
.stat-number-wrapper.clickable:hover::after {
  color: var(--blue-light);
}

@keyframes info-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.stat-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: rgba(0, 200, 83, 0.1);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0;
  transform: translateY(-2px);
}

.stat-role-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 6px;
  max-width: 280px;
  display: inline-block;
}

.stat-role-link {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.3s;
  display: inline-block;
}

.stat-role-link:hover {
  color: var(--green-light);
}

.msn-spotify-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--white) !important;
  background: #1DB954;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  margin-left: 6px;
  text-decoration: none;
  transition: background-color 0.2s;
  vertical-align: middle;
  line-height: 1;
  letter-spacing: 0.5px;
  box-shadow: 1px 1px 0px #000;
}

.msn-spotify-btn:hover {
  background-color: #1ed760;
  color: var(--white) !important;
}

.stat-item:hover .stat-number {
  color: var(--blue-light);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-500);
  text-align: center;
}

/* Responsive updates for Stats Strip */
@media (max-width: 768px) {
  .stats-strip {
    flex-direction: column;
    gap: 24px;
    padding: 24px 0;
  }
  
  .stat-item {
    width: 100%;
    padding: 0;
  }
  
  .stat-item:not(:last-child)::after {
    display: none;
  }
  
  .stat-item:not(:last-child) {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 20px;
  }
}

/* ============================================================
   SECTION 3 — RECENT PROJECTS (Preview)
   ============================================================ */

.recent-projects-preview {
  width: 100%;
  margin-top: 0;
  border-top: 1px solid var(--gray-200);
  padding-top: 30px;
}

.projects-heading {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  margin-bottom: 40px;
  text-align: left;
}

/* ---- 2x2 Grid ---- */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: transparent;
  margin-bottom: 40px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--black);
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease-out-expo);
  cursor: pointer;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
  z-index: 1;
}

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

.project-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 2;
  transition: color 0.5s var(--ease-out-expo);
}

.project-card:hover .project-inner {
  color: var(--white);
}

.project-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  opacity: 1;
  letter-spacing: -2px;
  transition: opacity 0.5s, color 0.5s;
}

.project-card:hover .project-number {
  color: var(--blue-light);
}

.project-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.project-type {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white) !important;
  background-color: var(--green);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
  transition: background-color 0.5s;
  display: inline-block;
  margin-top: 6px;
}

.project-card:hover .project-type {
  background-color: var(--green-light);
}

/* Playing state highlight */
.project-card.playing {
  border-color: var(--red) !important;
  box-shadow: inset 0 0 0 2px var(--red);
}

.project-card.playing .project-number {
  color: var(--red) !important;
  opacity: 1 !important;
}

.project-card.playing .project-title {
  color: var(--red) !important;
}

.project-card.playing .project-type {
  background-color: var(--red) !important;
  color: var(--white) !important;
}

/* Disable dark hover overlay when playing to keep it readable and red */
.project-card.playing:hover::before {
  opacity: 0;
}

/* ---- View All Link Button ---- */

.preview-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.view-all-link-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  padding: 12px 0;
  position: relative;
  transition: color 0.3s;
}

.view-all-link-btn::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--black);
  transition: background 0.3s, transform 0.4s var(--ease-out-expo);
  transform-origin: left;
}

.view-all-link-btn:hover {
  color: var(--blue);
}

.view-all-link-btn:hover::after {
  background: var(--blue);
  transform: scaleX(1.05);
}

/* ============================================================
   VIEW: ALL PROJECTS PAGE
   ============================================================ */

.projects-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}

.page-heading {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  margin-bottom: 40px;
  text-align: left;
}

.mobile-filter-trigger-wrapper {
  display: none !important;
}

.mobile-filter-header {
  display: none !important;
}

/* Filter buttons container */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: none;
  border: 1px solid var(--gray-300);
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.filter-btn:hover {
  border-color: var(--black);
  background: var(--gray-100);
}

.filter-btn.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.all-projects-grid {
  margin-bottom: 60px;
}

/* ---- Featured project card (first in grid, filter=all) ---- */

.all-projects-grid .project-card.featured {
  grid-column: 1 / -1;
  aspect-ratio: unset;
  min-height: 180px;
  justify-content: flex-start;
  border-left: 4px solid var(--blue);
  border-top: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.all-projects-grid .project-card.featured .project-inner {
  flex-direction: row;
  text-align: left;
  gap: 40px;
  padding: 40px 48px;
  align-items: center;
}

.all-projects-grid .project-card.featured .project-number {
  font-size: 72px;
  letter-spacing: -4px;
  flex-shrink: 0;
  min-width: 100px;
}

.all-projects-grid .project-card.featured .project-title {
  font-size: 18px;
  letter-spacing: 2px;
}

.all-projects-grid .project-card.featured .project-featured-tag {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--blue);
  font-weight: 700;
  opacity: 0.7;
  z-index: 3;
  transition: opacity 0.3s;
}

.all-projects-grid .project-card.featured:hover .project-featured-tag {
  opacity: 0;
}

/* ============================================================
   VIEW: CONTACT PAGE
   ============================================================ */

.contact-page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
}

.contact-text-inner {
  width: 100%;
}

.contact-big-title {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--black);
  margin-bottom: 24px;
}

.contact-subtitle {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--gray-700);
  font-weight: 300;
  margin-bottom: 60px;
  max-width: 600px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 36px;
  border-top: 1px solid var(--gray-200);
  padding-top: 40px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gray-500);
}

.contact-link {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  display: inline-block;
  position: relative;
  width: fit-content;
  transition: color 0.3s;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.4s var(--ease-out-expo);
}

.contact-link:hover {
  color: var(--blue);
}

.contact-link:hover::after {
  width: 100%;
}

.contact-text {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-700);
}

/* ============================================================
   FOOTER
   ============================================================ */

#footer {
  padding: 30px 40px 15px;
  border-top: 1px solid var(--gray-200);
  background: var(--bg);
  transition: opacity 0.6s var(--ease-out-expo), padding-bottom 0.3s ease;
}

body.has-player #footer {
  padding-bottom: 95px; /* 15px default padding + 80px player height */
}

#footer.footer-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 1px;
}

.footer-sep {
  color: var(--gray-300);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 900px) {
  .about-container {
    padding: 0 32px;
    gap: 40px;
  }

  .about-magazine-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo-col {
    order: -1;
  }

  .about-photo-wrapper {
    max-width: 340px;
  }

  .about-text-inner {
    max-width: 100%;
  }

  .projects-container {
    padding: 0 32px;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 600px) {
  #lang-switcher {
    top: 14px;
    right: 16px;
    gap: 4px;
  }

  .lang-opt {
    font-size: 10px;
    padding: 4px 1px;
  }

  .header-inner {
    padding: 0 20px;
  }

  /* Landing */
  .logo-container {
    width: 200px;
    height: 200px;
    perspective: 600px;
  }

  .logo-3d-wrapper {
    width: 180px;
    height: 180px;
  }

  .logo-rotating {
    width: 160px;
    height: 160px;
  }

  .landing-inner {
    gap: 28px;
    padding: 32px 16px;
  }

  .landing-title {
    font-size: 13px;
  }

  .title-portfolio {
    font-size: 15px;
  }

  .title-name {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .enter-button {
    padding: 12px 36px;
    font-size: 11px;
    letter-spacing: 3px;
  }

  /* About */
  #about {
    padding: 60px 0;
  }

  .about-container {
    padding: 0 20px;
    gap: 32px;
  }

  .about-photo-col {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about-photo-wrapper {
    max-width: 280px;
    text-align: center;
  }

  .photo-caption {
    align-items: center;
  }

  .about-body p {
    font-size: 14px;
  }

  .about-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: center;
    border-top: 1px solid var(--gray-200);
    padding-top: 20px;
  }

  .social-link {
    font-size: 10px;
    padding: 4px 0;
  }

  /* Projects Preview & Page Grids */
  #projects {
    padding: 60px 0 40px;
  }

  .projects-container {
    padding: 0 20px;
  }

  .projects-heading {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Cards Mobile Custom Styling */
  .project-card {
    aspect-ratio: unset;
    min-height: 75px; /* compact card height */
    transform: none !important; /* avoid hover zoom issues on mobile touch */
  }

  .all-projects-grid .project-card.featured {
    min-height: 75px !important; /* same height as normal cards */
    border-left: 1px solid var(--gray-200) !important; /* remove the thick blue border */
  }

  .all-projects-grid .project-card.featured .project-featured-tag {
    display: none !important; /* hide the featured tag entirely on mobile */
  }

  .project-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto auto !important;
    grid-template-areas: 
      "number title equalizer"
      "number type equalizer" !important;
    gap: 4px 16px !important;
    padding: 10px 16px !important;
    align-items: center !important;
    width: 100% !important;
    text-align: left !important;
    justify-content: stretch !important;
  }

  .project-number {
    grid-area: number;
    font-size: 28px !important;
    min-width: 36px;
    flex-shrink: 0;
    text-align: left;
    align-self: center;
  }

  .project-title {
    grid-area: title;
    font-size: 11px !important;
    letter-spacing: 1px !important;
    line-height: 1.3 !important;
    flex-grow: 1;
    text-align: left;
    font-weight: 700;
  }

  .project-type {
    grid-area: type;
    margin-top: 0 !important;
    font-size: 9px !important;
    padding: 2px 6px !important;
    flex-shrink: 0;
    justify-self: start; /* align badge to the left under title */
  }

  .card-equalizer {
    grid-area: equalizer;
    align-self: center;
  }

  .view-all-link {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .view-all-link-btn {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .mobile-filter-trigger-wrapper {
    display: block !important;
    margin-bottom: 16px;
    width: 100%;
  }

  .mobile-filter-trigger {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px 0 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: none;
  }

  .active-filter-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-left: 4px;
    text-decoration: none !important;
    display: inline-block;
  }

  .active-filter-badge::before {
    content: "[ ";
    color: var(--black);
  }

  .active-filter-badge::after {
    content: " ]";
    color: var(--black);
  }

  .mobile-filter-header {
    grid-column: 1 / -1;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 16px;
    font-family: var(--font-serif);
    font-size: 24px;
    font-style: italic;
    color: var(--black);
  }

  .close-filter-modal-btn {
    background: none;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: var(--black);
    cursor: pointer;
    padding: 0 8px;
    outline: none;
  }

  /* Modal styling for filters container on mobile */
  .filter-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: var(--bg) !important;
    z-index: 2000 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: min-content !important;
    gap: 12px !important;
    padding: 40px 24px !important;
    margin-bottom: 0 !important;
    overflow-y: auto !important;
    transform: translateY(100%) !important;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .filter-container.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .filter-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 14px 10px !important;
    font-size: 11px !important;
    border: 1px solid var(--gray-200) !important;
    background: var(--white) !important;
    color: var(--black) !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: none !important;
  }

  .filter-btn.active {
    border-color: var(--black) !important;
    background: var(--black) !important;
    color: var(--white) !important;
  }

  /* Footer */
  #footer {
    padding: 24px 20px 12px;
  }

  body.has-player #footer {
    padding-bottom: 92px !important;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
  }

  .footer-sep {
    display: none;
  }

  .footer-copy,
  .footer-domain {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    aspect-ratio: unset;
    min-height: 110px;
  }
}

/* ============================================================
   VIEW: MORE ABOUT PAGE (+ sur moi)
   ============================================================ */

.more-about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

/* ---- Hero Row: Photo + Intro ---- */

.moreabout-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

.moreabout-photo-col {
  position: sticky;
  top: 120px;
}

.moreabout-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}

.moreabout-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.moreabout-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.8s var(--ease-out-expo), filter 0.6s;
  filter: grayscale(20%);
}

.moreabout-photo-frame:hover .moreabout-photo {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.moreabout-intro-col {
  padding-top: 12px;
}

.more-about-heading {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  margin-bottom: 32px;
  text-align: left;
}

.more-about-bio p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--black);
  margin-bottom: 24px;
  font-weight: 300;
}

.more-about-bio p:last-child {
  margin-bottom: 0;
}

/* ---- Music Passion Section ---- */

.music-passion-section {
  border-top: 1px solid var(--gray-200);
  padding-top: 60px;
  margin-bottom: 0;
}

.music-passion-header {
  margin-bottom: 48px;
  max-width: 600px;
}

.music-passion-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.music-passion-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.2;
}

.music-passion-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  font-weight: 300;
}

/* ---- Music Cards Grid ---- */

.music-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.music-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 40px 36px;
  position: relative;
  transition: background 0.5s var(--ease-out-expo), border-color 0.4s;
  overflow: hidden;
}

.music-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--blue);
  transition: height 0.5s var(--ease-out-expo);
}

.music-card:hover {
  border-color: var(--gray-300);
  background: var(--white);
}

.music-card:hover::before {
  height: 100%;
}

.music-card-icon {
  color: var(--blue);
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-out-expo), color 0.3s;
}

.music-card:hover .music-card-icon {
  transform: translateY(-3px);
  color: var(--blue-light);
}

.music-card-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
}

.music-card-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-700);
  font-weight: 300;
}

.music-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1DB954;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #1DB954;
  transition: background 0.3s, color 0.3s, transform 0.2s var(--ease-out-expo);
}

.music-card-link:hover {
  background: #1DB954;
  color: var(--white);
  transform: translateY(-1px);
}

/* ---- Contact Section ---- */

.more-about-contact-section {
  margin-top: 80px;
  border-top: 1px solid var(--gray-200);
  padding-top: 60px;
}

.contact-box-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  margin-bottom: 12px;
}

.contact-box-subtitle {
  font-size: 16px;
  color: var(--gray-700);
  margin-bottom: 40px;
  font-weight: 300;
}

/* ---- More About Responsive ---- */

@media (max-width: 900px) {
  .moreabout-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .moreabout-photo-col {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }

  .more-about-heading {
    font-size: 36px;
  }

  .music-passion-title {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .more-about-container {
    padding: 40px 20px 60px;
  }

  .moreabout-photo-col {
    max-width: 280px;
    margin: 0 auto;
  }

  .more-about-heading {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .more-about-bio p {
    font-size: 15px;
  }

  .music-cards-grid {
    grid-template-columns: 1fr;
  }

  .music-card {
    padding: 28px 24px;
  }

  .music-passion-title {
    font-size: 24px;
  }

  .more-about-contact-section {
    margin-top: 60px;
    padding-top: 40px;
  }
}

.word-creative-text {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
}

/* ============================================================
   BOTTOM PERSISTENT AUDIO PLAYER BAR
   ============================================================ */

#audio-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--blue);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), opacity 0.4s;
  transform: translateY(0);
  opacity: 1;
  overflow: hidden;
}

#audio-player-bar.player-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.player-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Play/Pause Button */
.player-control-btn {
  background: var(--white);
  color: var(--blue);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  flex-shrink: 0;
  outline: none;
}

.player-control-btn:hover {
  background: var(--gray-100);
  transform: scale(1.05);
}

.player-control-btn:active {
  transform: scale(0.95);
}

/* Track Info */
.player-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  max-width: 320px;
  overflow: hidden;
}

.player-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-type {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* Progress bar container */
.player-progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
}

.player-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 35px;
}

.player-progress-bg {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}

.player-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--white);
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* Volume Regulator */
.player-volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

#player-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

#player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: transform 0.1s;
}

#player-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

#player-volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: transform 0.1s;
}

#player-volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Close Button */
.player-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  flex-shrink: 0;
  outline: none;
}

.player-close-btn:hover {
  color: var(--white);
}

/* Search Container Styles */
.search-container {
  width: 100%;
  margin-bottom: 30px;
}

#project-search-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--black);
  outline: none;
  transition: border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
  letter-spacing: 1px;
}

#project-search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(8, 49, 217, 0.1);
}

/* Responsive updates for Player */
@media (max-width: 768px) {
  .player-inner {
    padding: 0 20px;
    gap: 16px;
  }
  .player-info {
    min-width: auto;
    flex-grow: 1;
  }
  .player-progress-container {
    display: none;
  }
  .player-volume-container {
    display: none;
  }
}

/* ============================================================
   PROJECT DESCRIPTION STYLE TOAST (MSN MESSENGER XP STYLE)
   ============================================================ */

#description-toast {
  position: fixed;
  bottom: 95px; /* Just above the 80px bottom player bar, plus a small gap */
  right: 25px;
  width: 380px;
  background: var(--gray-100);
  border: 2px solid var(--black);
  border-radius: 6px 6px 0 0;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 1), 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
  opacity: 1;
  transform: translateY(0);
}

#description-toast.desc-toast-hidden {
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
}

/* MSN Titlebar */
.msn-titlebar {
  background: linear-gradient(to right, var(--blue), var(--blue-light));
  color: var(--white);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Tahoma', var(--font-sans);
  font-size: 11px;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  border-radius: 4px 4px 0 0;
}

.msn-titlebar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.msn-titlebar-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.msn-titlebar-text {
  letter-spacing: 0.5px;
}

.msn-titlebar-controls {
  display: flex;
  gap: 3px;
}

.msn-control-btn {
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--blue-light), var(--blue));
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.3);
  line-height: 1;
  outline: none;
}

.msn-control-btn.msn-close {
  background: linear-gradient(to bottom, var(--red-light), var(--red));
  font-size: 12px;
}

.msn-control-btn:hover {
  filter: brightness(1.2);
}

.msn-control-btn:active {
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.5);
}


/* MSN Toolbar */
.msn-toolbar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 6px 12px;
  display: flex;
  align-items: center;
}

.msn-toolbar-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Tahoma', var(--font-sans);
  font-size: 10px;
  font-weight: bold;
  color: var(--black);
}

.msn-lang-opt {
  background: none;
  border: none;
  font-family: 'Tahoma', var(--font-sans);
  font-size: 10px;
  font-weight: bold;
  color: var(--blue);
  cursor: pointer;
  padding: 2px 5px;
  text-decoration: underline;
  opacity: 0.6;
  outline: none;
}

.msn-lang-opt:hover {
  opacity: 0.9;
}

.msn-lang-opt.active {
  color: var(--red);
  opacity: 1;
  text-decoration: none;
  border: 1px solid var(--black);
  background: var(--white);
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 1);
}

.msn-lang-sep {
  font-size: 10px;
  color: var(--gray-300);
}

/* MSN Main Layout */
.msn-main-content {
  display: flex;
  background: var(--white);
  padding: 10px;
  gap: 12px;
  flex-grow: 1;
}

/* Chat conversation (left) */
.msn-chat-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 60%;
}

.msn-chat-history {
  border: 1px solid var(--gray-300);
  background: var(--white);
  padding: 10px;
  height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Tahoma', var(--font-sans);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.05);
}

.msn-system-message {
  font-size: 10px;
  color: var(--gray-500);
  border-bottom: 1px dashed var(--gray-200);
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.desc-toast-project-title {
  font-weight: bold;
  color: var(--blue);
}

.is-playing .desc-toast-project-title {
  color: var(--red);
}

.msn-message-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.msn-message-header {
  display: flex;
  align-items: center;
}

.msn-sender {
  font-weight: bold;
  color: var(--blue);
  font-size: 11px;
}

.is-playing .msn-sender {
  color: var(--red);
}

.desc-toast-text {
  font-size: 12px;
  color: var(--black);
  line-height: 1.4;
  word-break: break-word;
}

/* Cursor typing effect */
.desc-toast-cursor {
  font-weight: bold;
  color: var(--blue);
  margin-left: 2px;
  animation: descCursorBlink 0.8s infinite;
}

.is-playing .desc-toast-cursor {
  color: var(--red);
}

.desc-toast-cursor.cursor-hidden {
  display: none;
}

/* Blink animation for text cursor */
@keyframes descCursorBlink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* MSN Status Bar */
.msn-status-bar {
  font-family: 'Tahoma', var(--font-sans);
  font-size: 10px;
  color: var(--gray-500);
  min-height: 15px;
  display: flex;
  align-items: center;
}

/* Avatar block (right) */
.msn-avatar-area {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.msn-avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.msn-avatar-frame {
  width: 84px;
  height: 84px;
  border: 1px solid var(--black);
  background: var(--white);
  padding: 3px;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

.msn-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.msn-avatar-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Tahoma', var(--font-sans);
  font-size: 9px;
  font-weight: bold;
  color: var(--gray-700);
}

.msn-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.msn-status-dot.online {
  background-color: var(--green);
  box-shadow: 0 0 3px var(--green);
}

/* Responsive updates for MSN description window */
@media (max-width: 768px) {
  #description-toast {
    bottom: 90px;
    left: 15px;
    right: 15px;
    width: calc(100% - 30px);
  }
}

@media (max-width: 500px) {
  .msn-avatar-area {
    display: none;
  }
  .msn-chat-area {
    width: 100%;
  }
}

/* ============================================================
   ADDITIONS: EQUALIZER, NUDGE ANIMATION & TOOLTIPS
   ============================================================ */

/* Player title row layout */
.player-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.player-title-row .player-title {
  flex-shrink: 1;
}

/* 3-bar Audio Equalizer */
.equalizer {
  display: inline-flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 14px;
  height: 12px;
  flex-shrink: 0;
}

.equalizer-bar {
  width: 3px;
  height: 100%;
  background-color: currentColor;
  border-radius: 1px;
  transform-origin: bottom;
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
  animation-play-state: paused;
}

/* Different speeds/delays for natural bounce */
.equalizer-bar:nth-child(1) {
  animation-duration: 0.6s;
  animation-delay: 0.1s;
}
.equalizer-bar:nth-child(2) {
  animation-duration: 0.8s;
  animation-delay: 0.2s;
}
.equalizer-bar:nth-child(3) {
  animation-duration: 0.7s;
  animation-delay: 0s;
}

@keyframes eq-bounce {
  0% {
    transform: scaleY(0.2);
  }
  100% {
    transform: scaleY(1);
  }
}

/* Play/Pause state controls */
body.is-playing .equalizer .equalizer-bar {
  animation-play-state: running;
}

/* Card project equalizer placement */
.card-equalizer {
  margin-top: 10px;
  display: none;
}

.project-card.playing .card-equalizer {
  display: inline-flex;
  color: var(--red);
}

.project-card.playing:hover .card-equalizer {
  color: var(--white);
}

/* Adjustments for featured project card layout */
.all-projects-grid .project-card.featured .card-equalizer {
  margin-top: 0;
  margin-left: 10px;
}

/* MSN Nudge (Wizz) Shake Animation */
@keyframes msn-nudge {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-10px, -6px); }
  20% { transform: translate(10px, 6px); }
  30% { transform: translate(-10px, 4px); }
  40% { transform: translate(8px, -4px); }
  50% { transform: translate(-6px, 2px); }
  60% { transform: translate(6px, -2px); }
  70% { transform: translate(-4px, 1px); }
  80% { transform: translate(4px, -1px); }
  90% { transform: translate(-2px, 0); }
  100% { transform: translate(0, 0); }
}

.msn-window.nudge-active {
  animation: msn-nudge 0.35s ease-in-out;
}

/* Custom CSS Tooltip (Instant, Premium, Styled) */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%; /* Positioned above the number */
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  color: var(--black);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 2px;
  box-shadow: 2px 2px 0px var(--blue);
  border: 1px solid var(--black);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo), visibility 0.2s;
  z-index: 1000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip adjustment for mobile */
@media (max-width: 768px) {
  [data-tooltip]::after {
    bottom: 110%;
    font-size: 8px;
    padding: 4px 8px;
  }
}

/* ============================================================
   ADDITIONS: DARK MODE TOGGLE & CONTACT FORM
   ============================================================ */

/* Header Right Controls */
.header-right-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.control-sep {
  opacity: 0.2;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--black);
}

.theme-toggle-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--black);
  padding: 4px 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity 0.3s, color 0.3s;
  opacity: 0.6;
}

.theme-toggle-btn:hover {
  opacity: 1;
  color: var(--blue);
}

/* Contact Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-col {
  padding-right: 20px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 40px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
}

.dark-mode .contact-form {
  box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.02);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--black);
  background: var(--bg);
  border: 1px solid var(--gray-300);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.form-input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 3px 3px 0px var(--blue);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--black);
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  width: 100%;
}

.form-submit-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--black);
}

.dark-mode .form-submit-btn:hover {
  box-shadow: 4px 4px 0px var(--white);
}

.form-submit-btn:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0px var(--black);
}

.dark-mode .form-submit-btn:active {
  box-shadow: 1px 1px 0px var(--white);
}

.form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-status-msg {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: msn-nudge 0.3s ease;
}

.form-status-msg.success {
  color: var(--green);
}

.form-status-msg.error {
  color: var(--red);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info-col {
    padding-right: 0;
  }
  .contact-form {
    padding: 30px 24px;
  }
}

/* ============================================================
   ADDITIONS: TRANSITIONS & HOVER POLISHING
   ============================================================ */

/* Smooth Transition Overrides for theme switching */
#main-header, 
footer, 
.view-section, 
.music-card, 
.project-card, 
.player-inner, 
.msn-window, 
.msn-chat-history, 
.msn-avatar-frame,
input, 
textarea, 
button {
  transition: background 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Polished SPA view transitions with translateY slide-up */
.view-section {
  transform: translateY(15px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), visibility 0.6s;
}

.view-section.active {
  transform: translateY(0);
}

#view-landing {
  transform: none !important; /* Keep landing fixed view clean */
}

/* Project card micro-scale hover */
.project-card:hover {
  transform: scale(1.025);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dark-mode .project-card:hover {
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.01);
}

.project-card.featured:hover {
  transform: scale(1.012); /* Less scaling for wide featured card */
}

/* Custom multi-step keyframes for organic equalizer bounce */
@keyframes eq-bounce-1 {
  0%, 100% { transform: scaleY(0.2); }
  35% { transform: scaleY(0.85); }
  65% { transform: scaleY(0.4); }
  80% { transform: scaleY(0.65); }
}

@keyframes eq-bounce-2 {
  0%, 100% { transform: scaleY(0.3); }
  25% { transform: scaleY(0.95); }
  50% { transform: scaleY(0.15); }
  75% { transform: scaleY(0.7); }
}

@keyframes eq-bounce-3 {
  0%, 100% { transform: scaleY(0.15); }
  40% { transform: scaleY(0.6); }
  70% { transform: scaleY(0.9); }
  85% { transform: scaleY(0.35); }
}

.equalizer-bar:nth-child(1) {
  animation-name: eq-bounce-1;
  animation-duration: 0.65s;
}

.equalizer-bar:nth-child(2) {
  animation-name: eq-bounce-2;
  animation-duration: 0.85s;
}

.equalizer-bar:nth-child(3) {
  animation-name: eq-bounce-3;
  animation-duration: 0.75s;
}

/* ============================================================
   AUDIO SPECTRUM VISUALIZER CANVAS
   ============================================================ */

#player-visualizer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}


/* ============================================================
   CARD STAGGER FADE-IN ANIMATION
   ============================================================ */

@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-entering {
  animation: cardFadeInUp 0.5s var(--ease-out-expo) both;
}

/* ============================================================
   ADDITIONS: MOBILE MENU & PLAYER CONTROLS
   ============================================================ */

/* Player controls container */
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Player Prev/Next buttons */
.player-nav-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.3s, transform 0.2s;
  outline: none;
}

.player-nav-btn:hover {
  color: var(--white);
  transform: scale(1.1);
}

.player-nav-btn:active {
  transform: scale(0.95);
}

/* Mobile Hamburger Toggle Button */
.mobile-menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
  outline: none;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--black);
  transition: transform 0.4s var(--ease-out-expo), background-color 0.3s;
}

/* Hamburger active transformation (X shape) */
.mobile-menu-toggle-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle-btn.active .hamburger-bar:nth-child(2) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu Overlay Container */
.mobile-menu-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  height: calc(100dvh - 80px);
  background: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo), background-color 0.3s;
  pointer-events: none;
  border-top: 1px solid var(--gray-200);
}

.mobile-menu-overlay.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Menu Navigation Links */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-nav-link {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  cursor: pointer;
  padding: 10px 0;
  text-align: left;
  transition: color 0.3s;
  outline: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--black);
}

/* Mobile Menu Controls (Lang & Theme switcher) */
.mobile-menu-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--gray-200);
  padding-top: 32px;
}

.mobile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-theme-toggle-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--black);
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s, opacity 0.3s;
  opacity: 0.6;
  text-align: left;
  outline: none;
}

.mobile-theme-toggle-btn:hover {
  opacity: 1;
  color: var(--blue);
}

/* Responsive updates for navigation on screens < 768px */
@media (max-width: 768px) {
  #main-header .header-nav {
    display: none;
  }
  
  #main-header .header-right-controls {
    display: flex !important;
    align-items: center;
    gap: 0;
    margin-right: 12px;
  }

  #main-header .theme-toggle-btn,
  #main-header .control-sep {
    display: none !important;
  }

  #lang-switcher {
    display: flex !important;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
  }
  
  .mobile-menu-toggle-btn {
    display: flex;
  }
}

/* ============================================================
   UNIVERSAL PRINT & DOCUMENT EXPORT STYLES (PDF, presentation, etc.)
   ============================================================ */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Hide navigation, audio players, interactive overlays and toggles */
  #main-header,
  #mobile-menu-overlay,
  #audio-player-bar,
  #description-toast,
  #theme-toggle,
  #lang-switcher,
  .mobile-menu-toggle-btn,
  .preview-actions,
  .msn-window,
  canvas {
    display: none !important;
  }

  #main-content {
    margin-top: 0 !important;
    padding: 0 !important;
  }

  /* Force display of active views or list views cleanly */
  .view-section {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    page-break-after: always;
    padding: 20mm 15mm !important;
    background: #FFFFFF !important;
  }

  /* Clear absolute positions that hide other views in SPA */
  #main-content {
    display: flex;
    flex-direction: column;
  }

  /* Grid Layouts to clean stacked layouts for print */
  .about-magazine-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    page-break-inside: avoid;
  }

  .about-photo-wrapper {
    max-width: 280px !important;
  }

  .about-socials {
    display: none !important; /* Hide dynamic links during print */
  }

  .stats-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    border-top: 1px solid #E8E8E8 !important;
    border-bottom: 1px solid #E8E8E8 !important;
    padding: 20px 0 !important;
    margin: 30px 0 !important;
    page-break-inside: avoid;
  }

  .stat-item {
    border: none !important;
  }

  .stat-item:not(:last-child)::after {
    height: 20px !important;
    background: #E8E8E8 !important;
  }

  .projects-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    page-break-inside: avoid;
  }

  .project-card {
    border: 1px solid #E8E8E8 !important;
    background: #FFFFFF !important;
    aspect-ratio: 4 / 3 !important;
    page-break-inside: avoid;
  }

  .project-inner {
    color: #000000 !important;
    padding: 15px !important;
  }

  .project-number {
    font-size: 28pt !important;
    color: #0831D9 !important;
  }

  .project-title {
    font-size: 11pt !important;
    color: #000000 !important;
  }

  .project-type {
    background-color: #E8E8E8 !important;
    color: #000000 !important;
    border: 1px solid #D0D0D0 !important;
  }

  .music-cards-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
  }

  .music-card {
    border: 1px solid #E8E8E8 !important;
    padding: 20px !important;
    page-break-inside: avoid;
  }

  .music-card-icon,
  .music-card-link {
    display: none !important;
  }

  /* Contact and Forms */
  .more-about-contact-section {
    page-break-inside: avoid;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-form-col {
    display: none !important; /* Hide form in PDF/Print */
  }

  #footer {
    position: static !important;
    border-top: 1px solid #E8E8E8 !important;
    padding: 20px 0 !important;
    text-align: center;
  }

  .footer-sep {
    display: inline !important;
  }

  .footer-inner {
    flex-direction: row !important;
    justify-content: center !important;
  }
}

/* ---- VIDEO MODAL ---- */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ---- PROJECT THUMBNAIL ---- */
.project-thumb {
  height: 40px;
  width: auto;
  max-width: 150px;
  border-radius: 4px;
  object-fit: cover;
  margin: 5px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .project-thumb {
    grid-area: title;
    height: 35px;
    margin: 0;
  }
}

/* ---- PROJECT INLINE DESC ---- */
.project-desc-inline {
  grid-area: number;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--gray-600);
  max-width: 200px;
  text-align: center;
}

@media (max-width: 768px) {
  .project-desc-inline {
    max-width: 130px;
    font-size: 11px;
    text-align: left;
    margin-right: 10px;
  }
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-video-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-video-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.video-modal-content video {
  width: 100%;
  height: auto;
  max-height: 85vh;
  display: block;
}

