/* ================================
   RESET & BASE
================================ */
body {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  /* background: #000; */

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================
   WELCOME SECTION
================================ */
.welcome-section {
  position: relative;
  min-height: 100svh;
  background: #000; /* fallback */

  overflow: hidden;

  /* reveal animation */
  visibility: hidden;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.welcome-section.show {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

/* ================================
   BACKGROUND IMAGE (LAYER)
================================ */
.welcome-section::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image: var(--bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  transform: scale(1);
  opacity: 1;

  transition:
    transform 3s ease-in-out,
    opacity 1.2s ease;

  z-index: 0;
}

/* fade out */
.welcome-section.bg-fade::after {
  opacity: 0;
}

/* zoom cinematic */
.welcome-section.is-dark::after {
  transform: scale(1.08);
}

/* ================================
   OVERLAY
================================ */
.welcome-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: background 2.5s ease-in-out;
  z-index: 1;
}

.welcome-section.is-dark::before {
  background: rgba(0, 0, 0, 0.65);
}

/* ================================
   CONTENT
================================ */
.welcome-text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 1rem;
  margin-top: 10rem;
  text-align: center;
}

/* subtitle */
.welcome-subtitle {
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* names */
.welcome-title {
  font-family: "Great Vibes", cursive;
  font-size: 6rem;
  font-weight: 400;
  line-height: 1.1;
}

.welcome-title span {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  margin: 0 0.5rem;
}

/* ================================
   COUNTDOWN
================================ */
.welcome-countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.time-box {
  min-width: 70px;
  text-align: center;
}

.time-box span {
  display: block;
  font-size: 3rem;
  font-weight: 500;
}

.time-box small {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ================================
   COPYRIGHT TEXT
================================ */
.wedding-copyright {
  margin-top: 3.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.wedding-copyright i {
  color: #e25555;
  margin: 0 0.25rem;
}

.wedding-copyright a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.wedding-copyright a:hover {
  text-decoration: underline;
}

/* ================================
   LOADER
================================ */
/* ===== IMAGE LOADER ===== */
#page-loader {
  position: fixed;
  inset: 0;
  background: #daa520;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 1;
  transition: opacity 1s ease;
}

#page-loader.hide {
  opacity: 0;
  pointer-events: none;
}

/* gambar loader */
.loader-image {
  max-width: 280px;
  opacity: 0;
  transform: scale(0.95);

  animation: loaderFadeIn 1.2s ease forwards;
}

/* fade-in sekali */
@keyframes loaderFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .loader-image {
    max-width: 180px;
  }
  .welcome-text {
    margin-top: 14rem;
  }

  .welcome-title {
    font-size: 4rem;
  }

  .welcome-title span {
    font-size: 1.8rem;
  }

  .welcome-countdown {
    gap: 1rem;
  }

  .time-box span {
    font-size: 3rem;
  }
}
