/* Premium Enterprise Design System */
:root {
  --primary: #e9251f;
  --primary-dark: #c81e18;
  --primary-soft: rgba(233, 37, 31, 0.8);
  --primary-light: rgba(233, 37, 31, 0.08);
  --primary-translucent: rgba(233, 37, 31, 0.04);
  --primary-ultralight: rgba(233, 37, 31, 0.02);
  --accent: #fbf1f1;
  --accent-dark: #f8e1e1;
  --accent-gradient: linear-gradient(135deg, var(--accent), #fff);
  --gray-950: #0f1112;
  --gray-900: #222222;
  --gray-800: #333333;
  --gray-700: #555555;
  --gray-600: #666666;
  --gray-500: #7a7a7a;
  --gray-400: #9e9e9e;
  --gray-300: #d4d4d4;
  --gray-200: #eeeeee;
  --gray-150: #f2f2f2;
  --gray-100: #f7f7f7;
  --gray-50: #fafafa;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 17, 18, 0.05);
  --shadow-md: 0 3px 8px rgba(15, 17, 18, 0.08);
  --shadow-lg: 0 6px 16px rgba(15, 17, 18, 0.10);
  --shadow-elevated: 0 12px 24px rgba(15, 17, 18, 0.12);
  --shadow-focus: 0 0 0 4px rgba(233, 37, 31, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --spacing-xxs: 0.25rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  --container-width: 1140px;
  --transition-fast: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-medium: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Brand Color Text Selection - Context Aware */
::selection {
  background-color: var(--primary-light);
  color: var(--gray-900);
}

::-moz-selection {
  background-color: var(--primary-light);
  color: var(--gray-900);
}

/* Dark Background Text Selection (Hero Section) */
.hero-wrapper ::selection,
.hero-container ::selection {
  background-color: var(--primary);
  color: var(--white);
}

.hero-wrapper ::-moz-selection,
.hero-container ::-moz-selection {
  background-color: var(--primary);
  color: var(--white);
}

/* ===================================
   PREMIUM PRELOADER - Fortune 500 Grade
   =================================== */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #fafafa 25%,
    #ffffff 50%,
    #f9f9f9 75%,
    #ffffff 100%
  );
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              visibility 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  isolation: isolate;
}

.preloader::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(233, 37, 31, 0.02) 40%,
    rgba(233, 37, 31, 0.04) 70%,
    rgba(233, 37, 31, 0.06) 100%
  );
  z-index: 1;
}

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

.preloader__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  width: 100%;
  padding: var(--spacing-xl);
  text-align: center;
}

/* Logo Animation */
.preloader__logo {
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: logoFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.preloader__logo-image {
  max-width: 200px;
  height: auto;
  filter: brightness(1.02) contrast(1.05);
  transition: all var(--transition-medium);
}

@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Progress Container */
.preloader__progress-container {
  width: 100%;
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  transform: translateY(15px);
  animation: progressFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

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

/* Progress Bar Track */
.preloader__progress-track {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--spacing-md);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Progress Bar Fill */
.preloader__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-dark) 50%,
    var(--primary) 100%
  );
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.preloader__progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Progress Text */
.preloader__progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.preloader__percentage {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  font-feature-settings: 'tnum';
  min-width: 40px;
  text-align: right;
  display: none; /* Hide percentage for cleaner look */
}

.preloader__stage {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  flex: 1;
  text-align: left;
}

/* Loading Messages */
.preloader__message {
  opacity: 0;
  transform: translateY(10px);
  animation: messageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.preloader__message-text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.5;
  font-weight: 400;
  text-align: center;
  max-width: 320px;
  transition: opacity 0.4s ease-in-out;
}

.preloader__message-text.fade-out {
  opacity: 0;
}

.preloader__message-text.fade-in {
  opacity: 1;
}

/* Spinner removed as requested */

/* Mobile Responsiveness - Enhanced */
@media (max-width: 768px) {
  .preloader {
    padding: var(--spacing-md);
  }
  
  .preloader__container {
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 400px;
    width: 90%;
  }

  .preloader__logo {
    margin-bottom: var(--spacing-lg);
  }

  .preloader__logo-image {
    max-width: 180px;
  }

  .preloader__progress-container {
    margin-bottom: var(--spacing-lg);
  }

  .preloader__progress-track {
    height: 5px;
    margin-bottom: var(--spacing-lg);
  }

  .preloader__progress-info {
    margin-bottom: var(--spacing-md);
  }

  .preloader__stage,
  .preloader__percentage {
    font-size: 0.9rem;
  }

  .preloader__message-text {
    font-size: 1rem;
    max-width: 320px;
    line-height: 1.6;
  }

  .preloader::before {
    width: 35%;
  }
}

@media (max-width: 480px) {
  .preloader {
    padding: var(--spacing-sm);
  }
  
  .preloader__container {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 340px;
    width: 95%;
  }

  .preloader__logo {
    margin-bottom: var(--spacing-md);
  }

  .preloader__logo-image {
    max-width: 160px;
  }

  .preloader__progress-container {
    margin-bottom: var(--spacing-md);
  }

  .preloader__progress-track {
    height: 4px;
    margin-bottom: var(--spacing-md);
  }

  .preloader__progress-info {
    margin-bottom: var(--spacing-sm);
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    text-align: center;
  }

  .preloader__stage {
    font-size: 0.8rem;
    order: 2;
  }

  .preloader__percentage {
    font-size: 1.1rem;
    font-weight: 700;
    order: 1;
    min-width: auto;
  }

  .preloader__message {
    min-height: 60px;
  }

  .preloader__message-text {
    font-size: 0.9rem;
    max-width: 280px;
    line-height: 1.5;
  }

  .preloader::before {
    width: 25%;
  }
}

/* Ultra-small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
  .preloader__container {
    padding: var(--spacing-md) var(--spacing-sm);
    max-width: 300px;
    width: 98%;
  }

  .preloader__logo-image {
    max-width: 140px;
  }

  .preloader__message-text {
    font-size: 0.85rem;
    max-width: 250px;
  }

  .preloader__progress-info {
    gap: var(--spacing-xxs);
  }

  .preloader__stage {
    font-size: 0.75rem;
  }

  .preloader__percentage {
    font-size: 1rem;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .preloader__container {
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 500px;
  }

  .preloader__logo {
    margin-bottom: var(--spacing-md);
  }

  .preloader__logo-image {
    max-width: 140px;
  }

  .preloader__progress-container {
    margin-bottom: var(--spacing-md);
  }

  .preloader__message {
    min-height: 40px;
  }

  .preloader__message-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }


}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .preloader__logo,
  .preloader__progress-container,
  .preloader__message {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .preloader__progress-fill::after {
    animation: none;
  }


}

/* Ensure preloader is above everything */
body.loading {
  overflow: hidden;
}

body.loading .preloader {
  display: flex;
}

body:not(.loading) .preloader {
  display: none;
}

/* ===================================
   FORTUNE 500 ENTRANCE ANIMATIONS
   =================================== */

/* Animation States */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.animate-simple-fade {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.animate-simple-fade.animate-in {
  opacity: 1;
}

.animate-sponsor-fade {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.animate-sponsor-fade.animate-in {
  opacity: 1;
}

/* Staggered Animation Delays */
.animate-delay-100 { transition-delay: 0.1s; }
.animate-delay-200 { transition-delay: 0.2s; }
.animate-delay-300 { transition-delay: 0.3s; }
.animate-delay-400 { transition-delay: 0.4s; }
.animate-delay-500 { transition-delay: 0.5s; }
.animate-delay-600 { transition-delay: 0.6s; }

/* Specific Animation Types */
.animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale-up {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-scale-up.animate-in {
  opacity: 1;
  transform: scale(1);
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-slide-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section Specific Animations */
.hero-content {
  opacity: 0;
  transform: translateY(40px);
}

.hero-content.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gallery Items Staggered Animation */
.gallery__item {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery__item.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Testimonial Cards Staggered */
.testimonials-wall__card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonials-wall__card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Sponsor Items Animation - Differentiated by Tier */
/* Gold partners get dramatic slide-up animation */
.sponsors__item--gold {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sponsors__item--gold.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Silver and bronze partners use the fade-in animation class */
.sponsors__item--silver,
.sponsors__item--bronze {
  /* Animation handled by .animate-sponsor-fade class */
}

/* Section Headers */
.section-header {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-fade-up,
  .animate-fade-left,
  .animate-fade-right,
  .animate-scale-up,
  .animate-slide-up,
  .hero-content,
  .gallery__item,
  .testimonials-wall__card,
  .sponsors__item,
  .section-header {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .animate-on-scroll,
  .animate-fade-up,
  .animate-slide-up {
    transform: translateY(20px);
  }
  
  .animate-fade-left {
    transform: translateX(-20px);
  }
  
  .animate-fade-right {
    transform: translateX(20px);
  }
  
  .gallery__item {
    transform: translateY(20px) scale(0.98);
  }
  
  .testimonials-wall__card {
    transform: translateY(25px) scale(0.98);
  }
  
  /* Mobile Gallery Direct Tap - Hide overlay, make entire item clickable */
  .gallery__item-overlay {
    display: none;
  }
  
  .gallery__item {
    cursor: pointer;
  }
  
  .gallery__item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Typography and base body styles merged with scroll behavior */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss02', 'kern', 'liga';
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures;
}

/* Container utilities */
.gallery__container,
.testimonials__container,
.sponsors__container,
.archive-link__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg) 0;
}

/* Section spacing */
section {
  padding: 3rem 0;
}

/* Typography */
h1, h2, h3 {
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

/* Post-Event Hero Section - Focused on Gratitude */
.hero-wrapper {
  width: 100%;
  position: relative;
  background-image: url('https://huettikerfest-cdn.b-cdn.net/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--white);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* CRITICAL: Force exact viewport height without creating scroll context */
  min-height: 100vh; /* Fallback */
  min-height: 100svh; /* Modern browsers - always shows full viewport */
  /* NEVER create own scroll context - essential for iOS Chrome bottom bar */
  overflow: visible;
  /* Honor safe area insets */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  isolation: isolate;
}

.hero-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 4;
}

/* Enhanced Enterprise-Grade Overlay System */
.hero-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: 
    /* Primary sophisticated gradient */
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(15, 17, 18, 0.75) 25%,
      rgba(233, 37, 31, 0.35) 50%,
      rgba(0, 0, 0, 0.8) 100%
    ),
    /* Secondary depth layer */
    radial-gradient(
      ellipse at 30% 20%, 
      rgba(233, 37, 31, 0.15) 0%, 
      transparent 60%
    ),
    /* Tertiary atmospheric layer */
    radial-gradient(
      ellipse at 70% 80%, 
      rgba(0, 0, 0, 0.4) 0%, 
      transparent 50%
    );
}

.hero-background-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Vertical gradient for readability */
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.25) 40%,
      rgba(0, 0, 0, 0.15) 60%,
      rgba(0, 0, 0, 0.35) 100%
    ),
    /* Subtle texture overlay */
    linear-gradient(
      45deg,
      transparent 48%,
      rgba(255, 255, 255, 0.02) 49%,
      rgba(255, 255, 255, 0.02) 51%,
      transparent 52%
    );
  z-index: 2;
}

/* Additional atmospheric enhancement */
.hero-background-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Dynamic light sources */
    radial-gradient(
      circle at 15% 15%, 
      rgba(255, 255, 255, 0.08) 0%, 
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 85%, 
      rgba(233, 37, 31, 0.12) 0%, 
      transparent 35%
    );
  z-index: 1;
  animation: subtleShimmer 8s ease-in-out infinite alternate;
}

