/* ===== TEAM AVINYA WEBSITE - OPTIMIZED STYLES ===== */
/* Performance optimizations: GPU acceleration, reduced repaints, optimized animations */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff3c38;
  --primary-dark: #c62828;
  --background-dark: #0b0c10;
  --background-light: #1e1e1e;
  --text-light: #fff;
  --text-muted: #ccc;
  --transition-speed: 0.25s;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--background-dark);
  color: var(--text-light);
  scroll-behavior: smooth;
  overflow-x: hidden;
  line-height: 1.6;
  /* Performance optimizations */
  will-change: scroll-position;
  transform: translateZ(0);
  /* Additional performance optimizations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Global paragraph spacing */
p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.section p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

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

/* Interactive Elements Cursor */
a, button, .btn, input[type="submit"], input[type="button"],
.option-card, .card, .team-card, .media-card, .gallery img,
.timeline li, .departments .card, .event-card, .baja-rulebook-btn, .hero-buggy {
  cursor: url('../images/cursor.svg') 16 16, pointer;
}

/* Global performance optimizations for animations */
* {
  transition-timing-function: var(--transition-smooth);
}

/* Optimize animations for better performance */
@media (prefers-reduced-motion: no-preference) {
  .hero-buggy,
  .option-card,
  .team-card,
  .media-card,
  .event-card,
  .supporter-card,
  .btn,
  .social-icon-link {
    will-change: transform;
    transform: translateZ(0);
  }
}

/* Gallery Performance Optimizations */
.gallery-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-image.loaded {
  opacity: 1;
}

.gallery-image.error {
  opacity: 0.5;
  filter: grayscale(1);
}

.gallery-video {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.gallery-video.ready-to-play {
  opacity: 1;
}

.media-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.media-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery Loading Indicator */
.gallery-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 60, 56, 0.2);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Progressive Image Loading */
.media-card img {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 1.5s infinite;
}

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

/* Video Optimization */
.media-card video {
  background: #000;
  min-height: 200px;
}

.media-card video::-webkit-media-controls {
  background: rgba(0,0,0,0.7);
}

/* Responsive Gallery Loading */
@media (max-width: 768px) {
  .gallery-loading {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .loading-spinner {
    width: 30px;
    height: 30px;
  }
}

/* Precision Elements */
.form-group input,
.form-group textarea,
.form-group select,
.contact-form input,
.contact-form textarea {
  cursor: text;
}

/* Focus Management */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn:focus, .social-icon:focus, .mobile-menu-btn:focus {
  box-shadow: 0 0 0 4px rgba(255, 60, 56, 0.2);
}

/* Loading State */
.loading {
  cursor: wait;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
  height: 0px;
}

::-webkit-scrollbar-track {
  background: var(--background-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Hide horizontal scrollbars only */
* {
  scrollbar-width: thin; /* Firefox - thin scrollbar */
  -ms-overflow-style: auto; /* Internet Explorer 10+ - show scrollbar */
}

/* Show vertical scrollbars, hide horizontal ones */
*::-webkit-scrollbar:horizontal {
  display: none;
}

*::-webkit-scrollbar:vertical {
  display: block;
}

/* Hide scrollbars on mobile devices */
@media (max-width: 768px) {
  * {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
  }
  
  *::-webkit-scrollbar {
    display: none; /* WebKit browsers */
  }
}

/* Header Styles */
header {
  background: rgba(30, 31, 42, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: var(--text-light);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-speed) ease;
  border-bottom: 1px solid rgba(255, 60, 56, 0.2);
  flex-wrap: nowrap;
  gap: 2rem;
}

/* Header scroll effect */
header.scrolled {
  background: rgba(30, 31, 42, 0.8);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 60, 56, 0.3);
  padding: 0.8rem 2rem;
  backdrop-filter: blur(20px);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 400px;
}

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

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Modern Minimalist Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  position: relative;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 3px;
  border-radius: 1.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Color-coded lines matching logo colors */
.mobile-menu-btn span:nth-child(1) {
  transform: translate(-50%, -50%) translateY(-9px);
  background: #808080; /* Grey */
}

.mobile-menu-btn span:nth-child(2) {
  transform: translate(-50%, -50%);
  background: var(--primary-color); /* Red */
}

.mobile-menu-btn span:nth-child(3) {
  transform: translate(-50%, -50%) translateY(9px);
  background: #FFD700; /* Yellow */
}

/* Hover State - Intensify colors */
.mobile-menu-btn:hover span:nth-child(1) {
  background: #A0A0A0;
  box-shadow: 0 0 4px rgba(128, 128, 128, 0.6);
}

.mobile-menu-btn:hover span:nth-child(2) {
  background: #ff1a1a;
  box-shadow: 0 0 4px rgba(255, 60, 56, 0.6);
}

.mobile-menu-btn:hover span:nth-child(3) {
  background: #FFED4E;
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

/* Active State - Clean X Transformation */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
  background: #808080;
  box-shadow: 0 0 6px rgba(128, 128, 128, 0.8);
}

.mobile-menu-btn.active span:nth-child(2) {
  transform: translate(-50%, -50%) scaleX(0);
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
  background: #FFD700;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
}

/* Focus State for Accessibility */
.mobile-menu-btn:focus {
  outline: none;
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Navigation Styles */
.nav-menu {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-weight: 500;
  position: relative;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: inline-block;
  text-shadow: 0 0 10px rgba(255, 56, 56, 0.4);
  animation: navGlow 3s ease-in-out infinite alternate;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff6b6b, #ffa500);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(255, 56, 56, 0.4);
}

nav a:hover::after,
nav a[aria-current="page"]::after {
  width: 60%;
}

nav a:hover {
  color: #ff3c38;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  text-shadow: 0 0 15px rgba(255, 56, 56, 0.8);
  animation: navGlow 3s ease-in-out infinite alternate;
}

nav a[aria-current="page"] {
  color: #ff3c38;
  font-weight: 600;
  background: transparent;
  text-shadow: 0 0 20px rgba(255, 56, 56, 1);
  animation: currentPageGlow 2s ease-in-out infinite alternate;
}

/* General navigation glow animation for all nav items */
@keyframes navGlow {
  0% {
    text-shadow: 0 0 10px rgba(255, 56, 56, 0.4);
  }
  100% {
    text-shadow: 0 0 15px rgba(255, 56, 56, 0.6);
  }
}

/* Stronger glow animation for current page */
@keyframes currentPageGlow {
  0% {
    text-shadow: 0 0 20px rgba(255, 56, 56, 1);
  }
  100% {
    text-shadow: 0 0 30px rgba(255, 56, 56, 1), 0 0 40px rgba(255, 56, 56, 0.7);
  }
}

.hero {
  background: linear-gradient(to right, #1f1c2c, #928dab);
  padding: 80px 20px 20px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  /* Additional performance optimizations */
  contain: layout style paint;
  backface-visibility: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
  opacity: 0.1;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(100px); }
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 auto;
  min-width: 400px;
  max-width: 750px;
  text-align: left;
  padding-left: 3rem;
  padding-right: 1rem;
  position: relative;
  z-index: 10;
  margin-left: 2rem;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-image-buttons {
  flex: 0 0 auto;
  min-width: 300px;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: visible;
  padding: 0;
  margin-left: -4rem;
}

/* Floating dust particles around the buggy */
.hero-image-buttons::before {
  content: '' !important;
  position: absolute !important;
  top: 5% !important;
  left: -15% !important;
  width: 130% !important;
  height: 90% !important;
  background: 
    radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.4) 3px, transparent 6px),
    radial-gradient(circle at 80% 40%, rgba(160, 82, 45, 0.3) 2px, transparent 4px),
    radial-gradient(circle at 60% 80%, rgba(139, 69, 19, 0.35) 2.5px, transparent 5px),
    radial-gradient(circle at 30% 70%, rgba(160, 82, 45, 0.25) 3px, transparent 6px),
    radial-gradient(circle at 90% 20%, rgba(139, 69, 19, 0.3) 2px, transparent 4px),
    radial-gradient(circle at 15% 60%, rgba(101, 67, 33, 0.2) 1.5px, transparent 3px),
    radial-gradient(circle at 85% 75%, rgba(139, 69, 19, 0.25) 2px, transparent 4px) !important;
  animation: floatingDust 12s linear infinite !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0.8 !important;
}



/* Clean Animated Headline Styles */
.hero .animated-headline {
  font-size: 3rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.2 !important;
  color: var(--text-light) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  text-align: left !important;
  padding: 0 !important;
  padding-left: 1rem !important;
  position: relative !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.headline-line {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  display: block !important;
  transition: all 0.8s ease-out !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.headline-line.animate-in {
  opacity: 1 !important;
  transform: translateY(0px) !important;
}

.highlight-word {
  color: var(--primary-color) !important;
  font-weight: 800 !important;
  position: relative !important;
  display: inline-block !important;
  opacity: 0 !important;
  transition: opacity 0.6s ease-out !important;
}

.highlight-word.animate-in {
  opacity: 1 !important;
}

.highlight-word::after {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: var(--primary-color) !important;
  animation: underlineExpand 0.6s ease-out forwards !important;
}

.headline-line:nth-child(1) .highlight-word::after {
  animation-delay: 0.8s !important;
}

.headline-line:nth-child(2) .highlight-word::after {
  animation-delay: 1.3s !important;
}

.headline-line:nth-child(3) .highlight-word::after {
  animation-delay: 1.8s !important;
}

/* Hover Effects for Highlighted Words */
.highlight-word:hover {
  transform: scale(1.05) !important;
  transition: transform 0.3s ease !important;
  cursor: pointer !important;
}

/* Legacy fallback - disabled for new animated headline */
.hero h1:not(.animated-headline) {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s ease;
  white-space: nowrap;
  overflow: visible;
}

.hero-text .hero p,
.hero .hero-text p {
  font-size: 1.2rem !important;
  color: var(--text-muted) !important;
  max-width: 600px !important;
  margin: 0 !important;
  margin-bottom: 2.5rem !important;
  line-height: 1.8 !important;
  animation: fadeInUp 1s ease !important;
  text-align: left !important;
  padding: 0 !important;
  padding-left: 1rem !important;
  position: relative !important;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: auto;
  position: relative;
}

.section h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  overflow: visible;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.section:hover h2::after {
  width: 100%;
}

.btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 15px 25px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 60, 56, 0.4);
}

/* Enhanced Hero Buttons */
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  position: relative;
  z-index: 20;
}

/* Primary Glowing Button */
.btn-primary-glow {
  background: linear-gradient(135deg, var(--primary-color), #ff4757) !important;
  color: white !important;
  border: none !important;
  padding: 1rem 2rem !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  box-shadow: 
    0 4px 15px rgba(255, 56, 56, 0.4),
    0 0 20px rgba(255, 56, 56, 0.3) !important;
  animation: pulseGlow 2s ease-in-out infinite !important;
  z-index: 30 !important;
  cursor: pointer !important;
}

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

.btn-primary-glow:hover::before {
  left: 100% !important;
}

.btn-primary-glow:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 
    0 8px 25px rgba(255, 56, 56, 0.6),
    0 0 30px rgba(255, 56, 56, 0.5) !important;
  animation-play-state: paused !important;
}

/* Secondary Outline Button */
.btn-secondary-outline {
  background: transparent !important;
  color: var(--text-light) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  z-index: 30 !important;
  cursor: pointer !important;
}

.btn-secondary-outline::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 0% !important;
  height: 100% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transition: width 0.3s ease !important;
  z-index: -1 !important;
}

