/* =====================
   FONT & GLOBAL STYLE
======================== */
body {
  background-color: #F4F3F1;
  color: #333;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

h1, h2, h4 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

p {
  font-family: "Lora", serif;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.lora {
  font-family: "Lora", serif;
  font-weight: 400;
  font-style: normal;
}

.montserrat {
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
  font-style: normal;
}

/* =====================
   OPENING SCREEN
======================== */
#openingScreen {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white url('img/UNDANGAN-3BW.jpg') no-repeat center bottom;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.5s ease;
  z-index: 9999;
  background-size: cover;
  overflow: hidden;
}

#openingScreen::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

#openingScreen h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #fff;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.1s;
}

#openingScreen p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #fff;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

#openingScreen .content-box {
  background: none;
  background-size: contain;
  min-height: 300px;
  padding: 2rem 1rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
  position: relative;
  z-index: 2;
}

#openInvitationBtn {
  background-color: #1a1a1a; /* contoh warna tema */
  border: none;
  color: white;
  font-size: 1.15rem;
  padding: 0.75rem 3rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.4s;
  transform: translateY(10px);
  opacity: 0;
}

#openInvitationBtn:hover {
  background-color: #0f0f0f;
}

/* =====================
   HERO SLIDER
======================== */
.swiper.mySwiperHero {
  height: 100vh;
  margin-top: 0;
  padding-top: 0;
  position: relative;
}

.hero-slide {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  background: url('img/UNDANGAN-3.jpg') no-repeat center center/cover;
}

.slide-2 {
  background: url('img/UNDANGAN-9.jpg') no-repeat center center/cover;
}

.hero-text {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-text h1 {
  font-family: 'Lora', serif;
  font-size: 3rem;
}

.hero-text p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
}

/* =====================
   SECTIONS
======================== */
.section {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(188, 175, 166, 0.15);
  margin: 2rem auto;
  padding: 2rem;
  max-width: 500px;
}

.section img {
  width: 100%;
  border-radius: 15px;
}

.section h4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.section h2 {
  margin-bottom: 2rem;
}

.section p {
  margin-bottom: 1rem;
}

/* =====================
   COUNTDOWN
======================== */
.countdown span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #BCAFA6;
}

.custom-date .day-name {
  font-size: 1rem;
  letter-spacing: 1px;
}

.custom-date .date-main {
  font-size: 3rem;
  line-height: 1.1;
}

.custom-date .year {
  font-size: 1.25rem;
  color: #555;
}

/* =====================
   BUTTON
======================== */
.btn.btn-custom-outline {
  border: 2px solid #BCAFA6;
  color: #BCAFA6;
  background-color: transparent;
  border-radius: 0;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn.btn-custom-outline:hover {
  background-color: #BCAFA6;
  color: white;
  border-color: #BCAFA6;
}

/* =====================
   GALLERY
======================== */
.simple-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  justify-items: center;
  margin-top: 2rem;
}

.simple-gallery img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.simple-gallery img.responsive-img {
  display: block;
  margin-bottom: 1rem;
}

.gallery-section {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.bg-light-accent {
  background-color: #D1CCC6;
  padding: 3rem 1rem;
  border-radius: 0.75rem;
}

/* =====================
   MUSIC CONTROLS
======================== */
.music-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  gap: 10px;
  background-color: transparent;
  padding: 10px;
  border-radius: 0;
  box-shadow: none;
  display: none;
  
}

#musicControl {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: transparent;
  border: none;
  border-radius: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

#musicControl i {
  font-size: 20px;
  color: #8c7b75;
  line-height: 1;
  margin: 0;
  transform: none;
}

.music-btn {
  background-color: transparent !important;
  color: #BCAFA6;
  border: none;
  border-radius: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  padding: 1px;
}

.music-btn:hover {
  background-color: #D1CCC6;
}

/* =====================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .masonry-gallery {
    column-count: 1;
  }
}

/* =====================
   UTILITY & MISC
======================== */
.responsive-video {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
}

.bg-soft-section {
  background-color: #eae7e3; /* Warna beige lembut */
}

/* =====================
   SWIPER CUSTOM COLORS & BUTTONS
======================== */
:root {
  --swiper-accent: #D9A679; /* Bisa diganti #C98E60 jika ingin lebih orange */
}

.swiper-button-next,
.swiper-button-prev {
  color: #D9A679 !important;
  background-color: transparent !important;
  padding: 10px;
  border-radius: 50% !important;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: white !important;
}

.swiper-pagination-bullet {
  background: #D9A679 !important;
  opacity: 0.6 !important;
}

.swiper-pagination-bullet-active {
  background: #D9A679 !important;
  opacity: 1 !important;
}

/* =====================
   KEYFRAMES
======================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
