/* ============================================================
   RANJINI IYER — AUTHOR WEBSITE
   Responsive, Light/Dark Mode
   ============================================================ */

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

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

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Light mode (default) */
  --bg-primary: #FAF7F2;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F0EBE3;
  --text-primary: #2D2D2D;
  --text-secondary: #6B6B6B;
  --text-accent: #7B3F5E;
  --accent: #8B4A6B;
  --accent-hover: #723D58;
  --accent-light: rgba(139, 74, 107, 0.1);
  --gold: #A97C25;
  --border: #E8E2DA;
  --shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.10);
  --nav-bg: rgba(250, 247, 242, 0.92);
  --nav-blur: 12px;
  --card-bg: #FFFFFF;
  --hero-overlay: rgba(250, 247, 242, 0.0);
  --quote-bg: rgba(139, 74, 107, 0.06);
  --badge-published-bg: #E8F5E9;
  --badge-published-text: #2E7D32;
  --badge-forthcoming-bg: #FFF3E0;
  --badge-forthcoming-text: #E65100;
  --badge-submissions-bg: #E3F2FD;
  --badge-submissions-text: #1565C0;
  --form-bg: #FFFFFF;
  --input-bg: #FAF7F2;
  --input-border: #D8D2CA;
  --input-focus: #8B4A6B;
  --footer-bg: #2D2D2D;
  --footer-text: #C8C4BE;
  --transition-theme: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] {
  --bg-primary: #1A1A2E;
  --bg-secondary: #252540;
  --bg-tertiary: #2D2D4A;
  --text-primary: #E8E2DA;
  --text-secondary: #9B9BB0;
  --text-accent: #D4B0C8;
  --accent: #C9A0B8;
  --accent-hover: #D4B5C8;
  --accent-light: rgba(201, 160, 184, 0.12);
  --gold: #D4A853;
  --border: #3C3C5A;
  --shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(26, 26, 46, 0.92);
  --card-bg: #252540;
  --hero-overlay: rgba(26, 26, 46, 0.0);
  --quote-bg: rgba(201, 160, 184, 0.08);
  --badge-published-bg: #1B3A1E;
  --badge-published-text: #81C784;
  --badge-forthcoming-bg: #3E2518;
  --badge-forthcoming-text: #FFB74D;
  --badge-submissions-bg: #1A2A3E;
  --badge-submissions-text: #64B5F6;
  --form-bg: #252540;
  --input-bg: #2D2D4A;
  --input-border: #4A4A6A;
  --input-focus: #C9A0B8;
  --footer-bg: #12121E;
  --footer-text: #7A7A90;
}

/* Auto-detect system theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #1A1A2E;
    --bg-secondary: #252540;
    --bg-tertiary: #2D2D4A;
    --text-primary: #E8E2DA;
    --text-secondary: #9B9BB0;
    --text-accent: #D4B0C8;
    --accent: #C9A0B8;
    --accent-hover: #D4B5C8;
    --accent-light: rgba(201, 160, 184, 0.12);
    --gold: #D4A853;
    --border: #3C3C5A;
    --shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
    --nav-bg: rgba(26, 26, 46, 0.92);
    --card-bg: #252540;
    --hero-overlay: rgba(26, 26, 46, 0.0);
    --quote-bg: rgba(201, 160, 184, 0.08);
    --badge-published-bg: #1B3A1E;
    --badge-published-text: #81C784;
    --badge-forthcoming-bg: #3E2518;
    --badge-forthcoming-text: #FFB74D;
    --badge-submissions-bg: #1A2A3E;
    --badge-submissions-text: #64B5F6;
    --form-bg: #252540;
    --input-bg: #2D2D4A;
    --input-border: #4A4A6A;
    --input-focus: #C9A0B8;
    --footer-bg: #12121E;
    --footer-text: #7A7A90;
  }
}

/* ---------- BODY ---------- */
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: var(--transition-theme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 500; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- UTILITY ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.centered {
  text-align: center;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 64px;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-title.centered {
  margin-bottom: 2rem;
}

.section-intro {
  max-width: 700px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-intro.centered {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.section-divider {
  border: none;
  margin: 3.5rem auto;
  max-width: 400px;
  height: 1px;
  background: transparent;
  position: relative;
  overflow: visible;
  transition: border-color 0.4s ease;
}

/* Decorative line with center ornament */
.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border) 15%,
    var(--accent) 45%,
    var(--accent) 55%,
    var(--border) 85%,
    transparent
  );
}

.section-divider::after {
  content: '\2726';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  padding: 0 0.8rem;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.required {
  color: var(--accent);
}

/* ---------- FADE IN ANIMATION ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  text-decoration: none;
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF;
  margin-top: 1rem;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
  border-bottom: 1px solid var(--border);
  transition: var(--transition-theme);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background-color: var(--accent-light);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.icon-moon { display: none; }

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Auto dark mode icon swap */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Hamburger active state */
.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 80px 1.5rem 2rem;
  background-color: var(--bg-primary);
  transition: var(--transition-theme);
}

.hero-content {
  text-align: center;
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem;
  border-radius: 4px;
  transition: filter 0.4s ease;
}

/* No filter in dark mode — transparent image floats naturally on dark background */

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  margin-bottom: 2.5rem;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  animation: bounce 2.5s infinite;
}

