/* =============================================
  BASE
============================================= */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'Poppins',sans-serif;
  color:#fff;
  background:#08080e;
  overflow:hidden;
  height:100vh;
  cursor:default;
}
::selection { background:rgba(255,107,157,0.3); color:#fff; }
img { max-width:100%; display:block; }
.container { max-width:1100px; margin:0 auto; padding:0 1.5rem; }

/* =============================================
  HORIZONTAL SLIDES (carousel)
============================================= */
.slides {
  display:flex;
  width:100%;
  height:100vh;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.slides::-webkit-scrollbar { display:none; }
.slide {
  flex:0 0 100vw;
  width:100vw;
  height:100vh;
  scroll-snap-align:start;
  overflow-y:auto;
  overflow-x:hidden;
  position:relative;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.slide::-webkit-scrollbar { display:none; }

/* ===== NAVIGATION BUTTONS ===== */
.nav-btn {
  position:fixed; top:50%; transform:translateY(-50%);
  z-index:9990;
  width:56px; height:56px; border-radius:50%;
  border:1px solid rgba(255,215,0,0.2);
  background:rgba(10,10,18,0.55);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  color:#ffd700; font-size:1.5rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow:0 4px 24px rgba(0,0,0,0.35), 0 0 20px rgba(255,215,0,0.06);
}
.nav-prev { left:1rem; }
.nav-next { right:1rem; }
.nav-btn:hover:not(:disabled) {
  background:rgba(255,215,0,0.12);
  border-color:#ffd700;
  transform:translateY(-50%) scale(1.12);
  box-shadow:0 0 30px rgba(255,215,0,0.2);
}
.nav-btn:active:not(:disabled) { transform:translateY(-50%) scale(0.95); }
.nav-btn:disabled {
  opacity:0.15; cursor:default;
  box-shadow:none; transform:translateY(-50%);
}

/* ===== GOLD GLOW ===== */
.gold-glow {
  text-shadow:0 0 20px rgba(255,215,0,0.3), 0 0 40px rgba(255,215,0,0.1);
}

/* ===== FLOATING PETALS ===== */
.petals-container {
  position:fixed; inset:0; pointer-events:none; z-index:9998;
  overflow:hidden;
}
.petal {
  position:absolute; top:-50px;
  border-radius:50% 0 50% 0; opacity:0.5;
  animation:petalFall linear infinite;
}
@keyframes petalFall {
  0%{transform:translateY(0) rotate(0deg) translateX(0); opacity:0.5}
  25%{transform:translateY(25vh) rotate(120deg) translateX(30px); opacity:0.35}
  50%{transform:translateY(50vh) rotate(240deg) translateX(-25px); opacity:0.25}
  75%{transform:translateY(75vh) rotate(360deg) translateX(20px); opacity:0.15}
  100%{transform:translateY(110vh) rotate(480deg) translateX(-10px); opacity:0}
}

/* ===== CURSOR HEARTS ===== */
.cursor-heart {
  position:fixed; pointer-events:none; z-index:99999;
  animation:heartFloat 1.5s ease-out forwards;
  filter:drop-shadow(0 0 6px rgba(255,107,157,0.5));
}
@keyframes heartFloat {
  0%{transform:translateY(0) scale(0.5) rotate(0deg); opacity:1}
  100%{transform:translateY(-120px) scale(1.2) rotate(20deg); opacity:0}
}

/* ===== DECORATIVE DIVIDER ===== */
.section-divider {
  width:70px; height:3px;
  background:linear-gradient(90deg,transparent,#ffd700,transparent);
  margin:0 auto 1.2rem; border-radius:4px;
  box-shadow:0 0 15px rgba(255,215,0,0.2);
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3 { font-family:'Playfair Display',serif; }

.section-title {
  font-size:2.5rem; text-align:center; margin-bottom:0.7rem;
  background:linear-gradient(135deg,#ffd700,#ff6b9d,#ffd700);
  background-size:200% auto;
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:titleShine 4s ease-in-out infinite;
  letter-spacing:0.5px;
}
@keyframes titleShine {
  0%,100%{background-position:0% center}
  50%{background-position:200% center}
}
.section-subtitle {
  font-size:1rem; text-align:center;
  color:rgba(255,255,255,0.45); margin-bottom:3rem; font-weight:300;
  letter-spacing:0.3px;
}

/* ===== GLASS CARD BASE ===== */
.glass-card {
  background:rgba(255,255,255,0.04);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  box-shadow:0 8px 32px rgba(0,0,0,0.2);
  transition:all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.glass-card:hover {
  background:rgba(255,255,255,0.07);
  border-color:rgba(255,215,0,0.15);
  box-shadow:0 12px 40px rgba(255,215,0,0.08), 0 0 30px rgba(255,215,0,0.04);
  transform:translateY(-3px);
}

/* ===== BUTTON PRIMARY ===== */
.btn-primary {
  font-family:'Poppins',sans-serif;
  font-size:1.05rem; font-weight:600;
  padding:1rem 2.8rem; border:none;
  border-radius:60px; cursor:pointer;
  transition:all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  background:linear-gradient(135deg,#ff1744,#ff6b9d,#ffd700);
  background-size:200% 200%;
  animation:btnShimmer 3s ease-in-out infinite;
  color:#fff; position:relative; overflow:hidden;
  box-shadow:0 4px 25px rgba(255,23,68,0.3);
  display:inline-block; letter-spacing:0.5px;
}
.btn-primary::before {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg,transparent 30%,rgba(255,255,255,0.1) 50%,transparent 70%);
  background-size:200% 200%;
  animation:btnShimmer 3s ease-in-out infinite;
  pointer-events:none;
}
.btn-primary:hover {
  transform:translateY(-4px) scale(1.03);
  box-shadow:0 8px 40px rgba(255,23,68,0.4), 0 0 60px rgba(255,107,157,0.15);
}
.btn-primary:active { transform:translateY(0) scale(0.97); }
.btn-primary.hidden {
  opacity:0; transform:scale(0.8) translateY(-20px);
  pointer-events:none; animation:none;
  margin:0; height:0; padding:0; overflow:hidden;
  transition:all 0.5s ease;
}
@keyframes btnShimmer {
  0%,100%{background-position:0% 50%}
  50%{background-position:100% 50%}
}

/* ===== GLOW KEYFRAMES ===== */
@keyframes glowPulse {
  0%,100%{box-shadow:0 0 20px rgba(255,215,0,0.15), 0 0 40px rgba(255,107,157,0.08)}
  50%{box-shadow:0 0 30px rgba(255,215,0,0.25), 0 0 60px rgba(255,107,157,0.15), 0 0 80px rgba(255,107,157,0.05)}
}
@keyframes fadeUp {
  from{opacity:0; transform:translateY(25px)}
  to{opacity:1; transform:translateY(0)}
}

/* =============================================
  PRELOADER
============================================= */
.preloader {
  position:fixed; inset:0; z-index:99999;
  background:linear-gradient(135deg,#08080e,#1a0510,#2a0015);
  display:flex; align-items:center; justify-content:center;
  transition:opacity 0.6s ease, transform 0.6s ease;
}
.preloader.done {
  opacity:0; transform:scale(1.05); pointer-events:none;
}
.preloader-inner { text-align:center; }
.preloader-hearts {
  font-size:2.5rem; letter-spacing:1rem; margin-bottom:1rem;
  animation:preloaderHeart 1s ease-in-out infinite;
  color:#ffd700;
  filter:drop-shadow(0 0 10px rgba(255,215,0,0.4));
}
@keyframes preloaderHeart {
  0%,100%{transform:scale(1); opacity:0.7}
  50%{transform:scale(1.2); opacity:1}
}
.preloader-text {
  font-family:'Playfair Display',serif;
  font-size:1.1rem; color:rgba(255,255,255,0.5);
  margin-bottom:1.5rem; letter-spacing:0.5px;
}
.preloader-bar {
  width:220px; height:3px; background:rgba(255,255,255,0.06);
  border-radius:10px; margin:0 auto; overflow:hidden;
}
.preloader-fill {
  width:0%; height:100%;
  background:linear-gradient(90deg,#ff1744,#ff6b9d,#ffd700);
  border-radius:10px;
  animation:preloaderLoad 2.5s ease forwards;
}
@keyframes preloaderLoad {
  0%{width:0%}
  30%{width:30%}
  60%{width:65%}
  100%{width:100%}
}

/* =============================================
  SCROLL PROGRESS
============================================= */
.scroll-progress {
  position:fixed; top:0; left:0; height:3px;
  background:linear-gradient(90deg,#ff1744,#ff6b9d,#ffd700);
  z-index:9999; width:0%; transition:width 0.15s ease;
  box-shadow:0 0 10px rgba(255,215,0,0.3);
}

/* =============================================
  HERO
============================================= */
.hero {
  min-height:100vh;
  min-height:100dvh;
  display:flex; flex-direction:column;
  justify-content:center; align-items:center; position:relative;
  text-align:center; padding:2rem;
  background:linear-gradient(135deg,#08080e 0%,#1a0510 30%,#2a0015 60%,#0d0020 100%);
  overflow:hidden;
}
#particleCanvas {
  position:absolute; inset:0; width:100%; height:100%;
  z-index:1; pointer-events:none;
}
.hero-overlay {
  position:absolute; inset:0;
  background:radial-gradient(ellipse at 30% 40%,rgba(255,215,0,0.06) 0%,transparent 50%),
             radial-gradient(ellipse at 70% 60%,rgba(255,107,157,0.08) 0%,transparent 50%);
  z-index:2; pointer-events:none;
}
.hero-content { position:relative; z-index:3; max-width:800px; animation:fadeUp 1s ease 0.5s both; }

.hero-badge {
  display:inline-block;
  font-size:0.75rem; text-transform:uppercase; letter-spacing:5px;
  color:rgba(255,215,0,0.7); font-weight:300; margin-bottom:1.2rem;
  padding:0.4rem 1.4rem;
  border:1px solid rgba(255,215,0,0.15);
  border-radius:30px;
  background:rgba(255,215,0,0.04);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  box-shadow:0 0 20px rgba(255,215,0,0.05);
}

.hero-title {
  font-size:4.5rem; font-weight:900; line-height:1.15; margin-bottom:0.8rem;
  background:linear-gradient(135deg,#fff 0%,#ffd700 30%,#ff6b9d 60%,#ffd700 100%);
  background-size:200% auto;
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:titleShine 5s ease-in-out infinite;
}
.hero-name {
  display:block; font-size:2.8rem; font-weight:700; margin-top:0.3rem;
  background:linear-gradient(135deg,#ffd700,#ff6b9d,#ffd700);
  background-size:200% auto;
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:titleShine 5s ease-in-out infinite 0.5s;
  filter:drop-shadow(0 0 18px rgba(255,215,0,0.35));
  position:relative;
}
.sparkle {
  display:inline-block; font-size:1.5rem; margin:0 0.7rem;
  -webkit-text-fill-color:#ffd700;
  text-shadow:0 0 14px rgba(255,215,0,0.95);
  vertical-align:middle;
  animation:sparkleTwinkle 2.2s ease-in-out infinite;
}
.sparkle.s2 { animation-delay:1.1s; }
@keyframes sparkleTwinkle {
  0%,100% { opacity:0.15; transform:scale(0.5) rotate(0deg); }
  50% { opacity:1; transform:scale(1.3) rotate(20deg); }
}
.hero-greeting {
  font-family:'Playfair Display',serif;
  font-size:1.35rem; color:#ffd700; margin-bottom:0.5rem;
  letter-spacing:1px; opacity:0.95;
  text-shadow:0 0 20px rgba(255,215,0,0.25);
}
.hero-subtitle {
  font-size:1.05rem; color:rgba(255,255,255,0.55);
  line-height:1.8; margin-bottom:2.5rem; font-weight:300;
  letter-spacing:0.3px;
}

/* ===== COUNTDOWN ===== */
.countdown { display:flex; align-items:center; justify-content:center; gap:0.5rem; }
.cd-item {
  background:rgba(255,255,255,0.04);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:16px;
  padding:0.9rem 1.3rem; min-width:80px; text-align:center;
  transition:all 0.3s ease;
  box-shadow:0 4px 20px rgba(0,0,0,0.15);
}
.cd-item:hover {
  border-color:rgba(255,215,0,0.15);
  box-shadow:0 4px 30px rgba(255,215,0,0.05);
}
.cd-item span {
  display:block; font-family:'Playfair Display',serif;
  font-size:2.2rem; font-weight:700; color:#fff; line-height:1.2;
  text-shadow:0 0 20px rgba(255,215,0,0.1);
}
.cd-item small {
  font-size:0.6rem; text-transform:uppercase; letter-spacing:2px;
  color:rgba(255,255,255,0.4);
}
.cd-dot { font-size:1.6rem; color:rgba(255,215,0,0.15); margin-bottom:1.2rem; }

.scroll-arrow {
  position:absolute; bottom:2rem; font-size:1.6rem;
  color:rgba(255,215,0,0.25); animation:bounceX 2s ease-in-out infinite;
  z-index:3; cursor:pointer; transition:color 0.3s ease;
  filter:drop-shadow(0 0 8px rgba(255,215,0,0.15));
}
.scroll-arrow:hover { color:rgba(255,215,0,0.7); }
@keyframes bounceX { 0%,100%{transform:translateX(0)} 50%{transform:translateX(12px)} }

/* =============================================
  LOVE LETTER / ENVELOPE
============================================= */
.letter-section {
  padding:6rem 0; text-align:center;
  background:linear-gradient(180deg,#08080e 0%,#12060c 100%);
  position:relative;
}
.letter-section::before {
  content:''; position:absolute; top:0; left:10%; width:80%; height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,215,0,0.2),transparent);
}

.envelope {
  width:320px; height:240px; margin:0 auto; position:relative;
  cursor:pointer; perspective:800px;
}
.envelope-body {
  width:100%; height:100%;
  background:linear-gradient(135deg,#8b0020,#ff1744,#ff6b9d);
  border-radius:10px; display:flex; align-items:center; justify-content:center;
  position:relative; z-index:2;
  box-shadow:0 8px 40px rgba(255,23,68,0.2), 0 0 60px rgba(255,107,157,0.08);
  transition:transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.envelope:hover .envelope-body { transform:scale(1.03); box-shadow:0 12px 50px rgba(255,23,68,0.3), 0 0 80px rgba(255,107,157,0.12); }
.envelope-heart { font-size:3rem; filter:drop-shadow(0 0 20px rgba(255,255,255,0.4)); }

.envelope-flap {
  position:absolute; top:0; left:0; width:100%; height:60%;
  background:linear-gradient(135deg,#ff1744,#ff6b9d);
  border-radius:10px 10px 0 0; z-index:3;
  clip-path:polygon(0 0, 100% 0, 50% 100%);
  transform-origin:top; transition:transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow:0 -4px 20px rgba(0,0,0,0.2);
}
.envelope.open .envelope-flap { transform:rotateX(180deg); z-index:1; }

.letter-paper {
  position:absolute; top:50%; left:50%; width:90%; height:85%;
  transform:translate(-50%,-50%) scaleY(0);
  transform-origin:bottom; transition:transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94) 0.2s;
  background:linear-gradient(135deg,#fffdf5,#fff5e6);
  border-radius:8px; z-index:1; padding:1.8rem;
  overflow-y:auto; box-shadow:0 6px 30px rgba(0,0,0,0.2);
}
.envelope.open .letter-paper { transform:translate(-50%,-60%) scaleY(1); z-index:4; }

.letter-content { text-align:left; color:#3d1a1a; }
.letter-content h3 {
  font-family:'Playfair Display',serif; font-size:1.3rem;
  color:#8b0020; margin-bottom:0.8rem;
}
.letter-content p {
  font-size:0.85rem; line-height:1.9; color:#5a2a2a; margin-bottom:0.7rem;
}
.letter-sign { margin-top:1.2rem; font-size:0.9rem; color:#8b0020; }

/* =============================================
  REASONS
============================================= */
.reasons-section {
  padding:6rem 0;
  background:linear-gradient(180deg,#12060c 0%,#08080e 100%);
  position:relative;
}
.reasons-section::before {
  content:''; position:absolute; top:0; left:10%; width:80%; height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,215,0,0.2),transparent);
}

.reasons-start-btn {
  display:block; margin:0 auto 3rem;
}

.reasons-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1rem; max-width:900px; margin:0 auto;
  animation:fadeUp 0.8s ease;
}
.reason-card {
  max-width:560px; margin:0 auto; padding:0; text-align:center; cursor:default;
  position:relative; overflow:hidden;
  border-radius:20px;
  box-shadow:0 12px 40px rgba(0,0,0,0.35), 0 0 35px rgba(255,215,0,0.05);
  transition:all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reason-bg {
  position:absolute; inset:0; z-index:0;
}
.reason-bg img {
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reason-bg::after {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255,215,0,0.10), transparent 55%),
    linear-gradient(180deg,rgba(12,6,14,0.50) 0%,rgba(12,6,14,0.78) 100%);
}
.reason-content {
  position:relative; z-index:1; padding:2.6rem 2.2rem;
}
.reason-card:hover {
  box-shadow:0 16px 50px rgba(0,0,0,0.45), 0 0 50px rgba(255,215,0,0.12);
  border:1px solid rgba(255,215,0,0.4);
}
.reason-card:hover .reason-bg img { transform:scale(1.08); }
.reason-icon { font-size:2.6rem; margin-bottom:1rem; display:block; }
.reason-card p { font-size:1.05rem; color:rgba(255,255,255,0.92); line-height:1.9; text-shadow:0 1px 12px rgba(0,0,0,0.8); }

/* =============================================
  GALLERY — Dinding Polaroid
============================================= */
.gallery {
  padding:3.5rem 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,190,80,0.06), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 16px),
    linear-gradient(180deg,#0d0913 0%,#170c16 100%);
  position:relative; overflow:hidden;
}

.string-lights {
  position:absolute; top:20px; left:0; right:0; height:80px;
  pointer-events:none; z-index:0;
}
.string-lights::before {
  content:''; position:absolute; left:-2%; right:-2%; top:0; height:80px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='80' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0,8 C250,48 950,48 1200,8' fill='none' stroke='rgba(255,220,150,0.28)' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-size:100% 100%;
}
.string-lights .light {
  position:absolute; width:9px; height:9px; margin-left:-4.5px; border-radius:50%;
  background:radial-gradient(circle at 50% 35%, #fff8dd, #ffd76e 60%, #ffb43c);
  box-shadow:0 0 6px 2px rgba(255,215,0,0.55), 0 0 16px 6px rgba(255,190,80,0.22);
  animation:lightTwinkle 2s ease-in-out infinite;
}
@keyframes lightTwinkle {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.35; transform:scale(0.7); }
}

.gallery-start-btn {
  display:block; margin:0 auto;
}

.gallery-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem;
  max-width:1000px; margin:0 auto;
  animation:fadeUp 0.8s ease;
  position:relative; z-index:1;
}

.gallery-item {
  display:none; position:relative; aspect-ratio:1;
  cursor:pointer; line-height:0;
  opacity:0;
  transition:opacity 0.7s ease;
}
.gallery-item.revealed { display:block; opacity:1; }
.gallery-item:nth-child(4n+1) { --rot:-2.6deg; }
.gallery-item:nth-child(4n+2) { --rot:2.2deg; }
.gallery-item:nth-child(4n+3) { --rot:-1.4deg; }
.gallery-item:nth-child(4n)   { --rot:2.8deg; }
.gallery-item:nth-child(4n+1) { animation:galleryFloat 6s ease-in-out infinite; }
.gallery-item:nth-child(4n+2) { animation:galleryFloat 7s ease-in-out 1s infinite; }
.gallery-item:nth-child(4n+3) { animation:galleryFloat 6.5s ease-in-out 0.5s infinite; }
.gallery-item:nth-child(4n)   { animation:galleryFloat 7.5s ease-in-out 1.5s infinite; }
@keyframes galleryFloat {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-6px); }
}

.gallery-inner {
  position:absolute; inset:4px;
  background:linear-gradient(180deg,#ffffff 0%,#f8f4ec 88%,#efe7da 100%);
  border-radius:6px;
  padding:8px 8px 34px;
  box-shadow:0 8px 22px rgba(0,0,0,0.45), 0 2px 5px rgba(0,0,0,0.5);
  opacity:0; transform:scale(0.55) rotate(var(--rot,0deg));
  transition:opacity 0.5s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}
.gallery-item.revealed .gallery-inner { opacity:1; transform:scale(1) rotate(var(--rot,0deg)); }

.gallery-tape {
  position:absolute; top:-11px; left:50%; z-index:2;
  width:76px; height:20px;
  background:rgba(255,255,255,0.5);
  border-left:2px dashed rgba(0,0,0,0.07);
  border-right:2px dashed rgba(0,0,0,0.07);
  box-shadow:0 1px 3px rgba(0,0,0,0.18);
}
.gallery-item:nth-child(4n+1) .gallery-tape { transform:translateX(-55%) rotate(6deg); }
.gallery-item:nth-child(4n+2) .gallery-tape { transform:translateX(-45%) rotate(-7deg); }
.gallery-item:nth-child(4n+3) .gallery-tape { transform:translateX(-52%) rotate(4deg); }
.gallery-item:nth-child(4n)   .gallery-tape { transform:translateX(-48%) rotate(-5deg); }

.gallery-photo {
  position:relative; width:100%; aspect-ratio:1;
  border-radius:4px; overflow:hidden;
  background:#e9e2d6; z-index:1;
  box-shadow:0 0 0 1px rgba(0,0,0,0.08);
}
.gallery-photo img {
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gallery-item:hover .gallery-photo img { transform:scale(1.1); }

.gallery-inner::after {
  content:'17 . 08 . 2026  \2665';
  position:absolute; left:0; right:0; bottom:8px; text-align:center;
  font-family:'Segoe Script','Brush Script MT',cursive;
  font-size:0.85rem; color:#6b5a4c; letter-spacing:0.5px;
}

.gallery-item:hover .gallery-inner {
  transform:scale(1.05) rotate(0deg) translateY(-10px);
  box-shadow:0 18px 45px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.35), 0 0 60px rgba(255,190,80,0.15);
}

.gallery-overlay {
  position:absolute; top:8px; left:8px; right:8px; bottom:34px; border-radius:4px; z-index:2;
  display:flex; align-items:center; justify-content:center;
  font-size:2.2rem; color:#fff;
  background:rgba(40,10,20,0.35);
  opacity:0; transition:opacity 0.35s ease;
  text-shadow:0 2px 15px rgba(255,215,0,0.6);
}
.gallery-overlay span {
  transform:scale(0.3); display:inline-block;
  transition:transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.gallery-item:hover .gallery-overlay { opacity:1; }
.gallery-item:hover .gallery-overlay span { transform:scale(1); }

.gallery-expand-btn {
  display:none; margin:2.8rem auto 0; position:relative; z-index:1;
}

/* =============================================
  VIDEO SPESIAL
============================================= */
.video-section {
  padding:5rem 0; text-align:center;
  background:linear-gradient(180deg,#0d0913 0%,#12060c 100%);
  position:relative;
}
.video-section::before {
  content:''; position:absolute; top:0; left:10%; width:80%; height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,215,0,0.2),transparent);
}
.video-frame {
  position:relative;
  width:100%; max-width:760px; margin:0 auto;
  aspect-ratio:16/9;
  max-height:66vh;
  border-radius:20px; overflow:hidden;
  border:1px solid rgba(255,215,0,0.18);
  box-shadow:0 10px 50px rgba(0,0,0,0.45), 0 0 60px rgba(255,107,157,0.08);
  background:#000;
  opacity:0;
  transform:translateY(28px) scale(0.95);
  transition:opacity 0.9s cubic-bezier(0.25,0.46,0.45,0.94),
             transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94),
             box-shadow 0.6s ease, border-color 0.6s ease;
}
.video-frame::before {
  content:''; position:absolute; inset:-2px; z-index:1;
  border-radius:22px; padding:2px;
  background:linear-gradient(135deg,transparent 20%,rgba(255,215,0,0.55) 45%,rgba(255,107,157,0.6) 60%,transparent 80%);
  background-size:250% 250%;
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0; pointer-events:none;
  transition:opacity 0.5s ease;
  animation:gradientFlow 3.2s linear infinite;
}
.video-section.slide-visible .video-frame {
  opacity:1; transform:translateY(0) scale(1);
}
.video-frame:hover::before,
.video-frame.playing::before { opacity:1; }
@keyframes gradientFlow {
  0%{background-position:0% 50%}
  100%{background-position:250% 50%}
}
.video-frame.playing {
  border-color:rgba(255,215,0,0.45);
  box-shadow:0 12px 60px rgba(0,0,0,0.5), 0 0 80px rgba(255,215,0,0.18), 0 0 130px rgba(255,107,157,0.12);
}
.video-frame video {
  width:100%; height:100%;
  display:block;
  object-fit:contain;
  background:#000;
  transition:opacity 0.6s ease, filter 0.6s ease;
}
.video-duration {
  position:absolute; right:14px; bottom:14px; z-index:3;
  padding:0.35rem 0.85rem; border-radius:10px;
  background:rgba(8,8,14,0.62);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,215,0,0.25);
  color:#ffd700; font-size:0.8rem; font-weight:600;
  letter-spacing:0.5px; font-family:'Poppins',sans-serif;
  box-shadow:0 4px 14px rgba(0,0,0,0.3);
  pointer-events:none;
}
.video-caption {
  margin-top:1.1rem;
  font-size:0.95rem; color:rgba(255,255,255,0.72);
  font-style:italic; font-family:'Poppins',sans-serif;
  letter-spacing:0.4px;
}
.video-play-hint {
  position:absolute; inset:0; z-index:2;
  display:flex; align-items:center; justify-content:center;
  background:rgba(8,8,14,0.45);
  cursor:pointer;
  transition:opacity 0.4s ease, background 0.4s ease;
}
.video-play-hint:hover { background:rgba(8,8,14,0.3); }
.video-play-hint.playing { opacity:0; pointer-events:none; }
.video-play-icon {
  width:92px; height:92px; border-radius:50%;
  background:linear-gradient(135deg,#ff1744,#ff6b9d);
  display:flex; align-items:center; justify-content:center;
  font-size:2.4rem; color:#fff; padding-left:10px;
  box-shadow:0 0 40px rgba(255,23,68,0.5);
  animation:playPulse 2s ease-in-out infinite;
  border:3px solid rgba(255,255,255,0.35);
}
@keyframes playPulse {
  0%,100%{transform:scale(1); box-shadow:0 0 30px rgba(255,23,68,0.4)}
  50%{transform:scale(1.07); box-shadow:0 0 55px rgba(255,23,68,0.65), 0 0 90px rgba(255,107,157,0.2)}
}

/* =============================================
  SURPRISE BUTTON + GLOW
============================================= */
.surprise-section {
  padding:5rem 0; text-align:center;
  background:linear-gradient(180deg,#12060c 0%,#08080e 100%);
  position:relative;
}
.surprise-section::before {
  content:''; position:absolute; top:0; left:10%; width:80%; height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,215,0,0.2),transparent);
}
.surprise-btn {
  font-size:1.2rem; padding:1.2rem 3rem;
}
.surprise-btn:disabled {
  cursor:not-allowed; opacity:0.4; animation:none;
  box-shadow:none; transform:none;
}

/* =============================================
  POPUP OVERLAY
============================================= */
.popup-overlay {
  position:fixed; inset:0; z-index:9999;
  background:rgba(6,6,12,0.92);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  display:none; align-items:center; justify-content:center;
  padding:1.5rem; animation:fadeIn 0.4s ease;
}
.popup-overlay.active { display:flex; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

body.popup-active .hero,
body.popup-active .photo-section,
body.popup-active .letter-section,
body.popup-active .reasons-section,
body.popup-active .gallery,
body.popup-active .video-section,
body.popup-active .surprise-section,
body.popup-active .footer {
  filter:blur(8px); transition:filter 0.4s ease;
  pointer-events:none; user-select:none;
}

#fireworksCanvas {
  position:absolute; inset:0; width:100%; height:100%;
  z-index:1; pointer-events:none;
}

.popup-close {
  position:absolute; top:1.5rem; right:1.5rem;
  width:50px; height:50px; border:2px solid rgba(255,255,255,0.1);
  border-radius:50%; background:rgba(0,0,0,0.3);
  color:#fff; font-size:2rem; cursor:pointer; z-index:10;
  display:flex; align-items:center; justify-content:center;
  transition:all 0.3s ease;
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.popup-close:hover {
  background:rgba(255,23,68,0.3); border-color:#ffd700;
  transform:rotate(90deg) scale(1.1);
  box-shadow:0 0 20px rgba(255,215,0,0.15);
}

.popup-inner {
  position:relative; z-index:2; text-align:center;
  max-width:480px; width:100%;
  animation:popIn 0.7s cubic-bezier(0.25,0.46,0.45,0.94) 0.2s both;
}
@keyframes popIn {
  from{opacity:0; transform:scale(0.85) translateY(30px)}
  to{opacity:1; transform:scale(1) translateY(0)}
}

.popup-photo-wrap {
  width:min(340px, 46vh);
  height:min(340px, 46vh);
  margin:0 auto 2rem;
  border-radius:50%; padding:6px;
  background:linear-gradient(135deg,#ff1744,#ff6b9d,#ffd700,#ff6b9d,#ff1744);
  background-size:300% 300%;
  animation:gradientSpin 6s ease infinite, photoPop 0.7s cubic-bezier(0.34,1.56,0.64,1) both;
  box-shadow:0 0 60px rgba(255,215,0,0.18), 0 0 120px rgba(255,107,157,0.1);
}
@keyframes photoPop {
  from{opacity:0; transform:scale(0.6)}
  to{opacity:1; transform:scale(1)}
}
@keyframes gradientSpin { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.popup-photo-wrap img {
  width:100%; height:100%; border-radius:50%;
  object-fit:cover; border:3px solid rgba(255,255,255,0.8);
}

.popup-label {
  font-size:0.8rem; text-transform:uppercase; letter-spacing:3px;
  color:rgba(255,215,0,0.6); margin-bottom:0.6rem;
}
.popup-message {
  font-size:1.5rem; font-weight:700; color:#fff;
  line-height:1.6; min-height:3rem;
  text-shadow:0 0 20px rgba(255,215,0,0.1);
}
.popup-counter {
  margin-top:1rem; font-size:0.75rem; letter-spacing:2px;
  text-transform:uppercase; color:rgba(255,255,255,0.4);
}

/* ===== FLOATING PHOTOS (seperti love-love) ===== */
.float-layer {
  position:fixed; inset:0; z-index:1;
  pointer-events:none; overflow:hidden;
}
.float-item {
  position:absolute; bottom:-150px;
  width:var(--size); height:var(--size);
  opacity:0; will-change:transform,opacity;
  animation:floatUp var(--dur) linear forwards;
}
.float-item img {
  width:100%; height:100%; object-fit:cover; border-radius:50%;
  border:3px solid rgba(255,255,255,0.85);
  box-shadow:0 8px 30px rgba(0,0,0,0.45), 0 0 25px rgba(255,107,157,0.35);
  display:block;
  animation:sway var(--sway) ease-in-out infinite alternate;
}
.float-item.is-heart {
  width:auto; height:auto;
  font-size:var(--size);
  line-height:1;
  filter:drop-shadow(0 4px 15px rgba(255,107,157,0.5));
}
@keyframes floatUp {
  0% { transform:translateY(0) rotate(var(--rot)) scale(0.5); opacity:0; }
  8% { opacity:1; }
  80% { opacity:1; }
  100% { transform:translateY(calc(-100vh - 180px)) rotate(var(--rot2)) scale(1.05); opacity:0; }
}
@keyframes sway {
  from { transform:translateX(-16px) rotate(-5deg); }
  to { transform:translateX(16px) rotate(5deg); }
}

/* ===== TYPING CURSOR ===== */
.typing-cursor::after {
  content:'|'; animation:blinkCursor 0.8s step-end infinite;
  color:#ffd700; margin-left:2px;
  text-shadow:0 0 10px rgba(255,215,0,0.3);
}
@keyframes blinkCursor { 0%,100%{opacity:1} 50%{opacity:0} }

/* =============================================
  FADE ON SCROLL
============================================= */
.fade-scroll {
  opacity:0; transform:translateY(30px);
  transition:opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.fade-scroll.visible { opacity:1; transform:translateY(0); }

/* =============================================
  PHOTO SECTION (SATU-SATU)
============================================= */
.photo-section {
  padding:6rem 0; text-align:center;
  background:linear-gradient(180deg,#12060c 0%,#08080e 50%,#12060c 100%);
  position:relative; overflow:hidden;
}
.photo-section::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse at 50% 0%,rgba(255,215,0,0.05) 0%,transparent 60%);
  pointer-events:none;
}
.photo-section::after {
  content:''; position:absolute; top:0; left:10%; width:80%; height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,215,0,0.2),transparent);
}

.photo-start-btn {
  margin-bottom:3rem;
}

.photo-sequence {
  position:relative; min-height:400px;
  display:flex; flex-direction:row; align-items:center; justify-content:center;
  gap:3rem; flex-wrap:wrap;
}

.photo-stage {
  opacity:0; transform:translateX(-80px) scale(0.9);
  transition:all 1s cubic-bezier(0.25,0.46,0.45,0.94); display:none;
}
.photo-stage.from-right {
  transform:translateX(80px) scale(0.9);
}
.photo-stage.visible {
  opacity:1; transform:translateX(0) scale(1);
  display:block;
}

.photo-frame {
  width:260px; height:260px; margin:0 auto 1.5rem;
  border-radius:50%; padding:6px;
  background:linear-gradient(135deg,#ff1744,#ff6b9d,#ffd700,#ff6b9d,#ff1744);
  background-size:300% 300%;
  animation:gradientSpin 6s ease infinite;
  box-shadow:0 0 50px rgba(255,215,0,0.1), 0 0 80px rgba(255,107,157,0.08);
  position:relative;
  transition:transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.photo-frame:hover {
  transform:scale(1.03);
  box-shadow:0 0 60px rgba(255,215,0,0.15), 0 0 100px rgba(255,107,157,0.12);
}
.photo-frame img {
  width:100%; height:100%; border-radius:50%;
  object-fit:cover; border:3px solid rgba(255,255,255,0.8);
  display:block; position:relative; z-index:2;
}
.photo-glowing {
  position:absolute; inset:-10px; border-radius:50%;
  background:radial-gradient(circle,rgba(255,215,0,0.2) 0%,transparent 70%);
  animation:photoPulse 3s ease-in-out infinite;
  z-index:1;
}
@keyframes photoPulse {
  0%,100%{transform:scale(1); opacity:0.4}
  50%{transform:scale(1.1); opacity:0.7}
}

.photo-text {
  font-family:'Playfair Display',serif;
  font-size:1.2rem; color:rgba(255,255,255,0.8);
  line-height:1.8; min-height:3rem;
  background:rgba(255,255,255,0.03);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  padding:1rem 2rem; border-radius:16px;
  display:inline-block; max-width:90%;
  border:1px solid rgba(255,215,0,0.08);
  box-shadow:0 4px 20px rgba(0,0,0,0.1);
}

/* =============================================
  MUSIC
============================================= */
.music-btn {
  position:fixed; bottom:1.5rem; right:1.5rem;
  width:54px; height:54px; border:2px solid rgba(255,255,255,0.08);
  border-radius:50%; background:rgba(6,6,12,0.6);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  color:#fff; font-size:1.3rem; cursor:pointer;
  transition:all 0.4s cubic-bezier(0.25,0.46,0.45,0.94); z-index:100;
  box-shadow:0 4px 20px rgba(0,0,0,0.3);
  display:flex; align-items:center; justify-content:center;
}
.music-btn:hover {
  background:rgba(255,215,0,0.1); border-color:#ffd700;
  transform:scale(1.12);
  box-shadow:0 0 30px rgba(255,215,0,0.1);
}
.music-btn.playing {
  border-color:#ffd700;
  animation:musicPulse 2s ease-in-out infinite;
}
@keyframes musicPulse {
  0%,100%{box-shadow:0 0 15px rgba(255,215,0,0.1), 0 0 30px rgba(255,107,157,0.05)}
  50%{box-shadow:0 0 25px rgba(255,215,0,0.2), 0 0 50px rgba(255,107,157,0.1), 0 0 60px rgba(255,215,0,0.05)}
}

/* ===== SLIDE COUNTER ===== */
.slide-counter {
  position:fixed; bottom:1.5rem; left:1.5rem; z-index:9990;
  padding:0.45rem 1rem; border-radius:20px;
  background:rgba(6,6,12,0.6);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,215,0,0.18);
  color:#ffd700; font-size:0.85rem; font-weight:600;
  font-family:'Poppins',sans-serif; letter-spacing:1px;
  box-shadow:0 4px 20px rgba(0,0,0,0.3);
  pointer-events:none;
}

/* =============================================
  FOOTER
============================================= */
.footer {
  padding:3rem 0; text-align:center;
  border-top:1px solid rgba(255,215,0,0.04);
  background:#08080e;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
}
.footer p { font-size:1rem; color:rgba(255,255,255,0.5); letter-spacing:0.3px; }
.footer-small { font-size:0.75rem; color:rgba(255,255,255,0.25); margin-top:0.3rem; letter-spacing:0.5px; }

/* =============================================
  RESPONSIVE
============================================= */
@media(max-width:768px){
  .hero-title{font-size:2.8rem}
  .hero-name{font-size:1.8rem}
  .cd-item{min-width:60px; padding:0.6rem 0.8rem}
  .cd-item span{font-size:1.5rem}
  .cd-dot{font-size:1.2rem}
  .section-title{font-size:1.8rem}
  .gallery-grid{grid-template-columns:repeat(3,1fr); gap:1.4rem; max-width:680px}
  .popup-photo-wrap{width:min(260px, 40vh); height:min(260px, 40vh)}
  .popup-message{font-size:1.2rem}
  .envelope{width:280px; height:210px}
  .photo-frame{width:200px; height:200px}
  .photo-text{font-size:1rem; padding:0.8rem 1.2rem; min-height:2.5rem}
  .reasons-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:480px){
  .hero-title{font-size:2rem}
  .hero-name{font-size:1.3rem}
  .hero-greeting{font-size:1.1rem}
  .hero-subtitle{font-size:0.9rem}
  .cd-item{min-width:50px; padding:0.5rem 0.6rem}
  .cd-item span{font-size:1.1rem}
  .cd-item small{font-size:0.5rem}
  .cd-dot{font-size:0.9rem}
  .section-title{font-size:1.5rem}
  .gallery-grid{grid-template-columns:repeat(2,1fr); gap:1.2rem; max-width:100%}
  .reasons-grid{grid-template-columns:1fr}
  .popup-photo-wrap{width:min(200px, 38vh); height:min(200px, 38vh)}
  .popup-message{font-size:1rem}
  .envelope{width:240px; height:180px}
  .photo-frame{width:170px; height:170px}
  .photo-text{font-size:0.9rem; padding:0.7rem 1rem}
  .btn-primary,.photo-start-btn,.gallery-start-btn,.reasons-start-btn,.surprise-btn{font-size:0.9rem; padding:0.8rem 1.8rem}
  .container{padding:0 1.2rem}
  .video-play-icon{width:68px; height:68px; font-size:1.7rem; padding-left:7px}
  .nav-btn{width:46px; height:46px; font-size:1.2rem}
  .nav-prev{left:0.6rem}
  .nav-next{right:0.6rem}
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:0.001s !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001s !important;
  }
  html { scroll-behavior:auto; }
}
