/* ========================================
   GLOBAL STYLES & RESET
======================================== */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

/* ========================================
   ROOT VARIABLES
======================================== */
:root {
  /* Brand */
  --primary-purple: #7c3aed;
  --primary-magenta: #c026d3;
  --accent-gold: #fbbf24;
  --netflix-red: #e50914;

  /* Backgrounds */
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: #1a1a1a;
  --bg-card-hover: #252525;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #e5e5e5;
  --text-muted: #a0a0a0;

  /* Fonts */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', Arial, sans-serif;

  /* Layout */
  --container-width: 1400px;
  --section-padding: 80px 20px;

  /* Effects */
  --soft-glow: 0 0 30px rgba(124,58,237,0.25);
  --gold-glow: 0 0 25px rgba(251,191,36,0.35);
}

/* ========================================
   BASE
======================================== */
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   HEADER
======================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124,58,237,0.25);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
}

.logo-text {
  background: linear-gradient(135deg,var(--primary-purple),var(--primary-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========================================
   NAV
======================================== */
.main-nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary-purple);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* ========================================
   HERO
======================================== */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);
  overflow: hidden;
  animation: hero-breathe 12s ease-in-out infinite;
}

@keyframes hero-breathe {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.05); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 64px;
  background: linear-gradient(135deg,#fff,var(--primary-purple),var(--primary-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin: 20px 0 40px;
}

/* ========================================
   SECTION HEADERS
======================================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 48px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  display: block;
  margin: 14px auto 0;
  background: linear-gradient(90deg,transparent,var(--accent-gold),transparent);
  box-shadow: var(--gold-glow);
}

.section-subtitle {
  color: var(--text-secondary);
  margin-top: 10px;
}

/* ========================================
   CASSETTE
======================================== */
.cassette-section {
  padding: var(--section-padding);
  background: var(--bg-darker);
}

.cassette-wrapper {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.cassette {
  width: 300px;
  position: relative;
}

.cassette-img {
  width: 100%;
  height: 450px;
  border-radius: 14px;
  box-shadow: var(--soft-glow);
  cursor: pointer;
  transition: transform 0.4s;
  position: relative;
  overflow: hidden;
}

.cassette-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,transparent 40%,rgba(255,255,255,0.15),transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.cassette-img:hover {
  transform: scale(1.06) rotate(1.5deg);
}

.cassette-img:hover::after {
  transform: translateX(100%);
}

/* ========================================
   BUTTONS
======================================== */
button {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle,rgba(255,255,255,0.25),transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

button:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg,var(--primary-purple),var(--primary-magenta));
  border: none;
  color: #fff;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(124,58,237,0.5);
}

/* ========================================
   MOVIE CARDS
======================================== */
.magic-movie-card {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s;
  transform-style: preserve-3d;
}

.magic-movie-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px rgba(124,58,237,0.5);
}

.magic-movie-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s;
}

.magic-movie-card:hover img {
  transform: scale(1.08);
}

.magic-movie-card h4 {
  padding: 15px;
  font-size: 18px;
  color: #fff;
}

.magic-movie-card .year {
  padding: 0 15px;
  color: var(--accent-gold);
}

.magic-movie-card .reason {
  padding: 10px 15px 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========================================
   FOOTER
======================================== */
.main-footer {
  background: var(--bg-darker);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(124,58,237,0.25);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  color: var(--text-muted);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
  .hero-title { font-size: 40px; }
  .cassette-wrapper { flex-direction: column; }
}
