:root {
  --cream-pink: #EBC7C1;
  --lavender: #DFC8EA;
  --rose: #D7A1B0;
  --text-dark: #1F1F1F;
  --text-muted: #5E5E5E;
}

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

body {
  font-family: Inter, sans-serif;
  background-color: var(--cream-pink);
  color: var(--text-dark);
}

/* Floating Nav */
.floating-nav {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: 50;
  color: #3A2E32;
}

.floating-nav.visible {
  opacity: 1;
}

.floating-nav a {
  font-size: 0.9rem;
  color: var(--text-dark);
  text-decoration: none;
  font-style: italic;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.floating-nav a:hover {
  opacity: 1;
  color: #8C5F6A;
}

/* Hero */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
   background-repeat: no-repeat;

  background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
  /* background-color: #F3E1DE; */

}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  bottom: 60px;
  left: 60px;
  z-index: 2;
}

.hero-overlay h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.5rem;
  font-style: italic;
  color: #2B2B2B;
}

.hero-overlay p {
  margin-top: 10px;
  color: var(--text-muted);
  color: #2B2B2B;
}

/* Sections */
.section {
  padding: 100px 0;
}

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

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #7B5E8A; /* muted lavender */
}

/* Fun Facts */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.fact-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  margin-bottom: 10px;
  color: #8C5F6A; /* dusty rose */
}

.fact-card::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background-color: #D7A1B0;
  margin-bottom: 12px;
}


.fact-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Image Break */
.image-break {
  width: 100%;
  padding: 80px 0;
}

.image-break img {
  width: 90%;
  max-width: 900px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    height: 90vh;
  }

  .hero-overlay {
    left: 30px;
    bottom: 40px;
  }

  .hero-overlay h1 {
    font-size: 2.5rem;
  }

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

  .floating-nav {
    right: 20px;
    bottom: 20px;
  }
}


/* =========================
   POEM PAGE
   ========================= */

.poem-section {
  min-height: 100vh;
  padding: 120px 20px;
  background-color: var(--cream-pink);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}


/* Main paper container */
.poem-paper {
  max-width: 700px;
  width: 100%;
  padding: 80px 70px;
  border-radius: 12px;
  position: relative;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.04),
    0 30px 60px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Paper color layer */
.poem-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #FAF3EB;
  z-index: 0;
}

.poem-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.poem-header h2 {
  margin: 0;
  text-align: left;
  flex: 1;
}

/* Button refinement for inline use */
.poem-header .audio-btn {
  margin: 0;
  padding: 8px 20px;
  font-size: 0.8rem;
}


/* Parchment texture layer */
.poem-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/textures/paper.png");
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.2; /* subtle parchment */
  z-index: 1;
  pointer-events: none;
}

/* Keep all text above layers */
.poem-paper > * {
  position: relative;
  z-index: 2;
}

/* Page title */
.poem-paper h1 {
  font-family: Playball, cursive;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 60px;
  color: #6B3F4B;
}

/* Poem text */
.poem p {
  font-family: Playball, cursive;
  font-size: 1.4rem;
  line-height: 2.1;
  color: #3A2A2F;
  white-space: pre-line;
}

/* Audio button */
.audio-btn {
  margin-top: 50px;
  background: none;
  border: 1px solid #C58A98;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  color: #6B3F4B;
  transition: all 0.3s ease;
}

.audio-btn:hover {
  background-color: #C58A98;
  color: #fff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .poem-paper {
    padding: 60px 30px;
  }

  .poem-paper h1 {
    font-size: 2.4rem;
  }

  .poem p {
    font-size: 1.2rem;
  }
}


/* =========================
   VIDEO GALLERY
   ========================= */

.video-section {
  min-height: 100vh;
  padding: 120px 40px;
  background-color: var(--cream-pink);
  text-align: center;
}

.video-section h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-style: italic;
  margin-bottom: 60px;
  color: #6B3F4B;
}

/* Carousel layout */
.carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel {
  display: flex;
  gap: 40px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.video-card {
  min-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.video-card iframe {
  width: 100%;
  height: 520px;
  border: none;
}

/* Carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 3rem;
  color: #6B3F4B;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.carousel-btn:hover {
  opacity: 1;
}

.carousel-btn.prev {
  left: -60px;
}

.carousel-btn.next {
  right: -60px;
}

/* Mobile */
@media (max-width: 768px) {
  .video-card iframe {
    height: 300px;
  }

  .carousel-btn.prev {
    left: -20px;
  }

  .carousel-btn.next {
    right: -20px;
  }
}

/* =========================
   FOREVER TIMER PAGE
   ========================= */

.timer-section {
  min-height: 100vh;
  background-color: var(--lavender);
  padding: 120px 40px;
  text-align: center;
}

.timer-section h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.5rem;
  font-style: italic;
  color: #6B3F4B;
  margin-bottom: 10px;
}

.timer-subtitle {
  font-family: Inter, sans-serif;
  color: var(--text-muted);
  margin-bottom: 80px;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.time-box {
  background-color: var(--cream-pink);
  border-radius: 14px;
  padding: 30px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.time-box span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  color: #3A2A2F;
}

.time-box small {
  font-family: Inter, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 900px) {
  .timer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .time-box span {
    font-size: 2.2rem;
  }
}


/* =========================
   GIF PAGE
   ========================= */

.gif-section {
  min-height: 100vh;
  background-color: var(--cream-pink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 20px;
  text-align: center;
}

.gif-section h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  font-style: italic;
  color: #6B3F4B;
  margin-bottom: 60px;
}

.gif-container {
  max-width: 420px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.gif-container video {
  width: 100%;
  display: block;
}


.gif-container img {
  width: 100%;
  display: block;
}

/* Tenor embed safety */
.gif-container iframe,
.gif-container div {
  width: 100% !important;
}
