/* ==========================================================================
   ADBLU PREMIUM DESIGN SYSTEM
   Colors: 
     - Primary (Turquoise): #17B9E1
     - Light Theme (Off-white): #f4f5f9
     - Dark/Contrast Theme (Black): #000000
   ========================================================================== */

/* --- Fonts Loading --- */
@font-face {
  font-family: 'Sprintura';
  src: url('../assets/sprintura.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sprintura Outline';
  src: url('../assets/sprintura-outline.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens & Variables --- */
:root {
  /* Colors */
  --primary: #17B9E1;
  --primary-glow: rgba(23, 185, 225, 0.4);
  --primary-subtle: rgba(23, 185, 225, 0.08);
  --bg-light: #f4f5f9;
  --bg-dark: #000000;
  --text-dark: #000000;
  --text-light: #ffffff;
  --text-muted: #5c6470;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(23, 185, 225, 0.25);

  /* Fonts */
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Sprintura', 'Space Grotesk', sans-serif;
  --font-heading-outline: 'Sprintura Outline', 'Sprintura', 'Space Grotesk', sans-serif;

  /* Layout & Animations */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-normal: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 32px 72px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(23, 185, 225, 0.25);
}

/* --- Base & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Utility Classes --- */
.text-sprintura {
  font-family: var(--font-heading) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: normal;
}

.text-sprintura-outline {
  font-family: var(--font-heading-outline) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: normal;
  color: transparent;
  -webkit-text-stroke: 1px currentColor;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

.bg-dark {
  background-color: var(--bg-dark) !important;
  color: var(--text-light) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  gap: 10px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 10px 24px rgba(23, 185, 225, 0.25);
  border-color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--bg-dark);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(23, 185, 225, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: var(--text-light);
  color: var(--bg-dark);
  border-color: var(--text-light);
}

/* --- Site Header (Fully Transparent) --- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  padding: 24px 0;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal);
}

/* Desktop Header Container */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo-link {
  text-decoration: none;
  display: inline-block;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(23, 185, 225, 0.6);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

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

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.nav-item:hover {
  color: var(--primary);
}

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

.nav-cta {
  background-color: rgba(23, 185, 225, 0.15);
  border: 1px solid var(--primary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  text-shadow: none;
}

.nav-cta:hover {
  background-color: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--primary-glow);
}

.nav-cta::after {
  display: none;
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 110;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile Nav Toggle Opened State */
.mobile-nav-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav-item {
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast);
}

.mobile-nav-item:hover {
  color: var(--primary);
}

.mobile-cta {
  border: 2px solid var(--primary);
  padding: 12px 36px;
  border-radius: var(--radius-full);
  color: var(--primary) !important;
}

.mobile-cta:hover {
  background-color: var(--primary);
  color: var(--bg-dark) !important;
}

/* --- Hero Section with Background Video --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Premium High-Contrast Video Gradient Overlay */
.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.7) 100%),
    radial-gradient(circle at center, rgba(23, 185, 225, 0.08) 0%, transparent 60%);
  z-index: 2;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 100%;
  padding: 0 24px;
  text-align: center;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(20px);
  animation: heroFadeUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Centered Massive Logo Container */
.hero-logo-box {
  position: relative;
  width: min(85vw, 820px);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(140px) scale(0.3);
  filter: blur(12px) brightness(5);
  animation: heroLogoLoad 1.8s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
  animation-delay: 0s;
}

.hero-logo-box::after {
  content: '';
  position: absolute;
  inset: -12% -10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(23, 185, 225, 0.45) 62%, rgba(23, 185, 225, 0.15) 76%, transparent 90%);
  opacity: 0.94;
  filter: blur(30px);
  transform: scale(1);
  animation: heroLogoGlow 4.5s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

.hero-star {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.48rem, 0.9vw, 0.68rem);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0) scale(0.9);
  animation: heroLogoStar 5s ease-in-out infinite;
  animation-delay: var(--delay);
}

.hero-star-1 {
  top: 11%;
  left: 12%;
  --delay: 0.45s;
}

.hero-star-2 {
  top: 18%;
  right: 15%;
  --delay: 1.1s;
}

.hero-star-3 {
  bottom: 22%;
  left: 18%;
  --delay: 2.2s;
}

.hero-logo-main {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 2;
  /* filter removed for crisp legibility */
}

.hero-subtext {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sound Controller floating button */
.sound-control-container {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 15;
}

.sound-toggle-btn {
  background-color: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
}

.sound-toggle-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: scale(1.05);
}

.sound-icon {
  transition: transform var(--transition-fast);
}

.sound-toggle-btn:active .sound-icon {
  transform: scale(0.9);
}

/* Tooltip for sound button */
.sound-tooltip {
  position: absolute;
  right: 60px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-dark);
}

