/* index.css - Enhanced Video Background Homepage Styles */

/* Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%) scale(0.8); /* Scale down to show more of video */
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.video-background video.loaded {
  opacity: 1;
}

/* Video Overlay - Enhanced for better text readability */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

/* Enhanced Background Gradient (fallback) */
.background-gradient {
  z-index: -4;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Show gradient if video fails to load */
.video-background.error + .background-gradient {
  opacity: 1;
}

/* Hero Section Adjustments for Video Background */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 0 auto;
}

/* Enhanced Hero Subtitle */
.hero-subtitle {
  color: #cccccc;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 100;
  letter-spacing: -2px;
  margin-bottom: 30px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  color: var(--primary-color);
}

/* Enhanced Hero Tagline */
.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 50px;
  color: var(--accent-color);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.hero-buttons {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

/* Enhanced Buttons maintaining original style */
.hero-buttons .btn {
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn.primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark-bg);
  border-color: rgba(255, 255, 255, 0.95);
}

.hero-buttons .btn.primary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
}

.hero-buttons .btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-buttons .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Hero Stats Line - Subtle and Clean */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-stats .stat-item {
  transition: color 0.3s ease;
}

.hero-stats .stat-item:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero-stats .stat-separator {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* Navigation Enhancement for Video Background */
nav {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Enhancement */
.footer {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 200px;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 10px;
    font-size: clamp(0.8rem, 2vw, 1rem);
  }
  
  .hero-stats .stat-separator {
    display: none;
  }
  
  .hero-stats .stat-item {
    margin: 0 8px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 0 15px;
  }
  
  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  
  .hero-tagline {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }
  
  .hero-buttons .btn {
    width: 180px;
    font-size: 14px;
    padding: 14px 20px;
  }
  
  .hero-stats {
    gap: 8px;
    font-size: 0.85rem;
  }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
  .video-background video {
    animation-play-state: paused !important;
  }
  
  .hero-buttons .btn:hover {
    transform: none;
  }
  
  .subscribe-btn:hover {
    transform: none;
  }
  
  .stat-item:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .video-overlay {
    background: rgba(0, 0, 0, 0.9);
  }
  
  .hero h1,
  .hero-tagline,
  .hero-subtitle {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
  }
  
  .youtube-stats {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
  }
}

/* Reduced data usage */
@media (prefers-reduced-data: reduce) {
  .video-background video {
    display: none;
  }
  
  .background-gradient {
    opacity: 1;
  }
}