/* ============================================
   🌹 THE AGAM APPRECIATION STYLESHEET 🌹
   (please don't judge me)
   ============================================ */

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

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --love-pink: #ff4d6d;
  --love-rose: #ff758f;
  --love-blush: #ff8fa3;
  --love-light: #ffb3c1;
  --love-soft: #ffccd5;
  --love-whisper: #fff0f3;
  --love-deep: #c9184a;
  --love-dark: #800f2f;
  --love-wine: #590d22;
  --gold: #f0a500;
  --text-dark: #2b2d42;
  --text-light: #8d99ae;
  --white: #ffffff;
  --bg-cream: #fef6f8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Floating Hearts Background --- */
.hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.15;
  animation: floatUp 12s linear infinite;
  animation-delay: calc(var(--i) * 0.8s);
  left: calc(var(--i) * 6.5% + 2%);
  bottom: -3rem;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.15;
  }
  90% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--love-wine) 0%,
    var(--love-deep) 30%,
    var(--love-pink) 70%,
    var(--love-blush) 100%
  );
  padding: 2rem;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--bg-cream), transparent);
}

.hero-content {
  max-width: 800px;
}

.whisper {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-style: italic;
}

.title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.name-reveal {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(240, 165, 0, 0.4);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(240, 165, 0, 0.3);
  }
  to {
    text-shadow:
      0 0 60px rgba(240, 165, 0, 0.6),
      0 0 100px rgba(240, 165, 0, 0.2);
  }
}

.subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-style: italic;
}

.heartbeat {
  font-size: 3rem;
  animation: heartbeat 1s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.25);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.15);
  }
}

/* --- Section Titles --- */
.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  text-align: center;
  color: var(--love-deep);
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--love-pink), var(--love-light));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* --- Reasons Section --- */
.reasons {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.reason-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(201, 24, 74, 0.08);
  border: 1px solid var(--love-soft);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.reason-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--love-pink), var(--love-light));
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(201, 24, 74, 0.15);
}

.reason-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--love-pink), var(--love-rose));
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.reason-card p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
}

/* --- Gallery Section --- */
.gallery {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  background: linear-gradient(
    180deg,
    var(--bg-cream) 0%,
    var(--love-whisper) 50%,
    var(--bg-cream) 100%
  );
}

.gallery-disclaimer {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.photo-card {
  text-align: center;
}

.photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(201, 24, 74, 0.12);
  border: 4px solid var(--white);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-frame:hover img {
  transform: scale(1.08);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201, 24, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-frame:hover .photo-overlay {
  opacity: 1;
}

.photo-caption {
  margin-top: 0.75rem;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: var(--love-deep);
  font-size: 1rem;
}

/* --- Poem Section --- */
.poem {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.poem-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 40px rgba(201, 24, 74, 0.1);
  border: 2px solid var(--love-soft);
  position: relative;
}

.poem-card::before,
.poem-card::after {
  position: absolute;
  font-size: 5rem;
  color: var(--love-soft);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
}

.poem-card::before {
  content: '"';
  top: 0.5rem;
  left: 1.5rem;
}

.poem-card::after {
  content: '"';
  bottom: -0.5rem;
  right: 1.5rem;
}

.poem-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-dark);
  text-align: center;
  font-style: italic;
}

/* --- Love Meter Section --- */
.love-meter-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.love-meter-container {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(201, 24, 74, 0.08);
  border: 1px solid var(--love-soft);
}

.meter-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.1rem;
}

.meter-label.small {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--love-deep);
  margin-top: 1rem;
  margin-bottom: 0;
}

.love-meter {
  width: 100%;
  height: 48px;
  background: var(--love-whisper);
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--love-soft);
}

.love-meter-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--love-pink),
    var(--love-deep),
    var(--love-pink),
    var(--gold)
  );
  background-size: 300% 100%;
  animation: meterShimmer 3s ease-in-out infinite;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meter-text {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  padding: 0 1rem;
}

@keyframes meterShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* --- Schedule Section --- */
.schedule {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.schedule-table-wrap {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(201, 24, 74, 0.08);
  border: 1px solid var(--love-soft);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table thead {
  background: linear-gradient(135deg, var(--love-pink), var(--love-deep));
}

.schedule-table th {
  color: var(--white);
  font-weight: 600;
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.schedule-table td {
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--love-whisper);
  font-size: 0.95rem;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr {
  transition: background 0.2s ease;
}

.schedule-table tbody tr:hover {
  background: var(--love-whisper);
}

.schedule-table td:first-child {
  font-weight: 600;
  color: var(--love-deep);
  white-space: nowrap;
  width: 80px;
}

/* --- Marquee Section --- */
.marquee-section {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--love-deep), var(--love-pink));
  overflow: hidden;
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: scroll 15s linear infinite;
}

.marquee span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 2px;
  padding-right: 2rem;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--love-wine);
  color: var(--white);
}

.footer-warning {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  animation: blink 1.5s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.footer p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-small {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .poem-card {
    padding: 2rem 1.5rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.7rem 1rem;
  }

  .meter-text {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .name-reveal {
    letter-spacing: 0.05em;
  }

  .floating-heart {
    font-size: 1rem;
  }
}
