@font-face {
  font-family: 'Poppins';
  src: url('vendor/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('vendor/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('vendor/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('vendor/fonts/PlayfairDisplay-wght.ttf') format('truetype-variations');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff6fb;
  --primary: #d94f83;
  --primary-dark: #b93a6d;
  --text: #3b2330;
  --card: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, #ffd8ea 0%, transparent 35%),
    radial-gradient(circle at 10% 80%, #ffe7f3 0%, transparent 40%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  min-height: 88vh;
  position: relative;
  display: grid;
  place-items: center;
  background-image: linear-gradient(rgba(30, 10, 20, 0.45), rgba(30, 10, 20, 0.5)), url('Restored/IMG-20260212-WA0041.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(217, 79, 131, 0.25), rgba(0, 0, 0, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.tag {
  display: inline-block;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.subtitle {
  width: min(700px, 100%);
  margin: 0 auto 1.5rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.btn {
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), #ff7aaa);
  box-shadow: 0 12px 20px rgba(217, 79, 131, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.dark-ghost {
  color: #7f1f49;
  border-color: #f3bfd5;
  background: #fff3f8;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #7f1f49;
}

.card-section {
  margin-top: -3rem;
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  padding: 2.2rem;
  box-shadow: 0 16px 34px rgba(127, 31, 73, 0.12);
}

.card-section p,
.final-note p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.07rem;
}

.reasons-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.reason-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 10px 24px rgba(217, 79, 131, 0.12);
  border: 1px solid #ffe0ee;
}

.reason-card h3 {
  margin-bottom: 0.5rem;
  color: #9f2f5d;
}

.love-notes-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.love-note-card {
  background: linear-gradient(160deg, #fff, #fff6fb);
  border: 1px solid #ffd7e9;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 12px 24px rgba(217, 79, 131, 0.12);
}

.love-note-card h3 {
  margin-bottom: 0.5rem;
  color: #8b2350;
}

.section-head {
  text-align: center;
  margin-bottom: 1.8rem;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.gallery-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
}

.carousel-window {
  width: min(1200px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #ffdbe9;
  box-shadow: 0 14px 28px rgba(127, 31, 73, 0.16);
  background: #2d1622;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 620px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-nav {
  width: 44px;
  height: 44px;
  border: 1px solid #f6c3da;
  border-radius: 999px;
  background: #fff3f9;
  color: #8e2c58;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-nav:hover {
  transform: translateY(-1px);
  background: #ffe7f2;
}

.carousel-footer {
  text-align: center;
  margin-top: 0.8rem;
}

.carousel-counter {
  display: inline-block;
  color: #8f3d63;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #fff1f8;
  border: 1px solid #ffd7e8;
}

.carousel-dots {
  margin-top: 0.7rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #efbdd3;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-dot:hover {
  transform: scale(1.15);
  background: #e58ab0;
}

.carousel-dot.active {
  background: #c9437b;
  transform: scale(1.15);
}

.memories-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 230px;
  box-shadow: 0 10px 22px rgba(127, 31, 73, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.memory-item {
  position: relative;
  border-radius: 14px;
  min-height: 180px;
  perspective: 1100px;
}

.memory-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  transform-style: preserve-3d;
  transition: transform 0.65s ease;
}

.memory-item:hover .memory-flip-inner,
.memory-item:focus-within .memory-flip-inner {
  transform: rotateY(180deg);
}

.memory-item.is-flipped .memory-flip-inner {
  transform: rotateY(180deg);
}

.memory-item:focus-visible {
  outline: 3px solid #e582ad;
  outline-offset: 3px;
}

.memory-front,
.memory-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ffdbe9;
  box-shadow: 0 8px 18px rgba(127, 31, 73, 0.15);
  backface-visibility: hidden;
}

.memory-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.memory-back {
  display: grid;
  place-items: center;
  padding: 0.9rem;
  text-align: center;
  color: #7a1f49;
  font-weight: 600;
  line-height: 1.45;
  background: linear-gradient(160deg, #fff9fc, #ffe4f0);
  transform: rotateY(180deg);
}

.music-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #ffe1ef;
  box-shadow: 0 10px 24px rgba(217, 79, 131, 0.12);
  padding: 1.4rem;
  text-align: center;
}

.music-controls {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.music-note {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: #8e4568;
}

.video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.video-item {
  background: linear-gradient(180deg, #ffffff, #fff7fb);
  border: 1px solid #ffd8ea;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(127, 31, 73, 0.18);
  overflow: hidden;
}

.video-item video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #12090f;
}

.video-meta {
  padding: 0.9rem 1rem 1rem;
}

.video-meta h3 {
  color: #8f2552;
  font-size: 1.03rem;
  margin-bottom: 0.25rem;
}

.video-meta p {
  color: #8c4366;
  font-size: 0.92rem;
}

.final-note {
  text-align: center;
}

.final-note .btn {
  margin-top: 1.2rem;
}

.footer {
  text-align: center;
  padding: 1.4rem;
  color: #7d3457;
  font-size: 0.95rem;
}

.hearts::before,
.hearts::after {
  content: '💗 💖 💕 💓 💞';
  position: fixed;
  left: -10%;
  width: 120%;
  z-index: 0;
  opacity: 0.16;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  animation: floatHearts 17s linear infinite;
  pointer-events: none;
}

.hearts::after {
  content: '💘 💝 💗 💖 💕';
  animation-duration: 22s;
  animation-direction: reverse;
  top: 40%;
}

@keyframes floatHearts {
  from {
    transform: translateY(110vh);
  }
  to {
    transform: translateY(-120vh);
  }
}

@media (max-width: 700px) {
  .card-section {
    margin-top: -2rem;
    padding: 1.5rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .gallery-item {
    min-height: 200px;
  }

  .gallery-carousel {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .carousel-window {
    order: 1;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    justify-self: center;
  }

  #prevSlideBtn {
    order: 2;
  }

  #nextSlideBtn {
    order: 3;
  }

  .carousel-slide {
    height: 420px;
  }

  .memory-item {
    min-height: 150px;
  }

  .memory-flip-inner {
    min-height: 150px;
  }

  .video-item video {
    max-height: none;
    height: auto;
  }
}
