/**
 * HERO VIDEO SECTION STYLES
 * Full-width background video with overlay, specialties, and CTAs
 * Responsive: Desktop (3-col) → Tablet (2-col) → Mobile (1-col)
 */

:root {
  /* Configurable overlay darkness (0.55 = 55%, 0.7 = 70%) */
  --overlay-opacity: 0.85;
  --overlay-gradient-top: rgba(0, 0, 0, 0.5);
  --overlay-gradient-bottom: rgba(0, 0, 0, 0.7);
  
  /* Colors */
  --hero-text-primary: #ffffff;
  --hero-text-secondary: #e8e8e8;
  --hero-accent: #8B4513;
  --hero-cta-primary: #8B4513;
  --hero-cta-primary-hover: #6d3510;
  --hero-cta-secondary: transparent;
  --hero-cta-secondary-border: #ffffff;
  
  /* Spacing */
  --hero-padding-desktop: 80px 60px;
  --hero-padding-tablet: 60px 40px;
  --hero-padding-mobile: 40px 20px;
}

/* ========================================
   HERO CONTAINER
   ======================================== */
.hero-video-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a; /* Fallback */
}

/* ========================================
   BACKGROUND VIDEO
   ======================================== */
.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.2);
  transform-origin: center center;
}

/* Poster/Fallback Image */
.hero-video-background.fallback-poster {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ========================================
   OVERLAY LAYERS
   ======================================== */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Dark theme tint overlay - deep blues and blacks */
.hero-overlay-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 25, 0.7) 0%,       /* Very dark blue-black */
    rgba(20, 30, 50, 0.6) 25%,      /* Dark navy */
    rgba(15, 20, 35, 0.5) 50%,      /* Dark center */
    rgba(20, 30, 50, 0.6) 75%,      /* Dark navy */
    rgba(10, 15, 25, 0.7) 100%      /* Very dark blue-black */
  );
  mix-blend-mode: multiply;
  opacity: 0.9;
}

/* Dark theme gradient overlay - strong vignette for blending */
.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    /* Dark radial vignette - very dark corners and edges */
    radial-gradient(
      ellipse 100% 90% at center center,
      transparent 0%,
      rgba(0, 0, 0, 0.3) 20%,          /* Start darkening */
      rgba(10, 15, 30, 0.5) 40%,       /* Dark blue */
      rgba(5, 10, 20, 0.75) 60%,       /* Darker */
      rgba(0, 5, 15, 0.9) 80%,         /* Very dark */
      rgba(0, 0, 0, 1) 100%            /* Solid black edges/corners */
    ),
    /* Corner darkening */
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.8) 0%,
      transparent 30%,
      transparent 70%,
      rgba(0, 0, 0, 0.8) 100%
    ),
    /* Top to bottom dark gradient */
    linear-gradient(
      180deg,
      rgba(10, 20, 40, 0.5) 0%,        /* Dark blue top */
      transparent 25%,
      transparent 75%,
      rgba(0, 0, 0, 0.7) 100%          /* Black bottom */
    );
  mix-blend-mode: multiply;
  opacity: 1;
}

/* ========================================
   CONTENT CONTAINER
   ======================================== */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  padding: var(--hero-padding-desktop);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: center;
}

/* OPTION 1: Centered Minimal Layout */
.hero-content.option-1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 60px;
  min-height: 100vh;
}

.hero-center-minimal {
  text-align: center;
  margin-bottom: auto;
  margin-top: auto;
}

.hero-headline-minimal {
  font-size: 72px;
  font-weight: 200;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.headline-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  animation: wordFadeIn 0.8s ease-out forwards;
}

.headline-word.word-1 {
  animation-delay: 0.2s;
}

.headline-word.word-2 {
  animation-delay: 0.6s;
}

.headline-word.word-3 {
  animation-delay: 1s;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f0e68c 50%,
    #daa520 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 300;
}

@keyframes wordFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
  animation: fadeInUp 1.2s ease-out;
}

.hero-badge {
  padding: 10px 20px;
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.3) 0%,
    rgba(218, 165, 32, 0.25) 25%,
    rgba(139, 69, 19, 0.2) 50%,
    rgba(205, 133, 63, 0.25) 75%,
    rgba(139, 69, 19, 0.3) 100%
  );
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(218, 165, 32, 0.3);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 
    0 4px 15px rgba(139, 69, 19, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

.hero-badge:hover {
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.4) 0%,
    rgba(218, 165, 32, 0.35) 25%,
    rgba(139, 69, 19, 0.3) 50%,
    rgba(205, 133, 63, 0.35) 75%,
    rgba(139, 69, 19, 0.4) 100%
  );
  border-color: rgba(218, 165, 32, 0.5);
  box-shadow: 
    0 6px 20px rgba(139, 69, 19, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1.5s ease-out;
}

.scroll-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
}

/* OPTION 2: Split Screen Editorial */
.hero-split-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 80%, transparent 100%);
  z-index: 2;
}

.hero-content.option-2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 80px;
}

.hero-split-panel {
  max-width: 500px;
  animation: slideInLeft 1s ease-out;
}

.hero-split-headline {
  font-size: 56px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 16px 0;
}

.hero-split-tagline {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
  margin: 0 0 40px 0;
  line-height: 1.5;
}