@keyframes subtleShimmer {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.hero-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--spacing-xxl) var(--spacing-xl);
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* CRITICAL: Match parent height exactly - never create inner scroll */
  min-height: 100vh;
  min-height: 100svh;
  /* Essential for document-level scrolling */
  overflow: visible;
}

.hero-content {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
}

.hero-text-group {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  margin-bottom: var(--spacing-xl);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero-logo a {
  display: inline-block;
  text-decoration: none;
  transition: all var(--transition-medium);
}

.hero-logo a:hover {
  transform: scale(1.05);
}

.hero-logo__image {
  max-width: 280px;
  height: auto;
  filter: brightness(1.15) contrast(1.1) saturate(1.05);
  transition: all var(--transition-medium);
  cursor: pointer;
}

.hero-logo a:hover .hero-logo__image {
  filter: brightness(1.2) contrast(1.15) saturate(1.1);
}

.hero-location-badge {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: var(--spacing-sm) var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-location-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s;
}

.hero-location-badge:hover::before {
  left: 100%;
}

.hero-main-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .hero-main-title {
    white-space: normal;
  }
}

.hero-message {
  margin-bottom: var(--spacing-lg);
}

.hero-message p {
  margin: 0;
}

.hero-subtitle {
  font-size: clamp(18px, 2.2vw, 24px);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.01em;
  margin: 0;
}

.hero-actions {
  margin-top: clamp(var(--spacing-lg), 4vw, var(--spacing-xl));
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: all var(--transition-medium);
  backdrop-filter: blur(16px);
  position: relative;
  min-width: 200px;
  justify-content: center;
}

.hero-action-btn--primary {
  background: linear-gradient(135deg, rgba(233, 37, 31, 0.9), rgba(200, 30, 24, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(233, 37, 31, 0.25);
}

.hero-action-btn--secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
}

.hero-action-btn {
  overflow: hidden;
}

.hero-action-btn:hover {
  transform: translateY(-2px);
  transition: all var(--transition-medium);
}

.hero-action-btn--primary:hover {
  box-shadow: 0 6px 24px rgba(233, 37, 31, 0.4);
  background: linear-gradient(135deg, rgba(233, 37, 31, 1), rgba(200, 30, 24, 1));
}

.hero-action-btn--secondary:hover {
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
}

.hero-action-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus), 0 6px 20px rgba(233, 37, 31, 0.4);
}

.hero-action-btn__text {
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.hero-action-btn__icon {
  position: relative;
  z-index: 2;
  transition: transform var(--transition-medium);
  width: 18px;
  height: 18px;
}

.hero-action-btn:hover .hero-action-btn__icon {
  transform: translateX(4px);
}

/* Hero Scroll Down Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  opacity: 0.7;
  transition: opacity var(--transition-medium);
}

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

.hero-scroll-indicator__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  text-decoration: none;
  color: var(--white);
  transition: all var(--transition-medium);
}

.hero-scroll-indicator__link:hover {
  transform: translateY(-2px);
}

.hero-scroll-indicator__link svg {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* Mobile adjustments for scroll indicator */
@media (max-width: 768px) {
  .hero-scroll-indicator {
    display: none !important; /* Hide scroll indicators on mobile */
  }
}



/* Premium Gallery Section */
.gallery {
  background: linear-gradient(
    170deg,
    var(--gray-50) 0%,
    var(--white) 25%,
    var(--gray-50) 100%
  );
  position: relative;
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
}

.gallery::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  z-index: 1;
}

.gallery__container {
  position: relative;
  z-index: 2;
  /* Override shared container width for gallery - use 80% of viewport */
  max-width: 80vw;
  width: 100%;
}

/* Gallery Header */
.gallery__header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gallery__header-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-translucent));
  border: 1px solid var(--primary-soft);
  border-radius: 50px;
  margin-bottom: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}



.gallery__header-badge-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  position: relative;
  z-index: 1;
}

.gallery__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.gallery__subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery Navigation */
.gallery__navigation {
  margin-bottom: var(--spacing-xxl);
  display: flex;
  justify-content: center;
}

.gallery__tabs {
  display: flex;
  gap: var(--spacing-xs);
  background: var(--white);
  padding: var(--spacing-xs);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.gallery__tabs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  pointer-events: none;
  z-index: 1;
}

/* Premium Sliding Tab Indicator */
.gallery__tabs::after {
  content: "";
  position: absolute;
  top: var(--spacing-xs);
  bottom: var(--spacing-xs);
  left: 0;
  
  /* Use CSS variables for dynamic values from JS */
  transform: translateX(var(--indicator-left, 0px));
  width: var(--indicator-width, 0px);
  
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  box-shadow: 
    var(--shadow-md),
    0 0 20px rgba(233, 37, 31, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  
  /* Add 'width' to the transition for a smooth resize */
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), width 400ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.gallery__tab {
  position: relative;
  padding: var(--spacing-lg) var(--spacing-md);
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--gray-600);
  font-weight: 500;
  font-size: 1rem;
  z-index: 3;
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow: hidden;
}

.gallery__tab:hover:not(.gallery__tab--active) {
  color: var(--gray-800);
  background: rgba(0, 0, 0, 0.03);
}

.gallery__tab--active {
  color: var(--white);
  transform: translateY(0);
  background: transparent;
}

.gallery__tab--active:hover {
  color: var(--white);
  background: transparent;
}

.gallery__tab-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xxs);
}

.gallery__tab-name {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
}

.gallery__tab-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.1;
  font-weight: 400;
  white-space: nowrap;
}

/* Gallery Content */
.gallery__content-wrapper {
  position: relative;
  margin-bottom: 0;
}

.gallery__content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  position: absolute;
  width: 100%;
  pointer-events: none;
}

.gallery__content--active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gallery__day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xxl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 2px solid var(--gray-200);
}

.gallery__day-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.gallery__day-counter {
  background: var(--primary-light);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary-soft);
}

.gallery__day-counter-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Gallery Grid */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  width: 100%;
  max-width: none;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
  cursor: pointer;
  aspect-ratio: 4/3;
  will-change: opacity, transform;
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

/* Fortune 500 Premium Gallery Lightbox */
.simple-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.simple-lightbox.show {
  display: flex;
  opacity: 1;
}

.simple-lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  cursor: default;
  transform: scale(0.85) translateY(30px);
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.simple-lightbox.show .simple-lightbox__content {
  transform: scale(1) translateY(0);
}

.simple-lightbox__header {
  position: absolute;
  top: -70px;
  left: 0;
  right: 0;
  color: white;
  text-align: center;
  z-index: 10;
}

.simple-lightbox__day-info {
  margin-bottom: 12px;
}

.simple-lightbox__day-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.simple-lightbox__day-subtitle {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.simple-lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.4),
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.simple-lightbox__video {
  width: 90vw;
  height: 50.625vw; /* 16:9 aspect ratio */
  max-height: 80vh;
  max-width: 142vh; /* Maintain aspect ratio when height-constrained */
  border-radius: 16px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.4),
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.simple-lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  backdrop-filter: blur(15px);
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
  transform: translate(50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.simple-lightbox__close:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
  transform: translate(50%, -50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.simple-lightbox__footer {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 10;
}

.simple-lightbox__counter {
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.simple-lightbox__nav {
  background: transparent;
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 250ms ease;
  z-index: 10;
  opacity: 0.7;
}

.simple-lightbox__nav:hover {
  opacity: 0.8;
}

.simple-lightbox__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.simple-lightbox__nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

@media (max-width: 768px) {
  .simple-lightbox__content {
    max-width: 95vw;
    max-height: 85vh;
    touch-action: pan-y pinch-zoom;
  }
  
  .simple-lightbox__header {
    top: -60px;
    -webkit-user-select: none;
    user-select: none;
  }
  
  .simple-lightbox__day-name {
    font-size: 16px;
  }
  
  .simple-lightbox__day-subtitle {
    font-size: 13px;
  }
  
  /* Mobile: Hide default close button completely */
  .simple-lightbox__close {
    display: none !important;
  }
  
  .simple-lightbox__footer {
    bottom: -50px;
    gap: 16px;
    -webkit-user-select: none;
    user-select: none;
  }
  
  .simple-lightbox__counter {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .simple-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    z-index: 20;
    color: white;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .simple-lightbox__nav:first-of-type {
    left: 15px;
  }
  
  .simple-lightbox__nav:last-of-type {
    right: 15px;
  }
  
  .simple-lightbox__nav svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  }
  
  .simple-lightbox__image {
    max-height: 85vh;
    border-radius: 12px;
    touch-action: pan-x pan-y pinch-zoom;
    user-select: none;
    -webkit-user-drag: none;
  }
  
  .simple-lightbox__video {
    width: 95vw;
    height: 53.4vw;
    max-height: 85vh;
    border-radius: 12px;
    touch-action: manipulation;
  }
  
    /* Enhanced touch feedback */
  .simple-lightbox__nav:active {
    transform: translateY(-50%) scale(0.9);
  }

  /* New clean mobile close button */
  .simple-lightbox__mobile-close {
    position: fixed;
    top: env(safe-area-inset-top, 20px);
    right: env(safe-area-inset-right, 20px);
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
    transition: all 0.2s ease;
  }

  .simple-lightbox__mobile-close:hover {
    transform: scale(1.1);
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.9));
  }

  .simple-lightbox__mobile-close:active {
    transform: scale(0.95);
  }
}

/* Desktop: Hide mobile close button completely */
@media (min-width: 769px) {
  .simple-lightbox__mobile-close {
    display: none !important;
  }
}

/* Gallery Show More with Smooth Animation */
.gallery__item {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.gallery__item--hidden {
  display: none;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  pointer-events: none;
}

/* Responsive hiding classes for gallery items */
.gallery__item--hidden-mobile {
  display: block;
}

.gallery__item--hidden-desktop {
  display: none !important;
}

@media (max-width: 768px) {
  .gallery__item--hidden-mobile {
    display: none !important;
  }
  
  .gallery__item--hidden-desktop {
    display: block;
  }
}

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

/* Gallery Item Clickable Enhancement */
.gallery__item {
  cursor: pointer;
  transition: all var(--transition-medium);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.gallery__item:hover {
  transform: translateY(-2px);
}

.gallery__item:hover .gallery__image {
  transform: scale(1.02);
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
  .gallery__item:hover {
    transform: none;
  }
  
  .gallery__item:hover .gallery__image {
    transform: none;
  }
  
  .gallery__item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

.gallery__item-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery__image {
  transition: transform var(--transition-medium);
}

.gallery__show-more {
  text-align: center;
  margin-top: var(--spacing-xl);
  margin-bottom: 0;
  display: block;
  width: 100%;
  clear: both;
  position: relative;
  z-index: 10;
}

.gallery__show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: 
    0 4px 12px rgba(233, 37, 31, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.gallery__show-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.gallery__show-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(233, 37, 31, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.gallery__show-more-btn:hover::before {
  left: 100%;
}

.gallery__show-more-btn:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
  box-shadow: 
    0 2px 8px rgba(233, 37, 31, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.gallery__show-more-btn svg {
  transition: transform var(--transition-fast);
}

.gallery__show-more-btn.expanded svg {
  transform: rotate(180deg);
}

.gallery__item-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery__image,
.gallery__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-medium);
  filter: contrast(1.05) saturate(1.1);
}

.gallery__video {
  border: none;
  outline: none;
}

.gallery__video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery__video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.gallery__item:hover .gallery__image,
.gallery__item:hover .gallery__video {
  transform: scale(1.1);
  filter: contrast(1.1) saturate(1.2) brightness(1.05);
}

.gallery__item--video .gallery__video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: 0 8px 25px rgba(233, 37, 31, 0.3);
  z-index: 5;
  animation: pulseGlow 2s ease-in-out infinite;
  border: none;
}

.gallery__item--video .gallery__video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(233, 37, 31, 0.5);
}

.gallery__item--video .gallery__video-play-btn svg {
  color: white;
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(233, 37, 31, 0.3), 0 0 0 0 rgba(233, 37, 31, 0.7);
  }
  50% {
    box-shadow: 0 8px 25px rgba(233, 37, 31, 0.5), 0 0 0 15px rgba(233, 37, 31, 0);
  }
}

.gallery__item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(233, 37, 31, 0.4) 100%
  );
  opacity: 0;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__item-overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: all var(--transition-medium);
}