.sound-toggle-btn:hover .sound-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Mouse Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-light);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  display: block;
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheelAnim 1.6s infinite ease-in-out;
}

/* --- Section Layouts --- */
.content-section {
  padding: 100px 0;
  position: relative;
  background-color: var(--bg-light);
  overflow: hidden;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Two Column Grids */
.two-column-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.two-column-grid.inverse-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

/* Headings & Section Typography */
.eyebrow-container {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-left: 24px;
}

.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 2px;
  background-color: var(--primary);
}

.section-heading {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: normal;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.1;
  text-wrap: balance;
}

.section-paragraph {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.highlight-paragraph {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin-bottom: 28px;
}

/* Section Header (Centered) */
.section-header-center {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header-center .section-eyebrow {
  padding-left: 0;
}

.section-header-center .section-eyebrow::before {
  display: none;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -12px;
}

/* --- Features Stack (Right Column) --- */
.features-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-card {
  background-color: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--primary-glow);
  box-shadow: var(--shadow-md), 0 10px 30px rgba(23, 185, 225, 0.05);
}

.feature-card:hover::before {
  background-color: var(--primary);
}

.feature-icon-wrapper {
  color: var(--primary);
  flex-shrink: 0;
  background-color: var(--primary-subtle);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--primary);
  color: var(--bg-dark);
}

.feature-content {
  flex-grow: 1;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- Compatibility Stack (Inverse Column) --- */
.compat-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.compat-card {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color var(--transition-fast);
}

.compat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: transparent;
}

.compat-card:hover::after {
  border-color: var(--primary);
}

.compat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.compat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--bg-dark);
}

.compat-badge.accent {
  background-color: var(--text-light);
  color: var(--bg-dark);
}

.compat-badge.dark {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.compat-title {
  font-size: 1.4rem;
  color: var(--text-light);
  width: 100%;
}

.compat-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Spec Cards (Grid 3 Layout) --- */
.grid-three-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.spec-card {
  background-color: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.spec-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-glow);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(23, 185, 225, 0.04);
}

.spec-icon-box {
  color: var(--primary);
  background-color: var(--primary-subtle);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: all var(--transition-fast);
}

.spec-card:hover .spec-icon-box {
  background-color: var(--primary);
  color: var(--bg-dark);
  transform: scale(1.05);
}

.spec-card-title {
  font-size: 1.6rem;
  color: var(--text-dark);
}

.spec-card-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* --- Placeholder & Infinite Marquee Section --- */
.placeholder-container {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.015);
  border: 2px dashed rgba(23, 185, 225, 0.3);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.placeholder-container:hover {
  border-color: var(--primary);
  background-color: rgba(23, 185, 225, 0.01);
  box-shadow: inset 0 0 30px rgba(23, 185, 225, 0.02);
}

.placeholder-decor {
  position: absolute;
  top: 20px;
  left: 24px;
  display: flex;
  gap: 8px;
}

.decor-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.15);
}

.placeholder-container:hover .decor-dot:nth-child(1) {
  background-color: #ff5f56;
}

