/* --- VARIABLES & RESET --- */
:root {
  --bg-color: #F8F5F2;
  /* Creamy White */
  --surface-color: #ffffff;
  --text-primary: #2C2420;
  /* Dark Brown/Black */
  --text-secondary: #6B5D55;
  --accent-color: #D4A373;
  /* Earthy Gold/Beige */
  --accent-dark: #A97142;
  --romantic-pink: #E6B8B8;
  /* Muted Dusty Pink */
  --soft-blue: #C2D0DCH;
  /* Hint of the requested Blue vibe if needed, mostly used in gradients */

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;

  --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 4%;
}

.section {
  padding: 120px 0;
}

.hidden {
  display: none !important;
}

/* --- ANIMATION CLASSES --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition-smooth);
}

.fade-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: var(--transition-smooth);
}

.fade-left {
  opacity: 0;
  transform: translateX(40px);
  transition: var(--transition-smooth);
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- OVERLAY TEXTURE --- */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNmKSIgb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
  pointer-events: none;
  z-index: 900;
  opacity: 0.4;
}

/* --- FLOATING SHAPES --- */
.floating-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  animation: floatAnim 15s infinite alternate ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: #fae1dd;
  top: -10%;
  left: -10%;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: #f8edeb;
  bottom: 20%;
  right: -5%;
  animation-delay: -5s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: #e8e8e4;
  top: 40%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes floatAnim {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(30px, 50px);
  }
}

/* --- ENTER SCREEN --- */
.enter-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease, transform 1s ease;
}

.enter-content {
  text-align: center;
}

.enter-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.enter-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

.btn-enter {
  background: transparent;
  border: 1px solid var(--text-primary);
  padding: 15px 40px;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-enter:hover {
  background: var(--text-primary);
  color: var(--bg-color);
  transform: scale(1.05);
}

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

/* --- MUSIC PLAYER --- */
.music-control {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition-smooth);
}

.music-disc {
  width: 35px;
  height: 35px;
  background: #000;
  border-radius: 50%;
  position: relative;
  animation: spin 3s linear infinite;
  animation-play-state: paused;
}

.music-control.playing .music-disc {
  animation-play-state: running;
}

.music-disc-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a90e2;
  /* Blue center for Yung Kai Blue vibe */
  border: 2px solid #fff;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.music-info {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  line-height: 1.2;
}

.music-title {
  font-weight: 600;
}