.gallery__item:hover .gallery__item-overlay-content {
  transform: translateY(0);
}

.gallery__item-expand {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 12px;
  border-radius: 8px;
  color: var(--gray-800);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 40px;
  height: 40px;
  z-index: 10;
}

.gallery__item-expand svg {
  color: var(--gray-700);
  stroke: var(--gray-700);
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.gallery__item-expand:hover {
  background: var(--white);
  transform: scale(1.1);
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.gallery__item-expand:hover svg {
  color: var(--primary);
  stroke: var(--primary);
}



/* Compact Gallery Statistics */
.gallery__stats {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-translucent));
  border: 1px solid var(--primary-soft);
  border-radius: 50px;
  padding: var(--spacing-sm) var(--spacing-lg);
  position: relative;
  overflow: hidden;
  margin-top: var(--spacing-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Gallery stats hover effect removed */



.gallery__stats-container,
.testimonials-wall__stats-container,
.sponsors__stats-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}



.gallery__stat,
.testimonials-wall__stat,
.sponsors__stat {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: all var(--transition-fast);
}

.gallery__stat-icon,
.testimonials-wall__stat-icon,
.sponsors__stat-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gallery__stat-icon svg,
.testimonials-wall__stat-icon svg,
.sponsors__stat-icon svg {
  color: var(--primary);
  width: 16px;
  height: 16px;
}

.gallery__stat-number,
.testimonials-wall__stat-number,
.sponsors__stat-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.gallery__stat-label,
.testimonials-wall__stat-label,
.sponsors__stat-label {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Header version of stats - minimal badge size */
.gallery__stats--header,
.testimonials-wall__stats--header,
.sponsors__stats--header {
  transform: none;
  margin-bottom: var(--spacing-md);
  margin-top: 0;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-translucent));
  border: 1px solid var(--primary-soft);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.gallery__stats--header .gallery__stats-container,
.testimonials-wall__stats--header .testimonials-wall__stats-container,
.sponsors__stats--header .sponsors__stats-container {
  gap: 8px;
}

.gallery__stats--header .gallery__stat,
.testimonials-wall__stats--header .testimonials-wall__stat,
.sponsors__stats--header .sponsors__stat {
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
}

.gallery__stats--header .gallery__stat-icon svg,
.testimonials-wall__stats--header .testimonials-wall__stat-icon svg,
.sponsors__stats--header .sponsors__stat-icon svg {
  width: 12px;
  height: 12px;
}

.gallery__stats--header .gallery__stat-number,
.gallery__stats--header .gallery__stat-label,
.testimonials-wall__stats--header .testimonials-wall__stat-number,
.testimonials-wall__stats--header .testimonials-wall__stat-label,
.sponsors__stats--header .sponsors__stat-number,
.sponsors__stats--header .sponsors__stat-label {
  font-size: 0.6875rem;
}

.gallery__stat--mobile-duplicate {
  display: none;
}

/* Premium Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===================================
   TESTIMONIALS WALL - Fortune 500 Grade
   =================================== */

/* Section Container */
.testimonials-wall {
  background: linear-gradient(
    170deg,
    var(--gray-50) 0%,
    var(--white) 25%,
    var(--gray-50) 100%
  );
  position: relative;
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
}

.testimonials-wall::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  z-index: 1;
}

/* Container matching gallery style */
.testimonials-wall__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg) 0 var(--spacing-lg);
  position: relative;
  z-index: 2;
}

/* Section Header - Matching Gallery */
.testimonials-wall__header {
  text-align: center;
  margin-bottom: var(--spacing-lg); /* Aggressively reduced for tight spacing */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-wall__header-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-translucent));
  border: 1px solid var(--primary-soft);
  border-radius: 50px;
  margin-bottom: var(--spacing-md);
  position: relative;
  overflow: hidden;
}



.testimonials-wall__header-badge-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.025em;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  line-height: 1;
}

.testimonials-wall__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.testimonials-wall__subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Marquee Container */
.testimonials-wall__marquee-container {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: visible;
  padding: 0;
}

.testimonials-wall__marquee-track {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  padding: var(--spacing-lg) 0;
  /* FIXED: Increase touch target area for mobile dragging */
  touch-action: pan-x;
  -webkit-tap-highlight-color: transparent;
}

.testimonials-wall__marquee-track.dragging {
  cursor: grabbing;
}

.testimonials-wall__marquee-track.dragging * {
  pointer-events: none;
  user-select: none;
}

.testimonials-wall__marquee-content {
  display: flex;
  /* animation: marqueeFlow 60s linear infinite; - DISABLED: Now using JS animation */
  will-change: transform;
  gap: var(--spacing-xl);
  padding-left: var(--spacing-xl);
}

.testimonials-wall__marquee-track:hover .testimonials-wall__marquee-content {
  /* animation-play-state: paused; - DISABLED: Now handled by JS */
}

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

/* Gradient Fades */
.testimonials-wall__gradient {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

.testimonials-wall__gradient--left {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(248, 250, 252, 1) 0%,
    rgba(248, 250, 252, 0.8) 40%,
    transparent 100%
  );
}

.testimonials-wall__gradient--right {
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(248, 250, 252, 1) 0%,
    rgba(248, 250, 252, 0.8) 40%,
    transparent 100%
  );
}

/* Review Cards - Compact & Isolated */
.testimonials-wall__card {
  flex-shrink: 0;
  width: 380px;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  position: relative;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1); /* Faster, smoother transition */
  overflow: hidden;
  isolation: isolate;
  contain: layout style;
  cursor: pointer; /* Make it clear it's clickable */
}

.testimonials-wall__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: 1;
}

/* Add expand icon to indicate clickability */
.testimonials-wall__card::after {
  content: "⤢";
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 120ms ease-out, transform 120ms ease-out, background 120ms ease-out, color 120ms ease-out, box-shadow 120ms ease-out; /* Faster, specific transitions */
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px; /* Larger icon */
  font-weight: 700; /* Bolder icon */
  color: var(--gray-600);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); /* Reduced shadow */
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Desktop hover effects only */
@media (hover: hover) and (pointer: fine) {
  .testimonials-wall__card:hover {
    transform: translateY(-1px); /* Less intrusive lift */
    box-shadow: var(--shadow-lg); /* Softer shadow */
  }

  .testimonials-wall__card:hover::before {
    opacity: 1;
  }
  
  .testimonials-wall__card:hover::after {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); /* Reduced hover shadow */
  }
}

