/* ===============================
   RESET & BASE
================================ */
* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

/* Prevent scroll when day page is open */
body.day-open {
  overflow: hidden;
}

/* ===============================
   BUTTON - Orange Color
================================ */
.day-button {
  position: fixed;
  bottom: 160px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid #f1c40f;
  background: rgba(241,196,15,.9);
  cursor: pointer;
  z-index: 9998 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.day-button::after {
  content: "🎉";
  font-size: 22px;
}

.day-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255,149,0,.9);
}

.day-button.visible,
.day-button.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.day-button.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ===============================
   PAGE - Fullscreen No Scroll
================================ */
.day-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: none;
  overflow: hidden; /* No scroll */
  background: #000;
}

.day-page.show {
  opacity: 1;
  visibility: visible;
}

.day-page.hiding {
  opacity: 0;
  transition: opacity 2s ease;
}

/* Video Background */
.day-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Dark Overlay */
.day-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15),
    rgba(0,0,0,.5)
  );
  z-index: 2;
  pointer-events: none;
}

/* ===============================
   OVERLAY & CONTAINER - Fullscreen
================================ */
.day-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;   
  justify-content: center; 
  text-align: center;
  z-index: 3;
  height: 100vh; /* Fixed height */
  overflow: hidden; /* No scroll */
}

.day-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;   
  justify-content: center;
  text-align: center;
}

/* ===============================
   SCROLL - Bottom Center (Outside Container)
================================ */
.scroll-return {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.6);
  animation: scrollFade 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes scrollFade {
  0%,100% { opacity: .35; }
  50% { opacity: .75; }
}

/* ===============================
   SPARKLE – FULLSCREEN (Higher z-index)
================================ */
#ornaments {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10; /* Di atas overlay */
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcf7f, #4d96ff);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0;
  animation: confettiFall linear infinite;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(120vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===============================
   TABLET ADJUSTMENTS
================================ */
@media (max-width: 1024px) {
  .day-container {
    padding: 0 20px; 
    max-width: 90%;   
  }

  .day-button {
    bottom: 120px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .day-button::after {
    font-size: 20px;
  }
  
  /* Video untuk tablet/mobile */
  .day-video-bg source {
    content: url('/newyear2026-1.mp4');
  }
}

/* ===============================
   MOBILE ADJUSTMENTS
================================ */
@media (max-width: 768px) {
  .day-container {
    padding: 0 16px; 
    max-width: 95%;   
  }

  .scroll-return {
    bottom: 20px;
    font-size: 12px;
  }
}

/* ===============================
   SMALL PHONE ADJUSTMENTS
================================ */
@media (max-width: 480px) {
  .day-container {
    padding: 0 12px; 
    max-width: 98%;   
  }

  .day-button {
    bottom: 100px;
    right: 15px;
    width: 46px;
    height: 46px;
  }

  .day-button::after {
    font-size: 18px;
  }

  .day-title-small {
    font-size: 11px;
  }

  .scroll-return {
    bottom: 15px;
    font-size: 11px;
  }
}