.hero-split-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.split-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.feature-icon {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-split-cta {
  display: inline-block;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.hero-split-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* OPTION 3: Current + Enhancements */
.hero-content.option-3 {
  position: relative;
}

.hero-logo {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 10;
  animation: fadeIn 1.5s ease-out;
}

.logo-text {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
}

.hero-accent-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: drawLine 2s ease-out 0.5s forwards;
  z-index: 1;
}

.hero-center-fade {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
}

.fade-headline {
  font-size: 42px;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.08em;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  animation: fadeInOut 8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* OPTION 4: Cinematic Full-Screen */
.hero-content.option-4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

.hero-cinematic-logo {
  position: absolute;
  bottom: 60px;
  right: 60px;
  animation: fadeIn 2s ease-out;
}

.cinematic-logo-text {
  font-size: 24px;
  font-weight: 200;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.hero-cinematic-tagline {
  text-align: center;
  animation: cinematicFade 12s ease-in-out infinite;
}

.cinematic-text {
  font-size: 48px;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

.scroll-indicator-bottom {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeIn 3s ease-out;
}

.scroll-mouse {
  width: 28px;
  height: 45px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-text-bottom {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes cinematicFade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  40% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes scrollWheel {
  0% { opacity: 0; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(12px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ========================================
   ANIMATED KEYWORDS (LEFT & RIGHT SIDES)
   ======================================== */
.hero-keywords {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  padding: 0 40px;
}

.hero-keywords-right {
  align-items: flex-end;
}

.hero-keywords-right .hero-keyword {
  padding-left: 0;
  padding-right: 20px;
  border-left: none;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  text-align: right;
}

.hero-keywords-right .hero-keyword::before {
  left: auto;
  right: 0;
}

.hero-keywords-right .hero-keyword:hover {
  padding-left: 0;
  padding-right: 24px;
  border-right-color: rgba(255, 255, 255, 0.7);
}

.hero-keyword {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: keywordFadeIn 0.8s ease-out forwards;
  position: relative;
  padding: 0;
  
  /* Elegant minimal design - no heavy frames */
  padding-left: 20px;
  
  /* Subtle elegant line on the left */
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  
  /* Clean text with elegant shadow */
  text-shadow: 
    0 2px 12px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 255, 255, 0.1);
  
  transition: all 0.4s ease;
}

/* Elegant accent line */
.hero-keyword::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transition: height 0.4s ease;
}

.hero-keyword:hover {
  color: rgba(255, 255, 255, 1);
  border-left-color: rgba(255, 255, 255, 0.7);
  padding-left: 24px;
  text-shadow: 
    0 2px 12px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(255, 255, 255, 0.2);
}

.hero-keyword:hover::before {
  height: 100%;
}

.hero-keywords-left .hero-keyword {
  text-align: left;
}

.hero-keywords-right .hero-keyword {
  text-align: right;
}

/* Fade in animation */
@keyframes keywordFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating animation */
@keyframes keywordFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ========================================
   CENTER CONTENT (HEADLINE + CTA)
   ======================================== */
.hero-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-headline {
  font-size: 56px;
  font-weight: 700;
  color: var(--hero-text-primary);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subheadline {
  font-size: 20px;
  font-weight: 400;
  color: var(--hero-text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* CTA Buttons */
.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta {
  padding: 16px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-cta-primary {
  background-color: var(--hero-cta-primary);
  color: #ffffff;
  border-color: var(--hero-cta-primary);
}

.hero-cta-primary:hover {
  background-color: var(--hero-cta-primary-hover);
  border-color: var(--hero-cta-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.hero-cta-secondary {
  background-color: var(--hero-cta-secondary);
  color: var(--hero-text-primary);
  border-color: var(--hero-cta-secondary-border);
}

.hero-cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ========================================
   RESPONSIVE: TABLET (768px - 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    padding: var(--hero-padding-tablet);
    gap: 32px;
  }
  
  .hero-keywords-left {
    grid-column: 1;
    grid-row: 1;
  }
  
  .hero-center {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  
  .hero-keywords-right {
    grid-column: 2;
    grid-row: 1;
  }
  
  .hero-keyword {
    font-size: 18px;
  }
  
  .hero-headline {
    font-size: 48px;
  }
  
  .hero-subheadline {
    font-size: 18px;
  }
}

/* ========================================
   RESPONSIVE: MOBILE (< 768px)
   ======================================== */
@media (max-width: 767px) {
  .hero-video-section {
    min-height: 100svh; /* Use svh for better mobile support */
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    padding: var(--hero-padding-mobile);
    gap: 24px;
  }
  
  .hero-center {
    order: 1;
  }
  
  .hero-keywords-left,
  .hero-keywords-right {
    order: 2;
  }
  
  .hero-headline {
    font-size: 36px;
  }
  
  .hero-subheadline {
    font-size: 16px;
  }
  
  /* Mobile: Keywords in two columns side by side */
  .hero-keywords {
    gap: 20px;
    padding: 0 10px;
  }
  
  .hero-keyword {
    font-size: 13px;
    letter-spacing: 0.03em;
    padding: 10px 16px;
    border-width: 1.5px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   ACCESSIBILITY: REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-keyword,
  .hero-cta {
    animation: none !important;
    opacity: 1 !important;
    transition: none;
  }
  
  .hero-cta:hover {
    transform: none;
  }
  
  /* Hide video, show poster only */
  .hero-video-background video {
    display: none;
  }
}

/* ========================================
   VIDEO LOADING STATE
   ======================================== */
.hero-video-section:not(.video-ready) .hero-video-background video {
  opacity: 0;
}

.hero-video-section.video-ready .hero-video-background video {
  opacity: 1;
  transition: opacity 0.5s ease-in;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
.hero-video-background video {
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Reduce backdrop-filter on low-end devices if needed */
@media (max-width: 767px) {
  .hero-specialties-item {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