/* Mobile: Remove hover effects, add subtle touch feedback */
@media (hover: none) and (pointer: coarse) {
  .testimonials-wall__card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

.testimonials-wall__card.playing {
  transform: translateY(-6px);
  box-shadow: 
    var(--shadow-elevated),
    0 0 20px rgba(233, 37, 31, 0.2);
  border-color: var(--primary-soft);
}

.testimonials-wall__card.playing::before {
  opacity: 0;
}

.testimonials-wall__card.playing::after {
  opacity: 0;
}

/* Card Content */
.testimonials-wall__card-content {
  position: relative;
  min-height: 200px; /* Increased to accommodate audio player */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Text Mode */
.testimonials-wall__text-mode {
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonials-wall__text-mode.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.testimonials-wall__quote {
  margin-bottom: var(--spacing-md);
  flex: 1; /* Take up available space */
}

.testimonials-wall__quote-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  font-style: italic;
  position: relative;
}

.testimonials-wall__quote-text::before {
  content: "\201C";
  font-size: 3rem;
  color: var(--primary);
  position: absolute;
  top: -0.8rem;
  left: -0.8rem;
  font-family: Georgia, serif;
  opacity: 0.3;
}

/* Author Information */
.testimonials-wall__author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: auto; /* Push to bottom */
}

.testimonials-wall__author-info {
  flex: 1;
  min-width: 0;
}

.testimonials-wall__author-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonials-wall__author-role {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Audio Trigger Button */
.testimonials-wall__audio-trigger {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(233, 37, 31, 0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonials-wall__audio-trigger::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.testimonials-wall__audio-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(233, 37, 31, 0.4);
}

.testimonials-wall__audio-trigger:hover::before {
  left: 100%;
}

.testimonials-wall__audio-trigger-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.testimonials-wall__audio-trigger .testimonials-wall__pause-icon {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.testimonials-wall__audio-trigger.playing .testimonials-wall__play-icon {
  opacity: 0;
}

.testimonials-wall__audio-trigger.playing .testimonials-wall__pause-icon {
  opacity: 1;
}

/* Audio Mode */
.testimonials-wall__audio-mode {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 5; /* Ensure audio mode is above card background but below close button */
}

.testimonials-wall__audio-mode.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.testimonials-wall__audio-player {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Perfect centering */
  gap: var(--spacing-md);
}

/* Audio Header */
.testimonials-wall__audio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xs); /* Reduced margin to reduce top spacing */
  position: relative;
  z-index: 10; /* Ensure header is above other card elements */
}

.testimonials-wall__audio-info {
  flex: 1;
  min-width: 0;
}

.testimonials-wall__audio-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonials-wall__audio-role {
  font-size: 0.8rem;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonials-wall__audio-close {
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--gray-600);
  flex-shrink: 0;
  position: relative;
  z-index: 20; /* Highest z-index to ensure close button is always clickable */
}

.testimonials-wall__audio-close:hover {
  background: rgba(0, 0, 0, 0.15);
  color: var(--gray-800);
}

/* Waveform Visualizer */
.testimonials-wall__waveform-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonials-wall__waveform {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  height: 50px;
  padding: 0 var(--spacing-sm);
  margin-bottom: var(--spacing-xs); /* Small padding between waveform bars and progress bar */
}

.testimonials-wall__waveform-bar {
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--primary) 0%,
    var(--primary-dark) 50%,
    var(--primary) 100%
  );
  border-radius: 1.5px;
  height: 6px;
  transition: height 0.1s ease;
}

.testimonials-wall__waveform.playing .testimonials-wall__waveform-bar {
  animation: waveformPulse 1.5s ease-in-out infinite;
}

@keyframes waveformPulse {
  0%, 100% {
    height: 6px;
    opacity: 0.6;
  }
  50% {
    height: 40px;
    opacity: 1;
  }
}

.testimonials-wall__waveform-bar:nth-child(odd) {
  animation-delay: 0.1s;
}

.testimonials-wall__waveform-bar:nth-child(even) {
  animation-delay: 0.3s;
}

.testimonials-wall__waveform-bar:nth-child(3n) {
  animation-delay: 0.2s;
}

/* Progress Bar */
.testimonials-wall__progress-container {
  /* No margin needed due to gap in parent */
}

.testimonials-wall__progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.testimonials-wall__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #d42a24);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 2px;
}

.testimonials-wall__time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Audio Controls */
.testimonials-wall__audio-controls {
  display: flex;
  justify-content: center;
}

.testimonials-wall__control-btn {
  width: 36px; /* Reduced size */
  height: 36px; /* Reduced size */
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 3px 12px rgba(233, 37, 31, 0.3);
  position: relative;
}

.testimonials-wall__control-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(233, 37, 31, 0.4);
}

.testimonials-wall__control-btn .testimonials-wall__pause-icon {
  opacity: 0;
  position: absolute;
}

.testimonials-wall__control-btn.playing .testimonials-wall__play-icon {
  opacity: 0;
}

.testimonials-wall__control-btn.playing .testimonials-wall__pause-icon {
  opacity: 1;
}

/* Hidden Audio Element */
.testimonials-wall__audio-element {
  display: none;
}



/* Mobile Responsiveness for Testimonials Wall */
@media (max-width: 768px) {
  .testimonials-wall {
    padding: var(--spacing-lg) 0;
  }

  .testimonials-wall__container {
    padding: 0 var(--spacing-md);
  }

  .testimonials-wall__header {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm); /* Aggressively reduced for mobile */
    padding: 0 var(--spacing-md);
  }

  .testimonials-wall__title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
  }

  /* Reduce all section titles to prevent line breaks on iPhone 13 */
  .gallery__title,
  .testimonials-wall__title,
  .sponsors__title {
    font-size: 2.0rem !important;
  }

  .testimonials-wall__subtitle {
    font-size: 1rem;
  }

  .testimonials-wall__marquee-container {
    padding: var(--spacing-sm) 0; /* Further reduced from md to sm for mobile */
  }

  /* FIXED: Increase mobile drag area for better touch interaction */
  .testimonials-wall__marquee-track {
    padding: var(--spacing-sm) 0 var(--spacing-xl) 0; /* Minimal top, large bottom for touch area */
    min-height: 60px; /* Ensure minimum touch target height */
  }

  .testimonials-wall__card {
    width: 320px; /* Increased from 300px to be less cramped */
    padding: var(--spacing-md);
  }

  .testimonials-wall__quote-text {
    font-size: 0.95rem;
  }

  /* Mobile-specific improvements for close button */
  .testimonials-wall__audio-close {
    width: 32px; /* Larger touch target on mobile */
    height: 32px;
    z-index: 30; /* Even higher z-index on mobile for better touch reliability */
    /* Ensure no other elements can interfere with touch events */
    touch-action: manipulation;
  }

  .testimonials-wall__author {
    align-items: center;
    gap: var(--spacing-xs);
  }

  .testimonials-wall__waveform {
    height: 40px;
    gap: 1.5px;
  }

  .testimonials-wall__waveform-bar {
    width: 2.5px;
  }
}

@media (max-width: 480px) {
  .testimonials-wall__card {
    width: 280px; /* Increased from 260px to be less cramped */
    padding: var(--spacing-sm);
  }

  .testimonials-wall__card-content {
    min-height: 140px;
  }

  .testimonials-wall__gradient {
    width: 60px;
  }

  .testimonials-wall__marquee-content {
    gap: var(--spacing-md);
  }

  /* FIXED: Even larger touch area for small mobile devices */
  .testimonials-wall__marquee-track {
    padding: var(--spacing-xs) 0 var(--spacing-xxl) 0; /* Minimal top, maximum bottom for touch area */
    min-height: 80px; /* Larger minimum height for easier dragging */
  }

  .testimonials-wall__quote-text {
    font-size: 0.9rem;
  }

  .testimonials-wall__author-name {
    font-size: 0.9rem;
  }

  .testimonials-wall__author-role {
    font-size: 0.75rem;
  }

  /* Mobile audio player spacing adjustments */
  .testimonials-wall__audio-player {
    gap: var(--spacing-sm); /* Reduce gap on mobile */
  }

  .testimonials-wall__audio-header {
    margin-bottom: var(--spacing-xs); /* Reduce spacing */
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .testimonials-wall__marquee-content {
    animation: none;
  }

  .testimonials-wall__waveform.playing .testimonials-wall__waveform-bar {
    animation: none;
    height: 40px;
  }

  .testimonials-wall__card.playing::before {
    animation: none;
  }

  .testimonials-wall__header-badge::before {
    animation: none;
  }
}

/* ===================================
   TESTIMONIAL MODAL
   =================================== */

.testimonial-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.testimonial-modal.show {
  opacity: 1;
  visibility: visible;
}

.testimonial-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.testimonial-modal__content {
  position: relative;
  width: 90%;
  max-width: 750px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-medium);
  overflow: hidden;
  /* FIXED: Set explicit height constraints for proper scrolling */
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.testimonial-modal.show .testimonial-modal__content {
  transform: scale(1) translateY(0);
}

.testimonial-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  /* FIXED: Keep header fixed at top */
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.testimonial-modal__author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.testimonial-modal__author-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxs);
}

.testimonial-modal__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.testimonial-modal__role {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: var(--spacing-xxs);
  line-height: 1.3;
}

.testimonial-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-translucent));
  border: 1px solid var(--primary-soft);
  border-radius: 50%;
  color: var(--primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.testimonial-modal__close::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left var(--transition-medium);
}

.testimonial-modal__close:hover::before {
  left: 100%;
}

.testimonial-modal__close:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.testimonial-modal__close:active {
  transform: scale(0.95);
}

/* ===================================
   COMPACT HEADER AUDIO PLAYER - FORTUNE 500 STYLE
   Inspired by "Besucherstimmen" badge design
   =================================== */

.testimonial-modal__header-audio {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: var(--spacing-lg);
}

/* 🔥 ULTRA-POLISHED SINGLE-ROW AUDIO PLAYER 🔥 */
.testimonial-modal__audio-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-translucent));
  border: 1px solid var(--primary-soft);
  border-radius: 50px;
  padding: var(--spacing-xs) var(--spacing-md);
  transition: all var(--transition-medium);
  min-width: 180px;
  position: relative;
  overflow: hidden;
  height: 40px;
}

.testimonial-modal__audio-compact::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left var(--transition-medium);
}

.testimonial-modal__audio-compact:hover::before {
  left: 100%;
}

.testimonial-modal__audio-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 37, 31, 0.15);
}

/* 🎯 INTEGRATED PLAY BUTTON - FORTUNE 500 STYLE 🎯 */
.testimonial-modal__audio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  opacity: 0.8;
}

.testimonial-modal__audio-btn:hover {
  background: rgba(233, 37, 31, 0.1);
  opacity: 1;
  transform: scale(1.05);
}

.testimonial-modal__audio-btn:active {
  transform: scale(0.95);
  background: rgba(233, 37, 31, 0.15);
}

.testimonial-modal__audio-btn .testimonial-modal__pause-icon {
  display: none;
}

.testimonial-modal__audio-btn.playing .testimonial-modal__play-icon {
  display: none;
}

.testimonial-modal__audio-btn.playing .testimonial-modal__pause-icon {
  display: block;
}

/* ⚡ PREMIUM WAVEFORM VISUALIZATION ⚡ */
.testimonial-modal__mini-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  flex: 1.2;
  justify-content: center;
}

.testimonial-modal__mini-wave-bar {
  width: 2px;
  background: var(--primary);
  border-radius: 1px;
  height: 8px;
  opacity: 0.4;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: miniWaveformIdle 4s ease-in-out infinite;
}

.testimonial-modal__mini-waveform.playing .testimonial-modal__mini-wave-bar {
  background: var(--primary);
  opacity: 0.7;
  animation: miniWaveformVoice 3s ease-in-out infinite;
}

/* 🧘 SUBTLE IDLE - BARELY PERCEPTIBLE */
@keyframes miniWaveformIdle {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(1.02); }
}

/* 🎵 ELEGANT VOICE WAVEFORM - MINIMAL & SOPHISTICATED */
@keyframes miniWaveformVoice {
  0%, 100% { transform: scaleY(0.6); opacity: 0.6; }
  25% { transform: scaleY(1.1); opacity: 0.8; }
  50% { transform: scaleY(0.8); opacity: 0.7; }
  75% { transform: scaleY(1.3); opacity: 0.9; }
}

