/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: #fff5f7;
  color: #4a3040;
  overflow-x: hidden;
}

/* ==================== INTRO SCREEN ==================== */
.intro-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 30%, #ff9a9e 60%, #fecfef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-screen.fade-out {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.intro-content {
  text-align: center;
  z-index: 2;
}

.intro-heart-wrapper {
  display: inline-block;
  animation: heartbeat 1.2s ease-in-out infinite;
}

.intro-heart {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 20px rgba(255, 107, 138, 0.5));
}

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

.intro-names {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: #fff;
  margin-top: 16px;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.intro-date {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.intro-title {
  font-family: 'Dancing Script', cursive;
  font-size: 3.5rem;
  color: #fff;
  margin: 8px 0;
  text-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.intro-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  animation: fadeInUp 1s ease 0.5s both;
}

.intro-music-hint {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease 0.8s both;
}

.intro-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse-ring 2s ease infinite;
}

.intro-btn:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.1);
}

.btn-icon {
  font-size: 1.6rem;
  color: #fff;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.intro-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.intro-particle {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0;
  animation: floatUp 4s ease-in-out infinite;
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(100vh) rotate(0deg); }
  20% { opacity: 0.8; }
  80% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-10vh) rotate(360deg); }
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  opacity: 1;
  transition: opacity 0.6s ease;
}

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

/* ==================== FLOATING HEARTS BG ==================== */
.floating-hearts {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-heart {
  position: absolute;
  opacity: 0.08;
  animation: floatHeart linear infinite;
  color: #ff6b8a;
}

@keyframes floatHeart {
  0% { transform: translateY(110vh) rotate(0deg) scale(1); }
  50% { transform: translateY(50vh) rotate(180deg) scale(1.2); }
  100% { transform: translateY(-10vh) rotate(360deg) scale(1); }
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #fff5f7 0%, #ffe8ee 50%, #ffd6e0 100%);
  padding: 40px 20px;
}

.hero-inner {
  animation: fadeInUp 1s ease;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  color: #fff;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(255,154,158,0.3);
}

.hero-title {
  font-family: 'Dancing Script', cursive;
  margin-bottom: 40px;
}

.hero-title .line1 {
  display: block;
  font-size: 2rem;
  color: #c9788e;
  font-weight: 400;
}

.hero-title .line2 {
  display: block;
  font-size: 3.5rem;
  color: #ff6b8a;
  line-height: 1.2;
}

.hero-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.counter-item {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px 20px;
  min-width: 80px;
  box-shadow: 0 4px 20px rgba(255,107,138,0.1);
  border: 1px solid rgba(255,182,159,0.2);
}

.counter-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff6b8a;
  font-family: 'Quicksand', sans-serif;
  line-height: 1;
}

.counter-label {
  display: block;
  font-size: 0.7rem;
  color: #c9788e;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.counter-sep {
  font-size: 2rem;
  color: #ffb6c1;
  font-weight: 300;
}

.hero-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: #c9788e;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-hint span {
  font-size: 0.75rem;
  color: #c9788e;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid #ff9a9e;
  border-bottom: 2px solid #ff9a9e;
  transform: rotate(45deg);
  margin: 8px auto 0;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40% { transform: rotate(45deg) translateY(8px); }
  60% { transform: rotate(45deg) translateY(4px); }
}

/* ==================== SECTION TITLES ==================== */
.section-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.8rem;
  color: #ff6b8a;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: #c9788e;
  font-size: 1rem;
  margin-bottom: 40px;
}

/* ==================== TIMELINE ==================== */
.timeline-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #ffd6e0 0%, #fff5f7 100%);
  position: relative;
  z-index: 1;
}

.timeline {
  max-width: 700px;
  margin: 40px auto 0;
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(180deg, #ffb6c1, #ff6b8a, #ffb6c1);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ff6b8a;
  border: 3px solid #fff;
  border-radius: 50%;
  top: 30px;
  box-shadow: 0 2px 8px rgba(255,107,138,0.3);
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(255,107,138,0.08);
  border: 1px solid rgba(255,182,193,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255,107,138,0.15);
}

.timeline-date {
  font-size: 0.8rem;
  color: #ff9a9e;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-card h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: #ff6b8a;
  margin-bottom: 6px;
}

.timeline-card p {
  font-size: 0.9rem;
  color: #8a6575;
  line-height: 1.6;
}

/* ==================== GALLERY ==================== */
.gallery-section {
  padding: 80px 20px;
  background: #fff5f7;
  position: relative;
  z-index: 1;
}

.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  padding: 0 10px;
}

.polaroid {
  opacity: 0;
  transform: translateY(40px) rotate(0deg);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.polaroid.visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.polaroid:nth-child(odd).visible {
  transform: rotate(-1.5deg);
}

.polaroid:nth-child(even).visible {
  transform: rotate(1.5deg);
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.03) translateY(-5px) !important;
  z-index: 5;
}

