/*
Theme Name: Srinivasaa Silver Screen
Theme URI: https://srinivasaasilverscreen.com
Author: Srinivasaa Silver Screen
Author URI: https://srinivasaasilverscreen.com
Description: Premium cinematic WordPress theme for Srinivasaa Silver Screen Telugu film production house. Features a luxury dark-gold aesthetic with dynamic ACF-powered content management.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: srinivasaa
Tags: entertainment, film, production, dark, luxury, cinematic, gold, responsive, custom-background, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Core Palette */
  --gold:           #C9A84C;
  --gold-light:     #E8C96A;
  --gold-dark:      #A07830;
  --gold-glow:      rgba(201, 168, 76, 0.25);
  --black:          #0A0A0A;
  --black-rich:     #060606;
  --dark-1:         #111111;
  --dark-2:         #181818;
  --dark-3:         #222222;
  --dark-4:         #2A2A2A;
  --light-1:        #F5F0E8;
  --light-2:        #EDE8DC;
  --light-muted:    #B0A898;
  --white:          #FFFFFF;

  /* Typography */
  --font-display:   'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-heading:   'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body:      'Lato', 'Open Sans', Arial, sans-serif;
  --font-accent:    'Cinzel', Georgia, serif;
  --font-script:    'Great Vibes', cursive;

  /* Spacing Scale */
  --space-xs:       0.5rem;
  --space-sm:       1rem;
  --space-md:       1.5rem;
  --space-lg:       2.5rem;
  --space-xl:       4rem;
  --space-2xl:      6rem;
  --space-3xl:      8rem;

  /* Layout */
  --container-max:  1600px;
  --container-pad:  clamp(1.5rem, 5vw, 4rem);

  /* Transitions */
  --trans-fast:     0.2s ease;
  --trans-base:     0.35s ease;
  --trans-slow:     0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans-cinematic: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-gold:    0 0 30px rgba(201, 168, 76, 0.3);
  --shadow-card:    0 20px 60px rgba(0,0,0,0.5);
  --shadow-deep:    0 40px 80px rgba(0,0,0,0.7);

  /* Border Radius */
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      16px;

  /* Z-indices */
  --z-base:         1;
  --z-above:        10;
  --z-header:       100;
  --z-modal:        200;
  --z-overlay:      300;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--light-1);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--trans-base); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
}

.section-title--light {
  color: var(--black);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-pad {
  padding-block: var(--space-2xl);
}

.section-pad--lg {
  padding-block: var(--space-3xl);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: translateX(-105%);
  transition: transform var(--trans-slow);
  z-index: -1;
}

.btn:hover::before { transform: translateX(0); }

.btn--gold {
  color: var(--gold);
  border-color: var(--gold);
}

.btn--gold:hover {
  color: var(--black);
}

.btn--white {
  color: var(--white);
  border-color: var(--white);
}

.btn--white:hover {
  color: var(--black);
}

.btn--solid-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 800;
}

.btn--solid-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  transition: background var(--trans-slow), backdrop-filter var(--trans-slow), padding var(--trans-base);
  padding-block: 1.5rem;
}

.site-header.scrolled {
  background: rgba(6, 6, 6, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-block: 1rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .logo-main {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.logo-text .logo-sub {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--light-muted);
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-1);
  padding: 0.5rem 0.875rem;
  position: relative;
  transition: color var(--trans-base);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width var(--trans-base);
}

.primary-nav a:hover,
.primary-nav a.current-menu-item { color: var(--gold); }

.primary-nav a:hover::after,
.primary-nav a.current-menu-item::after { width: calc(100% - 1.75rem); }

/* Header Social Icons */
.header-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--light-muted);
  font-size: 0.875rem;
  transition: all var(--trans-base);
}

.header-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: var(--shadow-gold);
}

/* Mobile Menu Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: calc(var(--z-header) + 10);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--trans-base);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--black-rich);
  z-index: calc(var(--z-header) + 5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--trans-slow), visibility var(--trans-slow);
  padding: 4rem 1.5rem;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

/* Close (X) button — top right of the overlay */
.mobile-nav-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.10);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold);
  cursor: pointer;
  transition: background var(--trans-base), transform var(--trans-base);
}
.mobile-nav-close svg { width: 22px; height: 22px; }
.mobile-nav-close:hover,
.mobile-nav-close:active {
  background: rgba(201, 168, 76, 0.22);
  transform: rotate(90deg);
}

