@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap");

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #000; /* backup kalau masih putih */
}

body {
  font-family: "Georgia", serif;
  background-color: #fdf6f0;
  color: #3e2723;
  overflow-x: hidden;
}

#welcome-msg {
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  text-align: center;
}

@media (max-width: 480px) {
  #welcome-msg {
    font-size: 14px;
  }
}

h2 {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
}

.landing {
  height: 100vh;
  background: url("img/beautiful-happy-couple-wedding-studio%20(5).jpg")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: white;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.content {
  z-index: 10;
}

.carousel-inner img {
  height: 100vh;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.3)
  );
  z-index: 1;
}

.carousel-caption-fixed {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

.carousel-caption-fixed h2 {
  font-family: "Dancing Script", cursive;
  font-size: 3rem;
  margin-bottom: 10px;
}

.carousel-caption-fixed h1 {
  font-size: 3.5rem;
  font-weight: bold;
}

.carousel-caption-fixed p,
.carousel-caption-fixed #countdown {
  font-size: 1.1rem;
  color: #ffddee;
}

.carousel-item img,
.poster-image,
.gallery-auto {
  border-radius: 12px;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.hidden-section {
  display: none;
}

.section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.gallery-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 20px;
  background-color: #fffaf5;
}

.gallery-text {
  min-width: 200px;
}

.gallery-strip-wrapper {
  height: 480px;
  overflow: hidden;
  position: relative;
}

.gallery-strip {
  display: flex;
  animation: scrollGallery 18s linear infinite;
}

.gallery-item {
  height: 100%;
  width: auto;
  max-height: 480px;
  margin-right: 20px;
  border-radius: 12px;
  object-fit: cover;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}

@keyframes scrollGallery {
  0% {
    transform: translateX(0%);
  }
  25% {
    transform: translateX(-33.33%);
  }
  50% {
    transform: translateX(-66.66%);
  }
  75% {
    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
    -moz-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    -o-transform: translateX(-100%);
  }
  100% {
    transform: translateX(0%);
  }
}

.parallax-section {
  background-image: url("img/beautiful-happy-couple-wedding-studio\ \(2\).jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 400px;
  position: relative;
}

.parallax-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.rsvp-sections {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 30px;
  color: #333;
}

.thankyou-section {
  display: none;
  position: relative;
  background-image: url("img/beautiful-happy-couple-wedding-studio (5).jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease-out;
  -webkit-transform: translateY(60px);
  -moz-transform: translateY(60px);
  -ms-transform: translateY(60px);
  -o-transform: translateY(60px);
  -webkit-transition: all 1s ease-out;
  -moz-transition: all 1s ease-out;
  -ms-transition: all 1s ease-out;
  -o-transition: all 1s ease-out;
}

.thankyou-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

.thankyou-section .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.thankyou-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh; /* buat ngepasin tengah */
  padding-top: 40px;
  padding-bottom: 40px;
}

.logo-thanks {
  width: 180px;
  max-width: 80%;
  margin-bottom: 0.2rem;
}

.reveal-thankyou {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease-out;
}

.reveal-thankyou.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top,
.wa-floating {
  position: fixed;
  bottom: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  z-index: 999;
  text-decoration: none;
  animation: pulse 1.5s infinite;
}

.back-to-top {
  left: 20px;
  background-color: #6c757d;
}

.wa-floating {
  right: 20px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .rsvp-wrapper,
  .thankyou-content {
    padding: 15px;
  }
  .logo-thanks {
    width: 100px;
  }
}

footer {
  background: #eee;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 480px) {
  .landing {
    background-position: top center;
    background-size: cover;
  }

  .carousel-inner img {
    height: 60vh;
    object-position: center;
  }

  .carousel-caption-fixed h2 {
    font-size: 1.8rem;
  }

  .carousel-caption-fixed h1 {
    font-size: 2.2rem;
  }

  .carousel-caption-fixed p,
  .carousel-caption-fixed #countdown {
    font-size: 0.9rem;
  }
  .gallery-section .carousel-inner .carousel-item img {
    height: 400px !important;
    width: 100% !important;
  }

  .gallery-section .carousel-item .d-flex {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .gallery-bottom {
    flex-direction: column !important;
    align-items: center !important;
  }

  .gallery-bottom img {
    width: 100% !important;
    height: auto !important;
  }

  .gallery-bottom .col-md-8,
  .gallery-bottom .col-md-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 16px;
  }

  .gallery-bottom img {
    width: 100% !important;
    height: auto !important;
  }

  .rsvp-form {
    padding: 0 12px;
    max-width: 100% !important;
  }

  .rsvp-form .form-label {
    font-size: 0.95rem;
  }

  .rsvp-form input,
  .rsvp-form select,
  .rsvp-form textarea {
    font-size: 0.95rem;
    padding: 10px;
  }

  .rsvp-form button {
    font-size: 1rem;
    padding: 10px;
  }

  #guest-name {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .rsvp-form-title {
    font-size: 2rem !important;
    text-align: center;
    margin-bottom: 1rem;
  }
}
