/* ============================================================
   NESH PATEL — VIDEO EDITOR PORTFOLIO
   Dark Mode Premium Theme with Red & White Accents
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Dark Mode (Default) */
  --bg: #0a0a0c;
  --bg-alt: #111114;
  --bg-card: #141418;
  --bg-card-hover: #1a1a1f;
  --text: #f0eeef;
  --text-secondary: #c8c4c5;
  --muted: #9a959a;
  --muted-light: #5a555b;
  --accent: #ff1a4a;
  --accent-2: #e30630;
  --accent-soft: rgba(255, 26, 74, 0.12);
  --accent-glow: rgba(255, 26, 74, 0.25);
  --accent-gradient: linear-gradient(135deg, #ff1a4a 0%, #ff4d6d 50%, #e30630 100%);
  --line: rgba(255, 255, 255, 0.07);
  --line-hover: rgba(255, 255, 255, 0.14);
  --line-red: rgba(255, 26, 74, 0.15);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(255, 26, 74, 0.05);
  --shadow-glow: 0 0 40px rgba(255, 26, 74, 0.12), 0 0 80px rgba(255, 26, 74, 0.06);
  --glass-bg: rgba(20, 20, 24, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --max-width: 1240px;
  --mono-font: 'Fragment Mono', monospace;
  --sans-font: 'Plus Jakarta Sans', sans-serif;
  --display-font: 'Sora', sans-serif;
}

/* Light Mode Override */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #fafaf9;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f4;
  --text: #0d0a0b;
  --text-secondary: #2d2a2b;
  --muted: #4e4a4b;
  --muted-light: #8e8a8b;
  --accent: #ff0033;
  --accent-2: #e30613;
  --accent-soft: rgba(255, 0, 51, 0.06);
  --accent-glow: rgba(255, 0, 51, 0.12);
  --accent-gradient: linear-gradient(135deg, #ff0033 0%, #ff3366 50%, #d6052b 100%);
  --line: rgba(13, 10, 11, 0.08);
  --line-hover: rgba(13, 10, 11, 0.16);
  --line-red: rgba(255, 0, 51, 0.12);
  --shadow: 0 16px 40px rgba(13, 10, 11, 0.04), 0 4px 12px rgba(255, 0, 51, 0.02);
  --shadow-glow: 0 0 40px rgba(255, 0, 51, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(13, 10, 11, 0.06);
}

/* ---------- GLOBAL RESET ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  cursor: none;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  font-family: var(--sans-font);
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* ---------- BACKGROUND TEXTURES ---------- */
.bg-grid-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--accent-soft) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

[data-theme="light"] .bg-grid-pattern {
  opacity: 0.7;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 4px
    );
}

[data-theme="light"] .noise {
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.01)),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.015) 0,
      rgba(0, 0, 0, 0.015) 1px,
      transparent 1px,
      transparent 4px
    );
}

.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle 450px at var(--mx, 50%) var(--my, 50%), var(--accent-glow), transparent 75%);
  transition: background 0.08s ease;
}

/* ---------- FLOATING PARTICLES ---------- */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}

/* ---------- ARCHITECTURAL GRID ---------- */
.blueprint-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.2rem;
  position: relative;
  background: var(--bg-card);
  z-index: 2;
  transition: background-color 0.5s, border-color 0.5s;
  overflow: hidden;
}

.topbar-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.5rem 3.5rem;
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 1rem;
  transition: background-color 0.5s, border-color 0.5s;
}

