/**
 * Hero Section Styles
 * Full-screen hero with video/image background
 */

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-text);
}

/* ============================================
   HERO BACKGROUND
   ============================================ */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Video Background */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: 1;
}

/* Image Background */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Ken Burns animation for image */
.hero-image.kenburns {
  animation: kenburnsEffect 20s ease-out infinite alternate;
}

@keyframes kenburnsEffect {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* ============================================
   HERO OVERLAY
   ============================================ */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 21, 56, 0.85) 0%, rgba(44, 44, 44, 0.85) 100%);
  z-index: 2;
}

/* Alternative overlay styles */
.hero-overlay.overlay-dark {
  background: rgba(0, 0, 0, 0.6);
}

.hero-overlay.overlay-gradient-primary {
  background: linear-gradient(135deg, rgba(139, 21, 56, 0.9) 0%, rgba(107, 15, 42, 0.9) 100%);
}

.hero-overlay.overlay-gradient-gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.8) 0%, rgba(139, 21, 56, 0.8) 100%);
}

/* ============================================
   HERO CONTENT
   ============================================ */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

/* ============================================
   HERO LOGO
   ============================================ */
.hero-logo {
  opacity: 0.85;
  animation-duration: 1s;
  animation-fill-mode: both;
  transition: opacity var(--transition-base);
}

.hero-logo:hover {
  opacity: 0.95;
}

/* Logo Image */
.hero-logo-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Logo Text Fallback */
.hero-logo-text {
  padding: var(--spacing-sm) var(--spacing-md);
}

.hero-logo-brand {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  display: inline-block;
  position: relative;
}

.hero-logo-brand::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Logo Position Variants */
.hero-logo-above {
  margin-bottom: var(--spacing-sm);
}

.hero-logo-below {
  margin-top: var(--spacing-sm);
}

/* ============================================
   HERO TEXT BOX
   ============================================ */
.hero-text-box {
  /* Remove box styling - text directly on background */
  max-width: 900px;
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-delay: 0.2s;
}

.hero-text {
  margin: 0;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

/* Hero Subtitle */
.hero-subtitle {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Hero Description */
.hero-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ============================================
   HERO BUTTONS
   ============================================ */
.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.hero-buttons .btn {
  min-width: 180px;
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--color-white);
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition-base);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ============================================
   VIDEO CONTROLS
   ============================================ */
.hero-video-controls {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 4;
  display: flex;
  gap: var(--spacing-xs);
}

.video-control-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.video-control-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.video-control-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes animate-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 0.85;
    transform: scale(1);
  }
}

@keyframes animate-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation-name: animate-fade-in;
}

.animate-fade-in-up {
  animation-name: animate-fade-in-up;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    min-width: 160px;
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }

  .hero-logo-image {
    max-width: 250px;
  }

  .hero-logo-brand {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: calc(100vh - var(--header-height));
  }

  .hero-content {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-description {
    font-size: 0.9375rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-logo-image {
    max-width: 200px;
  }

  .hero-logo-brand {
    font-size: 1.75rem;
  }

  .scroll-indicator {
    bottom: 30px;
  }

  .hero-video-controls {
    bottom: 20px;
    right: 20px;
  }

  .video-control-btn {
    width: 36px;
    height: 36px;
  }

  /* Hide video on mobile, show image instead */
  .hero-video {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.03em;
  }

  .hero-content {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  .hero-logo-image {
    max-width: 150px;
  }

  .hero-logo-brand {
    font-size: 1.5rem;
  }

  .hero-logo-brand::after {
    bottom: -6px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-image.kenburns {
    animation: none;
  }

  .scroll-indicator {
    animation: none;
  }

  .animate-fade-in,
  .animate-fade-in-up {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-logo {
    opacity: 0.85;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }

  .hero-video,
  .scroll-indicator,
  .hero-video-controls {
    display: none;
  }
}
