html,
body {
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
}
.hero,
.hero-container {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

:root {
  --pink: #e22275;
  --bg: rgba(53, 0, 0, 0.5);
  --shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}

body {
  font-size: 1.2rem;
  font-family: "Work Sans", sans-serif;
}
/* Section Info Styling */
.info {
  background: linear-gradient(180deg, #1a0010 0%, #000000 100%);
  padding: 50px 0;
}

.info h2 {
  font-size: 5rem;
  font-family: "Sacramento", cursive;
  font-weight: bold;
  color: var(--pink)
  
  
}

.info .alamat {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 20px;
}

.info a.btn {
  font-size: 14px;
  font-weight: 500;
  background-color: var(--pink);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  transition: 0.3s ease;
}

.info a.btn:hover {
  background-color: #b5835a;
  transform: scale(1.05);
}

/* Background foto kita */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background-image: url(img/bg-dewanelzca.png);
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.4); /* overlay gelap */
  background-blend-mode: darken;
  z-index: -1;
  overflow-x: hidden;
}

.offcanvas {
  z-index: 2000 !important;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.hero h1,
.hero h4,
.hero p {
  text-shadow: var(--shadow);
}

.hero h1 {
  color: var(--pink);
  font-family: "Sacramento", cursive;
  font-size: clamp(3rem, 6vw, 6rem);
}

.hero h4 {
  font-size: 1.6rem;
  color: #f0a3c4;
}

.hero p {
  color: #f0a3c4;
  font-size: 1.4rem;
}

.hero a {
  color: var(--pink);
  background-color: white;
  box-shadow: var(--shadow);
}

.hero a:hover {
  background-color: var(--pink);
  color: white;
}

.mynavbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background-color: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(5px);
  transition: background 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.3s;
  transform: translateY(-10px);
}

.mynavbar .offcanvas {
  height: 100vh;
}

.mynavbar .navbar-brand,
.mynavbar .offcanvas-title {
  font-family: "Sacramento", cursive;
  font-size: 3.2rem;
  font-weight: bold;
  color: var(--pink);
}

.mynavbar .nav-link {
  text-transform: uppercase;
  font-size: 1.5rem;
  text-align: center;
}