/* ---------- HEADER ELEMENTS ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}

.chip:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.chip-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-gradient);
  font-family: var(--display-font);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
}

.chip-copy {
  display: grid;
  gap: 0.02rem;
}

.chip-copy strong {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.chip-copy span {
  font-size: 0.7rem;
  color: var(--muted-light);
}

.nav-pills,
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}

.nav-pills {
  justify-self: center;
}

.social-links {
  justify-self: end;
}

.nav-pills a,
.social-links a {
  padding: 0.6rem 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pills a:hover,
.social-links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Theme Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: rotate(30deg);
}

/* ---------- HERO GRID ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  overflow: hidden;
}

.hero-copy-panel {
  padding: 5rem 4.5rem;
  border-right: 1px solid var(--line);
  background: var(--bg);
  transition: background-color 0.5s;
}

.hero-stage {
  padding: 5rem 4.5rem;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.5s;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  margin-bottom: 2rem;
  color: var(--muted);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.availability-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 26, 74, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(255, 26, 74, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 26, 74, 0);
  }
}

.hero-headline {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.86;
  font-size: clamp(3rem, 7vw, 5.4rem);
  text-transform: uppercase;
}

.hero-headline .char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-headline span.outlined {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

.hero-headline span.accent-word {
  color: var(--accent);
  -webkit-text-stroke: 0;
}

.hero-lead {
  max-width: 32rem;
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.5rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.8rem 1.8rem;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
}

.primary-button {
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 32px rgba(255, 26, 74, 0.25);
}

.primary-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.primary-button:hover::before {
  opacity: 1;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(255, 26, 74, 0.35);
}

.secondary-button {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--accent);
}

.secondary-button:hover {
  transform: translateY(-3px);
  background: var(--accent-soft);
  box-shadow: 0 8px 32px rgba(255, 26, 74, 0.15);
}

.hero-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.meta-pill {
  padding: 0.6rem 1rem;
  color: var(--muted);
  font-size: 0.74rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: all 0.3s;
}

.meta-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- STAGE SCREEN ---------- */
.stage-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stage-screen {
  position: relative;
  margin-top: 1.5rem;
  flex-grow: 1;
  min-height: 20rem;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 30%, var(--accent-soft), transparent 18rem),
    var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s, background 0.5s;
}

.stage-screen:hover {
  border-color: var(--line-hover);
}

.stage-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 26, 74, 0.04) 45%,
    transparent 60%
  );
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.stage-caption {
  position: relative;
  z-index: 1;
  max-width: 17rem;
  font-family: var(--display-font);
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.15;
}

.hero-orbit-card {
  position: absolute;
  z-index: 2;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.hero-orbit-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.hero-orbit-card p {
  margin: 0 0 0.2rem;
  color: var(--muted-light);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-orbit-card strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.hero-orbit-a {
  right: 2rem;
  top: 4.5rem;
}

.hero-orbit-b {
  left: 2rem;
  bottom: 2rem;
}

/* ---------- STATS ROW ---------- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stat {
  padding: 3.5rem 2rem;
  border-right: 1px solid var(--line);
  text-align: center;
  transition: all 0.3s;
}

.hero-stat:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat span {
  color: var(--muted-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- SECTION LAYOUTS ---------- */
.section-padding {
  padding: 5.5rem 4.5rem;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 3.5rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.72rem;
  display: block;
}

.section-heading h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-family: var(--display-font);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
}

.section-heading p:last-child {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- WORK FILTER TABS ---------- */
.work-nav {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.35rem;
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  max-width: max-content;
  margin-bottom: 3.5rem;
  border: 1px solid var(--line);
  transition: background-color 0.5s;
}

.work-tag {
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: var(--sans-font);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.work-tag:hover {
  color: var(--text);
}

.work-tag.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 26, 74, 0.3);
}

/* ---------- PROJECT CARDS ---------- */
.work-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  transform-style: preserve-3d;
  perspective: 800px;
}

.work-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}