.btn-secondary-outline:hover::before {
  width: 100% !important;
}

.btn-secondary-outline:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: white !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-icon {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

.support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.option-card {
  background: var(--background-light);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(255, 60, 56, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 60, 56, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.option-card:hover::before {
  transform: translateX(100%);
}

.option-card:hover {
  transform: scale(1.05) rotateX(2deg);
  box-shadow: 0 15px 30px rgba(255, 60, 56, 0.3);
}

.option-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.option-card p {
  line-height: 1.7;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group input, 
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  background: var(--background-light);
  border: 1px solid #444;
  color: var(--text-light);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 60, 56, 0.3);
  outline: none;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-light);
}

.form-group.checkboxes label:not(:first-child) {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  cursor: pointer;
  transition: color 0.3s ease;
  font-weight: 500;
}

.form-group.checkboxes input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  background: transparent;
  display: inline-block;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.form-group.checkboxes input[type="checkbox"]:checked + .custom-checkbox {
  background: var(--background-light);
  border-color: #00e676;
}

.form-group.checkboxes input[type="checkbox"]:checked + .custom-checkbox::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 7px;
  height: 13px;
  border: solid #00e676;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  border-radius: 1px;
}

.custom-checkbox:hover {
  border-color: #00e676;
}

.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.popup-box {
  background-color: var(--background-light);
  color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  text-align: center;
  animation: popupAnim 0.3s ease;
  max-width: 400px;
  width: 90%;
}

.popup-box p {
  margin: 10px 0;
  line-height: 1.5;
}

.popup-box button {
  margin-top: 20px;
  padding: 10px 25px;
  border: none;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.popup-box button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-box button:hover::before {
  opacity: 1;
}

.popup-box button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 60, 56, 0.4);
}

@keyframes popupAnim {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

footer {
  text-align: center;
  padding: 0.5rem;
  background: var(--background-light);
  color: var(--text-light);
  margin-top: 2rem;
  position: relative;
  border-top: 1px solid rgba(255, 60, 56, 0.2);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
  text-align: center;
}

.footer-separator {
  color: var(--text-muted);
  font-weight: bold;
  font-size: 0.9rem;
}

.footer-link {
  color: #ff3c38;
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-weight: bold;
}

.footer-link:hover {
  opacity: 0.8;
}

/* Footer responsive styles */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.2rem;
  }
  
  .footer-separator {
    display: none;
  }
  
  .footer-content p {
    margin: 0.05rem 0;
  }
  
  footer p {
    font-size: 0.8rem;
  }
}

footer p {
  margin: 0.2rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.3;
}

footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color);
}

/* Remove unused footer content styles */

/* Quick Navigation Styles */
.quick-nav {
  background: linear-gradient(135deg, var(--background-light) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 60, 56, 0.1);
}

.quick-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.quick-nav h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.3rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 60, 56, 0.1) 0%, rgba(255, 60, 56, 0.05) 100%);
  border: 1px solid rgba(255, 60, 56, 0.2);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 120px;
}

.nav-link:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(255, 60, 56, 0.2) 0%, rgba(255, 60, 56, 0.1) 100%);
  border-color: rgba(255, 60, 56, 0.4);
  box-shadow: 0 8px 24px rgba(255, 60, 56, 0.2);
}

.nav-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.nav-text {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* Gallery Styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  padding: 24px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery img:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* Featured Video Styling */
.featured-video {
  border: 3px solid var(--primary-color);
  box-shadow: 0 12px 32px rgba(255, 60, 56, 0.25);
  transform: scale(1.02);
  position: relative;
  overflow: hidden;
}

.featured-video::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 60, 56, 0.1) 0%, transparent 50%, rgba(255, 60, 56, 0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

.featured-video:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(255, 60, 56, 0.35);
}

.featured-video .media-info h3 {
  color: var(--primary-color);
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 60, 56, 0.3);
}

/* Video Controls Styling - Simplified */
.media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  background: #1a1a1a;
  display: block;
  cursor: pointer;
  /* Mobile video optimization */
  -webkit-playsinline: true;
  playsinline: true;
  x5-playsinline: true;
  x5-video-player-type: h5;
  x5-video-player-fullscreen: true;
}

.media-card video::-webkit-media-controls {
  background: rgba(0, 0, 0, 0.3);
}

.media-card video::-webkit-media-controls-panel {
  background: rgba(0, 0, 0, 0.5);
}

/* Fullscreen Video Styles - Original Dimensions */
.media-card video:fullscreen {
  width: auto !important;
  height: auto !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  min-width: auto !important;
  min-height: auto !important;
  object-fit: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  /* Ensure original video dimensions in fullscreen */
  transform: none !important;
  scale: none !important;
}

.media-card video:-webkit-full-screen {
  width: auto !important;
  height: auto !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  min-width: auto !important;
  min-height: auto !important;
  object-fit: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  /* Ensure original video dimensions in fullscreen */
  transform: none !important;
  scale: none !important;
}

.media-card video:-moz-full-screen {
  width: auto !important;
  height: auto !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  min-width: auto !important;
  min-height: auto !important;
  object-fit: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  /* Ensure original video dimensions in fullscreen */
  transform: none !important;
  scale: none !important;
}

/* Hide video controls by default, show only play button */
.media-card video::-webkit-media-controls {
  display: none !important;
}

.media-card video::-webkit-media-controls-panel {
  display: none !important;
}