.hero-scroll:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background-color: var(--bg-secondary);
  transition: var(--transition-theme);
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.portrait-img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-emphasis {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem !important;
  font-style: italic;
  color: var(--accent) !important;
  margin: 1.5rem 0;
}

.about-quote {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: var(--quote-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  transition: var(--transition-theme);
}

.about-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.about-quote cite {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: normal;
}

/* ============================================================
   WRITING / BOOKS
   ============================================================ */
.writing {
  background-color: var(--bg-primary);
}

.book-feature {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 1rem;
}

.book-feature.reverse {
  grid-template-columns: 1fr 280px;
}

.book-feature.reverse .book-cover {
  order: 2;
}

.book-feature.reverse .book-text {
  order: 1;
}

.book-cover {
  text-align: center;
}

.book-img {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.book-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.book-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
}

.book-badge.published {
  background: var(--badge-published-bg);
  color: var(--badge-published-text);
}

.book-badge.forthcoming {
  background: var(--badge-forthcoming-bg);
  color: var(--badge-forthcoming-text);
}

.book-badge.submissions {
  background: var(--badge-submissions-bg);
  color: var(--badge-submissions-text);
}

.book-text p {
  font-size: 1.02rem;
  line-height: 1.75;
}

.book-synopsis {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: var(--transition-theme);
}

.book-synopsis h4 {
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.book-synopsis p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.book-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem !important;
  font-style: italic;
  color: var(--accent) !important;
  margin-bottom: 1rem;
}

.book-agent {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* ============================================================
   FILM
   ============================================================ */
.film {
  background-color: var(--bg-secondary);
  transition: var(--transition-theme);
}

.film .section-intro {
  margin-bottom: 3rem;
}

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

.film-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.film-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.film-poster-link {
  display: block;
  overflow: hidden;
}

.film-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.film-card:hover .film-poster {
  transform: scale(1.03);
}

.film-info {
  padding: 1.3rem 1.5rem 1.5rem;
}

.film-title {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.film-role {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

.film-info p {
  font-size: 0.92rem;
  line-height: 1.65;
}

.film-imdb {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

.film-imdb:hover {
  color: var(--accent);
}

.film-imdb::after {
  content: ' \2192';
}

/* Coming Soon poster placeholder */
.film-poster-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(180,175,170,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(140,135,130,0.3) 0%, transparent 55%),
    linear-gradient(160deg, #9A9590 0%, #7E7A76 30%, #8A8480 55%, #757270 75%, #6E6B68 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Concrete noise texture overlay */
.film-poster-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.015) 2px,
      rgba(255,255,255,0.015) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(0,0,0,0.02) 3px,
      rgba(0,0,0,0.02) 6px
    );
  pointer-events: none;
}

/* Hanging clips */
.poster-clips {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 28%;
  z-index: 2;
}

.clip {
  display: block;
  width: 10px;
  height: 22px;
  background: linear-gradient(180deg, #5A5550 0%, #3A3530 50%, #4A4540 100%);
  border-radius: 1px 1px 3px 3px;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.15), 1px 1px 3px rgba(0,0,0,0.4);
}

/* Inner poster card — hanging from clips */
.poster-inner {
  position: relative;
  width: 62%;
  background: linear-gradient(160deg, #1A1210 0%, #0F0C0A 40%, #201510 100%);
  border-radius: 2px;
  padding: 1.6rem 1rem 1.4rem;
  text-align: center;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.05) inset;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255,255,255,0.06);
}

/* String from clip to poster */
.poster-inner::before {
  content: '';
  position: absolute;
  top: -22px;
  left: 22%;
  width: 1px;
  height: 22px;
  background: rgba(80,70,60,0.8);
}

.poster-inner::after {
  content: '';
  position: absolute;
  top: -22px;
  right: 22%;
  width: 1px;
  height: 22px;
  background: rgba(80,70,60,0.8);
}

.poster-screenplay {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(220,200,170,0.55);
}

.poster-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
  color: #E8D8B8;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  margin: 0;
}

.poster-coming-soon {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  margin-top: 0.2rem;
  opacity: 0.85;
}

/* ============================================================
   VENTURES
   ============================================================ */
.ventures {
  background-color: var(--bg-primary);
}

.ventures-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.ventures-intro p {
  font-size: 1.02rem;
  line-height: 1.8;
}

.ventures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.venture-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.venture-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.venture-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 1.2rem;
  object-fit: contain;
}

