/* --- IMPORT FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400&display=swap');

/* --- RESET & GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a0a0a;
  color: #f0f0f0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* --- HERO SECTION (Home Page) --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.45) contrast(1.1) saturate(0.9);
  transform: scale(1.05);
  animation: slowZoom 30s ease-in-out infinite alternate;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 60%, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.9) 80%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 750px;
  color: #f4f4f2;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  letter-spacing: 0.5px;
  color: #f8f8f8;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
  animation: fadeIn 2s ease forwards;
}

.byline {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #c8c8c8;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 2.5s ease forwards;
  animation-delay: 0.8s;
}

.logline {
  font-size: 1.2rem;
  color: #ddd;
  font-style: italic;
  opacity: 0;
  animation: fadeIn 3s ease forwards;
  animation-delay: 1.2s;
}

/* --- HERO ANIMATIONS --- */
@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- SUBHEADER / BACK BUTTON --- */
.sub-header {
  position: relative;
  background: #000;
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-bottom: 1px solid #222;
  z-index: 10;
}

.sub-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  letter-spacing: 1px;
}

.back-link {
  position: absolute;
  left: 2rem;
  top: 2.8rem;
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  z-index: 20;
  cursor: pointer;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #fff;
}

/* --- CARD SECTION (Home Page) --- */
.cards {
  background-color: #111;
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
}

.card {
  display: block;
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 1rem;
  padding: 2rem;
  color: #f4f4f2;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255,255,255,0.03);
}

.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.card p {
  color: #bbb;
  font-size: 0.95rem;
}

.card:hover {
  transform: translateY(-8px);
  background: #f4f4f2;
  color: #000;
  box-shadow: 0 0 30px rgba(255,255,255,0.15);
}

.card:hover h2 { color: #000; }
.card:hover p { color: #222; }

/* --- POSTER PAGE --- */
.poster-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 1rem;
  background: radial-gradient(circle at center, #0f0f0f 0%, #000 100%);
}

.poster-container {
  text-align: center;
  max-width: 800px;
}

.poster-img {
  width: 100%;
  max-width: 600px;
  border-radius: 0.5rem;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
  border: 1px solid #222;
}

.poster-caption {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.5;
}

/* --- SCRIPT PAGE --- */
.script-section {
  background: radial-gradient(circle at center, #0f0f0f 0%, #000 100%);
  color: #f4f4f2;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
}

.script-container {
  text-align: center;
  max-width: 600px;
}

.script-container p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.script-link {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  text-decoration: none;
  color: #f4f4f2;
  border: 1px solid #f4f4f2;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.script-link:hover {
  background: #f4f4f2;
  color: #000;
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* --- STORYBOARD PAGE --- */
.storyboard-section {
  background: radial-gradient(circle at center, #0f0f0f 0%, #000 100%);
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.storyboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
}

.storyboard-grid img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  border: 1px solid #222;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.storyboard-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

/* --- CREDITS PAGE --- */
.credits-section {
  background: #000;
  color: #f4f4f2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
}

.credits-container {
  text-align: center;
  max-width: 600px;
  animation: fadeUp 1.5s ease forwards;
}

.credits-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
}

.role {
  font-family: 'Inter', sans-serif;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-top: 1.2rem;
}

.name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 0.5rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.9rem;
  color: #777;
  background: #000;
  border-top: 1px solid #222;
}

footer .credits {
  margin-top: 0.5rem;
  color: #999;
  font-size: 0.85rem;
  line-height: 1.5;
}