/* Show only play button initially */
.media-card video::-webkit-media-controls-play-button {
  display: block !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;
  margin: auto !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Show all controls when video is playing */
.media-card video.playing::-webkit-media-controls {
  display: flex !important;
  background: rgba(0, 0, 0, 0.5) !important;
}

.media-card video.playing::-webkit-media-controls-panel {
  display: flex !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border-radius: 8px !important;
  margin: 20px !important;
}

/* Hide volume controls for non-Special Moments videos */
.media-card:not(:has(video[data-special-moments="true"])) video::-webkit-media-controls-volume-slider,
.media-card:not(:has(video[data-special-moments="true"])) video::-webkit-media-controls-mute-button {
  display: none !important;
}

.media-card video.playing::-webkit-media-controls-play-button {
  display: none !important;
}

/* Firefox and other browsers - hide controls by default */
.media-card video {
  /* Hide default controls initially */
  --media-controls-display: none;
}

/* Show controls when playing class is added */
.media-card video.playing {
  --media-controls-display: flex;
}

/* Custom play button overlay for video cards only */
.media-card {
  position: relative;
}

/* Only show play button on cards that contain videos */
.media-card:has(video)::after,
.media-card.video-card::after {
  content: '▶';
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.9);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.media-card:has(video):hover::after,
.media-card.video-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.media-card:has(video).playing::after,
.media-card.video-card.playing::after {
  opacity: 0;
  pointer-events: none;
}

/* Responsive play button */
@media (max-width: 600px) {
  .media-card:has(video)::after,
  .media-card.video-card::after {
    width: 60px;
    height: 60px;
    font-size: 24px;
    top: 35%;
    border-width: 1.5px;
  }
  
  .media-card:has(video):hover::after,
  .media-card.video-card:hover::after {
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@media (max-width: 480px) {
  .media-card:has(video)::after,
  .media-card.video-card::after {
    width: 55px;
    height: 55px;
    font-size: 22px;
    top: 35%;
    border-width: 1px;
  }
  
  .media-card:has(video):hover::after,
  .media-card.video-card:hover::after {
    transform: translate(-50%, -50%) scale(1.02);
  }
}

/* Fullscreen container styles */
.media-card video:fullscreen::-webkit-media-controls {
  background: rgba(0, 0, 0, 0.5) !important;
}

.media-card video:fullscreen::-webkit-media-controls-panel {
  background: rgba(0, 0, 0, 0.6) !important;
  border-radius: 8px !important;
  margin: 20px !important;
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
  box-shadow: 0 0 10px var(--primary-color);
}

.timeline ul {
  list-style: none;
  padding: 0;
  overflow: hidden;
}

.timeline li {
  padding: 24px 32px;
  margin-bottom: 32px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  background: var(--background-light);
  border-radius: 10px;
  transition: all 0.3s ease;
  line-height: 1.7;
}

.timeline li:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(255, 60, 56, 0.3);
}

.timeline li:nth-child(odd) {
  float: left;
  clear: both;
  text-align: right;
  padding-right: 48px;
}

.timeline li:nth-child(even) {
  float: right;
  clear: both;
  text-align: left;
  padding-left: 48px;
}

/* Department Cards */
.departments .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  padding: 32px 0 0 0;
}

.departments .card {
  background: var(--background-light);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.departments .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.departments .card:hover::before {
  transform: scaleX(1);
}

.departments .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

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

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid var(--background-light);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Back to Top Button - REMOVED - See dedicated section at end of file */

/* Team Section Styles */
.team-section {
  margin-top: 40px;
}

.department-section {
  margin-bottom: 4rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 60, 56, 0.1);
}

.department-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.department-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  white-space: nowrap;
  overflow: visible;
  padding-bottom: 1rem;
}

.department-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 2px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Team Card Hover Overlay */
/* 3D Flip Animation for Team Cards */
.team-card {
  perspective: 1200px;
  position: relative;
  min-height: 220px;
  background: var(--background-light);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(255, 60, 56, 0.10);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-card-front, .team-card-back {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  transition: transform 0.7s cubic-bezier(.4,1.6,.6,1), opacity 0.4s;
  backface-visibility: hidden;
  box-sizing: border-box;
}

.team-card-front {
  z-index: 2;
  opacity: 1;
  background: transparent;
  transform: rotateY(0deg);
}

.team-card-back {
  z-index: 3;
  opacity: 1;
  background: rgba(30,30,30,0.98);
  transform: rotateY(180deg);
  pointer-events: none;
}

.team-card:hover .team-card-front {
  transform: rotateY(-180deg);
  opacity: 0;
  pointer-events: none;
}

.team-card:hover .team-card-back {
  transform: rotateY(0deg);
  opacity: 1;
  pointer-events: auto;
}

.team-card-back .team-bio {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 0 8px;
  margin: 0;
}

.team-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.team-card h3 {
  margin: 10px 0 5px 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.team-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.team-card-back .team-socials {
  flex-direction: row;
  gap: 18px;
  margin-top: 0;
}

.team-card-back .icon {
  width: 28px;
  height: 28px;
  filter: invert(1) grayscale(1) brightness(1.5);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s, transform 0.2s;
}

.team-card-back .icon:hover {
  filter: invert(41%) sepia(99%) saturate(749%) hue-rotate(338deg) brightness(1.1) contrast(1.1);
  opacity: 1;
  transform: scale(1.18);
}

/* Team card link styling */
.team-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.team-card-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-5px);
}

.creator-link-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-top: 8px;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.team-card-link:hover .creator-link-hint {
  opacity: 1;
  color: var(--primary-color);
}

/* Responsive design for department sections */
@media (max-width: 768px) {
  .department-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    white-space: nowrap;
  }
  
  .department-section {
    margin-bottom: 3rem;
    padding: 1.5rem 0;
  }
}

@media (max-width: 600px) {
  .department-title {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    white-space: nowrap;
  }
  
  .department-section {
    margin-bottom: 2.5rem;
    padding: 1rem 0;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
}

/* Contact Page Styles */
.contact-flex {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-info {
  background: var(--background-light);
  border-radius: 10px;
  padding: 30px 24px;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 260px;
  box-shadow: 0 6px 18px rgba(255, 60, 56, 0.08);
  margin-bottom: 24px;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 18px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  word-break: break-all;
}

.contact-form {
  background: var(--background-light);
  border-radius: 10px;
  padding: 30px 24px;
  flex: 2 1 340px;
  box-shadow: 0 6px 18px rgba(255, 60, 56, 0.08);
  min-width: 260px;
  max-width: 500px;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background: var(--background-light);
  border: 1px solid #444;
  color: var(--text-light);
  border-radius: 5px;
  margin-top: 4px;
  margin-bottom: 2px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.contact-form input[type="file"] {
  padding: 12px;
  background: var(--background-light);
  border: 2px solid rgba(255, 60, 56, 0.3);
  color: var(--text-light);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 0.95rem;
}

.contact-form input[type="file"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 60, 56, 0.1);
  outline: none;
}

.contact-form input[type="file"]:hover {
  border-color: var(--primary-color);
  background: rgba(255, 60, 56, 0.05);
}

.contact-form input[type="file"]::file-selector-button {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.contact-form input[type="file"]::file-selector-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-form input[type="file"]::file-selector-button:hover::before {
  opacity: 1;
}

.contact-form input[type="file"]::file-selector-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 60, 56, 0.4);
}

/* Toast Notification Styles */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1d1d1d;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  animation: fadein 0.5s ease-out, fadeout 0.5s ease-in 3.5s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  max-width: 90vw;
  text-align: center;
  line-height: 1.4;
}

.toast-msg.success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-color: rgba(46, 204, 113, 0.3);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

.toast-msg.error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-color: rgba(231, 76, 60, 0.3);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

@keyframes fadein {
  from { 
    opacity: 0; 
    bottom: 20px; 
    transform: translateX(-50%) scale(0.9);
  }
  to { 
    opacity: 1; 
    bottom: 30px; 
    transform: translateX(-50%) scale(1);
  }
}

@keyframes fadeout {
  from { 
    opacity: 1; 
    transform: translateX(-50%) scale(1);
  }
  to { 
    opacity: 0; 
    bottom: 40px; 
    transform: translateX(-50%) scale(0.9);
  }
}

/* Spinner Loading Animation */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* File Preview Styles */
#file-preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 60, 56, 0.1);
  transition: all 0.3s ease;
}

#file-preview p {
  margin: 0 0 8px 0;
  color: var(--text-light);
  font-weight: 500;
}

#file-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 8px;
  object-fit: cover;
}

/* Form Error States */
.contact-form input.error,
.contact-form textarea.error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.contact-form input.error:focus,
.contact-form textarea.error:focus {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

/* Submit Button Loading State */
.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.contact-form button[type="submit"]:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

.contact-form button[type="submit"]:disabled::before {
  display: none;
}

/* Email Links Styling - Red color for all email links except social icons */
a[href^="mailto:"] {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

a[href^="mailto:"]:hover {
  color: #d63333 !important;
  text-decoration: underline;
}

/* Exception for social icons - keep original styling */
.social-links a[href^="mailto:"] {
  color: inherit !important;
}

.social-links a[href^="mailto:"]:hover {
  color: inherit !important;
  text-decoration: none;
}

/* Sponsorship Form File Input Styling */
.sponsor-form input[type="file"] {
  padding: 12px;
  background: var(--background-light);
  border: 2px solid rgba(255, 60, 56, 0.3);
  color: var(--text-light);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 0.95rem;
}

.sponsor-form input[type="file"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 60, 56, 0.1);
  outline: none;
}

.sponsor-form input[type="file"]:hover {
  border-color: var(--primary-color);
  background: rgba(255, 60, 56, 0.05);
}

.sponsor-form input[type="file"]::file-selector-button {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.sponsor-form input[type="file"]::file-selector-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sponsor-form input[type="file"]::file-selector-button:hover::before {
  opacity: 1;
}

.sponsor-form input[type="file"]::file-selector-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 60, 56, 0.4);
}

.map-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(255, 60, 56, 0.08);
}

@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .contact-info, .contact-form {
    max-width: 100%;
  }
}

/* Gallery Page Styles */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.media-card {
  background: linear-gradient(135deg, var(--background-light) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(255, 60, 56, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 60, 56, 0.1);
  position: relative;
  max-width: 100%;
  aspect-ratio: 1.2;
}

.media-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 60, 56, 0.05) 0%, transparent 50%, rgba(255, 60, 56, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.media-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 28px rgba(255, 60, 56, 0.25);
  border-color: rgba(255, 60, 56, 0.3);
}

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