/* Menu links wrapper for clean centred column */
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  text-transform: none;
  transition: color var(--trans-base);
  position: relative;
}

.mobile-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width var(--trans-base);
}

.mobile-nav a:hover,
.mobile-nav a:active { color: var(--gold); }
.mobile-nav a:hover::after,
.mobile-nav a:active::after { width: 28px; }

.mobile-nav-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.mobile-nav-social a {
  font-size: 1.25rem;
  color: var(--light-muted);
}
.mobile-nav-social a::after { display: none; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.swiper-slide-active .hero-slide__bg {
  transform: scale(1);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 6, 6, 0.85) 0%,
    rgba(6, 6, 6, 0.6) 50%,
    rgba(6, 6, 6, 0.2) 100%
  );
}

.hero-slide__content {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 100%;
  padding-inline: var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}

.hero-slide__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--trans-cinematic) 0.2s;
}

.hero-slide__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--trans-cinematic) 0.4s;
}

.hero-slide__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-2);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--trans-cinematic) 0.6s;
}

.hero-slide__cta {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--trans-cinematic) 0.8s;
}

.swiper-slide-active .hero-slide__eyebrow,
.swiper-slide-active .hero-slide__title,
.swiper-slide-active .hero-slide__subtitle,
.swiper-slide-active .hero-slide__cta {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Side Text */
.hero-side-text {
  position: absolute;
  left: 2rem;
  bottom: 30%;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* Hero Pagination */
.hero-section .swiper-pagination {
  bottom: 2.5rem;
}

.hero-section .swiper-pagination-bullet {
  width: 30px;
  height: 3px;
  border-radius: 0;
  background: rgba(255,255,255,0.4);
  opacity: 1;
  transition: all var(--trans-base);
}

.hero-section .swiper-pagination-bullet-active {
  background: var(--gold);
  width: 60px;
}

/* ============================================================
   FILMOGRAPHY SECTION
   ============================================================ */
.filmography-section {
  background: var(--light-2);
  padding-block: var(--space-2xl);
}

.filmography-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: 1rem;
}

.filmography-header .section-title { color: var(--black); }

.view-all-link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--trans-base);
  flex-shrink: 0;
  padding-bottom: 0.5rem;
}

.view-all-link:hover { gap: 1rem; color: var(--gold-dark); }

/* Film Cards */
.films-swiper {
  overflow: visible;
  padding-bottom: var(--space-lg);
}

.film-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 2/3;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.film-card__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

.film-card:hover .film-card__poster {
  transform: scale(1.08);
}

.film-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,6,6,0.95) 0%,
    rgba(6,6,6,0.4) 40%,
    transparent 70%
  );
  opacity: 0.7;
  transition: opacity var(--trans-base);
}

.film-card:hover .film-card__overlay { opacity: 1; }

.film-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 1rem;
}

.film-card__title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.film-card__year {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--light-muted);
  letter-spacing: 0.05em;
}

/* Film Swiper navigation */
.films-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.swiper-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: all var(--trans-base);
  flex-shrink: 0;
}

.swiper-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.swiper-btn.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ============================================================
   UPCOMING PROJECTS SECTION
   ============================================================ */
.upcoming-section {
  background: var(--black);
  padding-block: var(--space-2xl);
}

.upcoming-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: start;
}

.upcoming-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
}

.upcoming-intro .section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.project-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--trans-slow);
}

.project-card:hover .project-card__bg {
  transform: scale(1.06);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.1) 100%
  );
}

.project-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.project-card__meta {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.8;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--light-2);
  padding-block: var(--space-2xl);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.2;
  z-index: 0;
}

.about-image {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-deep);
}

.about-content { color: var(--black); }

.about-content .section-eyebrow { color: var(--gold-dark); }
.about-content .section-eyebrow::after { background: var(--gold-dark); }

.about-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.about-role {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-muted);
  margin-bottom: 1.5rem;
}

.about-text {
  color: #444;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.about-signature {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--gold-dark);
  margin-bottom: 2rem;
}