.show-navbar .mynavbar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home {
  background: linear-gradient(180deg, #000000 0%, #1a0010 100%);
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  margin: 0%;
}
.home h2 {
  color: var(--pink);
  font-family: "sacramento";
  font-size: 5rem;
  font-weight: bold;
}
.home h3 {
  color: #dddddd;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.home p {
  font-size: 1.1rem;
  color: #f0f0f0;
}
.home h5 {
  color: #dddddd;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: "sacramento";
}

.home .couple {
  margin-top: 2rem;
}
.home .couple h3 {
  font-family: "sacramento";
  font-size: 2.5rem;
  color: var(--pink);
}
.home .couple img {
  max-width: 100%;
  height: auto;
}
footer {
  padding: 3rem;
  background-color: #000000;
  color: white;
}
footer a {
  color: aqua;
  font-weight: bold;
  text-decoration: none;
}
.Sponsor img {
  width: 120px;
  height: auto;
}
/* Audio */
.audio-icon-wrapper {
  width: 4rem;
  height: 4rem;
  font-size: 4rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  cursor: pointer;
  color: whitesmoke;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
  opacity: 0.5;
  mix-blend-mode: difference;
  animation: rotating 4s linear infinite;
  transform-origin: center;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0%;
}
@keyframes rotating {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Media Query */
/* Laptop */
/* FIX layout countdown desktop */
@media (min-width: 992px) {
  .simply-countdown {
    gap: 20px !important;
    margin-top: 25px;
  }

  .simply-countdown > .simply-section {
    min-width: 90px;
    padding: 16px 20px;
    border-radius: 12px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  html {
    font-size: 65%;
  }
  .simply-countdown > .simply-section {
    padding: 15px;
    margin: 5px;
  }
  .mynavbar .nav-link {
    font-size: 2rem;
    text-align: center;
  }
}

/* Mobile Phone */
@media (max-width: 576px) {
  .simply-countdown {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
  }
  html {
    font-size: 60%;
  }
  .simply-countdown > .simply-section {
    flex: 1;
    min-width: 50px;
    padding: 8px;
    margin: 5px;
    font-size: 0.8rem;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }
  .hero h4,
  .hero p {
    font-size: 1.2rem;
  }
  .simply-countdown > .simply-section {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }
  .hero .btn:hover {
    background: #c91d65;
  }
}
/* verry small phones (e.g., 360px width */
@media (max-width: 400px) {
  .simply-countdown > .simply-section {
    min-width: 55px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

.gallery {
  background-color: #000000;
  padding: 5rem 0;
  margin-top: 80px;
}
.gallery h2 {
  color: var(--pink);
  font-family: "Sacramento", cursive;
  font-size: 4rem;
  margin-bottom: 2rem;
}
.gallery .intro {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 3rem;
}
.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.modal-img {
  width: 100%;
}

.rsvp h2 {
  color: var(--pink);
  font-family: "Sacramento", cursive;
  font-size: 4rem;
  margin-bottom: 2rem;
}
.rsvp .intro {
  font-size: 1.2rem;
  color: #000000;
  margin-bottom: 3rem;
}
.rsvp .btn-primary {
  background: var(--pink);
  border: none;
  font-weight: 600;
  transition: background 0.3s ease-in-out;
}

.rsvp .btn-primary:hover {
  background: #c91d65;
}

#rsvpSuccess {
  animation: fadeIn 0.5s ease-in-out;
}

.rsvp {
  background: linear-gradient(180deg, #000000 0%, #1a0010 100%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.gifts {
  background: linear-gradient(180deg, #1a0010 0%, #000000 100%);
  padding: 50px 0;
  color: #ffffff;
}
.gifts h2 {
  font-family: "Sacramento", cursive;
  color: #d63384;
  font-size: 4rem;
}
.gifts .intro {
  font-size: 1.2rem;
  color: #dddddd; /* teks pembuka sedikit lebih terang */
}

.gifts .card {
  border: 2px solid #f8d7da;
  background: #fff0f3;
  color: #000000;
  box-shadow: 0 2px 10px rgba(255, 192, 203, 0.2);
}

.gifts .card h5 {
  color: #d63384; /* judul bank senada pink */
  font-weight: bold;
}

.gifts .card p {
  color: #000000; /* abu gelap */
  font-weight: 600;
}

.gifts .card .btn {
  border-color: #d63384;
  color: #d63384;
  font-weight: 600;
}

.gifts .card .btn:hover {
  background: #d63384;
  color: #fff;
}


/* komentar */

.wishes {
  background: linear-gradient(180deg, #000000 0%, #1a0010 100%);
  color: #ffffff !important;
  padding: 60px 0;
  text-align: center;
}

.wishes h2 {
font-family: "Sacramento", cursive;
  font-size: 4rem;
  color: var(--pink); /* warna tema */
  margin-bottom: 1.5rem;

}

.wishes p {
  color: #dddddd;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.wishes form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 15px;
  color: #fff;
  max-width: 600px;
  margin: 0 auto 2ren auto;
   box-shadow: 0 4px 20px rgba(226, 34, 117, 0.2);
}

.wishes input,
.wishes textarea {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  color: #000;
}

.wishes input::placeholder,
.wishes textarea::placeholder {
  color: #555;
}

.wishes button.btn-primary {
  background: var(--pink);
  border: none;
  font-weight: bold;
  transition: 0.3s;
}

.wishes button.btn-primary:hover {
  background: #c91d65;
}

.wishes-list {
  background: #111111;
  color: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem auto 0 auto;
  max-width: 700px;
  box-shadow: 0 2px 10px rgba(255, 192, 203, 0.2);
  text-align: left;
}

.wish-item {
  border-bottom: 1px solid #ddd;
  padding: 0.75rem 0;
}

.wish-item strong {
  color: var(--pink);
}

.wish-item small {
  color: #aaaaaa;
}

.wish-item p {
  color: #eeeeee;
  margin-top: 0.3rem;
}
/*hero container*/
.hero-container {
  display: flex;
  flex-direction: column; /* susun ke bawah */
  align-items: center; /* center horizontal */
  justify-content: center; /* center vertical */
  text-align: center;
  height: 100vh; /* biar full layar */
  width: 100%;
  max-width: 100%;
  gap: 20px; /* jarak antar elemen */
  z-index: 2;
  position: relative;
}

.simply-countdown {
  overflow: hidden;
  display: flex;
  margin: auto;
  justify-content: center;
  flex-wrap: wrap;
}
.simply-countdown > .simply-section {
  padding: 15px 20px;
  margin: 5px;
  border-radius: 15px;
  background-color: var(--pink);
  color: white;
  font-weight: bold;
  min-width: 70px;
  text-align: center;
}

.btn-custom {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: #e22275;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.hero .btn:hover {
  background: #c91d65;
}
.info .card {
  background-color: #ffffff !important; /* putih solid */
  color: #000000; /* teks hitam */
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


.info .card-header {
  border: 1px solid #0d0000;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}
.info .card-body {
  font-size: 1rem;
}
.info .card-footer {
  border-top: 1px solid #999;
  font-size: 0.9rem;
  font-weight: 300;
}

/*kumci scroll saat halaman belum di buka*/
body.lock-scroll {
  height: 100vh;
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  touch-action: none;
}
/* Kunci scroll TOTAL di semua device */
html.lock-scroll,
body.lock-scroll {
  overflow: hidden !important;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: none;
}
#hero {
  overflow: hidden;
}
.home .couple .col-lg-6:last-child .col-8 {
  text-align: left !important;
  padding-left: 1.5rem;
}

/* === 3D CAROUSEL GALLERY === */

.carousel-wrapper {
  padding: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-container-3d {
  width: 250px;
  height: 180px;
  perspective: 1000px;
  position: relative;
  margin: auto;
}

.carousel-3d {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 1s;
}

.carousel-item-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-item-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5 Gambar - rata 360 derajat */
/* Posisi benar untuk 5 gambar */
.carousel-item-3d:nth-child(1) {
  transform: rotateY(0deg) translateZ(250px);
}
.carousel-item-3d:nth-child(2) {
  transform: rotateY(72deg) translateZ(250px);
}
.carousel-item-3d:nth-child(3) {
  transform: rotateY(144deg) translateZ(250px);
}
.carousel-item-3d:nth-child(4) {
  transform: rotateY(216deg) translateZ(250px);
}
.carousel-item-3d:nth-child(5) {
  transform: rotateY(288deg) translateZ(300px);
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-container-3d {
    width: 200px;
    height: 140px;
  }
}
/* --- PERAPIHAN TAMPILAN CAROUSEL 3D --- */
.carousel-wrapper {
  margin-top: 20px;
  margin-bottom: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-container-3d {
  margin-left: auto;
  margin-right: auto;
}

.carousel-3d {
  cursor: grab;
}

.carousel-3d:active {
  cursor: grabbing;
}

/* Agar tidak mepet dengan galeri grid */
.gallery .row {
  margin-top: 40px;
}

/* Untuk HP: biar pusat & enak dilihat */
@media (max-width: 576px) {
  .carousel-wrapper {
    margin-bottom: 20px;
  }
}

/* --- Efek Blur & Fade pada Carousel 3D --- */
.carousel-item-3d {
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.carousel-item-3d.behind {
  opacity: 0.2; /* Semakin belakang semakin transparan */
  filter: blur(3px); /* Blur saat di belakang */
}
/* === Popup Gambar (Home & Gallery) === */
.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
}

.image-modal.active {
  display: flex;
  animation: fadeInModal 0.3s ease forwards;
}

.image-modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  animation: zoomIn 0.3s ease forwards;
}

.close-modal {
  position: fixed;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}
.close-modal:hover {
  color: #e22275;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