/* 🎯 ELEGANT WAVE PATTERN - FORTUNE 500 MINIMALISM */
.testimonial-modal__mini-wave-bar:nth-child(1) { animation-delay: 0s; height: 10px; }
.testimonial-modal__mini-wave-bar:nth-child(2) { animation-delay: 0.2s; height: 14px; }
.testimonial-modal__mini-wave-bar:nth-child(3) { animation-delay: 0.4s; height: 12px; }
.testimonial-modal__mini-wave-bar:nth-child(4) { animation-delay: 0.6s; height: 16px; }
.testimonial-modal__mini-wave-bar:nth-child(5) { animation-delay: 0.8s; height: 8px; }
.testimonial-modal__mini-wave-bar:nth-child(6) { animation-delay: 1.0s; height: 12px; }
.testimonial-modal__mini-wave-bar:nth-child(7) { animation-delay: 1.2s; height: 14px; }
.testimonial-modal__mini-wave-bar:nth-child(8) { animation-delay: 1.4s; height: 10px; }

/* 🕐 ELEGANT TIME DISPLAY 🕐 */
.testimonial-modal__mini-time {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  min-width: 30px;
  text-align: right;
  position: relative;
  z-index: 1;
}

/* 📱 MOBILE POLISH - STILL MIRROR-GRADE 📱 */
@media (max-width: 768px) {
  .testimonial-modal__header-audio {
    margin-right: var(--spacing-sm);
  }
  
  .testimonial-modal__audio-compact {
    min-width: 150px;
    padding: var(--spacing-xs) var(--spacing-sm);
    gap: 4px;
    height: 36px;
  }
  
  .testimonial-modal__audio-btn {
    width: 24px;
    height: 24px;
  }
  
  .testimonial-modal__audio-btn svg {
    width: 12px;
    height: 12px;
  }
  
  .testimonial-modal__mini-waveform {
    height: 20px;
  }
  
  .testimonial-modal__mini-time {
    font-size: 0.7rem;
    min-width: 25px;
  }
}

@media (max-width: 480px) {
  .testimonial-modal__header-audio {
    margin-right: var(--spacing-xs);
  }
  
  .testimonial-modal__audio-compact {
    min-width: 130px;
    padding: 6px var(--spacing-sm);
    gap: 4px;
    height: 32px;
  }
  
  .testimonial-modal__audio-btn {
    width: 20px;
    height: 20px;
  }
  
  .testimonial-modal__audio-btn svg {
    width: 10px;
    height: 10px;
  }
  
  .testimonial-modal__mini-waveform {
    height: 16px;
    gap: 1px;
  }
  
  .testimonial-modal__mini-wave-bar {
    width: 2px;
  }
  
  .testimonial-modal__mini-time {
    font-size: 0.65rem;
    min-width: 20px;
  }
}

.testimonial-modal__body {
  padding: var(--spacing-xl);
  /* FIXED: Make body scrollable while keeping header fixed */
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  /* Smooth scrolling on iOS */
  -webkit-overflow-scrolling: touch;
}

.testimonial-modal__quote {
  margin: 0;
}

.testimonial-modal__text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-800);
  margin: 0;
  font-style: italic;
}

.testimonial-modal__text::before {
  content: "\201C";
  font-size: 2rem;
  color: var(--primary);
  font-weight: bold;
  line-height: 1;
  margin-right: 0.25rem;
  vertical-align: top;
}

.testimonial-modal__text::after {
  content: "\201D";
  font-size: 2rem;
  color: var(--primary);
  font-weight: bold;
  line-height: 1;
  margin-left: 0.25rem;
  vertical-align: bottom;
}

/* Clickable card styling */
.testimonials-wall__card--clickable {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonials-wall__card--clickable:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .testimonial-modal__content {
    width: 95%;
    max-height: 90vh;
    margin: var(--spacing-sm);
    border-radius: var(--radius-lg);
  }
  
  .testimonial-modal__header {
    padding: var(--spacing-md);
  }
  
  .testimonial-modal__author {
    gap: var(--spacing-sm);
  }
  
  .testimonial-modal__name {
    font-size: 1rem;
  }
  
  .testimonial-modal__role {
    font-size: 0.8125rem;
  }
  
  .testimonial-modal__close {
    width: 36px;
    height: 36px;
  }
  
  .testimonial-modal__body {
    padding: var(--spacing-lg);
  }
  
  .testimonial-modal__text {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .testimonial-modal__content {
    width: 100%;
    height: 100vh;
    height: 100svh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    /* FIXED: Maintain flex layout for proper header/body separation */
    display: flex;
    flex-direction: column;
  }
  
  .testimonial-modal__header {
    padding: var(--spacing-md) var(--spacing-sm);
    /* FIXED: Ensure header stays at top */
    flex-shrink: 0;
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--spacing-md));
  }
  
  .testimonial-modal__body {
    padding: var(--spacing-md) var(--spacing-sm);
    /* FIXED: Allow body to fill remaining space and scroll */
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    /* Account for safe area at bottom */
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--spacing-md));
  }
  
  .testimonial-modal__text {
    font-size: 0.9375rem;
  }
}

/* Modal Audio Player Styles */
.testimonial-modal__audio-player {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.testimonial-modal__audio-header {
  margin-bottom: var(--spacing-lg);
}

.testimonial-modal__audio-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxs);
}

.testimonial-modal__audio-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.testimonial-modal__audio-subtitle {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.testimonial-modal__waveform-container {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--gray-200);
}

.testimonial-modal__waveform {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  height: 60px;
  margin-bottom: var(--spacing-md);
}

.testimonial-modal__waveform-bar {
  width: 4px;
  background: var(--gray-300);
  border-radius: 2px;
  min-height: 8px;
  transition: all var(--transition-fast);
  animation: modalWaveformPulse 1.5s ease-in-out infinite;
  opacity: 0.6;
}

.testimonial-modal__waveform.playing .testimonial-modal__waveform-bar {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  opacity: 1;
  animation-play-state: running;
}

.testimonial-modal__waveform:not(.playing) .testimonial-modal__waveform-bar {
  animation-play-state: paused;
}

@keyframes modalWaveformPulse {
  0%, 100% { height: 8px; }
  50% { height: 45px; }
}

.testimonial-modal__waveform-bar:nth-child(2n) {
  animation-delay: 0.1s;
}

.testimonial-modal__waveform-bar:nth-child(3n) {
  animation-delay: 0.2s;
}

.testimonial-modal__waveform-bar:nth-child(4n) {
  animation-delay: 0.3s;
}

.testimonial-modal__progress-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.testimonial-modal__progress-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-300);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.testimonial-modal__progress-fill {
  height: 100%;
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
  width: 0%;
  transition: width var(--transition-fast);
}

.testimonial-modal__time-display {
  display: flex;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--gray-600);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
}

.testimonial-modal__audio-controls {
  display: flex;
  justify-content: center;
}

.testimonial-modal__control-btn {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.testimonial-modal__control-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.testimonial-modal__control-btn:active {
  transform: translateY(0);
}

.testimonial-modal__control-btn .testimonial-modal__play-icon {
  display: block;
}

.testimonial-modal__control-btn .testimonial-modal__pause-icon {
  display: none;
}

.testimonial-modal__control-btn.playing .testimonial-modal__play-icon {
  display: none;
}

.testimonial-modal__control-btn.playing .testimonial-modal__pause-icon {
  display: block;
}

/* Mobile adjustments for modal audio player */
@media (max-width: 768px) {
  .testimonial-modal__audio-player {
    padding: var(--spacing-lg);
  }
  
  .testimonial-modal__waveform-container {
    padding: var(--spacing-md);
  }
  
  .testimonial-modal__waveform {
    height: 50px;
  }
  
  .testimonial-modal__control-btn {
    width: 44px;
    height: 44px;
  }
}

/* Sponsors */
/* ===== SPONSORS SECTION - FORTUNE 500 QUALITY ===== */
.sponsors {
  background: linear-gradient(
    135deg,
    var(--gray-50) 0%,
    var(--white) 25%,
    var(--accent) 50%,
    var(--white) 75%,
    var(--gray-50) 100%
  );
  position: relative;
  isolation: isolate;
  padding: var(--spacing-xxl) 0;
}

.sponsors::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  z-index: 1;
}

.sponsors__container {
  position: relative;
  z-index: 2;
}

/* Section Header - EXACT Match with Gallery & Testimonials */
.sponsors__header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.sponsors__header-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-translucent));
  border: 1px solid var(--primary-soft);
  border-radius: 50px;
  margin-bottom: var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.sponsors__header-badge--desktop {
  display: inline-block;
}

.sponsors__header-badge--mobile {
  display: none;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
  color: inherit;
}

.sponsors__header-badge-icon {
  color: var(--primary);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.sponsors__subtitle--desktop {
  display: block;
}

.sponsors__subtitle--mobile {
  display: none;
}



.sponsors__header-badge-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.025em;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  line-height: 1;
}





.sponsors__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* Desktop/Mobile Title Visibility */
.sponsors__title--desktop {
  display: block;
}

.sponsors__title--mobile {
  display: none;
}

.sponsors__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.sponsors__email-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.sponsors__email-link:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}

/* Sponsors Content - Compact Design */
.sponsors__content {
  margin-bottom: var(--spacing-xl);
}

.sponsors__category {
  margin-bottom: var(--spacing-xl);
}

/* Visual Hierarchy Based on Partnership Value */
.sponsors__category--gold {
  order: 1;
}

.sponsors__category--silver {
  order: 2;
}

.sponsors__category--bronze {
  order: 3;
}

.sponsors__category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--gray-200);
  position: relative;
}

.sponsors__category-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  border-radius: 2px;
}

/* Gold Partners (5000 CHF) - Premium Styling with Corporate Colors */
.sponsors__category--gold .sponsors__category-header::after {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  width: 80px;
  box-shadow: 0 2px 8px rgba(233, 37, 31, 0.3);
}

.sponsors__category--gold .sponsors__category-title {
  color: var(--gray-900);
  font-weight: 700;
}

/* Silver Partners (2500 CHF) - Mid-tier Styling with Corporate Colors */
.sponsors__category--silver .sponsors__category-header::after {
  background: linear-gradient(90deg, var(--gray-600), var(--gray-700));
  width: 70px;
}

.sponsors__category--silver .sponsors__category-title {
  color: var(--gray-700);
  font-weight: 650;
}

