/* ===============================
   RESET & BASE
================================ */
* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* ===============================
   BUTTON
================================ */
.day-button {
  position: fixed;
  bottom: 160px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid #26A375;
  background: rgba(38,163,117,.85);
  cursor: pointer;
  z-index: 9998;
  transition: .25s ease;
}

.day-button::after {
  content: "🎉";
  font-size: 22px;
}

.day-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(38,163,117,.9);
}

.day-button.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===============================
   PAGE
================================ */
.day-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: none; /* muncul cepat */
}

.day-page.show {
  opacity: 1;
  visibility: visible;
}

.day-page.hiding {
  opacity: 0;
  transition: opacity 3s ease; /* fade out lebih pelan */
}


/* ===============================
   CENTER CONTENT
================================ */
.day-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;   
  justify-content: center; 
  text-align: center;    
}

.day-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;   
  justify-content: center;
  text-align: center;
}

/* ===============================
   TEXT
================================ */
.day-title-small {
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}

.day-title {
  font-size: 30px;
  letter-spacing: .18em;
  font-weight: 600;
  text-transform: uppercase;
}

/* ===============================
   2026 – HERO FIXED
================================ */
.day-year {
  font-size: clamp(140px, 22vw, 240px);
  font-weight: 900;
  line-height: .9;
  margin: 10px 0;

  /* putih soft, tidak terlalu terang */
  color: rgb(238, 231, 231);
  -webkit-text-fill-color: rgb(238, 231, 231);
  -webkit-background-clip: unset;

  /* shadow lembut untuk depth */
  text-shadow:
    0 8px 25px rgba(0,0,0,0.5),
    0 0 45px rgba(255,255,255,0.15);

  /* floating halus */
  animation: yearFloat 5s ease-in-out infinite;
}

@keyframes yearFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}


/* ===============================
   DIVIDER & TEXT
================================ */
.day-divider {
  width: 90px;
  height: 2px;
  margin: 28px auto;
  background: linear-gradient(90deg, transparent, #26A375, transparent);
}

.day-text {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  text-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* ===============================
   SCROLL
================================ */
.scroll-return {
  margin-top: 46px;
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
  animation: scrollFade 2s ease-in-out infinite;
}

@keyframes scrollFade {
  0%,100% { opacity: .35; }
  50% { opacity: .75; }
}

/* ===============================
   SPARKLE – FULLSCREEN
================================ */
#ornaments {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dfffee;

  box-shadow:
    0 0 14px rgba(223,255,238,.7),
    0 0 28px rgba(38,163,117,.45);

  opacity: 0;
  animation: sparkleFloat linear infinite;
}

@keyframes sparkleFloat {
  0% {
    transform: translateY(20px) scale(.6);
    opacity: 0;
  }
  20% { opacity: .85; }
  80% { opacity: .85; }
  100% {
    transform: translateY(-120px) scale(1.3);
    opacity: 0;
  }
}

/* ===============================
   TABLET ADJUSTMENTS
================================ */
@media (max-width: 1024px) {
  .day-year { 
    font-size: 10vw; 
  }
  .day-title { 
    font-size: 4.5vw; 
  }

  .day-container {
    padding: 0 20px; 
    max-width: 90%;   
  }
}

/* ===============================
   MOBILE ADJUSTMENTS
================================ */
@media (max-width: 768px) {
  .day-year { 
    font-size: 12vw; 
  }
  .day-title { 
    font-size: 5vw; 
  }

  .day-container {
    padding: 0 16px; 
    max-width: 95%;   
  }
}

/* ===============================
   SMALL PHONE ADJUSTMENTS
================================ */
@media (max-width: 480px) {
  .day-year { 
    font-size: 14vw; 
  }
  .day-title { 
    font-size: 6vw; 
  }

  .day-container {
    padding: 0 12px; 
    max-width: 98%;   
  }
}