/* ============================================
   BEHIND HER EYES - CINEMATIC STYLE
   ============================================ */

/* CSS Variables */
:root {
  --bg-deep: #030303;
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #737373;
  --accent-red: #e50914;
  --accent-red-glow: rgba(229, 9, 20, 0.5);
  --accent-gold: #c5a572;
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-glow: 0 0 30px rgba(229, 9, 20, 0.3);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-eye {
  width: 80px;
  height: 80px;
  border: 2px solid var(--accent-red);
  border-radius: 50%;
  margin: 0 auto 25px;
  position: relative;
  animation: pulse-eye 2s infinite;
}

.preloader-pupil {
  width: 20px;
  height: 20px;
  background: var(--accent-red);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--accent-red-glow);
}

@keyframes pulse-eye {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(229, 9, 20, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background: rgba(3, 3, 3, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.4s ease, padding 0.4s ease;
  padding: 20px 0;
}

.navbar.scrolled {
  background: rgba(3, 3, 3, 0.95);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 4px;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
}

.netflix-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-red);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.2rem;
  margin-right: 10px;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 5px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-red) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 30% 40%, #1a0a0a 0%, #030303 70%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(3,3,3,0.4) 0%, rgba(3,3,3,0.9) 80%);
  z-index: 2;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.hero-badge {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.badge-netflix {
  background: var(--accent-red);
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 3px;
}

.badge-limited {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #ccc;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 8px;
  text-shadow: 0 0 80px rgba(229, 9, 20, 0.4);
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 20%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 35px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  padding: 14px 35px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-play {
  background: var(--accent-red);
  color: white;
  border: none;
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.5);
}

.btn-play:hover {
  background: #b20710;
  box-shadow: 0 0 40px rgba(229, 9, 20, 0.8);
  transform: translateY(-3px);
  color: white;
}

.btn-more {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}

.btn-more:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  color: white;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  color: #777;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent-red));
  margin-top: 8px;
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0% { opacity: 0.4; height: 30px; }
  50% { opacity: 1; height: 40px; }
  100% { opacity: 0.4; height: 30px; }
}

/* ============================================
   GENERAL SECTIONS
   ============================================ */
.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: var(--accent-red);
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(229,9,20,0.5);
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 15px;
  font-weight: 500;
}

/* Fade Up Animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================
   TRAILER SECTION
   ============================================ */
.trailer-container {
  max-width: 960px;
  margin: 0 auto;
}

.trailer-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(229, 9, 20, 0.2);
  transition: box-shadow 0.5s ease;
}

.trailer-wrapper:hover {
  box-shadow: 0 0 90px rgba(229, 9, 20, 0.5);
}

.trailer-glow {
  position: absolute;
  inset: -5px;
  border-radius: calc(var(--border-radius-lg) + 5px);
  background: linear-gradient(45deg, var(--accent-red), transparent, var(--accent-red));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(15px);
}

.trailer-wrapper:hover .trailer-glow {
  opacity: 0.6;
}

.ratio {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

/* ============================================
   STORY SECTION
   ============================================ */
.story-image-wrapper {
  position: relative;
}

.story-image-placeholder {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.story-image-inner {
  text-align: center;
}

.story-icon {
  font-size: 5rem;
  color: var(--accent-red);
  opacity: 0.7;
  text-shadow: 0 0 40px rgba(229,9,20,0.5);
}

.story-image-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(229,9,20,0.1) 0%, transparent 70%);
}

.story-image-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 20px;
  left: 20px;
  background: var(--accent-red);
  filter: blur(40px);
  opacity: 0.1;
  z-index: -1;
  border-radius: var(--border-radius-lg);
}

.story-content .story-label {
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.story-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin: 10px 0 20px;
  font-weight: 600;
}

.story-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.story-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: #ccc;
  backdrop-filter: blur(5px);
}

/* ============================================
   CAST SECTION
   ============================================ */
.cast-card {
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 100%;
}

.cast-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 50px rgba(229, 9, 20, 0.25);
}

.cast-image {
  height: 380px;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.cast-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cast-card:hover .cast-image img {
  transform: scale(1.08);
}

.cast-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a1a2e, #1a1a2e);
}

.cast-initials {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: rgba(255,255,255,0.15);
}

.cast-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}

.cast-info {
  padding: 25px;
  position: relative;
}

.cast-actor {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.cast-character {
  color: var(--accent-red);
  font-weight: 500;
  margin-bottom: 10px;
}

.cast-character span {
  color: var(--text-secondary);
  font-weight: 400;
}

.cast-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   EPISODES SECTION
   ============================================ */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.episode-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.episode-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(229, 9, 20, 0.2);
}

.episode-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.episode-card:hover .episode-thumb img {
  transform: scale(1.1);
}

.ep-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
}

.episode-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 3rem;
  color: white;
}

.episode-card:hover .episode-overlay {
  opacity: 1;
}

.episode-number {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent-red);
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
}

.episode-duration {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0,0,0,0.8);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.episode-info {
  padding: 20px;
}

.episode-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.episode-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 250px;
  background: #1a1a1a;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #444;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(229, 9, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 2rem;
  color: white;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
  background: var(--bg-dark);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 4px;
}

.netflix-n-footer {
  background: var(--accent-red);
  color: white;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-right: 10px;
  font-family: var(--font-body);
  font-weight: 800;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.social-icon {
  color: #888;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: var(--accent-red);
  transform: translateY(-3px);
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 25px 0;
}

.footer-bottom {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  z-index: 9999;
}

.lightbox-caption {
  color: #aaa;
  margin-top: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .episodes-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
}

/* Particle styling (used in JS) */
.particle {
  position: absolute;
  background: rgba(229,9,20,0.4);
  border-radius: 50%;
  pointer-events: none;
}