.venture-logo.rk-logo {
  height: 90px;
}

.venture-card h3 {
  margin-bottom: 0.3rem;
}

.venture-role {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

.venture-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: left;
}

.ventures-giving {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--quote-bg);
  border-radius: 8px;
  text-align: center;
  transition: var(--transition-theme);
}

.ventures-giving p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0;
  font-style: italic;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background-color: var(--bg-secondary);
  transition: var(--transition-theme);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--form-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition-theme);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.4s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .btn-sending,
.btn-submit .btn-sent {
  display: none;
}

.btn-submit.sending .btn-text { display: none; }
.btn-submit.sending .btn-sending { display: inline; }

.btn-submit.sent .btn-text { display: none; }
.btn-submit.sent .btn-sent { display: inline; }

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.form-status.success { color: var(--badge-published-text); }
.form-status.error { color: #D32F2F; }

/* Contact info sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: var(--transition-theme);
}

.contact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.contact-card p {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.social-link:hover {
  color: var(--accent);
}

.social-link svg {
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  padding: 1.5rem 0;
  text-align: center;
  transition: var(--transition-theme);
}

.site-footer p {
  color: var(--footer-text);
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 250px 1fr;
    gap: 2.5rem;
  }

  .book-feature {
    grid-template-columns: 220px 1fr;
    gap: 2rem;
  }

  .book-feature.reverse {
    grid-template-columns: 1fr 220px;
  }

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

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

  .contact-info {
    flex-direction: row;
  }

  .contact-card {
    flex: 1;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  /* Hide book dividers on mobile */
  .section-divider {
    display: none;
  }

  /* Add spacing between books without divider */
  .book-feature {
    margin-bottom: 2.5rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
  }

  .theme-toggle {
    order: 3;
    margin-left: 0.3rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 75vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: 80px 2rem 2rem;
    gap: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease, background-color 0.4s ease;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
  }

  /* Mobile overlay */
  .nav-links.open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-portrait {
    display: flex;
    justify-content: center;
  }

  .portrait-img {
    max-width: 240px;
  }

  .about-quote {
    text-align: left;
  }

  /* Books */
  .book-feature,
  .book-feature.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .book-feature .book-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .book-feature.reverse .book-cover {
    order: 0;
  }

  .book-feature.reverse .book-text {
    order: 0;
  }

  .book-img {
    max-width: 220px;
  }

  /* Film */
  .film-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Ventures */
  .ventures-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-info {
    flex-direction: column;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-image {
    max-width: 90vw;
  }

  .hero-tagline {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .section {
    padding: 2.5rem 0;
  }

  .contact-form {
    padding: 1.2rem;
  }

  .book-synopsis {
    padding: 1rem;
  }

  .about-quote {
    padding: 1rem 1.2rem;
  }

  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .hero-scroll,
  .back-to-top,
  .theme-toggle,
  .nav-toggle,
  .contact-form {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 1.5rem 0;
    break-inside: avoid;
  }
}