.media-card img,
.media-card video {
  width: 100%;
  height: 70%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  background: #1a1a1a;
  flex-shrink: 0;
}

.media-info {
  padding: 12px 16px;
  width: 100%;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 60, 56, 0.02) 0%, transparent 100%);
  border-top: 1px solid rgba(255, 60, 56, 0.1);
  flex-shrink: 0;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-info h3 {
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(255, 60, 56, 0.2);
  position: relative;
}

.media-info h3::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  border-radius: 1px;
}

.media-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
  opacity: 0.9;
}

@media (max-width: 700px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .featured-video {
    transform: scale(1);
  }
  
  .featured-video:hover {
    transform: scale(1.01);
  }
  
  .media-card {
    aspect-ratio: 1.2;
  }
  
  .media-card video {
    height: 70%;
    object-fit: cover;
  }
}

@media (max-width: 600px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .media-card {
    aspect-ratio: 1.2;
  }
  
  .media-card video {
    height: 70%;
    object-fit: cover;
  }
  
  .featured-video {
    border-width: 1px;
  }
  
  .media-info {
    padding: 8px 10px;
    min-height: 70px;
  }
  
  .media-info h3 {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  
  .media-info p {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .media-card {
    aspect-ratio: 1.2;
  }
  
  .media-card video {
    height: 70%;
    object-fit: cover;
  }
  
  .media-info {
    padding: 4px 6px;
  }
  
  .media-info h3 {
    font-size: 0.8rem;
    margin-bottom: 1px;
  }
  
  .media-info p {
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  
  .media-card {
    aspect-ratio: 1.2;
  }
  
  .media-card video {
    height: 70%;
    object-fit: cover;
  }
  
  .media-info {
    padding: 3px 4px;
  }
  
  .media-info h3 {
    font-size: 0.75rem;
    margin-bottom: 1px;
  }
  
  .media-info p {
    font-size: 0.65rem;
  }
}

/* Events & Workshops Section */
.events-section {
  margin-top: 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.event-card {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(255, 60, 56, 0.10);
  padding: 24px 20px 18px 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.event-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 60, 56, 0.16);
}

.event-card h3 {
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.event-date {
  display: inline-block;
  color: var(--text-light);
  background: var(--primary-color);
  border-radius: 5px;
  padding: 2px 10px;
  font-size: 0.95rem;
  margin-bottom: 10px;
  margin-right: 8px;
}

.event-collab {
  display: inline-block;
  color: var(--primary-color);
  background: #fff1;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 0.92rem;
  margin-left: 6px;
}

.event-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.site-logo {
  height: 80px;
  width: 100%;
  max-width: none;
  display: block;
  object-fit: contain;
  margin-right: 0;
  flex: 1;
  filter: brightness(1.2) contrast(1.2) drop-shadow(0 4px 12px rgba(255, 60, 56, 0.4)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  transition: all 0.3s ease;
}

.site-logo:hover {
  filter: brightness(1.3) contrast(1.3) drop-shadow(0 6px 16px rgba(255, 60, 56, 0.6)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .site-logo {
    height: 65px;
    width: 100%;
    max-width: none;
    margin-right: 0;
    flex: 1;
    filter: brightness(1.2) contrast(1.2) drop-shadow(0 4px 12px rgba(255, 60, 56, 0.4)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
  }
}

/* BAJA SAEINDIA Section */
.baja-section {
  margin-top: 0;
}

.baja-flex {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.baja-logo {
  width: 280px;
  max-width: 100%;
  height: auto;
  filter: brightness(1.15) contrast(1.15) drop-shadow(0 4px 12px rgba(255, 60, 56, 0.4)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  transition: all 0.3s ease;
}

.baja-logo:hover {
  filter: brightness(1.25) contrast(1.25) drop-shadow(0 8px 20px rgba(255, 60, 56, 0.6)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  transform: scale(1.05);
}

.baja-info {
  flex: 1 1 260px;
  min-width: 220px;
}

.baja-info p {
  color: var(--text-light);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .baja-flex {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .baja-logo {
    width: 200px;
  }
}

.hero-buggy {
  margin: 0 !important;
  max-width: 180% !important;
  height: auto !important;
  max-height: 850px !important;
  position: relative !important;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4)) drop-shadow(0 5px 15px rgba(255, 60, 56, 0.1)) !important;
  animation: driveInFromLeft 3s ease-out forwards !important;
  z-index: 1 !important;
  opacity: 1 !important;
  width: 180% !important;
  object-fit: contain !important;
  margin-left: -10rem !important;
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-buggy::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(45deg, transparent, rgba(255, 60, 56, 0.1), transparent) !important;
  z-index: 1 !important;
  animation: shine 3s ease-in-out infinite !important;
}

.hero-buggy::after {
  content: '' !important;
  position: absolute !important;
  bottom: -15px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 60% !important;
  height: 15px !important;
  background: 
    linear-gradient(to right, 
      transparent 0%, 
      rgba(101, 67, 33, 0.4) 20%, 
      rgba(139, 69, 19, 0.3) 25%, 
      transparent 35%,
      transparent 65%,
      rgba(139, 69, 19, 0.3) 75%,
      rgba(101, 67, 33, 0.4) 80%,
      transparent 100%
    ) !important;
  filter: blur(1px) !important;
  animation: tireTrackFade 6s ease-out infinite !important;
  z-index: -1 !important;
  opacity: 0.6 !important;
}

.hero-buggy:hover {
  transform: scale(1.05) translateY(-15px) rotateX(8deg) rotateY(-5deg) rotateZ(2deg) !important;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.6)) 
          drop-shadow(0 10px 25px rgba(255, 60, 56, 0.5))
          drop-shadow(0 0 40px rgba(255, 60, 56, 0.4)) !important;
  animation-play-state: paused !important;
}

/* Enhanced dust effect on hover */
.hero-image-buttons:hover::before {
  animation-duration: 4s;
  opacity: 0.8;
  transform: scale(1.2);
}

/* Enhanced tire tracks on hover */
.hero-image-buttons:hover .hero-buggy::after {
  width: 90% !important;
  height: 25px !important;
  opacity: 1 !important;
  filter: blur(0.5px) !important;
  bottom: -18px !important;
  background: 
    /* Left tire track - deeper */
    linear-gradient(to right, 
      transparent 0%, 
      rgba(101, 67, 33, 1) 18%, 
      rgba(139, 69, 19, 0.9) 22%, 
      rgba(160, 82, 45, 0.8) 25%, 
      transparent 32%,
      transparent 68%,
      rgba(160, 82, 45, 0.8) 75%,
      rgba(139, 69, 19, 0.9) 78%,
      rgba(101, 67, 33, 1) 82%,
      transparent 100%
    ),
    /* Enhanced tire tread marks */
    repeating-linear-gradient(
      to right,
      transparent 0px,
      rgba(0, 0, 0, 0.7) 1px,
      rgba(0, 0, 0, 0.5) 3px,
      transparent 5px,
      transparent 7px
    ) !important;
  animation: tireTrackIntense 4s ease-out infinite !important;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotateY(0deg) translateZ(0);
  }
  25% {
    transform: translateY(-6px) rotateY(0.5deg) translateZ(0);
  }
  50% {
    transform: translateY(-12px) rotateY(0deg) translateZ(0);
  }
  75% {
    transform: translateY(-6px) rotateY(-0.5deg) translateZ(0);
  }
  100% {
    transform: translateY(0px) rotateY(0deg) translateZ(0);
  }
}

@keyframes shine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes dustTrail {
  0% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1) rotateZ(0deg);
    filter: blur(8px);
  }
  25% {
    opacity: 0.7;
    transform: translateX(-48%) scale(1.05) rotateZ(1deg);
    filter: blur(6px);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1) rotateZ(0deg);
    filter: blur(10px);
  }
  75% {
    opacity: 0.6;
    transform: translateX(-52%) scale(1.05) rotateZ(-1deg);
    filter: blur(7px);
  }
  100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1) rotateZ(0deg);
    filter: blur(8px);
  }
}

@keyframes shadowPulse {
  0% {
    opacity: 0.4;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    opacity: 0.4;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes tireTrackFade {
  0% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1.05);
  }
  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes tireTrackIntense {
  0% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    filter: blur(0.5px);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
    filter: blur(0.3px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    filter: blur(0.5px);
  }
}

@keyframes floatingDust {
  0% {
    transform: translateY(0px) translateX(40px) rotate(0deg) translateZ(0);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-15px) translateX(20px) rotate(90deg) translateZ(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-8px) translateX(0px) rotate(180deg) translateZ(0);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-22px) translateX(-20px) rotate(270deg) translateZ(0);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0px) translateX(-40px) rotate(360deg) translateZ(0);
    opacity: 0.6;
  }
}

