/* KALYAN VARMA — Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111;
  --white: #fff;
  --accent: #c8d400;   /* yellow-green "VARMA" colour */
  --text: rgba(255,255,255,0.82);
  --muted: rgba(255,255,255,0.45);
  --max: 820px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--black);
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 28px;
  height: 56px;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
}

.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > span {
  display: block;
  padding: 0 14px;
  height: 50px;
  line-height: 50px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > span:hover { color: var(--white); }

.nav-links > li > span::after { content: ' ▾'; font-size: 9px; }

/* dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  background: rgba(0,0,0,0.95);
  min-width: 200px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-links > li:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 12px 18px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s;
}
.dropdown a:hover { background: rgba(255,255,255,0.07); color: var(--white); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-title {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 10px;
  text-align: center;
}

.hero-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── SECTIONS ── */
.section {
  padding: 80px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  line-height: 1.3;
  color: var(--white);
}

.section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 36px 0 10px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.section p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.8;
}

.byline {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}

/* ── FULL-WIDTH IMAGE BAND ── */
.img-band {
  width: 100%;
  height: 65vh;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.img-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 0 0;
  letter-spacing: 0.06em;
}

/* ── PHOTO GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 6px;
  padding: 6px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}
.gallery-grid img:hover { opacity: 0.85; cursor: zoom-in; }

/* ── FILM CARD ── */
.film-card {
  margin-bottom: 72px;
}

.film-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  margin-bottom: 24px;
}

.film-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 24px;
  background: #000;
}
.film-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── PARTNERS / LOGOS ── */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px 56px;
  margin-top: 48px;
}

.logo-grid img {
  height: 36px;
  width: auto;
  filter: grayscale(1) invert(1);
  opacity: 0.6;
  transition: all 0.3s;
}
.logo-grid img:hover { filter: grayscale(0) invert(0); opacity: 1; }

.broadcaster-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
  margin-top: 36px;
}

.broadcaster-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  line-height: 1.2;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  min-width: 120px;
}

/* ── PROJECT CARDS ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: #1a1a1a;
}
.project-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.2); }

.project-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.project-card-body {
  padding: 18px;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--white);
}

.project-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.about-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* ── CHAPTER LIST ── */
.chapter-list {
  margin: 32px 0;
  list-style: none;
  border-left: 2px solid rgba(255,255,255,0.12);
  padding-left: 24px;
}

.chapter-list li {
  margin-bottom: 24px;
}

.chapter-list li strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--white);
}

.chapter-list li a {
  text-decoration: none;
  color: inherit;
}

.chapter-list li a strong {
  transition: color 0.2s;
}

/* ── ARTICLE INLINE IMAGE ── */
.article-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2.5rem 0;
}

.article-img-caption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.chapter-list li a:hover strong {
  color: var(--accent);
}

.chapter-list li span {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ── DARK BAND ── */
.dark-band {
  background: #0a0a0a;
  color: var(--white);
  padding: 72px 24px;
}

.dark-band .section { max-width: var(--max); margin: 0 auto; }
.dark-band h2 { color: var(--white); }
.dark-band p { color: var(--text); }

/* ── ABOUT PHOTO (non-hero contained images) ── */
.about-photo {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 90vh;
  margin: 0 auto;
}
.about-photo-wrap {
  text-align: center;
  padding: 48px 24px;
  background: #0a0a0a;
}

/* ── FOOTER ── */
footer {
  background: #000;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

footer a { color: var(--accent); text-decoration: none; }

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  /* Nav — hamburger */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 50px;
    left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    padding: 8px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links > li { position: relative; }
  .nav-links > li > a,
  .nav-links > li > span {
    padding: 14px 24px;
    height: auto;
    line-height: 1.5;
    font-size: 15px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-links > li > span::after { content: ' ▸'; }
  .nav-links > li.expanded > span::after { content: ' ▾'; }
  .dropdown {
    display: none;
    position: static;
    background: rgba(255,255,255,0.03);
    border: none;
    min-width: 0;
    padding: 4px 0;
  }
  .nav-links > li.expanded .dropdown { display: block; }
  .nav-links > li:hover .dropdown { display: none; }
  .nav-links > li.expanded .dropdown { display: block; }
  .dropdown a {
    padding: 10px 24px 10px 36px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
  }

  /* General layout */
  .section { padding: 48px 20px; }
  .img-band { height: 52vw; min-height: 200px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .film-card img { height: 220px; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  /* Chapter list */
  .chapter-list { padding-left: 16px; }
  .chapter-list li { margin-bottom: 20px; }

  /* Project grid */
  .project-grid { grid-template-columns: 1fr; gap: 16px; }

  /* About photo */
  .about-photo { max-height: 80vh; }
  .about-photo-wrap { padding: 32px 16px; }

  /* Footer */
  footer { font-size: 0.75rem; padding: 20px 16px; }
}
