@import url("common.css");
@import url("animation.css");

@font-face {
  font-family: "Analogue";
  src: url("../assets/fonts/Analogue.otf") format("opentype");
}

@font-face {
  font-family: "Cormorant Infant";
  src: url("../assets/fonts/Cormorant Infant/CormorantInfant-VariableFont_wght.ttf") format("truetype");
}

.font-analogue {
  font-family: "Analogue", sans-serif !important;
}

.font-cormorant {
  font-family: "Cormorant Infant", serif !important;
}

.font-pinyon {
  font-family: "Pinyon Script", cursive !important;
}

html {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.with-scrollbar {
  scrollbar-width: auto !important;
  -ms-overflow-style: auto !important;
}

.font-esthetic {
  font-family: "Sacramento", cursive !important;
}

.mobile-container {
  position: relative;
}

@media (min-width: 576px) {
  #root {
    flex-wrap: nowrap !important;
  }
  
  #desktop-hero {
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
  }
  
  .mobile-container {
    width: 400px !important;
    flex: 0 0 400px !important;
    max-width: 400px !important;
    margin-left: auto !important;
  }
  
  .mobile-bg {
    width: 400px !important;
    left: auto !important;
    right: 0 !important;
  }
}

.mobile-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.font-arabic {
  font-family: "Noto Naskh Arabic", serif !important;
}

.img-slide-foto {
  height: 70vh;
  width: 100%;
  object-fit: cover;
}

.slide-foto {
  position: relative;
}

.slide-foto::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10rem;
  background: linear-gradient(to top, rgba(215, 187, 131, 0.8), transparent);
  pointer-events: none;
  z-index: 2;
}