/* Headline Animation Keyframes */
@keyframes fadeInUp {
  0% {
    opacity: 0 !important;
    transform: translateY(50px) !important;
  }
  100% {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes underlineExpand {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 
      0 4px 15px rgba(255, 56, 56, 0.4),
      0 0 20px rgba(255, 56, 56, 0.3);
  }
  50% {
    box-shadow: 
      0 4px 20px rgba(255, 56, 56, 0.6),
      0 0 30px rgba(255, 56, 56, 0.5);
  }
  100% {
    box-shadow: 
      0 4px 15px rgba(255, 56, 56, 0.4),
      0 0 20px rgba(255, 56, 56, 0.3);
  }
}

/* Left to right driving animation */
@keyframes driveInFromLeft {
  0% {
    transform: translateX(-150px) scale(0.9) translateZ(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-40px) scale(0.95) translateZ(0);
    opacity: 0.8;
  }
  80% {
    transform: translateX(8px) scale(1.01) translateZ(0);
    opacity: 1;
  }
  100% {
    transform: translateX(0px) scale(1) translateZ(0);
    opacity: 1;
  }
}

/* Gentle floating animation */
@keyframes floatGently {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 900px) {
  .hero-flex {
    flex-direction: column;
    gap: 24px;
  }
  .hero-text, .hero-image-buttons {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-text {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .hero-image-buttons {
    padding: 1rem 0 !important;
    margin-left: 0 !important;
    align-items: center !important;
  }
  
  .hero-buggy {
    margin: 0 auto 20px auto !important;
    max-width: 120% !important;
    max-height: 500px !important;
  }
}

/* Enhanced Cursor Trail Animation */
.cursor-trail {
  display: none !important; /* Hide old trail elements */
}

/* Canvas-based smooth cursor trail */
.samurai-trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: transparent;
}

/* Optional: Hide default cursor for better effect */
body.samurai-cursor {
  cursor: none;
}

/* Toggle button for trail */
.trail-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background: rgba(255, 60, 56, 0.9);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  z-index: 10000;
  font-size: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(255, 60, 56, 0.3);
}

.trail-toggle-btn:hover {
  background: rgba(255, 60, 56, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 60, 56, 0.5);
}

/* File Preview Styles */
.file-preview-container {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  min-height: 50px;
}

.file-preview-item {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
  animation: fadeInScale 0.3s ease;
}

.file-preview-item:hover {
  transform: scale(1.05);
}

.preview-image {
  max-width: 120px;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.preview-image:hover {
  border-color: #ff3c38;
}

.preview-video {
  max-width: 120px;
  max-height: 120px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-preview {
  width: 80px;
  height: 100px;
  background: linear-gradient(135deg, #f44336, #d32f2f);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
  position: relative;
  overflow: hidden;
}

.pdf-preview::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-top: 20px solid rgba(255, 255, 255, 0.2);
}

.generic-preview {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.remove-file-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #ff3c38;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.remove-file-btn:hover {
  background: #d32f2f;
  transform: scale(1.2);
}

/* File info tooltip */
.file-preview-item::after {
  content: attr(data-file-name);
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 100;
}

.file-preview-item:hover::after {
  opacity: 1;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive design for file previews */
@media (max-width: 768px) {
  .file-preview-container {
    gap: 10px;
    padding: 8px;
  }
  
  .preview-image,
  .preview-video {
    max-width: 80px;
    max-height: 80px;
  }
  
  .pdf-preview {
    width: 60px;
    height: 75px;
    font-size: 12px;
  }
  
  .generic-preview {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

/* Media Queries */
@media (max-width: 1200px) {
  .section {
    padding: 60px 20px;
  }
}

@media (max-width: 900px) {
  .hero-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text, .hero-image-buttons {
    max-width: 100%;
  }
  
  .hero-buggy {
    max-width: 100%;
    max-height: 500px;
  }
}

@media (max-width: 600px) {
  header {
    padding: 0.8rem 1rem;
  }
  
  .site-logo {
    width: 100%;
    max-width: none;
    flex: 1;
  }
  
  nav ul {
    gap: 0.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    white-space: nowrap;
  }
  
  .section h2 {
    font-size: 2rem;
    white-space: nowrap;
  }
}

/* Add margin between major sections for clarity */
.section + .section {
  margin-top: 48px;
}

/* Timeline fixes */
.timeline ul {
  overflow: hidden;
}

.timeline li {
  padding: 24px 32px;
  margin-bottom: 32px;
}

.timeline li:nth-child(odd) {
  float: left;
  clear: both;
  text-align: right;
  padding-right: 48px;
}

.timeline li:nth-child(even) {
  float: right;
  clear: both;
  text-align: left;
  padding-left: 48px;
}

@media (max-width: 900px) {
  .timeline li,
  .timeline li:nth-child(odd),
  .timeline li:nth-child(even) {
    float: none;
    clear: both;
    width: 100%;
    text-align: left;
    padding: 20px 12px;
  }
  .timeline::after {
    left: 20px;
    margin-left: 0;
  }
}

/* Departments grid: add more gap for clarity */
.departments .grid {
  gap: 32px;
  padding: 32px 0 0 0;
}

.departments .card {
  min-height: 180px;
}

.baja-rulebook-btn {
  background: #fff !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(255,60,56,0.08);
  margin-top: 0 !important;
  margin-bottom: 0;
  padding: 14px 32px;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.baja-rulebook-btn:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

@media (max-width: 700px) {
  .baja-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .baja-logo {
    width: 200px;
    margin: 0 auto;
  }
  .baja-info {
    text-align: left;
  }
  .baja-rulebook-btn {
    width: 100%;
    text-align: center;
    padding: 14px 0;
  }
}

/* Supporter Cards Styles */
.supporters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.supporter-card {
  background: var(--background-light);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-speed) ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.supporter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 60, 56, 0.1), transparent);
  transition: left 0.5s ease;
}

.supporter-card:hover::before {
  left: 100%;
}

.supporter-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(255, 60, 56, 0.2);
}

.supporter-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 1rem;
  transition: all var(--transition-speed) ease;
  filter: brightness(1.1) contrast(1.1) drop-shadow(0 3px 10px rgba(255, 60, 56, 0.3)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.supporter-card:hover .supporter-logo {
  transform: scale(1.15);
  filter: brightness(1.2) contrast(1.2) drop-shadow(0 6px 16px rgba(255, 60, 56, 0.5)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
}

.supporter-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.supporter-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.supporters-note {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

.sponsor-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-style: normal;
}

.sponsor-link:hover {
  color: #ff6b6b;
  text-decoration: underline;
  opacity: 1;
}

/* Responsive adjustments for supporter cards */
@media (max-width: 600px) {
  .supporter-card {
    padding: 1.5rem;
  }
  
  .supporter-logo {
    width: 130px;
    height: 130px;
  }
  
  .supporter-card h3 {
    font-size: 1.1rem;
  }
  
  .supporter-card p {
    font-size: 0.9rem;
  }
}

/* Welcome Section Styles */
.welcome-section {
  background: linear-gradient(135deg, rgba(255, 60, 56, 0.05) 0%, rgba(30, 30, 30, 0.8) 100%);
  border-radius: 15px;
  margin: 20px auto;
  max-width: 1100px;
  padding: 40px 30px;
}

.welcome-subtitle {
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.welcome-content {
  max-width: 900px;
  margin: 0 auto;
}

.welcome-intro {
  font-size: 1.3rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 25px;
  font-weight: 500;
  text-align: center;
}

.welcome-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.welcome-cta-text {
  font-size: 1.2rem;
  color: var(--primary-color);
  line-height: 1.6;
  font-weight: 600;
  text-align: center;
  margin-top: 30px;
  font-style: italic;
}

/* Welcome section logo styling */
.welcome-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.otr-logo, .adypu-logo {
  height: 100px;
  max-width: 280px;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.2) drop-shadow(0 4px 12px rgba(255, 60, 56, 0.4)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  transition: all 0.3s ease;
}

.otr-logo:hover, .adypu-logo:hover {
  filter: brightness(1.3) contrast(1.3) drop-shadow(0 6px 16px rgba(255, 60, 56, 0.6)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  transform: scale(1.08);
}

.logo-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  line-height: 1.2;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  text-align: center;
}

.logo-link:hover {
  transform: scale(1.02);
}

.logo-link:hover .adypu-logo {
  filter: brightness(1.3) contrast(1.3) drop-shadow(0 6px 16px rgba(255, 60, 56, 0.6));
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(255, 60, 56, 0.3);
  border-color: rgba(255, 60, 56, 0.3);
}

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

.location-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.location-link:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
  text-decoration: none;
}

.logo-separator {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 10px;
  align-self: center;
}

/* Responsive design for welcome logo */
@media (max-width: 768px) {
  .welcome-subtitle {
    flex-direction: column;
    gap: 20px;
  }
  
  .otr-logo, .adypu-logo {
    height: 80px;
    max-width: 250px;
  }
  
  .logo-name {
    font-size: 0.85rem;
  }
  
  .logo-separator {
    font-size: 1.5rem;
    margin: 5px 0;
  }
}

@media (max-width: 600px) {
  .otr-logo, .adypu-logo {
    height: 75px;
    max-width: 230px;
  }
  
  .logo-name {
    font-size: 0.8rem;
  }
  
  .logo-separator {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .welcome-section {
    padding: 30px 20px;
    margin: 15px auto;
  }
  
  .welcome-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
  }
  
  .welcome-intro {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  
  .welcome-description {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .welcome-cta-text {
    font-size: 1.1rem;
    margin-top: 25px;
  }
}

/* Global paragraph spacing improvements */
p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Section paragraph improvements */
.section p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

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

/* Hero section improvements */
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease;
}

/* Sponsor message improvements */
.sponsor-message p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Form intro improvements */
.form-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* Timeline improvements */
.timeline li {
  padding: 24px 32px;
  margin-bottom: 32px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  background: var(--background-light);
  border-radius: 10px;
  transition: all 0.3s ease;
  line-height: 1.7;
}

/* Department card improvements */
.departments .card p {
  line-height: 1.7;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Option card improvements */
.option-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.option-card p {
  line-height: 1.7;
  margin-bottom: 0;
}

/* Event card improvements */
.event-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* BAJA section improvements */
.baja-info p {
  color: var(--text-light);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Supporter card improvements */
.supporter-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Contact info improvements */
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Media info improvements */
.media-info p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Team card improvements */
.team-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Supporters note improvements */
.supporters-note {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Welcome section improvements */
.welcome-intro {
  font-size: 1.3rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 25px;
  font-weight: 500;
  text-align: center;
}

.welcome-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.welcome-cta-text {
  font-size: 1.2rem;
  color: var(--primary-color);
  line-height: 1.6;
  font-weight: 600;
  text-align: center;
  margin-top: 30px;
  font-style: italic;
}

/* Privacy page improvements */
.privacy-container p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.privacy-container li {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

/* Popup improvements */
.popup-box p {
  margin: 15px 0;
  line-height: 1.6;
  font-size: 1rem;
}



/* Form group improvements */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-light);
  line-height: 1.4;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .section p {
    font-size: 1rem;
    margin-bottom: 1.3rem;
  }
  
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .sponsor-message p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .form-intro {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .timeline li {
    padding: 20px 16px;
    margin-bottom: 24px;
  }
  
  .welcome-intro {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  
  .welcome-description {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .welcome-cta-text {
    font-size: 1.1rem;
    margin-top: 25px;
  }
  
  .privacy-container p,
  .privacy-container li {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 600px) {
  .section p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.8rem;
  }
  
  .option-card p,
  .event-card p,
  .supporter-card p,
  .media-info p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .contact-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
}

/* Ecosystem Identity Section */
.ecosystem-identity {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--background-light);
  position: relative;
  overflow: hidden;
}

.ecosystem-identity::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.ecosystem-identity h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  position: relative;
  display: inline-block;
  white-space: nowrap;
  overflow: visible;
}

.ecosystem-identity h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.ecosystem-identity:hover h2::after {
  width: 80px;
}

.logo-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 60, 56, 0.1);
}

.logo-flow img {
  object-fit: contain;
  filter: brightness(1.2) contrast(1.2) drop-shadow(0 4px 12px rgba(255, 60, 56, 0.4)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Individual Logo Sizing for Consistent Row Layout */
.logo-flow img[src*="ADYPU SOE LOGO.png"] {
  width: 220px;
  height: 150px;
}

.logo-flow img[src*="Open Throttle Racing Club Logo.png"] {
  width: 250px;
  height: 150px;
}

.logo-flow img[src*="Avinya Logo.png"] {
  width: 200px;
  height: 150px;
}

.logo-flow img[src*="Baja SAEINDIA Logo.png"] {
  width: 160px;
  height: 150px;
}

.logo-flow img:hover {
  transform: scale(1.2) translateY(-8px);
  filter: brightness(1.25) contrast(1.25) drop-shadow(0 8px 20px rgba(255, 60, 56, 0.5)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

.arrow {
  font-size: clamp(1.2rem, 2.5vw, 2.5rem);
  color: var(--primary-color);
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(255, 60, 56, 0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: auto;
  text-align: center;
}

.arrow:hover {
  transform: scale(1.2);
  color: var(--text-light);
}

.logo-flow-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.logo-flow-link:hover {
  transform: scale(1.05);
}

.logo-flow-link:hover img {
  filter: brightness(1.3) contrast(1.3) drop-shadow(0 8px 20px rgba(255, 60, 56, 0.6));
  box-shadow: 0 12px 30px rgba(255, 60, 56, 0.4);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 60, 56, 0.3);
}

.who-we-are-description {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.who-we-are-description strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Mobile Responsive for Ecosystem Identity */
@media (max-width: 768px) {
  .ecosystem-identity {
    padding: 3rem 1rem;
  }
  
  .ecosystem-identity h2 {
    font-size: 2rem;
    white-space: nowrap;
  }
  
  .logo-flow {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .logo-flow img {
    object-fit: contain;
    flex-shrink: 0;
  }

  /* Tablet Vertical Layout - Individual Sizing */
  .logo-flow img[src*="ADYPU SOE LOGO.png"] {
    width: 250px;
    height: 170px;
  }

  .logo-flow img[src*="Open Throttle Racing Club Logo.png"] {
    width: 280px;
    height: 170px;
  }

  .logo-flow img[src*="Avinya Logo.png"] {
    width: 220px;
    height: 170px;
  }

  .logo-flow img[src*="Baja SAEINDIA Logo.png"] {
    width: 180px;
    height: 170px;
  }

  .arrow {
    transform: rotate(90deg);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
  }

  .who-we-are-description {
    text-align: center;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .ecosystem-identity h2 {
    font-size: 1.8rem;
    white-space: nowrap;
  }
  
  .logo-flow img {
    object-fit: contain;
    flex-shrink: 0;
  }

  /* Medium Desktop - Individual Sizing */
  .logo-flow img[src*="ADYPU SOE LOGO.png"] {
    width: 200px;
    height: 130px;
  }

  .logo-flow img[src*="Open Throttle Racing Club Logo.png"] {
    width: 230px;
    height: 130px;
  }

  .logo-flow img[src*="Avinya Logo.png"] {
    width: 180px;
    height: 130px;
  }

  .logo-flow img[src*="Baja SAEINDIA Logo.png"] {
    width: 150px;
    height: 130px;
  }
  
  .who-we-are-description {
    font-size: 0.95rem;
  }
}

/* Enhanced Responsive Design for All Devices */
@media (max-width: 1200px) {
  .hero-flex {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-text, .hero-image-buttons {
    flex: 1 1 auto;
    max-width: 100%;
  }
  
  .section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 900px) {
  .support-options {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-flex {
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-info, .contact-form {
    flex: 1 1 auto;
    max-width: 100%;
  }
  
  .baja-flex {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .baja-logo {
    width: 220px;
  }
  
  .baja-info {
    text-align: center;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero {
    padding: 100px 1rem 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .supporters-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .media-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .welcome-section {
    padding: 2rem 1rem;
    margin: 1rem auto;
  }
  
  .welcome-subtitle {
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .logo-separator {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section h2 {
    font-size: 1.8rem;
    white-space: nowrap;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  .option-card {
    padding: 1.5rem;
  }
  
  .supporter-card {
    padding: 1.5rem;
  }
  
  .event-card {
    padding: 1.5rem;
  }
  
  .media-card {
    padding: 1rem;
  }
  
  .team-card {
    padding: 1rem;
  }
  
  .welcome-intro {
    font-size: 1.1rem;
  }
  
  .welcome-description {
    font-size: 1rem;
  }
  
  .welcome-cta-text {
    font-size: 0.9rem;
  }
  
  .logo-flow {
    gap: 0.6rem;
    padding: 0.8rem;
  }
  
  .logo-flow img {
    object-fit: contain;
    flex-shrink: 0;
  }

  /* Small Tablet - Individual Sizing */
  .logo-flow img[src*="ADYPU SOE LOGO.png"] {
    width: 180px;
    height: 120px;
  }

  .logo-flow img[src*="Open Throttle Racing Club Logo.png"] {
    width: 200px;
    height: 120px;
  }

  .logo-flow img[src*="Avinya Logo.png"] {
    width: 160px;
    height: 120px;
  }

  .logo-flow img[src*="Baja SAEINDIA Logo.png"] {
    width: 140px;
    height: 120px;
  }
  
  .arrow {
    font-size: clamp(1rem, 2vw, 1.4rem);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section h2 {
    font-size: 1.6rem;
    white-space: nowrap;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 0.85rem;
  }
  
  .option-card h3 {
    font-size: 1.2rem;
  }
  
  .supporter-card h3 {
    font-size: 1.1rem;
  }
  
  .event-card h3 {
    font-size: 1.1rem;
  }
  
  .media-info h3 {
    font-size: 1.1rem;
  }
  
  .team-card h3 {
    font-size: 1.1rem;
  }
  
  .welcome-intro {
    font-size: 1rem;
  }
  
  .welcome-description {
    font-size: 0.95rem;
  }
  
  .logo-flow img {
    object-fit: contain;
    flex-shrink: 0;
  }

  /* Mobile - Individual Sizing */
  .logo-flow img[src*="ADYPU SOE LOGO.png"] {
    width: 160px;
    height: 110px;
  }

  .logo-flow img[src*="Open Throttle Racing Club Logo.png"] {
    width: 180px;
    height: 110px;
  }

  .logo-flow img[src*="Avinya Logo.png"] {
    width: 140px;
    height: 110px;
  }

  .logo-flow img[src*="Baja SAEINDIA Logo.png"] {
    width: 125px;
    height: 110px;
  }
  
  .arrow {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  }
}

/* Tablet-specific optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-flex {
    gap: 3rem;
  }
  
  .support-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 70px 1rem 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .welcome-section {
    padding: 1.5rem 1rem;
  }
}

/* High-DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .site-logo,
  .supporter-logo,
  .otr-logo,
  .adypu-logo,
  .baja-logo,
  .logo-flow img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Social Media Icons Styling */
.social-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.social-icon svg {
  width: 17px;
  height: 17px;
  fill: white;
  transition: 0.3s ease;
}

/* Hover brand styles */
.social-icon.instagram:hover {
  background-color: rgba(225, 48, 108, 0.15);
  box-shadow: 0 0 12px #e1306c;
}
.social-icon.instagram:hover svg {
  fill: #e1306c;
}

.social-icon.linkedin:hover {
  background-color: rgba(0, 119, 181, 0.15);
  box-shadow: 0 0 12px #0077b5;
}
.social-icon.linkedin:hover svg {
  fill: #0077b5;
}

.social-icon.envelope:hover {
  background-color: rgba(255, 170, 0, 0.15);
  box-shadow: 0 0 12px #ffaa00;
}
.social-icon.envelope:hover svg {
  fill: #ffaa00;
}

.social-icon.support:hover {
  background-color: rgba(255, 40, 40, 0.15);
  box-shadow: 0 0 12px #ff2828;
}
.social-icon.support:hover svg {
  fill: #ff2828;
}

/* Tooltip styling */
.tooltip {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  width: max-content;
  max-width: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.social-icon.support:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
}

/* Header social links */
header .social-links {
  margin-left: 20px;
}

/* Footer styling */


/* Responsive design for social media */
@media (max-width: 768px) {
  header .social-links {
    margin-left: 15px;
    gap: 10px;
  }
  
  .social-icon {
    width: 30px;
    height: 30px;
  }
  
  .social-icon svg {
    width: 14px;
    height: 14px;
  }
  

}

@media (max-width: 600px) {
  header .social-links {
    margin-left: 10px;
    gap: 8px;
  }
  
  .social-icon {
    width: 26px;
    height: 26px;
  }
  
  .social-icon svg {
    width: 13px;
    height: 13px;
  }
}

/* Creator Support Icon Styles - Now identical to social icons */

.creator-support-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.creator-support-link:hover {
  background-color: rgba(255, 40, 40, 0.15);
  box-shadow: 0 0 12px #ff2828;
}

.creator-support-svg {
  width: 17px;
  height: 17px;
  fill: white;
  transition: 0.3s ease;
}

.creator-support-link:hover .creator-support-svg {
  fill: #ff2828;
}



/* Creator Section Styles */
.creator-section {
  background: linear-gradient(135deg, rgba(255, 60, 56, 0.02), rgba(255, 60, 56, 0.005));
  border-top: 0.5px solid rgba(255, 60, 56, 0.05);
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  text-align: center;
}

.creator-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255, 60, 56, 0.01) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255, 60, 56, 0.005) 0%, transparent 50%);
  pointer-events: none;
}

.creator-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 5px 20px;
  position: relative;
  z-index: 1;
}

.creator-header {
  text-align: center;
  margin-bottom: 5px;
  position: relative;
}

.creator-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  margin-bottom: 15px;
  position: relative;
  animation: creatorIconFloat 2s ease-in-out infinite;
}

.creator-icon::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  opacity: 0.3;
  animation: creatorIconPulse 1.5s ease-in-out infinite;
}

@keyframes creatorIconFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(2deg); }
  50% { transform: translateY(-15px) rotate(0deg); }
  75% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes creatorIconPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

.creator-svg {
  width: 30px;
  height: 30px;
  color: white;
}



.creator-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: creatorTitleGlow 1.5s ease-in-out infinite alternate;
  white-space: nowrap;
  overflow: visible;
}

@keyframes creatorTitleGlow {
  0% { filter: drop-shadow(0 0 5px rgba(255, 60, 56, 0.3)) scale(1); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 60, 56, 0.8)) scale(1.02); }
  100% { filter: drop-shadow(0 0 5px rgba(255, 60, 56, 0.3)) scale(1); }
}

.creator-subtitle {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.creator-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.creator-motto {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-style: italic;
  font-weight: 300;
  opacity: 0.9;
}

.creator-content {
  display: grid;
  gap: 5px;
}

.creator-bio {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.creator-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text-light);
  position: relative;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
  animation: highlightGlow 2s ease-in-out infinite alternate;
}

@keyframes highlightGlow {
  0% { text-shadow: 0 0 5px rgba(255, 60, 56, 0.3); transform: scale(1); }
  50% { text-shadow: 0 0 20px rgba(255, 60, 56, 0.8); transform: scale(1.05); }
  100% { text-shadow: 0 0 5px rgba(255, 60, 56, 0.3); transform: scale(1); }
}

.creator-social {
  text-align: center;
  margin-top: 2px;
}

.creator-social h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-light);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 60, 56, 0.2);
  border-radius: 50%;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icon-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 60, 56, 0.2), transparent);
  transition: left 0.5s ease;
}

.social-icon-link:hover::before {
  left: 100%;
}

.social-icon-link:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: rgba(255, 60, 56, 0.4);
  box-shadow: 0 10px 25px rgba(255, 60, 56, 0.3);
}

.social-icon-link svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.social-icon-link:hover svg {
  transform: rotate(360deg) scale(1.2);
  animation: socialIconBounce 0.6s ease-in-out;
}

@keyframes socialIconBounce {
  0%, 100% { transform: rotate(360deg) scale(1.2); }
  50% { transform: rotate(360deg) scale(1.4); }
}

.social-icon-link.github:hover {
  background: linear-gradient(135deg, #6f42c1, #8a63d2);
  box-shadow: 0 0 20px rgba(111, 66, 193, 0.6);
  color: white;
}

.social-icon-link.linkedin:hover {
  background: linear-gradient(135deg, #0077b5, #005885);
  box-shadow: 0 0 20px rgba(0, 119, 181, 0.6);
  color: white;
}

.social-icon-link.gmail:hover {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  color: #333;
}

.social-icon-link.gmail:hover svg {
  fill: #333;
}



/* Responsive Design for Creator Section */
@media (max-width: 768px) {
  .creator-container {
    padding: 20px 15px;
  }
  
  .creator-title {
    font-size: 1.8rem;
    white-space: nowrap;
  }
  
  .social-icons {
    gap: 12px;
  }
  
  .social-icon-link {
    width: 42px;
    height: 42px;
  }
  
  .social-icon-link svg {
    width: 18px;
    height: 18px;
  }
  
  .creator-support-link {
    width: 30px;
    height: 30px;
  }
  
  .creator-support-svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 600px) {
  .creator-title {
    font-size: 1.6rem;
    white-space: nowrap;
  }
  
  .creator-subtitle {
    font-size: 1.2rem;
  }
  
  .creator-role {
    font-size: 0.85rem;
  }
  
  .creator-text {
    font-size: 0.95rem;
  }
  
  .social-icon-link {
    width: 40px;
    height: 40px;
  }
  
  .social-icon-link svg {
    width: 17px;
    height: 17px;
  }
  
  .creator-support-link {
    width: 26px;
    height: 26px;
  }
  
  .creator-support-svg {
    width: 13px;
    height: 13px;
  }
}

/* ============================================================================
   DESKTOP HEADER LAYOUT FIX
   ============================================================================ */

/* Desktop Header Layout (901px and above) */
@media (min-width: 901px) {
  header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.4rem 1.5rem !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    flex-direction: row !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
  }
  
  .logo {
    flex: 0 0 auto !important;
    order: 1 !important;
    max-width: 400px !important;
    z-index: 10 !important;
  }
  
  .nav-menu {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    order: 2 !important;
    justify-content: center !important;
    display: flex !important;
    background: transparent !important;
    height: auto !important;
    width: auto !important;
    padding-top: 0 !important;
    flex-direction: row !important;
    z-index: 5 !important;
  }
  
  .nav-menu ul {
    flex-direction: row !important;
    width: auto !important;
    display: flex !important;
    gap: 0.8rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .nav-menu li {
    width: auto !important;
    border-bottom: none !important;
  }
  
  .nav-menu a {
    width: auto !important;
    padding: 0.15rem 0 !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    text-shadow: 0 0 10px rgba(255, 56, 56, 0.4) !important;
    animation: navGlow 3s ease-in-out infinite alternate !important;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    font-weight: 500 !important;
  }
  
  .social-links {
    flex: 0 0 auto !important;
    order: 3 !important;
    margin-left: 0 !important;
    display: flex !important;
    z-index: 10 !important;
  }
  
  .mobile-menu-btn {
    display: none !important;
  }
  
  /* Hide mobile social links on desktop */
  .mobile-social-links {
    display: none !important;
  }
}

/* Responsive styles for animated headline */
@media (max-width: 900px) {
  .hero .animated-headline {
    font-size: 2.5rem !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 600px) {
  .hero .animated-headline {
    font-size: 2rem !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 480px) {
  .hero .animated-headline {
    font-size: 1.8rem !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 400px) {
  .hero .animated-headline {
    font-size: 1.5rem !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 350px) {
  .hero .animated-headline {
    font-size: 1.3rem !important;
    white-space: nowrap !important;
  }
}

/* Responsive styles for enhanced buttons */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .btn-primary-glow,
  .btn-secondary-outline {
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .btn-primary-glow {
    padding: 0.9rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .btn-secondary-outline {
    padding: 0.9rem 1.2rem !important;
    font-size: 0.9rem !important;
  }
}

/* Quick Navigation Responsive Styles */
@media (max-width: 768px) {
  .quick-nav {
    padding: 1.5rem 0;
  }
  
  .quick-nav h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .nav-links {
    gap: 0.8rem;
  }
  
  .nav-link {
    padding: 0.8rem 1rem;
    min-width: 100px;
  }
  
  .nav-icon {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }
  
  .nav-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .quick-nav {
    padding: 1rem 0;
  }
  
  .quick-nav .container {
    padding: 0 1rem;
  }
  
  .nav-links {
    gap: 0.6rem;
  }
  
  .nav-link {
    padding: 0.6rem 0.8rem;
    min-width: 80px;
  }
  
  .nav-icon {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }
  
  .nav-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.6rem;
    min-width: 70px;
  }
  
  .nav-icon {
    font-size: 1.1rem;
  }
  
  .nav-text {
    font-size: 0.7rem;
  }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top-button {
  position: fixed !important; /* Always fixed */
  bottom: 30px !important;
  right: 30px !important;
  width: 60px;
  height: 60px;
  background: var(--primary-color) !important;
  border: none !important;
  border-radius: 50%;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999 !important;
  box-shadow: 0 4px 20px rgba(255, 60, 56, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform-origin: center !important;
  will-change: transform, opacity !important;
}

/* ===== FORCE BACK TO TOP BUTTON POSITIONING ===== */
#back-to-top-btn {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 999999 !important;
}

/* Override any parent container issues */
body #back-to-top-btn,
html #back-to-top-btn,
* #back-to-top-btn {
  position: fixed !important;
  z-index: 999999 !important;
  bottom: 30px !important;
  right: 30px !important;
  pointer-events: auto !important;
}

/* Ensure button is always visible and clickable */
#back-to-top-btn.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: flex !important;
}

/* Responsive positioning */
@media (max-width: 768px) {
  #back-to-top-btn {
    bottom: 20px !important;
    right: 20px !important;
  }
}

@media (max-width: 480px) {
  #back-to-top-btn {
    bottom: 15px !important;
    right: 15px !important;
  }
}


.back-to-top-button.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: flex !important;
}

.back-to-top-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 60, 56, 0.4);
}

.back-to-top-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 60, 56, 0.3);
}

.back-to-top-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 60, 56, 0.2);
}

.back-to-top-arrow {
  width: 24px;
  height: 24px;
  color: white;
  transition: transform 0.2s ease;
}

.back-to-top-button:hover .back-to-top-arrow {
  transform: translateY(-2px);
}

/* Responsive adjustments for Back to Top button */
@media (max-width: 768px) {
  .back-to-top-button {
    bottom: 20px !important;
    right: 20px !important;
    width: 50px;
    height: 50px;
    position: fixed !important;
    z-index: 9999 !important;
  }
  
  .back-to-top-arrow {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .back-to-top-button {
    bottom: 15px !important;
    right: 15px !important;
    width: 45px;
    height: 45px;
    position: fixed !important;
    z-index: 9999 !important;
  }
  
  .back-to-top-arrow {
    width: 18px;
    height: 18px;
  }
}

/* ===== HERO SECTION COMPONENTS ===== */
/* Separate CSS classes for each hero component for better mobile control */

/* Hero Heading */
.hero-heading {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  text-shadow: 0 0 20px rgba(255, 60, 56, 0.3);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Hero Paragraph */
.hero-paragraph {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-muted);
  max-width: 600px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

/* Hero Links */
.hero-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.hero-link:hover {
  color: #ff6b6b;
  border-bottom-color: #ff6b6b;
  opacity: 1;
}

/* Hero Buttons Container */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

/* Hero Sponsor Button */
.hero-sponsor-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 140px;
  text-align: center;
  white-space: nowrap;
}

/* Hero Watch Button */
.hero-watch-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 180px;
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== RESPONSIVE HERO COMPONENTS ===== */

/* Large Tablet (≤900px) */
@media screen and (max-width: 900px) {
  .hero-heading {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.1;
  }
  
  .hero-paragraph {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  
  .hero-buttons {
    gap: 0.8rem;
    margin-top: 0.8rem;
  }
  
  .hero-sponsor-btn,
  .hero-watch-btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    min-width: 120px;
  }
  
  .hero-buggy {
    animation: driveInFromLeft 3s ease-out forwards !important;
    transform: translateX(-200px) scale(0.9) !important;
    max-width: 100% !important;
    max-height: 500px !important;
  }
}

/* Tablet (≤768px) */
@media screen and (max-width: 768px) {
  .hero-heading {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
  }
  
  .hero-paragraph {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
  }
  
  .hero-buttons {
    gap: 0.6rem;
    margin-top: 0.6rem;
    justify-content: center;
  }
  
  .hero-sponsor-btn,
  .hero-watch-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    min-width: 110px;
  }
  
  .hero-buggy {
    animation: driveInFromLeft 3s ease-out forwards !important;
    transform: translateX(-200px) scale(0.9) !important;
    max-width: 100% !important;
    max-height: 400px !important;
  }
}

/* Mobile (≤600px) */
@media screen and (max-width: 600px) {
  .hero-text {
    min-width: auto;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: 0;
    width: 100%;
  }
  
  .hero-heading {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.1;
  }
  
  .hero-paragraph {
    font-size: 0.65rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    max-width: 100%;
    width: 100%;
  }
  
  .hero-buttons {
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-sponsor-btn,
  .hero-watch-btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .hero-buggy {
    animation: driveInFromLeft 3s ease-out forwards !important;
    transform: translateX(-200px) scale(0.9) !important;
    max-width: 90% !important;
    max-height: 350px !important;
  }
}

/* Small Mobile (≤480px) */
@media screen and (max-width: 480px) {
  .hero-text {
    min-width: auto;
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: 0;
    width: 100%;
  }
  
  .hero-heading {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    line-height: 1.1;
  }
  
  .hero-paragraph {
    font-size: 0.55rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    padding: 0 0.3rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero-buttons {
    gap: 0.4rem;
    margin-top: 0.4rem;
  }
  
  .hero-sponsor-btn,
  .hero-watch-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    max-width: 220px;
  }
  
  .hero-buggy {
    animation: driveInFromLeft 3s ease-out forwards !important;
    transform: translateX(-200px) scale(0.9) !important;
    max-width: 85% !important;
    max-height: 300px !important;
  }
}

/* Extra Small Mobile (≤360px) */
@media screen and (max-width: 360px) {
  .hero-text {
    min-width: auto;
    max-width: 100%;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    margin-left: 0;
    width: 100%;
  }
  
  .hero-heading {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }
  
  .hero-paragraph {
    font-size: 0.45rem;
    margin-bottom: 0.6rem;
    line-height: 1.2;
    padding: 0 0.2rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero-buttons {
    gap: 0.3rem;
    margin-top: 0.3rem;
  }
  
  .hero-sponsor-btn,
  .hero-watch-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    max-width: 200px;
  }
  
  .hero-buggy {
    animation: driveInFromLeft 3s ease-out forwards !important;
    transform: translateX(-200px) scale(0.9) !important;
    max-width: 80% !important;
    max-height: 250px !important;
  }
}

/* Ultra Small Mobile (≤320px) */
@media screen and (max-width: 320px) {
  .hero-text {
    min-width: auto;
    max-width: 100%;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    margin-left: 0;
    width: 100%;
  }
  
  .hero-heading {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    line-height: 1.1;
  }
  
  .hero-paragraph {
    font-size: 0.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    padding: 0 0.1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero-buttons {
    gap: 0.25rem;
    margin-top: 0.25rem;
  }
  
  .hero-sponsor-btn,
  .hero-watch-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    max-width: 180px;
  }
  
  .hero-buggy {
    animation: driveInFromLeft 3s ease-out forwards !important;
    transform: translateX(-200px) scale(0.9) !important;
    max-width: 75% !important;
    max-height: 200px !important;
  }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero-heading {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-paragraph {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-buttons {
    gap: 0.4rem;
    margin-top: 0.4rem;
    flex-direction: row;
  }
  
  .hero-sponsor-btn,
  .hero-watch-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    min-width: 100px;
    max-width: none;
  }
}
