/* ============================================
   ANNIVERSARY PAGE — RETRO AESTHETIC
   Irvanda & Anisyah | 17 April 2026
   ============================================ */

:root {
  --bg-dark:      #0c0806;
  --bg-mid:       #1a1008;
  --bg-light:     #251810;
  --gold:         #c9a84c;
  --gold-light:   #e8cc7a;
  --gold-dim:     rgba(201,168,76,0.15);
  --rose:         #b86b5f;
  --rose-light:   #dda090;
  --cream:        #f2dfc8;
  --cream-light:  #faf5ed;
  --paper:        #f0ddc4;
  --text-pri:     #eddbbf;
  --text-sec:     #a88060;
  --text-muted:   #6a5040;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-retro:   'Special Elite', 'Courier New', monospace;
  --font-script:  'Dancing Script', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-pri);
  font-family: var(--font-retro);
  overflow-x: hidden;
  cursor: default;
}

/* ─── FILM GRAIN ─── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
  animation: grain-anim 0.25s steps(1) infinite;
}
@keyframes grain-anim {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(2%,-2%); }
  60%  { transform: translate(-1%, 2%); }
  80%  { transform: translate(1%,-1%); }
  100% { transform: translate(0,0); }
}

/* ─── PARTICLES ─── */
.particles-container {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  overflow: hidden;
}
.particle {
  position: absolute;
  animation: float-up linear infinite;
  opacity: 0;
  user-select: none;
}
@keyframes float-up {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.8; }
  92%  { opacity: 0.3; }
  100% { transform: translateY(-5vh) rotate(360deg); opacity: 0; }
}

/* ─── ANNIVERSARY BANNER ─── */
.anniversary-banner {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 5000;
  background: linear-gradient(135deg, #7a2020, #c9a84c, #7a2020);
  color: var(--cream-light);
  text-align: center;
  padding: 0.8rem 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.05em;
  animation: slide-down 0.6s ease;
}
@keyframes slide-down {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* ─── MUSIC PLAYER ─── */
.music-player {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 1000;
  display: flex; flex-direction: column; gap: 6px;
  align-items: center;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.6));
}
.cassette-body {
  width: 164px;
  background: #120a06;
  border: 2px solid var(--gold);
  border-radius: 8px 8px 4px 4px;
  padding: 10px 10px 8px;
  box-shadow: 0 0 30px rgba(201,168,76,0.25), inset 0 0 12px rgba(0,0,0,0.6);
}
.cassette-label {
  background: linear-gradient(135deg, #7a2d2d, #a04040);
  border-radius: 4px;
  padding: 5px 8px;
  text-align: center;
  margin-bottom: 8px;
}
.cassette-header {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.75);
}
.cassette-song-title {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.58rem;
  color: var(--cream);
  margin-top: 2px;
}
.cassette-window {
  background: #0a0604;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  padding: 8px 6px 6px;
}
.cassette-reels {
  display: flex; justify-content: space-around; align-items: center;
  margin-bottom: 6px;
}
.reel {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle at 40% 35%, #2a1a0e, #080402);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.reel::before {
  content: '';
  position: absolute; inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(201,168,76,0.4);
}
.reel::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201,168,76,0.6);
}
.reel.spinning { animation: reel-spin 1.8s linear infinite; }
@keyframes reel-spin { to { transform: rotate(360deg); } }