.music-artist {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.btn-music {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero-parallax-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 110%;
  /* Extra height for parallax */
  background-size: cover;
  background-position: center;
  transform: translateY(0);
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 20px;
}

.pre-title {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.main-title {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1.1;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Scroller Animation */
.scroll-downs {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 55px;
}

.mousey {
  width: 3px;
  padding: 10px 15px;
  height: 35px;
  border: 2px solid #fff;
  border-radius: 25px;
  opacity: 0.75;
  box-sizing: content-box;
}

.scroller {
  width: 3px;
  height: 10px;
  border-radius: 25%;
  background-color: #fff;
  animation-name: scroll;
  animation-duration: 2.2s;
  animation-timing-function: cubic-bezier(.15, .41, .69, .94);
  animation-iteration-count: infinite;
}

@keyframes scroll {
  0% {
    opacity: 0;
  }

  10% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(15px);
    opacity: 0;
  }
}

/* --- PHILOSOPHY SECTION --- */
.philosophy {
  text-align: center;
  background: #fff;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 30px;
}

.divider-line {
  width: 60px;
  height: 2px;
  background: var(--accent-color);
  margin: 0 auto;
}

/* --- OUR STORY (Split Layout) --- */
.our-story {
  background: var(--bg-color);
}

.story-layout {
  display: flex;
  align-items: center;
  gap: 80px;
}

.story-image-wrapper {
  flex: 1;
  position: relative;
}

.image-frame {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.parallax-img {
  width: 100%;
  height: auto;
  transform: scale(1.1);
  transition: transform 0.5s ease;
}

.story-image-wrapper:hover .parallax-img {
  transform: scale(1.05);
}

.decorative-circle {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  z-index: -1;
}

.story-content {
  flex: 1;
}

.section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 15px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 30px;
  font-weight: 400;
}

.text-body {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --- TIMELINE (Modern Vertical) --- */
.timeline-section {
  background: #fff;
  position: relative;
  overflow: hidden;
}

.center-tag {
  text-align: center;
  display: block;
  margin-bottom: 10px;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  transform: translateX(-50%);
}

.timeline-block {
  display: flex;
  justify-content: flex-end;
  /* right side */
  padding-right: 50px;
  position: relative;
  margin-bottom: 60px;
  width: 50%;
  margin-left: auto;
  /* Push to right half */
}

.timeline-block.reverse {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50px;
  margin-left: 0;
  /* Left half */
}

.timeline-dot {
  position: absolute;
  top: 20px;
  left: -6px;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.timeline-block.reverse .timeline-dot {
  left: auto;
  right: -6px;
}

.special-dot {
  background: #fff;
  border: 3px solid var(--accent-color);
}

.content-box {
  background: var(--bg-color);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.year {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.content-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* --- GALLERY (Masonry / Mosaic) --- */
.gallery-section {
  padding-top: 50px;
  padding-bottom: 100px;
  overflow: hidden;
}

.marquee-wrapper {
  margin-bottom: 50px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0.3;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-style: italic;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- GALLERY SLIDER (SWIPER GRID) --- */
.gallery-slider {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
  height: 800px;
  /* Needed for Swiper Grid with 2 rows */
}

.swiper-slide {
  height: calc((100% - 30px) / 2) !important;
  /* Force 2 rows division */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  padding: 10px;
  padding-bottom: 30px;
  box-sizing: border-box;
  /* transition: transform 0.3s ease; */
}

/* Remove hover scale for grid slider to avoid layout jitter, or make it subtle */
.swiper-slide:hover {
  transform: translateY(-5px);
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  background-color: #f8f8f8;
}

@media screen and (max-width: 600px) {
  .gallery-slider {
    height: 600px;
  }
}

/* --- LETTER (Sticky) --- */
.letter-section {
  background: #F4F1EA;
}

.letter-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: start;
}

.letter-sticky {
  position: sticky;
  top: 100px;
  text-align: right;
  padding-right: 50px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.sticky-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.heart-icon-animated {
  font-size: 2rem;
  color: var(--romantic-pink);
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.paper-content {
  background: #fff;
  padding: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}

.greeting {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.signature {
  margin-top: 50px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-align: right;
}

/* --- CLOSING --- */
.closing-section {
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  position: relative;
  text-align: center;
}

.final-question {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 20px;
}

.final-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.btn-primary {
  padding: 18px 50px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  letter-spacing: 1px;
}

.btn-primary:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background: var(--accent-dark);
}

.hidden-msg {
  margin-top: 30px;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: #D65A5A;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.hidden-msg.show {
  opacity: 1;
  transform: translateY(0);
}

.minimal-footer {
  padding: 30px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 900px) {
  .main-title {
    font-size: 3.5rem;
  }

  .story-layout {
    flex-direction: column;
    gap: 40px;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-block,
  .timeline-block.reverse {
    width: 100%;
    margin-left: 0;
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 14px !important;
  }

  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .item-1,
  .item-6 {
    grid-column: span 2;
  }

  .letter-layout {
    grid-template-columns: 1fr;
  }

  .letter-sticky {
    position: relative;
    top: 0;
    border: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: center;
  }
}

@media screen and (max-width: 600px) {
  .main-title {
    font-size: 3rem;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: 300px;
  }

  .enter-title {
    font-size: 2rem;
  }

  .music-control {
    padding: 8px 12px;
  }

  .music-info {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* --- HEART BURST ANIMATION --- */
.heart-particle {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e63946'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

@keyframes floatUp {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* --- CUPID BOW MECHANISM --- */
.cupid-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.target-heart {
  font-size: 3rem;
  color: #e63946;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(230, 57, 70, 0.5));
  animation: pulseHeart 1.5s infinite;
  z-index: 10;
}

@keyframes pulseHeart {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.bow-system {
  position: relative;
  width: 220px;
  height: 300px;
  display: flex;
  justify-content: center;
}

.bow-body {
  position: absolute;
  top: 50px;
  width: 100%;
  z-index: 5;
  pointer-events: none;
}

.bow-svg {
  width: 100%;
  overflow: visible;
}

/* Pseudo String (Static for now, dynamic feel via arrow move) */
.bow-string-line {
  position: absolute;
  top: 60px;
  /* Aligned with bow tips approx */
  left: 10px;
  right: 10px;
  /* We don't draw a static straight line because we want it to look pulled. 
       Actually, a simple way is making the string invisible or subtle. 
       Let's skip drawing connected string for simplicity or just put a thin line. */
  height: 1px;
  background: transparent;
}

.cupid-arrow {
  position: absolute;
  top: 50px;
  /* Start position overlapping bow center */
  width: 40px;
  height: 140px;
  /* Long arrow including shaft */
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  z-index: 10;
  touch-action: none;
}

.cupid-arrow:active {
  cursor: grabbing;
}

.arrow-head {
  font-size: 24px;
  color: #e63946;
  transform: rotate(180deg);
  /* Pointing UP if using heart, or normal icon */
  /* If using 'ph-heart', it points down-ish usually. Let's assume standard orientation. */
  z-index: 2;
}

.arrow-shaft {
  width: 4px;
  height: 100px;
  background: #8b5e3c;
  margin-top: -5px;
  /* Connect to head */
}

.arrow-fletching {
  width: 20px;
  height: 20px;
  border-left: 2px solid #8b5e3c;
  border-bottom: 2px solid #8b5e3c;
  transform: rotate(-45deg);
  margin-top: -2px;
}

.arrow-hint {
  position: absolute;
  bottom: -30px;
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
  opacity: 0.8;
  pointer-events: none;
}

.drag-hint {
  margin-top: 150px;
  /* Push below the arrow area */
  font-family: var(--font-heading);
  color: var(--text-secondary);
  text-align: center;
  opacity: 0.7;
}

/* Shoot Animation Class */
.cupid-arrow.shooting {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateY(-500px) !important;
  /* Fly UP and away */
}

/* Mobile adjustment for gallery */
@media screen and (max-width: 600px) {
  .gallery-mosaic {
    grid-template-columns: 1fr;
    /* Single column on mobile for full width visibility */
    gap: 20px;
  }

  .mosaic-item {
    height: auto;
    /* Allow auto height based on aspect ratio container if needed, or fixed */
    aspect-ratio: 4/5;
    /* Standard vertical photo aspect */
  }
}

/* --- GALLERY SLIDER (SWIPER) --- */
.gallery-slider {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  /* Polaroid effect */
  padding: 10px;
  padding-bottom: 40px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Custom Navigation Colors */
.swiper-button-next,
.swiper-button-prev {
  color: var(--accent-color) !important;
}

.swiper-pagination-bullet-active {
  background: var(--accent-color) !important;
}

@media screen and (max-width: 600px) {
  .swiper-slide {
    width: 80%;
    /* Wider on mobile */
    height: 400px;
  }
}