.img-center-crop {
  width: 13rem;
  height: 13rem;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.bride-groom-card {
  position: relative;
  overflow: hidden;
  background-color: #FFFCF3ED;
  border: 4px solid #D7BB83;
  border-radius: 200px;
  margin: 1.5rem 0.5rem;
  padding: 8rem 1rem;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

.bride-groom-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12rem;
  background-image: url("../assets/images/card-motif-atas.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.bride-groom-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12rem;
  background-image: url("../assets/images/card-motif-bawah.png");
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Ensure card content is above motifs */
.bride-groom-card > * {
  position: relative;
  z-index: 1;
}



.photo-wrapper {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.photo-motif-left {
  position: absolute;
  top: 50%;
  left: -2.5rem;
  transform: translateY(-50%);
  width: 7.5rem;
  z-index: 0;
  pointer-events: none;
}

.photo-motif-right {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 7.5rem;
  z-index: 2;
  pointer-events: none;
}

.photo-motif-left-front {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  width: 7.5rem;
  z-index: 2;
  pointer-events: none;
}

.photo-motif-right-behind {
  position: absolute;
  top: 50%;
  right: -2.5rem;
  transform: translateY(-50%);
  width: 7.5rem;
  z-index: 0;
  pointer-events: none;
}

.img-bride-groom-container {
  position: relative;
  z-index: 1;
  border-radius: 120px;
  overflow: hidden;
  border: 3px solid #D7BB83;
  width: 9rem;
  height: 14.5rem;
  margin: 0 auto;
}

.img-bride-groom-new {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-section {
  text-align: center;
}

#ar-rum {
  position: relative;
  overflow: hidden;
  background: radial-gradient(at center center, #5C4324 0%, #472A1C 80%);
}

#ar-rum::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/pattern.png");
  background-position: center center;
  background-repeat: repeat;
  background-size: 200px auto;
  opacity: 0.05;
  pointer-events: none;
}

#ar-rum::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/card-motif-atas.png"), url("../assets/images/card-motif-bawah.png");
  background-position: top center, bottom center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  opacity: 1;
  pointer-events: none;
}

.rum-photo-block {
  position: relative;
  z-index: 2;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rum-img-block {
  width: 100%;
  height: auto;
  display: block;
}

.rum-card {
  position: relative;
  z-index: 1;
  border-radius: 40px;
  border: 1px solid rgba(215, 187, 131, 0.3);
  margin-top: -7rem;
}

.rum-content-card {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  padding-top: 8rem !important;
  padding-bottom: 5rem !important;
}

.rum-content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/background.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.rum-content-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/images/card-motif-atas.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  opacity: 0.5;
  z-index: 0;
}

.rum-content-card > * {
  position: relative;
  z-index: 1;
}

#date {
  position: relative;
  overflow: hidden;
  background: radial-gradient(at center center, #5C4324 0%, #472A1C 80%) !important;
  z-index: 1;
}

#date::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/pattern.png");
  background-position: center center;
  background-repeat: repeat;
  background-size: 200px auto;
  opacity: 0.05;
  pointer-events: none;
}

#date::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/card-motif-atas.png"), url("../assets/images/card-motif-bawah.png");
  background-position: top center, bottom center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  opacity: 1;
  pointer-events: none;
}

.date-card {
  position: relative;
  background-image: url("../assets/images/background.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 40px;
  border: 4px solid #D7BB83;
  overflow: hidden;
  color: #000;
}

.date-inner-card {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  border: 1px solid rgba(215, 187, 131, 0.3);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.btn-outline-brown {
  color: #472A1C;
  border-color: #D7BB83;
}

.btn-outline-brown:hover {
  background-color: #D7BB83;
  color: #fff;
  border-color: #D7BB83;
}

html[data-bs-theme="dark"] .btn-transparent {
  background-color: rgba(var(--bs-dark-rgb), 0.5) !important;
  backdrop-filter: blur(0.5rem);
}

html[data-bs-theme="light"] .btn-transparent {
  background-color: rgba(var(--bs-light-rgb), 0.5) !important;
  backdrop-filter: blur(0.5rem);
}

.loading-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1056;
}

html[data-bs-theme="light"] .color-theme-svg {
  color: rgb(255, 255, 255);
  background-color: var(--bs-light);
}

html[data-bs-theme="dark"] .color-theme-svg {
  color: rgb(0, 0, 0);
  background-color: var(--bs-dark);
}

html[data-bs-theme="light"] .bg-light-dark {
  background-color: rgb(var(--bs-light-rgb));
}

html[data-bs-theme="dark"] .bg-light-dark {
  background-color: rgb(var(--bs-dark-rgb));
}

html[data-bs-theme="light"] .bg-white-black {
  background-color: rgb(var(--bs-white-rgb));
}

html[data-bs-theme="dark"] .bg-white-black {
  background-color: rgb(var(--bs-black-rgb));
}

.bg-cover-home {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(
    0.5turn,
    transparent,
    black 40%,
    black 60%,
    transparent
  );
}

.width-loading {
  width: 25%;
}

.cursor-pointer {
  cursor: pointer;
}

@media screen and (max-width: 992px) {
  .width-loading {
    width: 50%;
  }
}

@media screen and (max-width: 576px) {
  .width-loading {
    width: 75%;
  }
}

svg {
  display: block;
  line-height: 0;
  shape-rendering: geometricPrecision;
  backface-visibility: hidden;
}

.svg-wrapper {
  overflow: hidden !important;
  transform: translateZ(0) !important;
}

.welcome-cover {
  position: relative;
  background-image: url("../assets/images/welcome.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  min-height: 100dvh;
}

.welcome-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Welcome as an overlay sheet that slides up to reveal Home */
body.overflow-hidden #welcome {
  position: absolute;
  inset: 0;
  z-index: 1050;
  transform: translateY(0);
  transition: transform 2200ms cubic-bezier(0.22, 0.85, 0.2, 1);
  will-change: transform;
}

body.overflow-hidden #welcome.is-leaving {
  transform: translateY(-100%);
}

/* While Welcome is visible, keep main content in a fixed-height stage */
body.overflow-hidden main {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
}

/* Home video rises from the bottom during opening */
body.overflow-hidden #home.home-hero {
  position: absolute;
  inset: 0;
  z-index: 1040;
  transform: translateY(100%);
  transition: transform 2200ms cubic-bezier(0.22, 0.85, 0.2, 1);
  will-change: transform;
}

