/* ====== GLOBAL RESET / BASE ====== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --nav-height: 60px;
  --accent: #e21fe6;
  --max-width: 900px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ====== BODY ====== */
body {
  background-color: white;
  color: black;
  font-family: var(--font-body);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 10px) 1.5rem 2rem;
}

/* ====== FLOATING NAV ====== */
.floating-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 1rem;
  z-index: 9999;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.floating-nav .nav-left,
.floating-nav .nav-center,
.floating-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Center nav links in middle */
.floating-nav .nav-center {
  flex: 1;
  justify-content: center;
}

/* Right side (dark mode button) */
.floating-nav .nav-right {
  justify-content: flex-end;
}

/* Title styling */
.floating-nav .nav-title {
  font-weight: bold;
  font-size: 1.1rem;
}

/* Links styling */
.floating-nav a {
  text-decoration: none;
  color: #e21fe6;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.floating-nav a:hover {
  background: rgba(226, 31, 230, 0.15);
}

.bio-container {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: nowrap; /* prevents wrapping to the next line */
}

.bio-photo {
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  flex-shrink: 0;
}

.bio-text {
  flex: 1; /* makes the text take remaining space */
}

@media (max-width: 600px) {
  .bio-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-text {
    flex: none;
  }

  .bio-photo {
    margin-bottom: 1rem;
  }
}

/* ====== GALLERY ====== */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

section, h2, h3, [id] {
  scroll-margin-top: 70px; /* adjust if your nav height changes */
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* ====== LIGHTBOX ====== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transform: translateY(-50%);
  transition: background 0.15s ease;
}

.arrow:hover {
  background: rgba(255,255,255,0.2);
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

/* ====== PRODUCTION CREDITS ====== */
.production-credits {
  max-width: 980px;
  margin: 3rem auto 2rem;
  padding: 0 1.25rem;
  color: #111;
}

/* Section title */
.production-credits h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* Grid layout */
.credits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .credits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }
}

/* Each credit entry */
.credit {
  background: rgba(0,0,0,0.03);
  padding: 1.1rem 1.3rem;
  border-radius: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.credit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* Title styling */
.title {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.33;
  color: #111;
}

/* The added "year" */
.year {
  font-weight: 400;
  font-size: 0.85rem;
  color: #666;
  margin-left: 0.5rem;
}

/* Roles styling */
.roles {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3a3a3a;
}

/* Divider for mobile */
@media (max-width: 719px) {
  .credit + .credit {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 1rem;
  }
}

/* --- Dark Mode Toggle Button --- */
.theme-toggle {
  border: none;
  background: rgba(0,0,0,0.05);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.1s ease;
}

.theme-toggle:hover {
  background: rgba(226, 31, 230, 0.15);
}

.theme-toggle:active {
  transform: scale(0.92);
}

/* --- Dark Mode Styles --- */
body.dark {
  background-color: #0f0f0f;
  color: #eaeaea;
}

body.dark .floating-nav {
  background: rgba(10, 10, 10, 0.8);
}

body.dark .floating-nav a {
  color: #ff9afd;
}

body.dark .credit {
  background: rgba(255,255,255,0.06);
  color: #f0f0f0;
}

body.dark .title {
  color: #fff;
}

body.dark .roles {
  color: #ccc;
}

body.dark .year {
  color: #aaa;
}

body.dark .gallery img:hover {
  opacity: 0.8;
}