/* Bronze Partners (1000 CHF) - Standard Styling with Corporate Colors */
.sponsors__category--bronze .sponsors__category-header::after {
  background: linear-gradient(90deg, var(--gray-500), var(--gray-600));
  width: 60px;
}

.sponsors__category--bronze .sponsors__category-title {
  color: var(--gray-600);
  font-weight: 600;
}

.sponsors__category-title {
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  margin: 0;
  transition: all var(--transition-medium);
}

.sponsors__category-badge {
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-medium);
}

.sponsors__category-badge--gold {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-ultralight));
  border-color: rgba(233, 37, 31, 0.3);
}

.sponsors__category-badge--silver {
  background: linear-gradient(135deg, rgba(122, 122, 122, 0.1), rgba(122, 122, 122, 0.05));
  border-color: rgba(122, 122, 122, 0.3);
}

.sponsors__category-badge--bronze {
  background: linear-gradient(135deg, rgba(158, 158, 158, 0.1), rgba(158, 158, 158, 0.05));
  border-color: rgba(158, 158, 158, 0.3);
}

.sponsors__category-badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Premium Grid Layouts with Visual Hierarchy */
.sponsors__grid {
  display: grid;
  align-items: center;
  justify-items: center;
}

.sponsors__grid--gold {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  width: 100%;
}

.sponsors__grid--silver {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.sponsors__grid--bronze {
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-md);
}

/* Sponsor Items with Tier-Based Styling */
.sponsors__item {
  width: 100%;
  transition: transform var(--transition-medium);
}

.sponsors__item:hover {
  transform: translateY(-2px);
}

.sponsors__item-container {
  background: #ffffff !important; /* Force pure white background */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Gold Partners - Premium Treatment */
.sponsors__item--gold .sponsors__item-container {
  padding: var(--spacing-xl);
  min-height: 180px;
  border: 2px solid rgba(233, 37, 31, 0.15);
  box-shadow: 
    var(--shadow-md),
    0 0 20px rgba(233, 37, 31, 0.08);
}

.sponsors__item--gold:hover .sponsors__item-container {
  border-color: rgba(233, 37, 31, 0.3);
  box-shadow: 
    var(--shadow-elevated),
    0 0 30px rgba(233, 37, 31, 0.15);
  transform: translateY(-4px);
}

/* Silver Partners - Mid-tier Treatment */
.sponsors__item--silver .sponsors__item-container {
  padding: var(--spacing-lg);
  min-height: 150px;
  border: 1px solid rgba(122, 122, 122, 0.2);
}

.sponsors__item--silver:hover .sponsors__item-container {
  border-color: rgba(122, 122, 122, 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Bronze Partners - Standard Treatment */
.sponsors__item--bronze .sponsors__item-container {
  padding: var(--spacing-md);
  min-height: 120px;
}

.sponsors__item--bronze:hover .sponsors__item-container {
  border-color: rgba(158, 158, 158, 0.3);
  box-shadow: var(--shadow-md);
}

/* Logo Styling with Tier-Based Sizing - FIXED FOR GREY BACKGROUNDS */
.sponsors__logo-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium);
  z-index: 2;
  background: #ffffff !important; /* Ensure wrapper has pure white background */
  padding: var(--spacing-xs); /* Add slight padding for logo breathing room */
  border-radius: var(--radius-md); /* Subtle rounding to contain any logo backgrounds */
}

.sponsors__item--gold .sponsors__logo-wrapper {
  max-width: 320px;
  min-height: 140px; /* Ensure consistent height for logo space */
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsors__item--silver .sponsors__logo-wrapper {
  max-width: 180px;
  min-height: 80px; /* Ensure consistent height for logo space */
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsors__item--bronze .sponsors__logo-wrapper {
  max-width: 140px;
  min-height: 65px; /* Ensure consistent height for logo space */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FIXED: Remove problematic filters and blend modes that cause grey appearance */
.sponsors__logo {
  /* Smart scaling: use both width and height constraints to maximize logo size */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  /* REMOVED: filter: grayscale(15%) brightness(0.96); - This was causing grey appearance */
  /* REMOVED: mix-blend-mode: multiply; - This was making embedded backgrounds worse */
  transition: all var(--transition-medium);
  background: transparent !important; /* Ensure logo itself has no background */
  /* Add subtle enhancement without greying */
  filter: contrast(1.05) saturate(1.1);
  /* Ensure logos scale to fill available space intelligently */
  min-width: 0;
  min-height: 0;
}

.sponsors__item--gold .sponsors__logo {
  max-height: 140px; /* Increased from 130px */
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.sponsors__item--silver .sponsors__logo {
  max-height: 80px; /* Increased from 70px */
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.sponsors__item--bronze .sponsors__logo {
  max-height: 65px; /* Increased from 55px */
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Enhanced hover state without problematic filters */
.sponsors__item:hover .sponsors__logo {
  /* REMOVED: filter: grayscale(0%) brightness(1); - This was problematic */
  filter: contrast(1.1) saturate(1.2) brightness(1.02); /* Clean enhancement */
  transform: scale(1.03);
}

/* DEBUG: Add temporary diagnostic border to identify background issues */
/* Remove this after confirming the fix works */
.sponsors__logo-wrapper {
  /* Uncomment the line below to see container boundaries during debugging */
  /* border: 2px solid red !important; */
}

.sponsors__logo {
  /* Uncomment the line below to see actual logo boundaries during debugging */
  /* border: 1px solid blue !important; */
}

/* This rule was moved above and enhanced */

/* ADDITIONAL FIX: Handle logos with embedded backgrounds */
/* This targets logos that might have embedded grey or white backgrounds */
.sponsors__logo[src*=".jpg"],
.sponsors__logo[src*=".jpeg"] {
  /* JPG files can't be transparent, so ensure clean display */
  background: #ffffff !important;
  border-radius: var(--radius-sm);
  padding: 2px;
}

/* Special handling for logos that might have embedded grey backgrounds */
.sponsors__logo[src*="002668_Logo"] {
  /* These appear to be processed logos that might have grey backgrounds */
  background: #ffffff !important;
  filter: contrast(1.1) saturate(1.2) brightness(1.05) !important;
  border-radius: var(--radius-sm);
  padding: 4px;
}

/* Ensure all sponsor containers have maximum white background enforcement */
.sponsors__item-container,
.sponsors__logo-wrapper,
.sponsors__logo {
  box-sizing: border-box !important;
}

/* Force white background on the entire sponsor item hierarchy */
.sponsors__item {
  background: #ffffff !important;
}

.sponsors__item * {
  box-sizing: border-box;
}

/* Simple Red Hover Overlay with Link Icon */
.sponsors__hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(233, 37, 31, 0.95);
  border-radius: var(--radius-lg);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(100%);
}

.sponsors__item:hover .sponsors__hover-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sponsors__hover-content {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsors__visit-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 200ms ease;
  color: white;
  text-decoration: none;
}

.sponsors__visit-action:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.sponsors__external-link-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}



.sponsors__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.sponsors__static-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Improved Partnership CTA - Light Theme */
.sponsors__partnership-cta {
  background: linear-gradient(
    135deg,
    var(--white) 0%,
    var(--gray-50) 50%,
    var(--accent) 100%
  );
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-200);
  box-shadow: 
    var(--shadow-lg),
    0 0 40px rgba(233, 37, 31, 0.08);
  margin-top: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.sponsors__partnership-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(233, 37, 31, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(233, 37, 31, 0.02) 0%, transparent 50%);
  z-index: 1;
}

.sponsors__partnership-content {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
}

.sponsors__partnership-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex: 1;
}

.sponsors__partnership-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary-color), #c91e18);
  border-radius: 50%;
  box-shadow: 
    var(--shadow-lg),
    0 0 25px rgba(233, 37, 31, 0.3);
  color: var(--white);
  flex-shrink: 0;
  transition: all var(--transition-medium);
}

.sponsors__partnership-cta:hover .sponsors__partnership-icon {
  transform: scale(1.05);
  box-shadow: 
    var(--shadow-elevated),
    0 0 35px rgba(233, 37, 31, 0.4);
}

.sponsors__partnership-text {
  flex: 1;
}

.sponsors__partnership-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.sponsors__partnership-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

.sponsors__partnership-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-shrink: 0;
}

.sponsors__partnership-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary-color), #c91e18);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.sponsors__partnership-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.sponsors__partnership-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  background: linear-gradient(135deg, #c91e18, var(--primary-color));
}

.sponsors__partnership-btn:hover::before {
  left: 100%;
}

.sponsors__partnership-btn-icon {
  transition: transform var(--transition-medium);
}

.sponsors__partnership-btn:hover .sponsors__partnership-btn-icon {
  transform: scale(1.15) rotate(5deg);
}

/* Mobile Responsiveness */
/* Removed 1200px breakpoint to maintain 5 columns on desktop */

