/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 19, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
}

nav.hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Limelight', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--divider);
  }

  .hamburger {
    display: flex;
  }
}

/* Skip to content */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 2000;
  text-decoration: none;
}

.skip-to-content:focus {
  top: 0;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.1) brightness(0.7);
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 19, 0.3) 0%,
    rgba(10, 14, 19, 0.5) 60%,
    rgba(10, 14, 19, 0.95) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-family: 'Limelight', serif;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--accent);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.hero-cta:hover {
  background: #ffffff;
  color: #0a0e13;
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(232, 232, 232, 0.3);
}

/* Overview Section */
.overview {
  padding: 6rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.overview-intro {
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  color: var(--text);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--accent);
  font-family: 'Limelight', serif;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline {
  max-width: 900px;
  margin: 4rem auto 0;
  padding: 2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.timeline h3 {
  margin-bottom: 2rem;
  text-align: center;
}

.timeline-items {
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--divider);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-year {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-text {
  color: var(--text-muted);
}

/* Film Section */
.film-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--divider);
}

.film-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 3rem;
}

.film-hero__bg {
  position: absolute;
  inset: 0;
}

.film-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.6);
}

.film-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 19, 0.9) 0%, rgba(10, 14, 19, 0.6) 50%, rgba(10, 14, 19, 0.3) 100%);
}

.film-hero__content {
  position: relative;
  z-index: 10;
  padding: 2rem;
  max-width: 600px;
}

.film-number {
  font-family: 'Limelight', serif;
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--accent);
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 1rem;
}

.film-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.film-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.film-ratings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 0 2rem;
}

.rating-badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.rating-badge:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.rating-source {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.rating-score {
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent);
  font-family: 'Limelight', serif;
}

.film-content {
  padding: 0 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.film-plot {
  margin: 3rem 0;
}

.film-plot h3 {
  margin-bottom: 1.5rem;
}

.film-plot p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.film-themes {
  margin: 4rem 0;
}

.film-themes h3 {
  margin-bottom: 2rem;
}

.theme-subsections {
  display: grid;
  gap: 2.5rem;
}

.theme-subsection {
  background: var(--surface-2);
  padding: 2rem;
  border-left: 4px solid var(--accent);
}

.theme-subsection h4 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.film-consensus {
  background: var(--surface-2);
  padding: 2.5rem;
  margin: 3rem 2rem;
  border: 1px solid var(--border);
}

.film-consensus blockquote {
  margin: 0;
}

.film-characters {
  margin: 3rem 2rem 0;
}

.film-characters h3 {
  margin-bottom: 2rem;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.character-card {
  background: var(--surface-2);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.character-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-4px);
}

.character-name {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.character-actor {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--divider);
}

.character-role {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.character-bio {
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Franchise Themes Section */
.franchise-themes {
  padding: 6rem 2rem;
  background: var(--surface);
}

.franchise-themes h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.theme-card {
  background: var(--surface-2);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.theme-number {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.6;
  font-weight: 400;
  margin-bottom: 1rem;
  font-family: 'Limelight', serif;
}

.theme-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.theme-card p {
  line-height: 1.8;
  font-size: 0.95rem;
}

.comparison-table {
  max-width: 1100px;
  margin: 3rem auto 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

th {
  background: var(--surface);
  padding: 1.5rem;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}

td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--divider);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(232, 232, 232, 0.05);
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-title {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.footer-sources {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 2rem 0;
  margin: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-sources p {
  margin-bottom: 0.5rem;
}

.footer-attribution {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 2rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

/* Box office comparison table */
.box-office-table {
  max-width: 900px;
  margin: 3rem auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .hero {
    margin-top: 50px;
  }

  .film-hero {
    min-height: 250px;
  }

  .film-number {
    font-size: 3rem;
  }

  .film-title {
    font-size: 1.5rem;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 2rem;
  }

  .themes-grid {
    grid-template-columns: 1fr;
  }

  .rating-badge {
    padding: 1rem;
  }

  .overview {
    padding: 3rem 1.5rem;
  }

  .film-section {
    padding: 2rem 0;
  }

  .film-content {
    padding: 0 1.5rem;
  }

  .film-ratings {
    padding: 0 1.5rem;
  }

  .film-consensus {
    padding: 1.5rem;
    margin: 2rem 1.5rem;
  }

  .film-characters {
    margin: 2rem 1.5rem 0;
  }

  .franchise-themes {
    padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }
}