.cassette-tape-line {
  height: 3px;
  background: linear-gradient(90deg, #080402, #4a2a14, #080402);
  border-radius: 2px;
}
.player-controls {
  display: flex; align-items: center; gap: 8px;
  background: rgba(12,8,6,0.92);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  padding: 5px 12px 5px 6px;
  width: 100%;
}
.play-btn {
  width: 30px; height: 30px;
  border-radius: 50%; border: none;
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  padding-left: 2px;
}
.play-btn:hover { background: var(--gold-light); transform: scale(1.1); }
.now-playing {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; flex: 1;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 40%, #281408 0%, var(--bg-dark) 65%);
  overflow: hidden;
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.12;
  animation: orb-drift 10s ease-in-out infinite alternate;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  top: -150px; left: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--rose), transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: -5s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #8f6a3a, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: -3s;
}
@keyframes orb-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,20px) scale(1.15); }
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
}
.stamp-badge {
  display: inline-block;
  border: 1.5px solid var(--gold);
  padding: 0.35rem 1.8rem;
  font-family: var(--font-retro);
  font-size: 0.7rem; letter-spacing: 0.35em;
  color: var(--gold); text-transform: uppercase;
}
.date-stamp {
  font-family: var(--font-retro);
  font-size: 0.8rem; letter-spacing: 0.2em;
  color: var(--text-sec); text-transform: lowercase;
}
.names {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 700; line-height: 1.05;
  color: var(--cream-light);
  text-shadow: 0 0 80px rgba(201,168,76,0.3), 0 4px 20px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}
.amp {
  font-style: italic;
  color: var(--gold);
  font-size: 0.75em;
  margin: 0 0.15em;
}
.tagline {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  color: var(--rose-light);
  opacity: 0.9;
}
.years-badge {
  display: inline-flex; align-items: center; gap: 1rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.8rem 2rem; border-radius: 50px;
}
.years-number {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201,168,76,0.5);
  line-height: 1;
}
.years-text {
  display: flex; flex-direction: column;
  font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--text-sec); line-height: 1.6;
  text-align: left;
}
.years-heart {
  color: var(--rose);
  font-size: 1.2rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

/* Countdown */
.countdown-wrapper { text-align: center; }
.countdown-label {
  font-size: 0.7rem; letter-spacing: 0.35em;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.countdown {
  display: flex; align-items: center;
  gap: 0.6rem; justify-content: center;
}
.count-item {
  text-align: center;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 0.9rem 1rem;
  min-width: 80px;
  position: relative; overflow: hidden;
}
.count-item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.06), transparent);
}
.count-item span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem,5vw,3rem);
  font-weight: 700; color: var(--gold); line-height: 1;
  text-shadow: 0 0 25px rgba(201,168,76,0.5);
  position: relative;
}
.count-item label {
  display: block;
  font-size: 0.6rem; letter-spacing: 0.2em;
  color: var(--text-muted); text-transform: uppercase;
  margin-top: 0.3rem; position: relative;
}
.count-sep {
  font-family: var(--font-display);
  font-size: 2rem; color: var(--gold);
  opacity: 0.5; margin-bottom: 1.2rem;
  animation: sep-blink 1s step-end infinite;
}
@keyframes sep-blink {
  0%,100% { opacity: 0.5; }
  50%      { opacity: 0.1; }
}
.anniversary-celebrate {
  padding: 1.5rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.3);
}
.celebrate-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem,4vw,2.5rem);
  color: var(--gold); font-style: italic;
}
.celebrate-sub {
  font-size: 0.9rem; color: var(--rose-light);
  margin-top: 0.5rem;
}
.scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 0.65rem; letter-spacing: 0.3em; color: var(--text-muted);
  text-transform: uppercase; margin-top: 0.5rem;
  animation: scroll-bounce 2.5s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ─── LOVE LETTER ─── */
.letter-section {
  padding: 7rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 3rem;
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-mid));
}
.section-header {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem,5vw,3.5rem);
  font-style: italic; font-weight: 600;
  color: var(--cream);
}
.section-subtitle {
  font-family: var(--font-retro);
  font-size: 0.78rem; letter-spacing: 0.25em;
  color: var(--text-muted); text-transform: uppercase;
}
.ornament {
  font-size: 0.7rem; letter-spacing: 0.5em;
  color: var(--gold); opacity: 0.7;
}