.placeholder-container:hover .decor-dot:nth-child(2) {
  background-color: #ffbd2e;
}

.placeholder-container:hover .decor-dot:nth-child(3) {
  background-color: #27c93f;
}

.placeholder-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.placeholder-icon {
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 8px;
  transition: transform var(--transition-normal);
}

.placeholder-container:hover .placeholder-icon {
  transform: scale(1.1) rotate(5deg);
  opacity: 1;
}

.placeholder-title {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.placeholder-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.placeholder-space-indicator {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--bg-dark);
  color: var(--text-light);
  margin-top: 10px;
}

/* Marquee Header */
.marquee-title-box {
  text-align: center;
  margin-bottom: 32px;
}

.marquee-section-title {
  font-size: 1.5rem;
  color: var(--text-dark);
}

/* Marquee infinite running log partners */
.marquee-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-light) 0%, transparent 100%);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-light) 0%, transparent 100%);
}

.scrolling-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 40px;
  /* Uniform spacious spacing between the logo cards */
  align-items: center;
  flex-shrink: 0;
  padding: 15px 40px 15px 0;
  /* padding-right is exactly equal to the gap (40px) to preserve spacing between cloned tracks */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  /* Fixed uniform width for identical card sizes */
  height: 85px;
  /* Fixed uniform height so they align vertically */
  background-color: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  /* Modern rounded cards instead of pill shapes */
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.logo-badge:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 10px 25px rgba(23, 185, 225, 0.08);
}

.partner-logo-img {
  max-height: 48px;
  /* Enlarged image height for high visibility */
  max-width: 150px;
  /* Responsive maximum width inside the card */
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  /* Grayscale makes logos look highly integrated and clean */
  opacity: 0.75;
  transition: all var(--transition-fast);
}

.logo-badge:hover .partner-logo-img {
  filter: grayscale(0%);
  /* Transitions to full color on hover */
  opacity: 1;
}


.partner-icon-txt {
  font-size: 1.15rem;
}

.partner-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

/* --- Dotazník (Questionnaire Switchable) --- */
.form-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.capsule-switcher {
  background-color: rgba(0, 0, 0, 0.04);
  padding: 6px;
  border-radius: var(--radius-full);
  display: flex;
  position: relative;
  border: 1px solid var(--border-light);
  max-width: 400px;
  width: 100%;
}

.switcher-btn {
  flex: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: color var(--transition-normal);
  z-index: 2;
  text-align: center;
}

.switcher-btn.active {
  color: var(--text-light);
}

.switcher-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  bottom: 6px;
  width: calc(50% - 6px);
  background-color: var(--primary);
  border-radius: var(--radius-full);
  z-index: 1;
  box-shadow: 0 4px 12px rgba(23, 185, 225, 0.35);
  transition: transform var(--transition-normal) cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Switcher state active slider translation */
.capsule-switcher.switched .switcher-slider {
  transform: translateX(100%);
  box-shadow: 0 4px 12px rgba(23, 185, 225, 0.35);
}

/* Form Card Shell */
.form-card-shell {
  max-width: 840px;
  margin: 0 auto;
  background-color: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.custom-form {
  display: none;
  width: 100%;
}

.custom-form.active-form {
  display: block;
  animation: formFadeIn 0.5s ease-out forwards;
}

/* Form Layout Grids */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.input-wrapper {
  position: relative;
}

.form-input,
.form-textarea {
  width: 100%;
  background-color: #fcfdff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background-color: var(--text-light);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(23, 185, 225, 0.12);
}

.margin-top-lg {
  margin-top: 24px;
}

/* Submit Actions */
.form-submit-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}

.btn-submit {
  min-width: 200px;
  border: 2px solid var(--primary);
}

.btn-submit:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

