:root {
  /* ================= COLORS ================= */

  --bg: hsl(0 0% 4%);
  --text: hsl(34 18% 88%);
  --muted: hsl(34 10% 60%);

  --primary: hsl(34 35% 62%);
  --primary-dark: hsl(34 35% 45%);

  --border: hsl(0 0% 15%);

  /* overlays */
  --overlay-dark: rgba(0, 0, 0, 0.6);

  /* ================= TYPOGRAPHY ================= */

  --font-display: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8rem);
  --fs-sm: clamp(0.85rem, 0.8rem + 0.3vw, 0.95rem);
  --fs-md: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  --fs-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --fs-xl: clamp(1.8rem, 1.5rem + 1vw, 2.4rem);
  --fs-2xl: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  --fs-3xl: clamp(4rem, 3rem + 4vw, 6rem);

  /* ================= SPACING ================= */

  --container: 1200px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 140px;

  --container-sm: 640px;
  --container-md: 900px;
  --container-lg: 1200px;
  --container-xl: 1400px;

  /* ================= ANIMATIONS ================= */

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.6s var(--ease);

  /* ================= RADIUS ================= */

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-full: 999px;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  opacity: 0;
  animation: pageLoad 0.8s ease forwards;
}

@keyframes pageLoad {
  to {
    opacity: 1;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

a,
button {
  transition: var(--transition);
}

/* ================= NAVBAR ================= */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.6s ease;
  padding: 0 10%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* logo */
.logo {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: hsl(34 18% 88%);
  text-decoration: none;
}

/* desktop links */
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: hsl(34 10% 60%);
  transition: 0.3s;
}

.nav-links a:hover {
  color: hsl(34 18% 88%);
}

.nav-links a.active {
  color: hsl(34 35% 62%);
}

/* scroll effect */
.header.scrolled {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* mobile button */
.menu-btn {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: hsl(34 18% 88%);
  cursor: pointer;
}

/* ================= MOBILE MENU ================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: hsl(0 0% 4%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  opacity: 0;
  transition: 0.5s ease;
  z-index: 2000;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 24px;
  background: none;
  border: none;
  color: hsl(34 18% 88%);
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.mobile-link {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: hsl(34 18% 88%);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}

.mobile-menu.open .mobile-link:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-menu.open .mobile-link:nth-child(2) {
  animation-delay: 0.2s;
}
.mobile-menu.open .mobile-link:nth-child(3) {
  animation-delay: 0.3s;
}
.mobile-menu.open .mobile-link:nth-child(4) {
  animation-delay: 0.4s;
}
.mobile-menu.open .mobile-link:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}

/* ================= SCROLL PROGRESS ================= */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--primary);
  z-index: 9999;
}

/* HERO */
.portfolio-hero {
  padding: 140px 10% 60px;
}

.portfolio-hero h1 {
  font-size: 64px;
  font-family: serif;
}

.portfolio-hero p {
  max-width: 500px;
  color: #aaa;
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;

  color: var(--muted);
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-label::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 1px;

  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.timestamp {
  font-family: monospace;
  font-size: var(--fs-xs);
  color: var(--primary);
  letter-spacing: 0.2em;
}

/* GRID */
.film-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 60px 10% 120px;
}

/* CARD */
.film-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.film-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}

/* hover zoom like Netflix */
.film-card:hover img {
  transform: scale(1.08);
}

/* overlay */
.film-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.couple {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a46a;
}

.film-overlay h2 {
  margin: 5px 0 0;
  font-family: serif;
}

/* MODAL */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none; /* ✅ hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.video-modal.active {
  display: flex; /* ✅ only show when active */
}

video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

/* close */
.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.video-info {
  margin-top: 10px;
  color: #aaa;
}

.video-info h2 {
  font-family: var(--font-display);
  font-size: 24px;
}

/* ================= VIDEO MODAL ================= */

.video-container {
  width: 85%;
  max-width: 900px;
  position: relative;

  transform: scale(0.95);
  animation: popIn 0.5s ease forwards;
}

.video-player {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.video-info {
  margin-top: 16px;
  color: var(--text);
  text-align: left;
}

.video-info h2 {
  font-family: var(--font-display);
  font-size: 24px;
}

.video-info p {
  color: var(--muted);
  font-size: 14px;
}

.video-meta-top {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.video-meta-top .dot {
  opacity: 0.4;
}

#videoTitle {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 5px;
}

#videoCouple {
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

#videoDescription {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 700px;
  margin-top: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================= FOOTER ================= */

.footer {
  border-top: 1px solid var(--border);
  padding: 100px 10% 40px;
  margin-top: 100px;
}

/* grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

/* brand */
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
}

/* titles */
.footer-title {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

/* links */
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--text);
}

/* bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

.cursor-glow {
  position: fixed;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(212, 175, 140, 0.35),
    transparent 70%
  );
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.08s ease;
  mix-blend-mode: screen;
}