.letter-paper {
  max-width: 720px; width: 100%;
  background: var(--paper);
  border-radius: 3px; padding: 3.5rem;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.15);
}
.letter-paper::before {
  content: '';
  position: absolute; inset: 12px;
  border: 1px solid rgba(120,80,40,0.2);
  pointer-events: none;
}
.letter-paper::after {
  content: '';
  position: absolute; inset: 0; border-radius: 3px;
  background: repeating-linear-gradient(
    transparent, transparent 31px,
    rgba(100,70,40,0.12) 31px, rgba(100,70,40,0.12) 32px
  );
  pointer-events: none;
}
.corner-deco {
  position: absolute;
  font-size: 0.9rem; color: rgba(120,80,40,0.4);
  z-index: 1;
}
.corner-deco.tl { top: 20px; left: 20px; }
.corner-deco.tr { top: 20px; right: 20px; }
.corner-deco.bl { bottom: 20px; left: 20px; }
.corner-deco.br { bottom: 20px; right: 20px; }

.letter-inner { position: relative; z-index: 1; }
.wax-seal {
  font-size: 3.5rem; display: block;
  text-align: center; margin-bottom: 1.5rem;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}
.letter-to {
  font-size: 0.9rem; color: #5a3020;
  margin-bottom: 1.5rem; line-height: 1.8;
  font-family: var(--font-retro);
}
.letter-recipient {
  font-family: var(--font-display);
  font-style: italic; font-size: 1.3rem;
  color: #7a2a2a;
}
.letter-body {
  font-family: var(--font-display);
  font-style: italic; font-size: 1.05rem;
  line-height: 2.1; color: #3a1e10;
  min-height: 220px; padding-top: 0.5rem;
}
.cursor-blink {
  display: inline-block;
  animation: cur-blink 0.8s step-end infinite;
  color: #8a3020; font-weight: bold;
}
@keyframes cur-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}
.letter-signature-block {
  margin-top: 2.5rem; text-align: right;
}
.sig-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,80,40,0.4));
  margin-bottom: 1rem;
}
.letter-from {
  font-size: 0.85rem; color: #5a3020;
  font-family: var(--font-retro);
}
.letter-sig {
  font-family: var(--font-script);
  font-size: 1.9rem; color: #7a2020;
  margin-top: 0.3rem;
}
.letter-date-sig {
  font-size: 0.75rem; color: #7a5030;
  font-family: var(--font-retro);
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

/* ─── GALLERY ─── */
.gallery-section {
  padding: 7rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-mid), var(--bg-dark));
  text-align: center;
}
.polaroid-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 2rem;
  padding: 1rem 0;
  margin-top: 3rem;
}
.polaroid {
  background: #f5e8d5;
  padding: 14px 14px 48px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.3);
  transform: rotate(var(--rot));
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
  cursor: pointer;
  max-width: 200px;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.08) translateY(-14px);
  box-shadow: 0 35px 70px rgba(0,0,0,0.65), 0 0 40px rgba(201,168,76,0.2);
  z-index: 10;
}
.polaroid-photo {
  width: 172px; height: 172px;
  background: var(--bg-mid);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
}
.polaroid-photo.special { background: #1a0f06; }
.ph-inner { text-align: center; }
.ph-inner span { font-size: 2.8rem; opacity: 0.6; display: block; margin-bottom: 6px; }
.ph-inner p {
  font-family: var(--font-retro);
  font-size: 0.6rem; color: var(--text-muted);
  letter-spacing: 0.1em; opacity: 0.7;
}
.polaroid-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.35) contrast(1.1) brightness(0.93);
}
.pol-caption {
  font-family: var(--font-script);
  font-size: 1rem; color: #5a2820;
  text-align: center; margin-top: 8px; line-height: 1.2;
}
.pol-year {
  font-family: var(--font-retro);
  font-size: 0.6rem; color: #9a6040;
  text-align: center; letter-spacing: 0.15em;
  margin-top: 4px;
}
.gallery-note {
  font-family: var(--font-retro);
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 3rem; opacity: 0.7;
}

/* ─── MILESTONE TIMELINE ─── */
.milestone-section {
  padding: 7rem 1.5rem;
  background: var(--bg-dark);
}
.timeline {
  max-width: 900px; margin: 3rem auto 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}