/* About Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.stat-icon {
  font-size: 1.5rem;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light-muted);
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
  background: var(--dark-2);
  padding-block: var(--space-2xl);
}

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item:nth-child(1) {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

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

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,6,6,0.6);
  opacity: 0;
  display: grid;
  place-items: center;
  transition: opacity var(--trans-base);
}

.gallery-item__overlay svg {
  color: var(--white);
  width: 32px;
  height: 32px;
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-base);
  padding: 2rem;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--trans-base);
}

.lightbox__close:hover { background: var(--gold); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1rem;
  width: 100%;
  padding-inline: 1.5rem;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox__nav button {
  pointer-events: all;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.25rem;
  transition: background var(--trans-base);
}

.lightbox__nav button:hover { background: var(--gold); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--black-rich);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.footer-main {
  padding-block: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
}

.footer-brand .site-logo { margin-bottom: 1.25rem; }

.footer-tagline {
  font-size: 0.875rem;
  color: var(--light-muted);
  line-height: 1.8;
  max-width: 260px;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--light-muted);
  font-size: 0.875rem;
  transition: all var(--trans-base);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--light-muted);
  transition: color var(--trans-base);
}

.footer-links a:hover { color: var(--gold); }

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
}

.footer-contact-item span {
  font-size: 0.875rem;
  color: var(--light-muted);
  line-height: 1.6;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  color: var(--white);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--trans-base);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.newsletter-form input:focus {
  border-color: var(--gold);
}

.newsletter-form input::placeholder { color: var(--light-muted); }

.newsletter-form button {
  background: var(--gold);
  color: var(--black);
  padding: 0.75rem 1rem;
  display: grid;
  place-items: center;
  transition: background var(--trans-base);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  flex-shrink: 0;
}

.newsletter-form button:hover { background: var(--gold-light); }

/* Footer Bottom */
.footer-bottom {
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--trans-base);
}

.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="fade-left"] {
  transform: translateX(-40px);
}

[data-animate="fade-right"] {
  transform: translateX(40px);
}

[data-animate="scale"] {
  transform: scale(0.92);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0) scale(1);
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* ============================================================
   INNER PAGE — PAGE HERO
   ============================================================ */
.page-hero {
  height: 45vh;
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 0%, rgba(6,6,6,0.6) 60%, rgba(6,6,6,0.3) 100%);
}

.page-hero__content { position: relative; z-index: 2; }

.page-hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--white);
}

.page-hero__breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-muted);
}

.page-hero__breadcrumb a { color: var(--gold); }
.page-hero__breadcrumb span { color: var(--light-muted); }

/* ============================================================
   FILMS ARCHIVE
   ============================================================ */
.films-archive {
  background: var(--black);
  padding-block: var(--space-xl);
}

.films-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   SINGLE FILM
   ============================================================ */
.single-film {
  background: var(--black);
  min-height: 100vh;
}

.film-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  padding-block: var(--space-xl);
  align-items: start;
}

.film-detail__poster {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep);
}

.film-detail__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.film-detail__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--white);
}

.film-detail__year {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: -1rem;
}

.film-detail__desc {
  color: var(--light-muted);
  line-height: 1.9;
  max-width: 600px;
}

.film-detail__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  background: var(--black);
  padding-block: var(--space-xl);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  outline: none;
  border-radius: var(--radius-sm);
  transition: border-color var(--trans-base);
  width: 100%;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.3); }

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1.5rem;
  height: 280px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(80%) invert(90%);
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-page {
  background: var(--black);
  padding-block: var(--space-xl);
}

.gallery-masonry {
  columns: 4;
  column-gap: 0.75rem;
}

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  aspect-ratio: unset;
  height: auto;
}

.gallery-masonry .gallery-item__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   GOLD DIVIDER
   ============================================================ */
.gold-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-bottom: 1.5rem;
}

/* ============================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--black);
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 9999;
  transition: top var(--trans-fast);
}

.skip-link:focus { top: 1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .upcoming-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-image { max-width: 100%; }

  .film-detail {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-masonry { columns: 3; }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }

  .primary-nav,
  .header-social { display: none; }

  .hamburger { display: flex; }

  .hero-slide__title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

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

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-masonry { columns: 2; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .films-archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-side-text { display: none; }

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

  .gallery-masonry { columns: 1; }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .filmography-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   v1.0.2 POLISH LAYER
   Refinements added after first stakeholder review.
   Targets: hero readability over placeholders, mobile experience,
   side-text positioning, film card scale, and overall polish for
   production-house demo.
   ============================================================ */

