/* ---------- GLOBAL RESET ---------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0d0f12;
  color: #f3e3c3;
  overflow-x: hidden;
}

/* ---------- NAV ---------- */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 20px 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

nav a {
  text-decoration: none;
  color: #f3e3c3;
  font-weight: 500;
  letter-spacing: 2px;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.8;
}

/* ---------- HERO ---------- */

#hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 14, 0.35);
  mix-blend-mode: multiply;
  z-index: 2;
}

.hero-text {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-align: center;
}

.hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 18px;
  opacity: 0.8;
}

.fade-out {
  opacity: 0;
  transition: opacity 1s ease;
}

/* Audio toggle button */
#audio-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 18px;
  background: rgba(243, 227, 195, 0.85);
  color: #0d0f12;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 6px;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.audio-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------- SECTIONS ---------- */

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  margin: 120px 0 60px 0;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ---------- PROJECT GRIDS ---------- */

.project-grid,
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  width: 90%;
  margin: 0 auto 80px auto;
}

.project-card,
.film-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease;
}

.project-card:hover,
.film-card:hover {
  transform: translateY(-8px);
}

/* Card images */
.project-card img,
.film-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* Captions */
.project-card h3,
.film-card h3 {
  font-size: 20px;
  margin: 12px 0 4px 0;
  font-weight: 600;
}

.project-card p,
.film-card p {
  font-size: 14px;
  opacity: 0.7;
}

/* ---------- CONTACT ---------- */

#contact {
  text-align: center;
  margin-bottom: 100px;
}

#contact p {
  font-size: 16px;
  opacity: 0.9;
  letter-spacing: 0.03em;
}

/* ---------- PROJECT PAGE CINEMATIC STYLE ---------- */

/* Project page body & scrollable background */
.project-page-body {
  background-color: hsl(350, 70%, 12%);
  transition: background-color 0.3s linear;
  font-family: 'Inter', sans-serif;
  color: #F3E3C3;
  position: relative;
}

/* Video container with margin for nav */
.video-container {
  position: relative;
  width: 80%;
  max-width: 1100px;
  margin: 80px auto 0 auto;
  overflow: hidden;
  border-radius: 6px;
}

/* Video with slight tint */
.video-container video {
  width: 100%;
  height: auto;
  filter: brightness(0.85) saturate(1.05) sepia(0.05);
  display: block;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Overlay with title + play button */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
  z-index: 2;
}

/* Title */
.video-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 600;
  color: #FFC857;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  margin: 0;
}

/* Play button */
.play-button {
  font-size: 60px;
  color: #FFC857;
  cursor: pointer;
  margin-top: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  transition: transform 0.2s ease;
  z-index: 4;
}

.play-button:hover {
  transform: scale(1.2);
}

/* Subtitle BELOW video */
.video-subtitle {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #FFC857;
  margin: 20px auto 60px auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  max-width: 80%;
}

/* Project text sections */
.project-text {
  max-width: 900px;
  margin: 60px auto 80px auto;
  position: relative;
  z-index: 3;
}

/* Project images with hover glow */
.project-text img {
  width: 100%;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.project-text img:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(255, 200, 87, 0.5); /* gold glow */
  filter: saturate(1.2) brightness(1.05); /* oversaturated & slightly brighter */
}

/* Subtle vignette around video */
.video-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 70%, rgba(0,0,0,0.35) 100%);
  z-index: 3;
}

/* Subtle film grain overlay for whole page */
.project-page-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/film-grain.png');
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
/* -----------------------------
   LOWERCASE + GRADIENT + GLOW
------------------------------*/

/* Make all text lowercase visually */
body, body * {
  text-transform: lowercase;
}

/* Animated gradient for titles/subtitles/project headings */
.video-title, .video-subtitle, .project-text h3 {
  background: linear-gradient(90deg, #ff5e5e, #ffc857, #5ef7ff, #ff5e5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}

/* Hover glow effect on paragraphs/images */
.project-text p:hover, .project-text img:hover ~ p {
  text-shadow: 0 0 8px #ffc857, 0 0 16px #ff5e5e;
}

/* Keyframes for animated gradient */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* -----------------------------
   ABOUT PAGE
------------------------------*/

.about-page {
  background: hsl(345, 25%, 10%);
  color: #f4f4f4;
}

.about-container {
  max-width: 700px;
  margin: 140px auto;
  padding: 0 24px;
  line-height: 1.7;
}

.about-container h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

.about-container p {
  margin-bottom: 20px;
  color: #d0d0d0;
}

/* CV Button */

.cv-button {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 28px;
  border: 1px solid #ffc857;
  color: #ffc857;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.cv-button:hover {
  background: #ffc857;
  color: black;
  box-shadow: 0 0 18px rgba(255,200,87,0.4);
}
/* -----------------------------
   AUDIO PROJECT PAGE STYLE
------------------------------*/

.audio-project-page {
  background: hsl(340, 18%, 10%);
  color: #f2f2f2;
  transition: background-color 0.4s ease;
}

/* Title Area */

.audio-hero {
  margin-top: 140px;
  text-align: center;
  padding: 40px 20px 10px;
}

.audio-hero h1 {
  font-size: 2.2rem;
  letter-spacing: 0.04em;
}

.audio-subtitle {
  color: #b8b8b8;
  margin-top: 10px;
  font-size: 0.95rem;
}

/* Player Section */

.audio-player-section {
  display: flex;
  justify-content: center;
  margin: 60px 0;
}

.audio-player-wrapper {
  width: min(640px, 90%);
  padding: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}

/* Native player styling */

audio {
  width: 100%;
  filter: contrast(1.05) saturate(1.05);
}

/* Description */

.project-description {
  max-width: 640px;
  margin: 0 auto 120px;
  padding: 0 24px;
  line-height: 1.7;
  color: #d0d0d0;
}