/**
 * Hero Video Section Styles
 * DynamiDoxa - Optimized & Modern CSS
 * 
 * @package Astra Child
 * @since 1.0.0
 */

/* ══════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════ */

.dd-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dd-dark, #0A1628); /* Fallback color */
}

/* ══════════════════════════════════════════════════════════
   VIDEO BACKGROUND
   ══════════════════════════════════════════════════════════ */

.dd-hero__video {
  position: absolute;
  inset: 0; /* Modern alternative to top/left/right/bottom: 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none; /* Disable interaction with video */
}

/* Video optimization for performance */
.dd-hero__video {
  will-change: transform; /* GPU acceleration hint */
}

/* ══════════════════════════════════════════════════════════
   OVERLAY
   ══════════════════════════════════════════════════════════ */

.dd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.7) 0%,
    rgba(10, 22, 40, 0.5) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   CONTENT
   ══════════════════════════════════════════════════════════ */

.dd-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding-inline: clamp(1rem, 5vw, 2rem); /* Modern responsive padding */
  max-width: min(1200px, 90vw); /* Modern responsive max-width */
}

/* ══════════════════════════════════════════════════════════
   TITLE & SUBTITLE
   ══════════════════════════════════════════════════════════ */

.dd-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Fluid typography */
  font-weight: 700;
  margin-block-end: 1.5rem; /* Modern logical properties */
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out;
}

.dd-hero__subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-block-end: 2.5rem;
  color: var(--dd-primary, #00D9FF);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */

.dd-hero__buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.dd-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

/* Primary Button */
.dd-btn--primary {
  background: var(--dd-primary, #00D9FF);
  color: var(--dd-dark, #0A1628);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

.dd-btn--primary:hover,
.dd-btn--primary:focus-visible {
  background: var(--dd-accent, #00E5FF);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.6);
}

.dd-btn--primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.dd-btn--secondary {
  background: transparent;
  color: white;
  border: 2px solid var(--dd-primary, #00D9FF);
}

.dd-btn--secondary:hover,
.dd-btn--secondary:focus-visible {
  background: rgba(0, 217, 255, 0.1);
  border-color: var(--dd-accent, #00E5FF);
  transform: translateY(-2px);
}

.dd-btn--secondary:active {
  transform: translateY(0);
}

/* Focus styles for accessibility */
.dd-btn:focus-visible {
  outline: 3px solid rgba(0, 217, 255, 0.6);
  outline-offset: 4px;
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .dd-hero__title,
  .dd-hero__subtitle,
  .dd-hero__buttons {
    animation: none;
  }
  
  .dd-btn {
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE - TABLET
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .dd-hero {
    min-height: 500px;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .dd-hero {
    min-height: 600px;
    height: auto;
  }
  
  .dd-hero__buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .dd-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ══════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════ */

@media print {
  .dd-hero__video,
  .dd-hero__overlay {
    display: none;
  }
  
  .dd-hero {
    min-height: auto;
    background: white;
    color: black;
  }
  
  .dd-hero__content {
    color: black;
  }
}