.work-thumb {
  min-height: 15rem;
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.work-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.work-card:hover .work-thumb img {
  transform: scale(1.05);
}

.thumb-gradient-red {
  background: linear-gradient(135deg, #ff1a4a, #aa0022);
}

.thumb-gradient-red-soft {
  background: linear-gradient(135deg, #ff3366, #b8143c);
}

.thumb-gradient-white {
  background: linear-gradient(135deg, #1e1e22, #2a2a30);
  border-bottom: 1px solid var(--line);
}

[data-theme="light"] .thumb-gradient-white {
  background: linear-gradient(135deg, #f7f7f6, #dfdfdf);
}

.thumb-gradient-dark {
  background: linear-gradient(135deg, #0e0e10, #000000);
}

.video-pill {
  position: relative;
  z-index: 2;
  padding: 0.5rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.thumb-gradient-dark .video-pill {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

.work-card-body {
  padding: 1.35rem 1.2rem 1rem;
}

.work-card-body p {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.68rem;
}

.work-card-body h4 {
  margin: 0.4rem 0 0;
  font-family: var(--display-font);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.work-card-body span.card-summary {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- WORK CAROUSEL ---------- */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 1rem;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.carousel-track {
  display: flex;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide:not(.active) {
  opacity: 0.5;
}

.carousel-card {
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.carousel-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.carousel-card-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 420px;
}

.carousel-card-visual {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.carousel-card-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.carousel-card:hover .carousel-card-visual img {
  transform: scale(1.06);
}

.carousel-card-visual .video-pill {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 3;
}

.carousel-slide-counter {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.06em;
}

.carousel-card-content {
  padding: 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  border-left: 1px solid var(--line);
  background: var(--bg-card);
}

.carousel-category {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.72rem;
}

.carousel-title {
  margin: 0.6rem 0 0;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.carousel-card-content .card-summary {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.65;
}

.carousel-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.carousel-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 0.3rem 0;
}

.carousel-meta-row span {
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.carousel-meta-row strong {
  color: var(--text);
  font-weight: 700;
  font-size: 0.84rem;
}

.carousel-card-cta {
  padding-top: 0.5rem;
}

.carousel-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: var(--display-font);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  transition: all 0.3s;
  cursor: pointer;
}

.carousel-card:hover .carousel-view-btn {
  letter-spacing: 0.04em;
}

/* Carousel Arrow Buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 1.5px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.carousel-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 30px rgba(255, 26, 74, 0.35);
}

.carousel-arrow-prev {
  left: -1.2rem;
}

.carousel-arrow-next {
  right: -1.2rem;
}

/* Dot Indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.8rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--muted-light);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-dot:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(255, 26, 74, 0.5);
}

/* Progress Bar */
.carousel-progress {
  width: 100%;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 1.2rem;
  overflow: hidden;
}

.carousel-progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(255, 26, 74, 0.4);
}

/* Carousel Responsive */
@media (max-width: 1080px) {
  .carousel-card-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .carousel-card-visual {
    min-height: 260px;
  }

  .carousel-card-content {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 2rem 2rem;
  }

  .carousel-arrow-prev {
    left: 0.5rem;
  }

  .carousel-arrow-next {
    right: 0.5rem;
  }
}

@media (max-width: 720px) {
  .carousel-card-visual {
    min-height: 200px;
  }

  .carousel-card-content {
    padding: 1.5rem;
  }

  .carousel-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 3rem 2.5rem;
  margin: 0.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

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

.service-card:last-child {
  border-right: 1px solid var(--line);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 1.25rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.74rem;
  position: relative;
}

.service-card h3 {
  margin: 0 0 0.8rem;
  font-family: var(--display-font);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.94rem;
  position: relative;
}

/* ---------- PROCESS SECTION ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
}

.approach-card {
  padding: 5.5rem 4.5rem;
  border-right: 1px solid var(--line);
}

.process-card {
  padding: 5.5rem 4.5rem;
}

.process-list li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.process-list li:first-child {
  border-top: none;
}

.process-item-trigger {
  user-select: none;
}

.process-item-trigger:hover strong {
  color: var(--accent) !important;
}

/* ---------- PRICING GRID ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pricing-card {
  padding: 5rem 4.5rem;
  border-radius: var(--radius-lg);
  transition: background-color 0.3s;
  position: relative;
}

.pricing-card:last-child {
  border-right: none;
}

.pricing-card.popular {
  background: var(--bg-alt);
}

.pricing-card.popular::before {
  content: "POPULAR TIER";
  position: absolute;
  top: 1.8rem;
  right: 2.5rem;
  font-family: var(--mono-font);
  font-size: 0.65rem;
  background: var(--accent-gradient);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 16px rgba(255, 26, 74, 0.3);
}

.pricing-header h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.45rem;
  font-weight: 800;
}

.pricing-header p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.price-tag {
  margin: 1.8rem 0;
  display: flex;
  align-items: baseline;
}

.price-amount {
  font-family: var(--display-font);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  color: var(--muted-light);
  margin-left: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  gap: 0.8rem;
}

.price-features li {
  font-size: 0.94rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.price-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

/* ---------- CONTACT ---------- */
.contact-panel {
  padding: 5.5rem 4.5rem;
  text-align: center;
}

.contact-panel p {
  max-width: 34rem;
  margin: 1rem auto 2.5rem;
}

/* Form Inputs */
.form-input {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-input::placeholder {
  color: var(--muted-light);
}

/* ---------- FAQ ACCORDION ---------- */
.faq-list {
  max-width: 48rem;
  margin: 3rem auto 0;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--line-hover);
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-soft);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  font-family: var(--display-font);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted-light);
  transition: all 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 26, 74, 0.4);
}

.faq-answer-wrapper {
  height: 0;
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer {
  padding: 0 2rem 1.5rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ---------- TEXT MARQUEES ---------- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 2.2rem 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  margin: 0;
  z-index: 1;
  transition: background-color 0.5s;
}

.marquee-track {
  display: inline-flex;
  gap: 3.5rem;
  animation: marquee-scroll 22s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(2.5rem, 6.5vw, 4.6rem);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.marquee-item span.highlight {
  color: var(--accent);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 30px rgba(255, 26, 74, 0.3);
}

.marquee-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 12px rgba(255, 26, 74, 0.5);
}

/* ---------- PARTNERS MARQUEE ---------- */
.partners-marquee {
  margin: 0;
  padding: 3.5rem 0 2rem;
  overflow: hidden;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  transition: background-color 0.5s;
}

.partners-title {
  text-align: center;
  font-family: var(--mono-font);
  font-size: 0.72rem;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.8rem;
}

.partners-track {
  display: flex;
  gap: 5.5rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  align-items: center;
}

.partner-logo {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.18);
  transition: color 0.3s;
  white-space: nowrap;
}

[data-theme="light"] .partner-logo {
  color: rgba(13, 10, 11, 0.22);
}

.partner-logo:hover {
  color: var(--accent);
}

/* ---------- CUSTOM CURSOR ---------- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  display: block;
  box-shadow: 0 0 10px rgba(255, 26, 74, 0.4);
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-family: var(--display-font);
  font-size: 0;
  font-weight: 800;
  letter-spacing: 0.05em;
  overflow: hidden;
}

.custom-cursor-ring.hovered {
  width: 52px;
  height: 52px;
  background-color: var(--accent-soft);
}

.custom-cursor-ring.play-mode {
  width: 76px;
  height: 76px;
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  box-shadow: 0 0 30px rgba(255, 26, 74, 0.4);
}

@media (hover: none) {
  .custom-cursor, .custom-cursor-ring {
    display: none !important;
  }
  html {
    cursor: auto !important;
  }
}

/* ---------- VIDEO MODAL ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

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

.video-modal-content {
  width: min(calc(100% - 2.5rem), 56rem);
  aspect-ratio: 16/9;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 80px rgba(255, 26, 74, 0.1);
}

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

.video-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.video-modal-close:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 26, 74, 0.4);
}

.video-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 4rem 2rem 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: background-color 0.5s;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--accent-gradient);
}

/* ---------- TESTIMONIAL SECTION ---------- */
.testimonial-section {
  background: var(--bg-alt);
  transition: background-color 0.5s;
}

.testimonial-quote {
  font-size: 1.3rem;
  color: var(--text);
  line-height: 1.75;
  letter-spacing: -0.01em;
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: -0.5rem;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.15;
  font-family: var(--display-font);
  font-style: normal;
  line-height: 1;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .topbar-section {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 1.5rem;
    gap: 0.8rem;
  }

  .chip, .nav-pills, .social-links {
    justify-self: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy-panel {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 3.5rem 2rem;
  }

  .hero-stage {
    padding: 3.5rem 2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 2rem 1.5rem;
  }

  .hero-stat:last-child {
    border-bottom: none;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }

  .service-card, .pricing-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 3.5rem 2rem;
  }

  .service-card:last-child, .pricing-card:last-child {
    border-bottom: none;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .approach-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 3.5rem 2rem;
  }

  .process-card {
    padding: 3.5rem 2rem;
  }
}

@media (max-width: 720px) {
  .topbar-section, .blueprint-section {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .nav-pills, .social-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

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

  .primary-button, .secondary-button {
    width: 100%;
  }

  .hero-orbit-a, .hero-orbit-b {
    position: static;
    margin-top: 0.8rem;
    display: inline-block;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 3.5rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .spotlight {
    display: none;
  }

  * {
    transition: none !important;
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- LENIS SMOOTH SCROLL ---------- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}

.lenis-scrolling iframe {
  pointer-events: none;
}

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-logo {
  font-family: var(--display-font);
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
}

.preloader-bar-wrap {
  width: 180px;
  height: 2px;
  background: var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
}

.preloader-percent {
  font-family: var(--mono-font);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ---------- BEFORE AFTER SLIDER ---------- */
.before-after-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.before-after-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 1.5rem auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  background: #000;
  box-shadow: var(--shadow);
  cursor: ew-resize;
}

.before-image-wrap,
.after-image-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.before-image,
.after-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* Desaturate before to simulate raw camera LOG footage */
.before-image {
  filter: saturate(0.22) contrast(0.72) brightness(1.08) sepia(0.04);
}

.slider-label {
  position: absolute;
  top: 1.5rem;
  z-index: 10;
  font-family: var(--mono-font);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
}

.label-before {
  left: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
}

.label-after {
  right: 1.5rem;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 26, 74, 0.3);
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  z-index: 20;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--accent-glow);
  pointer-events: none;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--accent);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text);
  font-size: 0.75rem;
  box-shadow: var(--shadow), 0 0 20px rgba(255, 26, 74, 0.3);
  transition: transform 0.2s, background-color 0.3s;
}

.before-after-container:hover .slider-button {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: var(--bg-card-hover);
}

/* ---------- TOAST ALERTS ---------- */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10600;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast-alert {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  color: var(--text);
  box-shadow: var(--shadow);
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(16px);
}

.toast-alert.error {
  border-left-color: #ff3b30;
}

.toast-alert.info {
  border-left-color: #007aff;
}

.toast-icon {
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.toast-alert.error .toast-icon {
  color: #ff3b30;
}

.toast-alert.info .toast-icon {
  color: #007aff;
}

.toast-msg {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- AUDIO MIXER WIDGET ---------- */
.audio-mixer-widget {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.mixer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
}

.mixer-play-btn {
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--text);
  font-family: var(--display-font);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s;
}

.mixer-play-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mixer-play-btn.playing {
  background: var(--accent-gradient);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.mixer-status {
  font-size: 0.76rem;
  color: var(--muted);
}

.mixer-board {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mixer-track {
  display: grid;
  grid-template-columns: 1fr 1.2fr 2fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.mixer-track.muted {
  opacity: 0.4;
}

.mixer-track.solo {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(255, 26, 74, 0.08);
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.track-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.track-label {
  font-size: 0.68rem;
  color: var(--muted-light);
  letter-spacing: 0.05em;
}

.track-visualizer {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
  overflow: hidden;
}

.track-visualizer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.track-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.mixer-btn {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono-font);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}

.mixer-btn:hover {
  color: var(--text);
  border-color: var(--line-hover);
}

.mixer-btn.btn-mute.active {
  background: rgba(255, 26, 74, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

.mixer-btn.btn-solo.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

[data-theme="light"] .mixer-btn.btn-solo.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.volume-slider-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 150px;
}

.volume-range {
  -webkit-appearance: none;
  appearance: none;
  background: var(--line);
  height: 4px;
  border-radius: 2px;
  outline: none;
  flex-grow: 1;
}

.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.1s;
}

.volume-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.volume-val {
  font-size: 0.76rem;
  color: var(--muted);
  width: 2.5rem;
  text-align: right;
}

/* ---------- LEADS INBOX CRM ---------- */
.leads-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 10200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.leads-content {
  width: min(calc(100% - 2rem), 48rem);
  max-height: 82vh;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.leads-header {
  padding: 1.8rem 2.2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
}

.leads-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.leads-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  transition: color 0.2s;
}

.leads-close:hover {
  color: var(--accent);
}

.leads-body {
  padding: 2.2rem;
  overflow-y: auto;
  flex-grow: 1;
  background: var(--bg);
}

.no-leads {
  text-align: center;
  color: var(--muted);
  padding: 4rem 1rem;
  font-size: 0.9rem;
}

.leads-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lead-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.2s;
}

.lead-card:hover {
  border-color: var(--line-hover);
}

.lead-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lead-date {
  font-size: 0.74rem;
  color: var(--muted-light);
}

.lead-delete {
  background: transparent;
  border: none;
  color: var(--muted-light);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.lead-delete:hover {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.1);
}

.lead-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lead-name {
  font-size: 1.15rem;
  font-weight: 800;
}

.lead-email {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: underline;
}

.lead-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ---------- CASE STUDY MODAL ---------- */
.case-study-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.case-study-content {
  width: min(calc(100% - 2.5rem), 68rem);
  max-height: 88vh;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-modal.active .case-study-content {
  transform: scale(1);
}

.case-study-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s;
}

.case-study-close:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: rotate(90deg);
}

.case-study-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  height: 88vh;
  max-height: 88vh;
}

.case-study-media {
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid var(--line);
}

.case-study-iframe {
  width: 100%;
  height: 100%;
  border: none;
  aspect-ratio: 16/9;
}

.case-study-details {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg-card);
}

.category-tag {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.case-study-details h3 {
  margin: 0 0 1.8rem;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.case-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-alt);
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  margin-bottom: 2rem;
}

.case-tabs button {
  flex-grow: 1;
  background: none;
  border: none;
  padding: 0.6rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-tabs button.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 26, 74, 0.25);
}

.case-tab-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.summary-text {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 2rem;
}

.meta-grid {
  display: grid;
  gap: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.6rem;
}

.meta-item strong {
  color: var(--text);
  font-weight: 700;
}

.meta-item span {
  color: var(--muted);
}

.timeline-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  display: flex;
  gap: 1.2rem;
  position: relative;
  padding-left: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: -1.8rem;
  width: 1px;
  background: var(--line-hover);
}

.timeline-item:last-child::before {
  display: none;
}

.item-time {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 800;
  background: var(--bg-alt);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  height: max-content;
}

.item-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.retention-desc {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.svg-container {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.retention-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.grid-line {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-node circle {
  transition: r 0.2s, fill 0.2s;
}

.chart-node:hover circle:first-child {
  r: 8px;
  fill: var(--accent);
}

.retention-detail {
  padding: 1.2rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-height: 90px;
  display: flex;
  align-items: center;
}

.detail-active {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.val-sec {
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 800;
}

.val-percent {
  font-size: 1.1rem;
  font-weight: 800;
}

.val-note {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
}

.detail-placeholder {
  color: var(--muted-light);
  font-size: 0.82rem;
  text-align: center;
  width: 100%;
}

/* ---------- RESPONSIVE MIXER & MODALS ---------- */
@media (max-width: 1080px) {
  .case-study-layout {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
  .case-study-media {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .case-study-details {
    padding: 2.2rem 1.8rem;
  }
}

@media (max-width: 720px) {
  .mixer-track {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .track-controls {
    justify-content: flex-start;
  }
  .volume-slider-container {
    width: 100%;
  }
  .toast-container {
    left: 1rem;
    right: 1rem;
  }
  .toast-alert {
    max-width: none;
  }
}

