/* 🌑 Default (Dark Mode) — Netflix Style */
:root {
  --oc-bg: #000000;
  --oc-card: #111111;
  --oc-text: #f5f5f5;
  --oc-primary: #e50914;  /* Netflix Red */
  --oc-primary-2: #b20710;
  --oc-accent: #ff3d3d;
  --oc-border: rgba(255,255,255,0.1);
}

/* Base styles */
html, body {
  background: var(--oc-bg);
  color: var(--oc-text);
  font-family: 'Inter', 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ✅ Responsive Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

/* Navbar */
.navbar {
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--oc-border);
  color: var(--oc-text);
  padding: 1rem 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}
.navbar a {
  color: var(--oc-text);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}
.navbar a:hover {
  color: var(--oc-primary);
}
.navbar .logo {
  color: var(--oc-primary);
  font-weight: 700;
  font-size: 1.6rem;
  text-decoration: none;
}

/* Mobile Navbar */
#navToggle {
  display: none;
  background: none;
  border: none;
  color: var(--oc-primary);
  font-size: 1.8em;
  cursor: pointer;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--oc-card);
    position: absolute;
    top: 65px;
    right: 15px;
    border-radius: 10px;
    padding: 10px;
    width: 200px;
  }
  .nav-links.active {
    display: flex;
  }
  #navToggle {
    display: block;
  }
}

/* Buttons */
.btn-gradient {
  background: linear-gradient(135deg, var(--oc-primary), var(--oc-primary-2));
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
}
.btn-gradient:hover {
  filter: brightness(1.15);
}
.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
}
.btn-outline-light:hover {
  background: var(--oc-primary);
  border-color: var(--oc-primary);
  color: #fff;
}

/* Cards */
.card {
  background: var(--oc-card);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(229, 9, 20, 0.1);
  color: var(--oc-text);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 50px rgba(229, 9, 20, 0.3);
}

/* 🎬 Hero Section — Visibility Fix */
.hero {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(229, 9, 20, 0.25) 90%), #000;
  color: #fff;
  padding: 3rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.hero h1,
.hero p,
.hero .badge-soft {
  color: #fff !important;
}

/* 🌕 Light Mode Hero — Soft Red Tint */
.light-mode .hero {
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(229,9,20,0.05)), #fff;
  color: #111 !important;
}
.light-mode .hero h1,
.light-mode .hero p,
.light-mode .hero .badge-soft {
  color: rgba(229, 9, 20, 0.85) !important;
  text-shadow: 0 1px 6px rgba(229, 9, 20, 0.15);
}
.light-mode .hero .btn-outline-light {
  border: 2px solid rgba(229, 9, 20, 0.85);
  color: rgba(229, 9, 20, 0.85);
}
.light-mode .hero .btn-outline-light:hover {
  background: var(--oc-primary);
  border-color: var(--oc-primary);
  color: #fff;
}

/* 🎞️ Homepage Carousel */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  margin: auto;
  border-radius: 12px;
  border: 2px solid var(--oc-primary);
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.4);
}

.carousel-track {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
}

.carousel-item {
  flex: 0 0 100%;
  text-align: center;
}

.carousel-media {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.5s ease;
}
.carousel-media:hover {
  transform: scale(1.02);
}

/* Mobile */
@media (max-width: 768px) {
  .carousel-media {
    max-height: 250px;
  }
}

/* Footer */
.footer {
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  text-align: center;
  padding: 2rem 1rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.footer a {
  color: var(--oc-primary);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Sponsor Cards */
.sponsor-card .card {
  background: #141414;
  color: #fff;
  border: 1px solid rgba(255, 0, 0, 0.2);
}
.hover-zoom:hover {
  transform: scale(1.05);
  transition: all .3s ease;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

/* 🌕 Light Mode (White + Red Theme) */
.light-mode {
  --oc-bg: #ffffff;
  --oc-card: #f8f9fa;
  --oc-text: #141414;
  --oc-primary: #e50914;
  --oc-primary-2: #ff4444;
  --oc-border: rgba(0, 0, 0, 0.1);
}
.light-mode body {
  background: var(--oc-bg);
  color: var(--oc-text);
}
.light-mode .navbar {
  background: #fff;
  color: #141414;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.light-mode .navbar a {
  color: #141414;
}
.light-mode .navbar a:hover {
  color: var(--oc-primary);
}
.light-mode .card {
  background: var(--oc-card);
  color: var(--oc-text);
  border: 1px solid rgba(255, 0, 0, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.light-mode .footer {
  background: #f8f9fa;
  color: #141414;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.light-mode .footer a {
  color: var(--oc-primary);
}

/* Toggle Button */
#themeToggle {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--oc-text);
  transition: color 0.3s ease;
}
.light-mode #themeToggle {
  color: var(--oc-primary);
}

/* ✅ Responsive Design for Phones */
img, video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
h1, h2, h3, h4, h5, h6, p {
  word-break: break-word;
}
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  p { font-size: 0.95rem; }
  .btn-gradient, .btn-outline-light {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* 🎬 CINEMATIC BACKGROUND EFFECT */
body.cinematic-bg {
  background: url('/assets/images/netflix-bg.jpg') center/cover no-repeat fixed;
  position: relative;
  overflow-x: hidden;
  transition: background 1s ease, color 0.6s ease;
  animation: fadeInBackground 1.5s ease-in-out both, bgSlowMove 25s ease-in-out infinite;
}
body.cinematic-bg::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.85), rgba(0,0,0,0.9));
  z-index: -1;
  opacity: 0;
  animation: fadeOverlay 1.5s ease forwards;
}
.light-mode.cinematic-bg::before {
  background: linear-gradient(to bottom right, rgba(255,255,255,0.7), rgba(255,255,255,0.85));
}
@keyframes fadeInBackground {
  from { opacity: 0; filter: brightness(0.5); }
  to { opacity: 1; filter: brightness(1); }
}
@keyframes fadeOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bgSlowMove {
  0% { background-position: center; }
  50% { background-position: center 10px; }
  100% { background-position: center; }
}