@media (max-width: 992px) {
  .sponsors__grid--silver {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .sponsors__grid--bronze {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sponsors {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(
      135deg,
      var(--gray-50) 0%,
      var(--white) 20%,
      var(--accent) 40%,
      var(--white) 60%,
      var(--gray-50) 100%
    );
  }
  
  .sponsors__header {
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-md);
  }
  
  .sponsors__title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
  }
  
  .sponsors__subtitle {
    font-size: clamp(1rem, 3vw, 1.125rem);
    line-height: 1.7;
  }

  /* Hide new header stats badge on mobile to avoid conflict with existing mobile badge */
  .sponsors__stats--header {
    display: none;
  }

  /* Switch to mobile badge and subtitle */
  .sponsors__header-badge--desktop {
    display: none;
  }

  .sponsors__header-badge--mobile {
    display: inline-flex;
  }

  .sponsors__subtitle--desktop {
    display: none;
  }

  .sponsors__subtitle--mobile {
    display: block;
  }

  /* Switch to mobile title */
  .sponsors__title--desktop {
    display: none;
  }

  .sponsors__title--mobile {
    display: block;
  }
  
  .sponsors__category {
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-md);
  }
  
  .sponsors__category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
  }
  
  .sponsors__category-badge {
    display: none;
  }
  
  .sponsors__category-title {
    font-size: clamp(1.1rem, 3.5vw, 1.25rem);
  }
  
  /* Gold Partners - Single column for maximum impact */
  .sponsors__grid--gold {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* Silver Partners - 2 columns for balanced layout */
  .sponsors__grid--silver {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* Bronze Partners - 2 columns with tighter spacing */
  .sponsors__grid--bronze {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  /* Adjust gold sponsor sizing for mobile */
  .sponsors__item--gold .sponsors__item-container {
    padding: var(--spacing-lg);
    min-height: 180px;
  }
  
  .sponsors__item--gold .sponsors__logo-wrapper {
    max-width: 300px;
  }
  
  .sponsors__item--gold .sponsors__logo {
    max-height: 140px;
  }
  
  /* Adjust silver sponsor sizing for mobile */
  .sponsors__item--silver .sponsors__item-container {
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 130px;
  }
  
  .sponsors__item--silver .sponsors__logo-wrapper {
    max-width: 160px;
  }
  
  .sponsors__item--silver .sponsors__logo {
    max-height: 60px;
  }
  
  /* Adjust bronze sponsor sizing for mobile */
  .sponsors__item--bronze .sponsors__item-container {
    padding: var(--spacing-md);
    min-height: 100px;
  }
  
  .sponsors__item--bronze .sponsors__logo-wrapper {
    max-width: 120px;
  }
  
  .sponsors__item--bronze .sponsors__logo {
    max-height: 45px;
  }
  
  .sponsors__partnership-content {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
  }
  
  .sponsors__partnership-header {
    flex-direction: column;
    text-align: center;
  }
  
  .sponsors__partnership-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .sponsors__partnership-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .sponsors {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(
      135deg,
      var(--gray-50) 0%,
      var(--white) 15%,
      var(--accent) 35%,
      var(--white) 65%,
      var(--gray-50) 100%
    );
  }
  
  .sponsors__header {
    padding: 0 var(--spacing-sm);
    margin-bottom: var(--spacing-md);
  }
  
  .sponsors__title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
  }
  
  .sponsors__subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
  }
  
  .sponsors__category {
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-sm);
  }
  
  .sponsors__category-header {
    margin-bottom: var(--spacing-md);
  }
  
  .sponsors__category-title {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
  
  /* Gold Partners - Single column, maximum visual impact */
  .sponsors__grid--gold {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 320px;
    margin: 0 auto;
  }
  
  .sponsors__item--gold .sponsors__item-container {
    padding: var(--spacing-md) var(--spacing-lg);
    min-height: 160px;
  }
  
  .sponsors__item--gold .sponsors__logo-wrapper {
    max-width: 260px;
  }
  
  .sponsors__item--gold .sponsors__logo {
    max-height: 120px;
  }
  
  /* Silver Partners - Single column for better readability */
  .sponsors__grid--silver {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 280px;
    margin: 0 auto;
  }
  
  .sponsors__item--silver .sponsors__item-container {
    padding: var(--spacing-md);
    min-height: 110px;
  }
  
  .sponsors__item--silver .sponsors__logo-wrapper {
    max-width: 180px;
  }
  
  .sponsors__item--silver .sponsors__logo {
    max-height: 55px;
  }
  
  /* Bronze Partners - 2 columns with compact spacing */
  .sponsors__grid--bronze {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
  
  .sponsors__item--bronze .sponsors__item-container {
    padding: var(--spacing-sm);
    min-height: 85px;
  }
  
  .sponsors__item--bronze .sponsors__logo-wrapper {
    max-width: 100px;
  }
  
  .sponsors__item--bronze .sponsors__logo {
    max-height: 35px;
  }
  
  .sponsors__partnership-content {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .sponsors__partnership-icon {
    width: 56px;
    height: 56px;
  }
}

/* ===================================
   ARCHIVE FOOTER - Fortune 500 Grade
   =================================== */

.archive-footer {
  background: linear-gradient(
    135deg,
    var(--gray-50) 0%,
    var(--white) 25%,
    var(--gray-100) 100%
  );
  color: var(--gray-800);
  position: relative;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--gray-200);
}

.archive-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  z-index: 1;
}

.archive-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(233, 37, 31, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(233, 37, 31, 0.02) 0%, transparent 50%);
  z-index: 1;
}

.archive-footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Main Archive Content */
/* Removed - moved to layout modifications section above */

/* Archive footer layout modifications for button alignment */
.archive-footer__main {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  max-width: 1200px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: var(--spacing-lg);
}

.archive-footer__content {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex: 1;
  min-width: 0;
}

.archive-footer__action {
  flex-shrink: 0;
  margin-left: 0;
}

.archive-footer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 
    var(--shadow-lg),
    0 0 25px rgba(233, 37, 31, 0.3);
  position: relative;
  overflow: hidden;
}

.archive-footer__icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

.archive-footer__icon svg {
  position: relative;
  z-index: 1;
}

.archive-footer__text {
  flex: 1;
  min-width: 0;
  padding-right: var(--spacing-md);
}

.archive-footer__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.archive-footer__title--static {
  transform: none !important;
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  will-change: auto !important;
}

.archive-footer__description {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
  max-width: none;
}

/* Removed - moved to layout modifications section above */

.archive-footer__button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-medium);
  box-shadow: 
    var(--shadow-md),
    0 0 20px rgba(233, 37, 31, 0.2);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--primary-soft);
  white-space: nowrap;
}

.archive-footer__button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.archive-footer__button:hover {
  transform: translateY(-2px);
  box-shadow: 
    var(--shadow-elevated),
    0 0 30px rgba(233, 37, 31, 0.4);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.archive-footer__button:hover::before {
  left: 100%;
}

.archive-footer__button:focus-visible {
  outline: none;
  box-shadow: 
    var(--shadow-focus),
    var(--shadow-elevated),
    0 0 30px rgba(233, 37, 31, 0.4);
}

.archive-footer__button-text {
  position: relative;
  z-index: 2;
}

.archive-footer__button-icon {
  position: relative;
  z-index: 2;
  transition: transform var(--transition-medium);
}

.archive-footer__button:hover .archive-footer__button-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Footer Credits - Clean Professional Design */
.archive-footer__credits {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-xs);
}

.archive-footer__copyright-text {
  font-size: 0.875rem;
  color: var(--gray-400);
  font-weight: 500;
  margin: 0;
}

.archive-footer__tech-partner {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--gray-400);
}

.archive-footer__tech-label {
  font-weight: 500;
}

.archive-footer__tech-link {
  color: var(--gray-500);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.archive-footer__tech-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.archive-footer__tech-link:hover {
  color: var(--primary);
}

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

.archive-footer__tech-icon {
  width: 12px;
  height: 12px;
  color: var(--primary);
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.archive-footer__tech-link:hover .archive-footer__tech-icon {
  opacity: 1;
  transform: scale(1.1) rotate(5deg);
}

.archive-footer__tech-link:focus-visible {
  outline: none;
  color: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .archive-footer {
    padding: 0 0 var(--spacing-md);
    margin-top: 0;
  }

  .archive-footer__container {
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
  }

  .archive-footer__main {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
    align-items: center;
  }

  .archive-footer__content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
    align-items: center;
  }

  .archive-footer__action {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .archive-footer__icon {
    width: 60px;
    height: 60px;
    box-shadow: 
      var(--shadow-md),
      0 0 20px rgba(233, 37, 31, 0.25);
  }

  .archive-footer__text {
    max-width: 100%;
    padding-right: 0;
  }

  .archive-footer__title {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
  }

  .archive-footer__description {
    font-size: 1rem;
    text-align: center;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
  }

  .archive-footer__button {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 0.95rem;
    min-width: 280px;
    box-shadow: 
      var(--shadow-md),
      0 0 20px rgba(233, 37, 31, 0.2);
  }

  .archive-footer__credits {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
    padding-top: var(--spacing-sm);
  }

  .archive-footer__tech-partner {
    order: -1;
  }
}

@media (max-width: 480px) {
  .archive-footer {
    padding: var(--spacing-md) 0 var(--spacing-sm);
  }

  .archive-footer__container {
    padding: 0 var(--spacing-sm);
    gap: var(--spacing-md);
  }

  .archive-footer__content {
    gap: var(--spacing-md);
  }

  .archive-footer__icon {
    width: 52px;
    height: 52px;
    box-shadow: 
      var(--shadow-sm),
      0 0 15px rgba(233, 37, 31, 0.2);
  }

  .archive-footer__text {
    width: 100%;
    padding-right: 0;
  }

  .archive-footer__title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
  }

  .archive-footer__description {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .archive-footer__button {
    width: 100%;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.9rem;
    min-width: auto;
    margin-left: 0;
    text-align: center;
  }

  .archive-footer__main {
    padding-bottom: var(--spacing-sm);
  }

  .archive-footer__credits {
    gap: var(--spacing-sm);
    padding-top: 0;
  }

  .archive-footer__tech-link {
    font-size: 0.85rem;
  }
}

/* Premium Animations */
@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}



/* Post-Event Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-wrapper {
    /* Use modern viewport units for native scrolling */
    min-height: 100svh;
    /* Honor safe area insets */
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  
  .hero-container {
    padding: var(--spacing-lg) var(--spacing-lg);
    /* Use modern viewport units for native scrolling */
    min-height: 100svh;
    /* Let body scroll naturally */
    overflow: visible;
  }
  
  .hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(var(--spacing-sm), 2vh, var(--spacing-md));
  }
  
  .hero-logo {
    margin-bottom: var(--spacing-lg);
    flex-shrink: 0;
  }
  
  .hero-logo__image {
    max-width: 200px; /* Reduced from 220px for better mobile fit */
    max-height: 25vh; /* Ensure logo doesn't take too much vertical space */
    width: auto;
    height: auto;
  }
  
  .hero-main-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    max-width: 90%;
    line-height: 1.5;
  }
  
  .hero-action-btn {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 1rem;
    gap: var(--spacing-sm);
    min-width: 220px;
    border-radius: var(--radius-xl);
    font-weight: 600;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: clamp(var(--spacing-md), 3vh, var(--spacing-lg));
  }

  
  /* Typography responsive */
  h1 {
    font-size: 2rem;
  }
  
  /* Gallery Mobile Styles */
  .gallery {
    padding: var(--spacing-lg) 0;
  }
  
  .gallery__container {
    max-width: var(--container-width);
    padding: var(--spacing-xl) var(--spacing-md) 0;
  }

  .gallery__header {
    margin-bottom: var(--spacing-lg);
    padding: 0;
  }
  
  .gallery__title {
    font-size: 1.38rem;
    margin-bottom: var(--spacing-md);
  }
  
  .gallery__subtitle {
    font-size: 1rem;
  }
  
  /* === NEW Mobile Gallery Navigation: Segmented Control === */

  /* The main navigation container. No scrolling needed. */
  .gallery__navigation {
    margin-bottom: var(--spacing-xl);
  }

  /* The tabs container now takes up the full width. */
  .gallery__tabs {
    display: flex;
    width: 100%; /* This is key: force it to fit the screen */
    padding: var(--spacing-xs);
    border-radius: var(--radius-lg);
    gap: var(--spacing-xs);
    max-width: none;
  }

  /* Each tab will grow to fill the available space equally. */
  .gallery__tab {
    flex: 1; /* This is key: make all tabs equal width */
    padding: var(--spacing-sm) var(--spacing-xs); /* Adjust padding for smaller screens */
    min-width: 0; /* Allow tabs to shrink */
    text-align: center; /* Center the text content */
    white-space: normal; /* Allow text to wrap if needed */
  }

  /* Center the text block within the tab button. */
  .gallery__tab-content {
    align-items: center;
  }

  /* Ensure the sliding indicator is visible and works with our JS. */
  .gallery__tabs::after {
    /* This rule might have been deleted, ensure it exists. */
    /* The JS you added earlier will control its width and position. */
    content: "";
    position: absolute;
    top: var(--spacing-xs);
    bottom: var(--spacing-xs);
    left: 0;
    transform: translateX(var(--indicator-left, 0px));
    width: var(--indicator-width, 0px);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    box-shadow: 
      var(--shadow-md),
      0 0 20px rgba(233, 37, 31, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), width 400ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
  }
  
  .gallery__tab-content {
    gap: 1px;
  }
  
  .gallery__tab-name {
    font-size: 0.9rem;
  }
  
  .gallery__tab-subtitle {
    font-size: 0.75rem;
    white-space: normal; /* Allow wrapping on mobile */
  }
  
  /* Mobile-specific text override for Tag 2 - handled by JavaScript */
  .gallery__tab[data-day="2"] .gallery__tab-subtitle.mobile-override {
    font-size: 0.75rem;
    white-space: normal;
  }
  
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  .gallery__item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
  }
  
  .gallery__item-overlay {
    padding: var(--spacing-sm);
    /* Hide overlay on mobile for direct-tap functionality */
    display: none !important;
  }
  
  .gallery__item-expand {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
    /* Hide expand button on mobile for direct-tap functionality */
    display: none !important;
  }
  
  .gallery__day-header {
    display: none;
  }
  
  .gallery__day-title {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    flex-shrink: 1;
    flex-grow: 1;
    min-width: 0;
  }
  
  .gallery__day-title-separator,
  .gallery__day-title-extra {
    display: none;
  }
  
  .gallery__day-counter {
    display: none;
  }
  
  .gallery__day-counter-text {
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  }
  
  .gallery__show-more-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.95rem;
    margin-top: var(--spacing-lg);
  }
  
  /* Mobile Video Play Button Optimization */
  .gallery__item--video .gallery__video-play-btn {
    width: 50px;
    height: 50px;
  }
  
  .gallery__item--video .gallery__video-play-btn svg {
    width: 24px;
    height: 24px;
  }
  

  
  /* Mobile gallery stats - scaled down desktop version */
  .gallery__stats--header {
    padding: 3px 10px;
    margin-bottom: var(--spacing-md);
  }

  .gallery__stats--header .gallery__stats-container {
    gap: 6px;
  }

  .gallery__stats--header .gallery__stat-icon svg {
    width: 10px;
    height: 10px;
  }

  .gallery__stats--header .gallery__stat-number,
  .gallery__stats--header .gallery__stat-label {
    font-size: 0.625rem;
  }
  

}

