@font-face {
  font-family: 'Analogue';
  src: url('fonts/Analogue.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-primary: #7E1718;
  --bg-secondary: #EAE2DC;
  --bg-tertiary: #B08900;
}

/* Font families */
.font-poppins { font-family: "Poppins", sans-serif; }
.font-analogue { font-family: "Analogue", sans-serif; }
.font-open-sans { font-family: "Open Sans", sans-serif; }

.bg-quotes-section {
  background-image: url('./bg-quotes.png');
  background-color: #77624f;
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;
}
.bg-btn-mempelai {
  background-color: var(--bg-primary);
}

/* Colors */
.text-brown-cover { color: #77624F; }
.text-title-section { color: #CBAA5C; }
.text-primary { color: #77624F; }
.text-onPrimary { color: #F1E9DF; }
.text-secondary { color: #CBAA5C; }
.text-maroon { color: #7E1718; }
.text-black-cover { color: #000000; }
.text-black-soft { color: #181818; }

.text-shadow-md {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Background Colors */
.bg-green-cover { background-color: #585C4C; }
.bg-countdown { background-color: #77624F; }
.bg-green-guest { background-color: #F1EDE4; }
.bg-white2 { background-color: #EFEBE8; }
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }

input, textarea {
  background-color: var(--bg-secondary);
}

/* Border Color */
.border-green { border-color: #A6A69A; }

/* Shadow */
.shadoww {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

.shadoww-white {
  box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.5);
}

.shadow-btn-red{
  box-shadow: 0 4px 20px rgba(126, 23, 24, 0.4), 0 0 30px rgba(163, 43, 43, 0.3);
  animation: glowing 6s linear infinite;
}

@keyframes glowing {
  0% {
    box-shadow: 0 4px 20px rgba(126, 23, 24, 0.6),
                0 0 30px rgba(163, 43, 43, 0.4);
  }
  25% {
    box-shadow: 10px 0 20px rgba(126, 23, 24, 0.6),
                0 0 30px rgba(163, 43, 43, 0.4);
  }
  50% {
    box-shadow: 0 -4px 20px rgba(126, 23, 24, 0.6),
                0 0 30px rgba(163, 43, 43, 0.4);
  }
  75% {
    box-shadow: -10px 0 20px rgba(126, 23, 24, 0.6),
                0 0 30px rgba(163, 43, 43, 0.4);
  }
  100% {
    box-shadow: 0 4px 20px rgba(126, 23, 24, 0.6),
                0 0 30px rgba(163, 43, 43, 0.4);
  }
}

/* Transform */
.-scale-x-100 {
    transform: scaleX(-1);
}

/* Border radius */
.rounded-4xl {
  border-radius: 2rem;
}

/* Animation */
.animate-zoom-in {
  animation: zoomIn 1s forwards;
  will-change: transform, opacity;
}

/* Keyframes */
@keyframes zoomIn {
  0%, 87.5% {
    opacity: 0;
    transform: scale(0);
  }
  93.75% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Section */
#section-guest {
  background-attachment: fixed;
  background-size: 450px auto;
  background-position: center center;
  opacity: 1;
}

.section-penutup {
  background-position: center center;
  background-size: cover;
  width: 100%;
  height: 100vh;
}

.map-embed > iframe {
  width: 200px;
  max-width: 200px;
}

@media (min-width: 768px) {
  .map-embed > iframe {
    width: 100%;
    max-width: 100%;
  }
}

.video-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin-bottom: 20px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* Slide Up */
.slide-up-enter-active,
.slide-up-leave-active {
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
  will-change: transform, opacity;
}

.slide-up-enter,
.slide-up-leave-to {
  transform: translateY(-100%);
  opacity: 0;
}

/* Fade */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 1s;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}

/* Swiper Components - Responsive Design */
#section-schedule .swiper {
  width: 100%;
  max-width: 300px;
  height: 475px;
  border-radius: 115px 115px 0 0;
  border: 4px solid #868A78;
  overflow: hidden;
}

#section-countdown .swiper {
  width: 100%;
  height: 520px;
  overflow: hidden;
}

#section-quotes .swiper {
  width: 100%;
  max-width: 300px;
  height: 450px;
  border-radius: 32px 32px 0px 0px;
  overflow: hidden;
}

#section-guest .swiper {
  width: 100%;
  max-width: 300px;
  height: 225px;
  border-radius: 1rem;
  border: 4px solid #DFB584;
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: 1rem;
}

#section-penutup .swiper {
  width: 260px;
  height: 275px;
  border-radius: 115px 115px 0 0;
  border: 4px solid #868A78;
  overflow: hidden;
  margin: 0 auto;
}

@media (min-width: 768px) {
  #section-schedule .swiper,
  #section-countdown .swiper,
  #section-story .swiper {
    height: 600px;
  }

  #section-guest .swiper {
    max-width: 400px;
    height: 300px;
  }

  #section-penutup .swiper {
    width: 260px;
    height: 350px;
  }
}

@media (min-width: 1024px) {
  #section-schedule .swiper,
  #section-story .swiper {
    max-width: 500px;
    height: 800px;
  }

  #section-guest .swiper {
    max-width: 500px;
    height: 425px;
  }

  #section-penutup .swiper {
    width: 260px;
    height: 475px;
  }
}

@media (min-height: 700px) {
  #section-penutup .swiper {
    height: 400px;
    width: 250px;
  }
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-section-mempelai {
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 50%,
    var(--bg-secondary) 50%
  );
}

/* Bride and Groom Image Styling */
.bride-groom-image-container {
	width: 327px;
	height: 383px;
	min-width: 327px;
	min-height: 383px;
}

.bride-groom-image {
	width: 11rem;
	height: 18rem;
	object-fit: cover;
	border-radius: 9999px;
  overflow: hidden;
}

.bg-pria-mempelai{
  background:
    url('./ori/gunung.png'),
    linear-gradient(
      to bottom,
      var(--bg-primary) 0%,
      var(--bg-primary) 25%,
      var(--bg-secondary) 25%,
      var(--bg-secondary) 100%
    );
  background-size: 100% auto, 100% auto;
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
  top: 0rem;
  left: -2rem;
  width: calc(100% + 4rem);
}

.bg-wanita-mempelai{
  background:
    url('./ori/gunung.png'),
    var(--bg-secondary);
  background-size: 100% auto, 100% auto;
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
  top: 0rem;
  left: -2rem;
  width: calc(100% + 4rem);
  transform: scaleX(-1)
}

.frame-mempelai {
  object-fit: cover;
  height: 21.5rem;
  width: 16rem;
  top: 1.25rem;
  left: 2.25rem;
}

.frame-tr-mempelai {
  position: absolute;
  top: -1.75rem;
  right: -2.25rem;
}
.frame-bl-mempelai {
  position: absolute;
  top: 2rem;
  left: -3rem;
}

.acara_tl {
  position: absolute;
  top: -3rem;
  left: -5.5rem;
  z-index: 1;
}
.acara_bc {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 36%) scale(110%) !important;
  width: 100%;
  height: auto;
  z-index: 0;
}

