/* === ALBUKARAOQUE WEBSITE - HERO VIDEO === */
/* Clean, full-screen hero video with proper positioning */

.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Add a dark background to prevent white flash */
  background-color: #2c3e50;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
  /* Ensure the poster image covers the container properly */
  background-color: #2c3e50; /* Dark background instead of white */
}

/* Prevent the poster image from being affected by global img styles */
.hero-video[poster] {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 0; /* Override global img border-radius */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
  margin-top: 60px; /* Account for fixed header */
}

.hero-logo {
  max-width: 400px;
  width: 80%;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
  /* Hide logo until video is ready */
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.3s ease;
}

/* Show logo after video loads */
.hero-video:not([data-loading]) ~ .hero-content .hero-logo,
.video-loaded .hero-logo {
  opacity: 1;
}

.hero-tagline {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
  position: relative;
  display: inline-block;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.hero-tagline::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.7);
  transition: width 0.5s ease;
}

.hero-content:hover .hero-tagline::after {
  width: 100%;
}

.hero-content:hover .hero-tagline {
  transform: scale(1.02);
}

.hero-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  position: relative;
  z-index: 4;
}

.hero-cta-buttons .cta-button {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.hero-cta-buttons .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-cta-buttons .cta-button.primary:hover {
  background-color: #fff;
  color: #40B5A3;
  border-color: #40B5A3;
}

.hero-cta-buttons .cta-button.secondary:hover {
  background-color: #fff;
  color: #444;
  border-color: #444;
}

.hero-video-section::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 90%;
  height: 70%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: 3;
  border-radius: 50%;
  pointer-events: none;
}

/* === RESPONSIVE DESIGN - HERO VIDEO === */
@media (max-width: 768px) {
  .hero-video-section {
    height: 80vh;
    min-height: 500px;
  }
  
  .hero-tagline {
    font-size: 2.5rem;
  }
  
  .hero-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
  }
  
  .hero-logo {
    max-width: 300px;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-video-section {
    height: 70vh;
    min-height: 450px;
  }
  
  .hero-tagline {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-logo {
    max-width: 240px;
    margin-bottom: 1rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
}