/* --- Hero: stronger left-side gradient so the headline always wins,
       regardless of the background image (placeholder or real photo). */
.hero-slide__overlay {
  background: linear-gradient(
    100deg,
    rgba(6, 6, 6, 0.92) 0%,
    rgba(6, 6, 6, 0.78) 35%,
    rgba(6, 6, 6, 0.40) 65%,
    rgba(6, 6, 6, 0.15) 100%
  );
}

/* Add a second subtle bottom-to-top fade to give the pagination dots
   contrast against any image. */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(6,6,6,0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-slide__content,
.hero-section .swiper-pagination,
.hero-side-text { z-index: 3; }

/* Pull the headline up slightly so it sits in the visual sweet-spot. */
.hero-slide__content { bottom: 18%; }

/* Side text — sit comfortably mid-screen on all viewports. */
.hero-side-text {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}

/* --- Films: slightly tighter posters, more breathing room. */
.film-card { border-radius: 4px; }
.film-card__poster { transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.film-card:hover .film-card__poster { transform: scale(1.04); }

/* --- Project cards: subtle gold border on hover for "premium" feel. */
.project-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

/* --- Gallery items: small lift on hover. */
.gallery-item { transition: transform 0.4s ease; }
.gallery-item:hover { transform: translateY(-3px); }

/* ============================================================
   TABLET (≤1024px) — touch-friendly tap targets and spacing.
   ============================================================ */
@media (max-width: 1024px) {
  .hero-section {
    height: min(90vh, 820px);
    min-height: 540px;
  }
}

/* ============================================================
   MOBILE (≤768px) — production-quality phone experience.
   This block fixes everything visible on a phone.
   ============================================================ */
@media (max-width: 768px) {
  /* Hero: shorter, never crops headline, side text hidden earlier. */
  .hero-section {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .hero-slide {
    min-height: 620px;
    height: 88vh;
    max-height: 760px;
  }

  /* The placeholder icon sits on the right; on phones the headline goes
     full-width, so make the overlay almost opaque to keep the placeholder
     from bleeding through behind the text. */
  .hero-slide__overlay {
    background: linear-gradient(
      180deg,
      rgba(6, 6, 6, 0.78) 0%,
      rgba(6, 6, 6, 0.85) 60%,
      rgba(6, 6, 6, 0.92) 100%
    );
  }

  .hero-slide__content {
    bottom: 12%;
    padding-inline: 1.25rem;
  }

  .hero-slide__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    margin-bottom: 0.85rem;
  }

  .hero-slide__title {
    font-size: clamp(2.1rem, 8.5vw, 3rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
    max-width: 100%;
  }

  .hero-slide__subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.75rem;
    line-height: 1.6;
  }

  /* Side "TELUGU CINEMA" text — hide earlier on phones since it's
     hard to fit gracefully on narrow viewports. */
  .hero-side-text { display: none; }

  /* Pagination — tighter, more obvious. */
  .hero-section .swiper-pagination { bottom: 1.5rem; }
  .hero-section .swiper-pagination-bullet { width: 18px; }
  .hero-section .swiper-pagination-bullet-active { width: 40px; }

  /* Filmography — section spacing + bigger nav arrows. */
  .filmography-header {
    margin-bottom: 1.5rem;
    gap: 0.5rem;
  }
  .filmography-header .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.15;
  }
  .filmography-header .view-all-link { font-size: 0.7rem; }

  .films-swiper { padding-bottom: 0.5rem; }

  /* Larger film cards on phones — easier to tap, more impactful. */
  .films-swiper .swiper-slide { width: 75% !important; max-width: 280px; }
  .film-card__title { font-size: 0.95rem; }
  .film-card__year  { font-size: 0.75rem; }

  /* Films nav arrows — push them right and make them clearly tappable. */
  .films-nav {
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }
  .films-nav .swiper-btn {
    width: 44px; height: 44px;
  }

  /* Upcoming projects — single column, taller cards, gold accent border. */
  .upcoming-grid { grid-template-columns: 1fr; gap: 1rem; }
  .upcoming-inner {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .upcoming-intro .section-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
  .project-card { aspect-ratio: 16/11; }
  .project-card__title { font-size: 1.2rem; }
  .project-card__meta { font-size: 0.65rem; letter-spacing: 0.12em; }

  /* About section — image scales, stats stack 2x2 cleanly. */
  .about-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .about-image {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }
  .about-name { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    margin-top: 1.5rem;
  }
  .stat-value { font-size: 1.3rem; }
  .stat-label { font-size: 0.7rem; }

  /* Gallery preview — 2x2 with proper aspect ratio. */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .gallery-item { aspect-ratio: 4/3; }

  .gallery-header { margin-bottom: 1.25rem; }

  /* Section title eyebrow underlines on mobile — preserve gold accent. */
  .section-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
  }
}

/* ============================================================
   SMALL MOBILE (≤480px) — final tightenings.
   ============================================================ */
@media (max-width: 480px) {
  .hero-slide {
    min-height: 560px;
    height: 85vh;
  }
  .hero-slide__title  { font-size: clamp(1.9rem, 9vw, 2.5rem); }
  .hero-slide__subtitle { font-size: 0.72rem; letter-spacing: 0.12em; }

  .films-swiper .swiper-slide { width: 80% !important; max-width: 240px; }

  .filmography-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .about-stats { gap: 1.25rem 0.5rem; }
  .stat-value { font-size: 1.15rem; }
}

/* ============================================================
   v1.0.4 POLISH — mobile header + admin upload hint
   ============================================================ */

/* Hard prevent horizontal scroll on the page itself. */
html, body { overflow-x: clip; max-width: 100vw; }

/* --- Admin-only "Upload Hero Image" hint overlay --------------------
   Shows ONLY when no real hero image is set AND the viewer can edit
   theme options. Real images never have any text baked in.
   ------------------------------------------------------------------- */
.hero-slide__upload-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
  color: rgba(201, 168, 76, 0.45);
  text-decoration: none;
  transition: color 0.3s ease;
  pointer-events: auto;
}
.hero-slide__upload-hint:hover { color: rgba(201, 168, 76, 0.85); }
.hero-slide__upload-hint svg {
  opacity: 0.7;
}
.hero-slide__upload-hint span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.hero-slide__upload-hint small {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}
/* On mobile, push the hint to the very bottom-right corner so it never
   sits behind the headline. */