.story_bc{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-53%, 18%) scale(120%) !important;
  width: 100%;
  height: auto;
  z-index: 0;
}

/* Gallery Grid Styling */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense; /* isi slot kosong otomatis */
	gap: 8px; /* Standardized gap */
}

.gallery-grid > * {
  grid-column: span 2; /* default: half */
  max-height: 10rem;
}

.gallery-grid > *:nth-child(6n+1) {
  grid-column: span 4;
  max-height: 20rem;
}

.gallery-grid > *:nth-child(6n+4),
.gallery-grid > *:nth-child(6n+5) {
  grid-column: span 1;
}

.gallery-grid-item {
	overflow: hidden;
	border-radius: 8px;
}

.gallery-grid-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	will-change: transform;
}

.gradient-cover-story{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1rem;
  height: 33.333333%;
  background-image: linear-gradient(
    to top,
    var(--bg-primary),
    var(--bg-primary),
    transparent
  );
  z-index: 0;
}


.z-custom {
  z-index: 9999;
}

.animate-spin-slow {
  animation: spin 4s linear infinite;
  will-change: transform;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Custom Countdown Styles */
.custom-countdown-box {
  width: 200px;
  height: 200px;
  background: #FBECD7;
  border-radius: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  margin: 0 8px;
  /* Optimized for mobile responsiveness */
  /* Performance: Uses flexbox for better layout performance */
}
.circle-outline {
  width: 48px;
  height: 48px;
  border: 5px solid #6E2428;
  border-radius: 50%;
  margin-bottom: 12px;
}
.countdown-label {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: #6E2428;
  margin-top: 8px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.img-rsvp{
  width: 125%;
}

.orn-rsvp-tc{
  transform: translate(-7%, -54%);
}

.img-penutup{
  width: 115%;
}

.orn-guest-book-tc{
  transform: translate(-4%, 44%);
}

.orn-penutup-tl{
  transform: translate(-1%, -37%) scaleX(-1);
}

.orn-penutup-tr{
  transform: translate(1%, -37%);
}

.orn-penutup-bc1 {
  transform: translate(-4%, 43%);
}

/* .img-penutup  .orn-penutup-bc2{

} */

@media (max-width: 900px) {
  .custom-countdown-box {
    width: 120px;
    height: 120px;
    border-radius: 2rem;
  }
  .countdown-label {
    font-size: 1.2rem;
  }
  .circle-outline {
    width: 32px;
    height: 32px;
    border-width: 3px;
  }
}



@media (min-width: 768px) {
  .bg-pria-mempelai, .bg-wanita-mempelai{
    left: -3.5rem;
    width: calc(100% + 7rem);
  }
}
