@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-color: #0F172A;
  --bg-gradient: radial-gradient(circle at 50% 30%, #1E293B 0%, #0F172A 100%);
  --text-color: #F8FAFC;
  --text-muted: #94A3B8;
  --card-border: #F1F5F9;
  --card-cream: #FEFBF3;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', sans-serif;
  --transition-premium: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-color);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Editorial Layout Spacing */
section {
  padding: 10rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Typography styles */
.serif-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.serif-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  color: var(--text-muted);
  line-height: 1.4;
}

.sans-meta {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  font-weight: 500;
}

.poetry-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.9;
  color: #E2E8F0;
}

/* Polaroid Card Style */
.polaroid-card {
  background-color: var(--card-border);
  padding: 1.5rem 1.5rem 4rem 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
              0 1px 3px rgba(255, 255, 255, 0.05) inset;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  user-select: none;
  transition: transform var(--transition-premium), box-shadow var(--transition-premium);
}

.polaroid-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
              0 1px 3px rgba(255, 255, 255, 0.1) inset;
}

.polaroid-inner {
  background-color: var(--card-cream);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}

.polaroid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(8%) sepia(5%) contrast(102%);
  transition: transform var(--transition-premium);
}

.polaroid-card:hover .polaroid-image {
  transform: scale(1.06);
}

/* Elegant Placeholder Label */
.polaroid-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748B;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  padding: 1.5rem;
}

.polaroid-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #334155;
  text-align: center;
  margin-top: 1.5rem;
  font-weight: 400;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-premium), transform var(--transition-premium);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-meta {
  margin-bottom: 2.5rem;
}

.hero-title {
  margin-bottom: 2rem;
}

.hero-subtitle {
  max-width: 650px;
  margin-top: 1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.5;
  transition: opacity 0.5s var(--transition-premium);
}

.scroll-indicator:hover {
  opacity: 0.9;
}

.scroll-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--text-color), transparent);
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0.1); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0.1); transform-origin: bottom; }
}



/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 2000;
  transition: transform 0.1s ease-out;
}



/* --- Closing Tribute Section --- */
.closing-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.heart-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pulsing-heart {
  fill: var(--card-border);
  width: 3rem;
  height: 3rem;
  animation: heartPulse 3s infinite ease-in-out;
}

@keyframes heartPulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.12); opacity: 0.9; filter: drop-shadow(0 0 12px rgba(248, 250, 252, 0.35)); }
  100% { transform: scale(1); opacity: 0.5; }
}

.closing-text {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  max-width: 900px;
}

/* --- Moments Section (Centered, Minimal, No Gaping) --- */
.moments-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

.moments-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.moments-heading {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.moments-paragraph {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  line-height: 1.8;
  color: #cbd5e1;
  text-align: center;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  section {
    padding: 8rem 2rem;
  }
  

}

@media (max-width: 640px) {
  section {
    padding: 6rem 1.5rem;
  }

  .hero-section {
    padding-top: 4rem;
  }

  .scroll-indicator {
    bottom: 2.5rem;
  }


}

.credit-box {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(248, 250, 252, 0.15);
  padding: 0.6rem 1.2rem;
  z-index: 9999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-color);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: default;
}

.credit-box:hover {
  border-color: rgba(248, 250, 252, 0.5);
  background: rgba(248, 250, 252, 0.05);
  letter-spacing: 0.24em; /* Premium text character expansion */
}

.credit-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--text-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--text-color);
  animation: creditDotPulse 2s infinite ease-in-out;
}

@keyframes creditDotPulse {
  0% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
  100% { opacity: 0.3; transform: scale(0.8); }
}

@media (max-width: 1024px) {
  .credit-box {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 4rem auto 0 auto;
    width: max-content;
    box-shadow: none;
    background: transparent;
    border: none;
  }
  .credit-box:hover {
    background: transparent;
  }
}
