/* PC Hero - Netflix-style immersive video hero section */

:root {
  --pc-hero-title-font: Georgia, Times, "Times New Roman", serif;
  --pc-hero-subtitle-font: Georgia, Times, "Times New Roman", serif;
  --pc-hero-paragraph-font: Arial, sans-serif;
  --pc-hero-title-size: 3.5rem;
  --pc-hero-subtitle-size: 1.5rem;
  --pc-hero-paragraph-size: 21px;
  --pc-hero-text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Hero Container */
.pc-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: 1;
}

/* Video Background */
.pc-hero__video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  overflow: hidden;
}

.pc-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08);
  transition: transform 20s ease-out, opacity 0.8s ease-out;
  opacity: 0.75;
  filter: blur(0.5px) contrast(0.9) brightness(0.85);
}

.pc-hero__video.loaded {
  transform: scale(1.03);
  opacity: 0.8;
}

.pc-hero__video.ready {
  opacity: 0.85;
}

/* Netflix-style Multi-layer Overlay System - Enhanced Immersion */
.pc-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.85) 25%,
    rgba(0, 0, 0, 0.65) 50%,
    rgba(0, 0, 0, 0.35) 75%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.pc-hero__overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 15%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.35) 70%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 1;
}

.pc-hero__overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(
      ellipse at center,
      transparent 0%,
      rgba(0, 0, 0, 0.1) 30%,
      rgba(0, 0, 0, 0.3) 60%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    radial-gradient(
      ellipse at center left,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.35) 60%,
      rgba(0, 0, 0, 0.75) 100%
    );
  z-index: 2;
}

/* Content Container */
.pc-hero__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 4rem 8rem 4rem;
  box-sizing: border-box;
  z-index: 10;
}

.pc-hero__text {
  max-width: 45%;
  min-width: 400px;
  transform: translateY(-2rem);
  animation: netflixFadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

/* Typography */
.pc-hero__title {
  font-family: var(--pc-hero-title-font);
  font-size: var(--pc-hero-title-size);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.03em;
  text-rendering: optimizeLegibility;
  animation-delay: 0.3s;
}

.pc-hero__subtitle {
  font-family: var(--pc-hero-subtitle-font);
  font-size: var(--pc-hero-subtitle-size);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 2rem 0;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.7);
  opacity: 0.95;
  letter-spacing: -0.01em;
  animation-delay: 0.6s;
}

.pc-hero__paragraph {
  font-family: var(--pc-hero-paragraph-font);
  font-size: var(--pc-hero-paragraph-size);
  font-weight: 400;
  line-height: 1.65;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.6);
  opacity: 0.92;
  max-width: 550px;
  animation-delay: 0.9s;
}

/* Netflix-style Animations */
@keyframes netflixFadeIn {
  0% {
    opacity: 0;
    transform: translateY(3rem) scale(0.95);
  }
  60% {
    opacity: 0.8;
    transform: translateY(1rem) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes videoZoom {
  0% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1.02);
  }
}

/* Apply staggered animations to text elements */
.pc-hero__title,
.pc-hero__subtitle,
.pc-hero__paragraph {
  animation: netflixFadeIn 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

/* Netflix-style Loading States */
.pc-hero.video-loading {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.pc-hero.video-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: netflixSpin 1s linear infinite;
  z-index: 10;
}

@keyframes netflixSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.pc-hero.video-loaded .pc-hero__video {
  animation: videoZoom 25s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate;
}

.pc-hero.video-error {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Enhanced Netflix-style Responsive Design */
@media (max-width: 1200px) {
  .pc-hero__content {
    padding: 0 3rem 6rem 3rem;
  }
  
  .pc-hero__text {
    max-width: 55%;
    min-width: 350px;
  }
  
  .pc-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.2rem;
  }
  
  .pc-hero__subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1.8rem;
  }
  
  .pc-hero__paragraph {
    font-size: clamp(18px, 2.5vw, 21px);
    max-width: 480px;
  }
}

@media (max-width: 968px) {
  .pc-hero__content {
    padding: 1.5rem;
  }
  
  .pc-hero__text {
    max-width: 70%;
  }
  
  .pc-hero__title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 0.8rem;
  }
  
  .pc-hero__subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-bottom: 1rem;
  }
  
  .pc-hero__paragraph {
    font-size: clamp(16px, 3vw, 18px);
  }
}

@media (max-width: 768px) {
  .pc-hero {
    height: 100vh;
    min-height: 100vh;
  }
  
  .pc-hero__content {
    align-items: flex-end;
    padding: 1rem 2rem 4rem 2rem;
  }
  
  .pc-hero__text {
    max-width: 100%;
    min-width: auto;
    transform: translateY(-1rem);
  }
  
  .pc-hero__title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 0.8rem;
    font-weight: 800;
    line-height: 1.1;
  }
  
  .pc-hero__subtitle {
    font-size: clamp(1rem, 5vw, 1.2rem);
    margin-bottom: 1rem;
  }
  
  .pc-hero__paragraph {
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.5;
    max-width: 100%;
  }
  
  /* Mobile Netflix-style overlay adjustment - More subdued */
  .pc-hero__overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.88) 30%,
      rgba(0, 0, 0, 0.70) 60%,
      rgba(0, 0, 0, 0.45) 85%,
      rgba(0, 0, 0, 0.25) 100%
    );
  }
  
  .pc-hero__video {
    opacity: 0.7;
    filter: blur(0.8px) contrast(0.85) brightness(0.8);
  }
}

@media (max-width: 480px) {
  .pc-hero__content {
    padding: 0.8rem;
    padding-bottom: 2rem;
  }
  
  .pc-hero__title {
    font-size: clamp(1.5rem, 9vw, 1.8rem);
    margin-bottom: 0.5rem;
  }
  
  .pc-hero__subtitle {
    font-size: clamp(0.8rem, 6vw, 1rem);
    margin-bottom: 0.6rem;
  }
  
  .pc-hero__paragraph {
    font-size: clamp(13px, 4.5vw, 15px);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .pc-hero__overlay {
    background-color: rgba(0, 0, 0, 0.7) !important;
  }
  
  .pc-hero__title,
  .pc-hero__subtitle,
  .pc-hero__paragraph {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .pc-hero__text {
    animation: none;
  }
  
  .pc-hero__video {
    animation: none;
  }
}

/* Focus Styles */
.pc-hero:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

/* Print Styles */
@media print {
  .pc-hero {
    height: auto;
    min-height: 50vh;
    page-break-inside: avoid;
  }
  
  .pc-hero__video-container {
    display: none;
  }
  
  .pc-hero__overlay {
    background-color: #f0f0f0 !important;
  }
  
  .pc-hero__title,
  .pc-hero__subtitle,
  .pc-hero__paragraph {
    color: #000 !important;
    text-shadow: none !important;
  }
}