.tl-item {
  display: flex; align-items: flex-start;
  gap: 0; margin-bottom: 3.5rem;
}
.tl-content {
  width: calc(50% - 25px);
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.12);
  padding: 1.5rem;
  position: relative;
}
.tl-left .tl-content { text-align: right; border-right: 2px solid rgba(201,168,76,0.2); }
.tl-right .tl-content { text-align: left; border-left: 2px solid rgba(201,168,76,0.2); }
.tl-spacer { width: calc(50% - 25px); }
.tl-dot {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1rem; color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.3);
}
.tl-dot.golden {
  background: var(--gold);
  color: var(--bg-dark);
  box-shadow: 0 0 30px rgba(201,168,76,0.6);
  font-weight: 700;
}
.tl-year {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--gold);
  margin-bottom: 0.3rem;
}
.tl-title {
  font-family: var(--font-display);
  font-style: italic; font-size: 1rem;
  color: var(--cream); margin-bottom: 0.6rem;
}
.tl-desc {
  font-family: var(--font-retro);
  font-size: 0.8rem; line-height: 1.7;
  color: var(--text-sec);
}
.tl-golden .tl-content {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.3);
}
.tl-golden .tl-year { color: var(--gold-light); }

/* ─── FOOTER ─── */
.footer {
  padding: 5rem 2rem 4rem;
  text-align: center; background: var(--bg-dark);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-divider {
  display: flex; align-items: center; gap: 1rem;
  justify-content: center;
  font-size: 0.9rem; color: var(--gold);
  margin-bottom: 2.5rem;
}
.fdiv-line {
  flex: 1; max-width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}
.heart-container { margin-bottom: 1rem; }
.heart-main {
  font-size: 3.5rem; color: var(--rose);
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(184,107,95,0.6));
}
.footer-names {
  font-family: var(--font-display);
  font-size: clamp(1.8rem,5vw,3rem);
  font-style: italic; font-weight: 600;
  color: var(--cream); margin-bottom: 0.4rem;
}
.footer-tagline {
  font-family: var(--font-script);
  font-size: 1.3rem; color: var(--rose-light);
  margin-bottom: 0.4rem;
}
.footer-years {
  font-family: var(--font-retro);
  font-size: 0.78rem; letter-spacing: 0.2em;
  color: var(--text-muted); margin-bottom: 2rem;
}
.footer-quote {
  max-width: 560px; margin: 0 auto 2.5rem;
  border-left: 2px solid rgba(201,168,76,0.3);
  border-right: 2px solid rgba(201,168,76,0.3);
  padding: 1rem 2rem;
}
.footer-quote p {
  font-family: var(--font-display);
  font-style: italic; font-size: 1rem;
  color: var(--text-sec); line-height: 1.7;
}
.footer-bottom { margin-top: 1rem; }
.footer-credit {
  font-family: var(--font-retro);
  font-size: 0.7rem; letter-spacing: 0.15em;
  color: var(--text-muted); opacity: 0.6;
  margin-top: 1rem;
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .countdown { gap: 0.4rem; }
  .count-item { min-width: 62px; padding: 0.7rem 0.7rem; }
  .letter-paper { padding: 2rem 1.5rem; }
  .timeline::before { left: 20px; }
  .tl-item, .tl-item.tl-right {
    flex-direction: column !important;
    padding-left: 55px; align-items: flex-start; gap: 0.8rem;
  }
  .tl-content, .tl-spacer { width: 100% !important; }
  .tl-left .tl-content, .tl-right .tl-content { text-align: left !important; border-left: 2px solid rgba(201,168,76,0.2) !important; border-right: none !important; border-top: none; }
  .tl-dot { position: absolute; left: 0; }
  .tl-item { position: relative; }
  .music-player { bottom: 0.8rem; right: 0.8rem; }
  .cassette-body { width: 140px; }
}

@media (max-width: 480px) {
  .polaroid { max-width: 160px; }
  .polaroid-photo { width: 132px; height: 132px; }
  .ph-inner span { font-size: 2.2rem; }
}