/* --- Site Footer (Contrastive Deep Black) --- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 40px;
  position: relative;
  border-top: 1px solid var(--border-dark);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-size: 2.2rem;
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(23, 185, 225, 0.4);
}

.footer-slogan {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--primary);
  padding-left: 2px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-info {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-placeholder-block {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  border: 1px solid rgba(23, 185, 225, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  text-align: center;
}

.copyright {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Animations & Keyframes --- */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollWheelAnim {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  30% {
    opacity: 1;
  }

  80% {
    opacity: 0;
    transform: translate(-50%, 14px);
  }

  100% {
    opacity: 0;
  }
}

@keyframes marqueeInfinite {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes heroLogoLoad {
  0% {
    opacity: 0;
    transform: translateY(140px) scale(0.3);
    filter: blur(15px) brightness(4);
  }

  55% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(15px) brightness(5);
  }

  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(8px) brightness(1);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px) brightness(1);
  }
}

@keyframes heroLogoGlow {
  0% {
    opacity: 0.7;
    transform: scale(0.98);
  }

  100% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@keyframes heroLogoStar {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) rotate(0deg) scale(0.88);
  }

  12% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(12deg) scale(1);
  }

  38% {
    opacity: 1;
    transform: translate3d(-6px, -8px, 0) rotate(16deg) scale(1.04);
  }

  68% {
    opacity: 0.8;
    transform: translate3d(8px, -16px, 0) rotate(24deg) scale(0.95);
  }

  100% {
    opacity: 0;
    transform: translate3d(12px, -26px, 0) rotate(30deg) scale(0.84);
  }
}

@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Animation States (activated via CSS/JS) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.appeared {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* --- Responsive Media Queries --- */

/* High-resolution widescreen layouts */
@media (min-width: 1400px) {
  .section-container {
    max-width: 1300px;
  }
}

/* Tablet viewports */
@media (max-width: 1024px) {
  .two-column-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .two-column-grid.inverse-grid {
    grid-template-columns: 1fr;
  }

  .two-column-grid.inverse-grid .content-block {
    order: -1;
  }

  .grid-three-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-contact {
    grid-column: span 2;
  }
}

/* Mobile & Small Tablet viewports */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .hero-logo-box {
    margin-bottom: 20px;
  }

  .sound-control-container {
    bottom: 24px;
    right: 24px;
  }

  .grid-three-layout {
    grid-template-columns: 1fr;
  }

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

  .form-group.full-width-mobile {
    grid-column: span 1;
  }

  .form-card-shell {
    padding: 32px 24px;
  }

  .content-section {
    padding: 80px 0;
  }

  .placeholder-container {
    padding: 40px 24px;
  }
}

/* Tiny mobile viewports */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .btn {
    width: 100%;
  }

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

  .footer-contact {
    grid-column: span 1;
  }

  .capsule-switcher {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .switcher-btn {
    padding: 10px;
  }

  .switcher-slider {
    display: none;
    /* Fallback for vertical on tiny mobiles */
  }

  .switcher-btn.active {
    background-color: var(--primary);
    border-radius: var(--radius-full);
  }
}

/* ==========================================================================
   Legend Section: Aleš Dousek Profile
   ========================================================================== */
.legend-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
  background-color: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  box-shadow: var(--shadow-md);
  margin-bottom: 64px;
}

.legend-quote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 32px;
}

.legend-history-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legend-fact-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.legend-fact-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-glow);
}

.fact-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  background-color: var(--text-light);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.fact-text h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.fact-text p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.legend-photo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.legend-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  max-width: 340px;
  width: 100%;
}

.legend-photo-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.frame-overlay-glow {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.legend-photo-frame:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: scale(1.03);
}

.legend-photo-frame:hover .legend-photo-img {
  transform: scale(1.06);
}

/* Responsive adjustments for Legend Profile */
@media (max-width: 1024px) {
  .legend-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 40px 24px;
  }

  .legend-photo-wrapper {
    order: -1;
  }

  .legend-photo-frame {
    max-width: 280px;
  }
}