/* =========================
   GOOGLE FONT
========================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Poppins:wght@300;400;500&display=swap');

/* =========================
   IMPORT SEMUA SECTION
   (URUTAN PENTING!)
========================= */
@import "./1cover.css";
@import "./2hero.css";
@import "./3card-arch.css";
@import "./4countdown.css";
@import "./5mempelai.css";
@import "./6countdown.css";
@import "./7event.css";
@import "./8lovestory.css";
@import "./9galery.css";
@import "./10gift.css";
@import "./11ucapan.css";
@import "./12kehormatan.css";
@import "./13footer.css";
@import "./14music.css";
@import "./preloader.css";
@import "./doa-section.css";
@import "./rsvp.css";

/* =========================
   ROOT & GLOBAL
========================= */
:root {
  --gold: #b69b5c;
  --soft: #f5efe6;
  --text: #5a4a42;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Poppins', sans-serif;
  --font-accent: 'Ephesis', cursive;
  --judul : 'Ocean Delight';
  --subjudul : 'Hello-Valentina';
  --right-width: clamp(360px, 32vw, 520px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eee;
  font-family: var(--font-secondary);
}


#mainContent {
  visibility: hidden;
}

.hero-left {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - var(--right-width));
  height: 100vh;
  background: url("../asset/image/4.jpg") center/cover no-repeat;
  overflow: hidden;
  z-index: 1;
}

.hero-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  color: #fff;
  z-index: 2;

  max-width: 420px;
  width: 100%;
  text-align: center;

  opacity: 0;
  animation: heroFadeSlide 1.2s ease forwards;
}



.hero-date {
  font-size: 14px;
  letter-spacing: 1px;
  font-family: 'Saphile Rounded';
  color: #fff;
}

/* RIGHT SIDE */
.hero-right {
  width: var(--right-width);
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}


.cover-title {
  font-size: clamp(24px, 4vw, 48px);
}

@media (max-width: 1600px) {
  .hero-left {
    width: calc(100% - var(--right-width));
    max-width: 1400px;
  }

  .hero-text {
    left: 30%;
    transform: translate(-50%, -50%);
    max-width: 460px;
  }

}


@media (max-width: 1200px) {
  :root {
    --right-width: clamp(340px, 38vw, 420px);
  }

  .hero-text {
    left: 50%;
    transform: translate(-50%, -50%);
  }

}

@media (max-width: 991px) {
  .hero-left {
    display: none;
  }

  .hero-right {
    width: 100%;
    margin-left: 0;
  }
}

/* =========================
   MOBILE (SMARTPHONE)
========================= */
@media (max-width: 767px) {

  /* HILANGKAN HERO KIRI */
  .hero-left {
    display: none;
  }

  /* HERO KANAN FULL */
  .hero-right {
    width: 100%;
    margin-left: 0;
    min-height: 100vh;
  }



  /* JUDUL & TEXT */
  .cover-title {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.25;
    text-align: center;
  }

  
  .hero-date {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  /* PADDING AMAN NOTCH */
  .hero-right {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}


@font-face {
  font-family: 'Saphile Rounded';
  src: url('../asset/Font/SaphileRounded-Regular.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Ocean Delight';
  src: url('../asset/Font/Ocean-Delight.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Hello-Valentina';
  src: url('../asset/Font/Hello-Valentina.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Glamour';
  src: url('../asset/Font/Glamour.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'GreatVibes';
  src: url('../asset/Font/GreatVibes.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Garden';
  src: url('../asset/Font/Gardenia-Summer.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Italiana';
  src: url('../asset/Font/Italiana-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Brown';
  src: url('../asset/Font/brown-sugar.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


/* ===============================
   RESPONSIVE MUSIC TOGGLE
================================ */
#musicToggle {
  position: fixed;
  top: clamp(12px, 3vw, 20px);
  right: clamp(12px, 3vw, 20px);
  z-index: 999;

  width: clamp(38px, 8vw, 56px);
  height: clamp(38px, 8vw, 56px);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.692);
  border: clamp(1.5px, 0.4vw, 3px) solid rgba(0, 0, 0, 0.9);

  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(4px);
  cursor: pointer;
}

/* NOTCH / SAFE AREA */
@supports (padding: env(safe-area-inset-top)) {
  #musicToggle {
    top: calc(clamp(12px, 3vw, 20px) + env(safe-area-inset-top));
    right: calc(clamp(12px, 3vw, 20px) + env(safe-area-inset-right));
  }
}

/* ICON RESPONSIVE */
.icon {
  width: clamp(16px, 3.5vw, 26px);
  height: clamp(16px, 3.5vw, 26px);
  stroke: #000;
  stroke-width: clamp(4px, 0.8vw, 6px);
  fill: none;
}

.hidden {
  display: none;
}

/* DISABLED sebelum undangan dibuka */
#musicToggle.disabled {
  pointer-events: none;
  opacity: 0.4;
}

/* ROTATE SAAT PLAY */
#musicToggle.playing {
  animation: spin 6s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