.polaroid-inner {
  background: #fff;
  padding: 12px 12px 40px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.polaroid:hover .polaroid-inner {
  box-shadow: 0 12px 40px rgba(255,107,138,0.2), 0 2px 6px rgba(0,0,0,0.05);
}

.polaroid-inner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.polaroid-caption {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: #8a6575;
  text-align: center;
  margin-top: 10px;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(255,107,138,0.3);
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background: rgba(255,107,138,0.3);
  border: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,107,138,0.6);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ==================== LOVE LETTER ==================== */
.letter-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #fff5f7 0%, #ffe8ee 100%);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.letter-envelope {
  max-width: 550px;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.letter-envelope.visible {
  opacity: 1;
  transform: translateY(0);
}

.letter-paper {
  background: #fff;
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(255,107,138,0.12);
  border: 1px solid rgba(255,182,193,0.3);
  position: relative;
  overflow: hidden;
}

.letter-paper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff9a9e, #ff6b8a, #fecfef, #ff9a9e);
  background-size: 300% 100%;
  animation: shimmer 3s ease infinite;
}

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

.letter-greeting {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: #ff6b8a;
  margin-bottom: 16px;
}

.letter-body {
  font-size: 0.95rem;
  color: #6b4a5a;
  line-height: 1.8;
  margin-bottom: 16px;
}

.letter-closing {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: #c9788e;
  text-align: right;
  margin-top: 24px;
}

/* ==================== FOOTER ==================== */
.footer {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, #ffe8ee, #ffd6e0);
  position: relative;
  z-index: 1;
}

.footer-heart {
  animation: heartbeat 1.2s ease-in-out infinite;
  margin-bottom: 8px;
}

.footer p {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: #c9788e;
}

.footer-date {
  font-size: 0.85rem !important;
  margin-top: 4px;
  opacity: 0.7;
}

/* ==================== MUSIC TOGGLE ==================== */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9a9e, #ff6b8a);
  border: none;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(255,107,138,0.4);
  transition: transform 0.3s ease;
  display: none;
}

.music-toggle:hover {
  transform: scale(1.1);
}

.music-toggle.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle.muted {
  opacity: 0.5;
}

.music-icon {
  font-size: 1.3rem;
  color: #fff;
}

.music-toggle.playing .music-icon {
  animation: musicPulse 0.6s ease infinite alternate;
}

@keyframes musicPulse {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

/* ==================== ABOUT NA ==================== */
.about-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #ffd6e0 0%, #ffe8ee 100%);
  position: relative;
  z-index: 1;
}

.about-card-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-card-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(255,107,138,0.1);
  border: 1px solid rgba(255,182,193,0.25);
}

.about-avatar {
  flex-shrink: 0;
}

.about-avatar img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffb6c1;
  box-shadow: 0 4px 15px rgba(255,107,138,0.2);
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #6b4a5a;
}

.about-icon {
  color: #ff6b8a;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.likes-dislikes {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.likes-card,
.dislikes-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px 28px;
  flex: 1;
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(255,107,138,0.08);
  border: 1px solid rgba(255,182,193,0.2);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.likes-card.visible,
.dislikes-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.likes-card h3,
.dislikes-card h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.likes-card h3 {
  color: #ff6b8a;
}

.dislikes-card h3 {
  color: #c9788e;
}

.likes-card ul,
.dislikes-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.likes-card li::before {
  content: '~ ';
  color: #ff6b8a;
  font-weight: 700;
}

.dislikes-card li::before {
  content: '~ ';
  color: #c9788e;
  font-weight: 700;
}

.likes-card li,
.dislikes-card li {
  font-size: 0.9rem;
  color: #6b4a5a;
}

/* ==================== TIMELINE SPECIAL CARD ==================== */
.timeline-card.special {
  background: linear-gradient(135deg, rgba(255,154,158,0.15), rgba(254,207,239,0.2));
  border: 2px solid rgba(255,107,138,0.3);
}

.timeline-card.special h3 {
  font-size: 1.6rem;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .intro-title {
    font-size: 2.5rem;
  }

  .hero-title .line1 {
    font-size: 1.5rem;
  }

  .hero-title .line2 {
    font-size: 2.5rem;
  }

  .counter-item {
    min-width: 60px;
    padding: 12px 10px;
  }

  .counter-number {
    font-size: 1.8rem;
  }

  .counter-label {
    font-size: 0.6rem;
  }

  .counter-sep {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 20px;
    text-align: left;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 12px;
    right: auto;
  }

  .about-card {
    flex-direction: column;
    text-align: center;
  }

  .likes-dislikes {
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  .polaroid-inner img {
    height: 200px;
  }

  .letter-paper {
    padding: 28px 24px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-counter {
    gap: 4px;
  }

  .counter-item {
    min-width: 50px;
    padding: 10px 6px;
    border-radius: 12px;
  }

  .counter-number {
    font-size: 1.5rem;
  }

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