@media (max-width: 768px) {
  .hero-slide__upload-hint {
    inset: auto 0 5rem 0;
    height: auto;
  }
  .hero-slide__upload-hint svg { width: 28px; height: 28px; }
  .hero-slide__upload-hint span { font-size: 0.65rem; letter-spacing: 0.22em; }
  .hero-slide__upload-hint small { font-size: 0.55rem; }
}

/* --- Mobile header: make hamburger unmistakably visible ----------- */
@media (max-width: 768px) {
  .site-header {
    padding-block: 1rem;
    background: rgba(6, 6, 6, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .site-header.scrolled {
    background: rgba(6, 6, 6, 0.95);
  }

  .header-inner {
    gap: 1rem;
  }

  /* Logo: smaller on mobile, stays left-aligned. */
  .logo-text .logo-main { font-size: 0.95rem; }
  .logo-text .logo-sub  { font-size: 0.5rem; letter-spacing: 0.22em; }
  .site-logo img { height: 40px; }

  /* Hamburger: gold tint with a subtle background pill so it pops
     against any hero image. */
  .hamburger {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.4);
    padding: 0;
  }
  .hamburger span {
    width: 18px;
    background: var(--gold);
    height: 2px;
  }
  .hamburger:active {
    background: rgba(201, 168, 76, 0.25);
  }
}

/* --- Films section: ensure section title & content always have safe
       left padding on mobile so it can never get clipped, and the
       swiper bleed-out only happens to the RIGHT (next-card peek). */
@media (max-width: 768px) {
  .filmography-section { padding-inline: 0; }
  .filmography-section > .container { padding-inline: 1.25rem; }

  /* Make the swiper visually escape to the right only (negative right
     margin) so left edge stays aligned with the container. */
  .filmography-section .films-swiper {
    margin-right: -1.25rem;
  }

  /* Prevent any single grid/section child from exceeding viewport. */
  .filmography-section .container,
  .upcoming-section .container,
  .about-section .container,
  .gallery-section .container {
    max-width: 100%;
  }
}

