/* ============================================
   The Assassins of the President - Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&amp;family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&amp;display=swap');

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

:root {
  --bg: #0f1219;
  --bg-alt: #151b26;
  --fg: #e8dcc8;
  --fg-muted: #8a8f9a;
  --primary: #8b2020;
  --border: #252d3a;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 18, 25, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--fg);
  white-space: nowrap;
}

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

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.3s;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  margin: 5px 0;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  background: rgba(15, 18, 25, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu a {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 25, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.hero-line {
  width: 4rem;
  height: 1px;
  background: var(--primary);
  margin: 2rem auto;
}

.hero-subtitle {
  max-width: 28rem;
  margin: 0 auto;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.scroll-indicator-line {
  width: 1px;
  height: 2rem;
  background: rgba(138, 143, 154, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Page Hero (Cast, Production) --- */
.page-hero {
  padding: 10rem 1.5rem 4rem;
  text-align: center;
  background: var(--bg);
}

.page-hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--fg);
}

.page-hero-line {
  width: 4rem;
  height: 1px;
  background: var(--primary);
  margin: 1.5rem auto 0;
}

/* --- Sections --- */
.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* --- Two Column (Text + Image) --- */
.two-col {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.two-col-reverse {
  flex-direction: row-reverse;
}

.two-col-text {
  flex: 1;
}

.two-col-image {
  flex: 1;
}

.two-col-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--fg-muted);
}

.section-text p + p {
  margin-top: 1rem;
}

.text-highlight {
  color: var(--fg);
  font-weight: 500;
}

/* --- Full Background Section --- */
.bg-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem;
  overflow: hidden;
}

.bg-section-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 25, 0.78);
}

.bg-section-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

/* --- Gallery Grid (2 cols) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 25, 0.2);
  transition: opacity 0.5s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 0;
}

/* --- Text-only section --- */
.text-section {
  text-align: center;
}

.divider {
  width: 4rem;
  height: 1px;
  background: var(--primary);
  margin: 3rem auto;
}

/* --- Cast Grid --- */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cast-card {
  overflow: hidden;
}

.cast-card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
}

.cast-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.cast-card:hover .cast-card-img img {
  transform: scale(1.05);
}

.cast-card-info {
  margin-top: 1rem;
}

.cast-card-actor {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.cast-card-character {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-top: 0.25rem;
}

/* --- Production Tech Items --- */
.tech-items {
  margin-top: 2rem;
}

.tech-item {
  border-left: 2px solid var(--primary);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.tech-item-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
}

.tech-item-desc {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

/* --- Color Swatches --- */
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.swatch-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.swatch-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.footer-profile img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.footer-contact h3,
.footer-project h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.footer-contact-row svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-project {
  margin-left: auto;
}

.footer-project p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  max-width: 18rem;
}

.footer-copyright {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copyright p {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .two-col,
  .two-col-reverse {
    flex-direction: column;
  }

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

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

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-project {
    margin-left: 0;
  }

  .footer-project p {
    max-width: 100%;
  }

  .swatch-circle {
    width: 3rem;
    height: 3rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .bg-section {
    padding: 5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .cast-grid {
    grid-template-columns: 1fr;
  }
}