@media (max-width: 480px) {
  .hero-wrapper {
    /* Use modern viewport units for native scrolling */
    min-height: 100svh;
    /* Honor safe area insets */
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  
  .hero-container {
    padding: var(--spacing-md) var(--spacing-md);
    /* Use modern viewport units for native scrolling */
    min-height: 100svh;
    /* Let body scroll naturally */
    overflow: visible;
  }
  
  .hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(var(--spacing-xxs), 1.5vh, var(--spacing-sm));
  }
  
  .hero-logo {
    margin-bottom: var(--spacing-md);
    flex-shrink: 0;
  }
  
  .hero-logo__image {
    max-width: 180px; /* Further reduced for small screens */
    max-height: 22vh; /* Ensure logo doesn't take too much vertical space */
    width: auto;
    height: auto;
  }
  
  .hero-main-title {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-subtitle {
    font-size: clamp(14px, 3.5vw, 18px);
    max-width: 95%;
    line-height: 1.5;
  }
  
  .hero-action-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.95rem;
    gap: var(--spacing-sm);
    min-width: 200px;
    border-radius: var(--radius-xl);
    font-weight: 600;
  }
  
  /* Gallery Mobile Optimization for Small Screens */
  .gallery {
    padding: var(--spacing-lg) 0;
  }
  
  .gallery__title {
    font-size: 1.38rem;
    margin-bottom: var(--spacing-md);
  }
  
  .gallery__subtitle {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
  }
  
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  .gallery__item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
  }
  
  .gallery__day-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
  }
  
  .gallery__day-title {
    font-size: 1.1rem;
  }
  
  .gallery__day-title-separator,
  .gallery__day-title-extra {
    display: none;
  }
  
  .gallery__day-subtitle {
    font-size: 0.85rem;
  }
  
  .gallery__show-more-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.9rem;
    max-width: 300px;
    width: auto;
    min-width: 200px;
    margin-top: var(--spacing-md);
  }
  
  /* Ultra-mobile lightbox */
  .lightbox__content {
    max-width: 98vw;
    max-height: 80vh;
    margin: var(--spacing-xs);
  }
  
  .lightbox__close {
    width: 36px;
    height: 36px;
    font-size: 16px;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
  }
  
  /* Further scale down gallery stats for small mobile */
  .gallery__stats--header {
    padding: 2px 8px;
  }

  .gallery__stats--header .gallery__stats-container {
    gap: 4px;
  }

  .gallery__stats--header .gallery__stat-icon svg {
    width: 8px;
    height: 8px;
  }

  .gallery__stats--header .gallery__stat-number,
  .gallery__stats--header .gallery__stat-label {
    font-size: 0.5625rem;
  }

}

/* CRITICAL iOS Chrome Bottom Bar Fix - Force Document Scrolling */
html {
  scroll-behavior: smooth;
  /* CRITICAL: Must allow natural document scroll - NO overflow control */
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto; /* Auto, not scroll - let browser decide */
  /* Essential for touch devices */
  touch-action: manipulation;
}

body {
  /* CRITICAL: Force body content to always exceed viewport height */
  min-height: calc(100vh + 100px); /* Much taller than viewport to guarantee scroll */
  min-height: calc(100svh + 100px); /* Modern browsers with substantial buffer */
  overflow-x: hidden;
  overflow-y: visible;
  /* Remove safe-area padding from body - apply to specific elements instead */
  margin: 0;
  padding: 0;
  /* Essential iOS smooth scrolling */
  -webkit-overflow-scrolling: touch;
}

/* CRITICAL: Force document scroll for iOS Chrome bottom bar persistence */
.hero-wrapper + section {
  margin-top: 0;
  padding-top: var(--spacing-xxl);
  /* Ensure there's always scrollable content below the fold */
  min-height: 50vh;
}

/* Mobile adjustments to remove white gaps */
@media (max-width: 768px) {
  .hero-wrapper + section {
    padding-top: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .hero-wrapper + section {
    padding-top: var(--spacing-md);
  }
}

/* Mobile Section Dividers */
@media (max-width: 768px) {
  .gallery::after,
  .testimonials-wall::after,
  .sponsors::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  
  /* Ensure perfect symmetrical spacing above and below divider lines */
  .gallery {
    padding: var(--spacing-lg) 0 !important;
  }
  
  .testimonials-wall {
    padding: var(--spacing-lg) 0 !important;
  }
  
  .sponsors {
    padding: var(--spacing-lg) 0 !important;
  }
}

/* Corner Ribbon Badge for Gallery */
.corner-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 280px;
  height: 280px;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
}

.corner-ribbon--top-left {
  top: 0;
  left: 0;
}

@keyframes ribbonFadeIn {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}

.ribbon-badge {
  position: absolute;
  top: 35px;
  left: -65px;
  width: 250px;
  height: 55px;
  background: linear-gradient(135deg, #C3162C 0%, #dc2626 50%, #C3162C 100%);
  color: white !important;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transform: rotate(-45deg);
  transform-origin: center;
  box-shadow: 
    0 6px 20px rgba(195, 22, 44, 0.4),
    0 2px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* Hover overlay for smooth fade */
.ribbon-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

/* True endless marquee with no gaps */
.ribbon-text-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ribbon-text {
  display: block;
  white-space: nowrap;
  animation: trueEndlessMarquee 20s linear infinite;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  z-index: 3;
  position: relative;
  font-family: inherit;
  color: white !important;
}

.ribbon-text::before {
  content: "BESUCHERSTIMMEN ANHÖREN • BESUCHERSTIMMEN ANHÖREN • BESUCHERSTIMMEN ANHÖREN • ";
}

.ribbon-text::after {
  content: "BESUCHERSTIMMEN ANHÖREN • BESUCHERSTIMMEN ANHÖREN • BESUCHERSTIMMEN ANHÖREN • ";
}

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

/* Subtle premium glow effect */
.ribbon-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: premiumGlow 8s ease-in-out infinite;
  z-index: 1;
}

@keyframes premiumGlow {
  0% { 
    left: -100%; 
  }
  50% { 
    left: 100%; 
  }
  100% { 
    left: 100%; 
  }
}

/* Smooth hover fade using overlay */
.ribbon-badge:hover::after,
.ribbon-badge:focus::after {
  opacity: 1;
}

.ribbon-badge:hover,
.ribbon-badge:focus,
.ribbon-badge:active {
  color: white !important;
}

.ribbon-badge:hover .ribbon-text,
.ribbon-badge:focus .ribbon-text,
.ribbon-badge:active .ribbon-text {
  color: white !important;
}

.ribbon-badge:active::after {
  background: rgba(0, 0, 0, 0.35);
  opacity: 1;
}

/* Corner fold effect with proper sizing */
.corner-ribbon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-right: 40px solid rgba(0, 0, 0, 0.12);
  border-bottom: 40px solid transparent;
  z-index: 1;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .ribbon-text {
    animation: none;
  }
  
  .ribbon-badge::before,
  .ribbon-badge::after {
    animation: none;
  }
  
  .corner-ribbon {
    animation: ribbon-entrance-static 0.5s ease-out 1s forwards;
  }
  
  @keyframes ribbon-entrance-static {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* Mobile responsive styles for ribbon */
@media (max-width: 480px) {
  .corner-ribbon {
    width: 220px;
    height: 220px;
  }
  
  .ribbon-badge {
    width: 200px;
    height: 45px;
    top: 28px;
    left: -50px;
    font-size: 12px;
    letter-spacing: 0.6px;
  }
  
  .corner-ribbon::before {
    border-right-width: 32px;
    border-bottom-width: 32px;
  }
  
  .ribbon-text {
    animation-duration: 16s;
  }
}