body.overflow-hidden.is-opening #home.home-hero {
  transform: translateY(0);
}

@media (min-width: 576px) {
  body.overflow-hidden #desktop-hero .slide-desktop {
    display: none !important;
  }
}

.welcome-content {
  position: relative;
  z-index: 1;
}

.welcome-title {
  font-size: clamp(14px, 2.4vw, 16px);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.welcome-couple {
  margin-top: 10px;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.15em;
  letter-spacing: 0.5px;
}

.welcome-date {
  margin-top: 0.25rem;
  font-size: clamp(13px, 2.6vw, 15px);
  font-weight: 400;
  letter-spacing: 4px;
  opacity: 0.95;
}

.welcome-to {
  font-size: clamp(12px, 2.2vw, 13px);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.welcome-guest {
  margin-top: 0.25rem;
  font-size: clamp(22px, 5.2vw, 30px);
  font-weight: 700;
  line-height: 1.3em;
  letter-spacing: 0.3px;
}

.button-group {
  position: fixed;
  left: auto;
  bottom: 10vh;
  z-index: 1030;
  right: 2vh;
  right: calc(2vh + env(safe-area-inset-right));
  align-items: flex-end;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  background: rgb(var(--bs-black-rgb));
  overflow: hidden;
}

.home-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-scrim {
  position: absolute;
  inset: 0;
  background: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25vh;
  /* background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%); */
  z-index: 1;
  pointer-events: none;
}

.home-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  transform: translateY(-6vh);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.home-scroll {
  position: absolute;
  bottom: 12vh;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}

.btn-scroll {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bounceScroll 2s infinite;
}

.btn-scroll:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

@keyframes bounceScroll {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

.home-text {
  color: #ffffff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.home-overlay.is-visible {
  opacity: 1;
}

.home-line {
  opacity: 0;
  transform: translateY(14px);
}

.home-overlay.is-visible .home-line {
  animation: homeLineIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.home-overlay.is-visible .home-line:nth-child(1) {
  animation-delay: 0ms;
}

.home-overlay.is-visible .home-line:nth-child(2) {
  animation-delay: 120ms;
}

.home-overlay.is-visible .home-line:nth-child(3) {
  animation-delay: 240ms;
}

.home-overlay.is-visible .home-line:nth-child(4) {
  animation-delay: 360ms;
}

.home-overlay.is-visible .home-line:nth-child(5) {
  animation-delay: 480ms;
}

@keyframes homeLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-kicker {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.home-name {
  font-family: "Cormorant Infant", serif !important;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05em;
  letter-spacing: 0.5px;
  color: #D7BB83;
  text-transform: uppercase;
}

.home-amp {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.05em;
  margin: 0.1rem 0;
  opacity: 0.95;
  color: #ffffff;
}

.home-date {
  margin-top: 0.6rem;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.6px;
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .home-overlay {
    transition: none;
  }

  .home-overlay.is-visible .home-line {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.no-gap-bottom {
  margin-bottom: -0.75rem !important;
}

.love-story-section {
  position: relative;
  background-image: url("../assets/images/background.jpg");
  background-size: cover;
  background-position: center;
  padding: 2rem 0;
}

.love-story-card {
  position: relative;
  background-color: #FFFCF3ED;
  border-radius: 40px;
  border: 4px solid #D7BB83;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  padding: 2rem 1.5rem;
  margin: 1.5rem 0.5rem;
}

.love-story-section p,
.love-story-section h2,
.love-story-section h3,
.love-story-section div:not(.btn-scroll):not(.btn) {
  color: #000 !important;
}

.timeline-dot {
  background-color: #ffffff !important;
  border: 2px solid #D7BB83 !important;
  color: #000 !important;
}

.timeline-line {
  border-color: #D7BB83 !important;
  opacity: 0.5 !important;
}

.love-gift-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(at center center, #8B5B43 0%, #472A1C 80%);
  z-index: 1;
}

.love-gift-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/pattern.png");
  background-position: center center;
  background-repeat: repeat;
  background-size: 200px auto;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.text-gold {
  color: #D7BB83 !important;
}
