/* Reset dan Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

/* Nonaktifkan scroll di halaman Home sampai tombol diklik */
body.no-scroll {
  overflow: hidden;
}

/* Base style untuk section */
section {
  position: relative;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 20px;
}

/* ---------------------------- */
/* SECTION HOME */
/* ---------------------------- */

.snow {
  color: white;
  font-size: 3em;
}

@keyframes fall {
  0% {
    top: -20%;
  }
  100% {
    top: 100%;
  }
}

.flake {
  position: fixed;
  top: -20%;
  animation: fall 10s linear infinite;
}

.flake:nth-last-of-type(0) {
  left: 0%;
  animation-delay: 0s;
}

.flake:nth-last-of-type(1) {
  left: 0%;
  animation-delay: 0s;
}

.flake:nth-last-of-type(2) {
  left: 10%;
  animation-delay: 3s;
}

.flake:nth-last-of-type(3) {
  left: 20%;
  animation-delay: 5s;
}

.flake:nth-last-of-type(4) {
  left: 30%;
  animation-delay: 2s;
}

.flake:nth-last-of-type(5) {
  left: 40%;
  animation-delay: 1s;
}

.flake:nth-last-of-type(6) {
  left: 50%;
  animation-delay: 4s;
}

.flake:nth-last-of-type(7) {
  left: 60%;
  animation-delay: 3s;
}

.flake:nth-last-of-type(8) {
  left: 70%;
  animation-delay: 2s;
}

.flake:nth-last-of-type(9) {
  left: 80%;
  animation-delay: 0s;
}

.flake:nth-last-of-type(10) {
  left: 90%;
  animation-delay: 6s;
}

#home {
  position: relative;
  background: url(background/bg_Cover\ s-color.png) no-repeat center center/cover;
  background-blend-mode: overlay;
  
  max-width: 100vw;
  height: 100%;
  justify-content: center;
}

/* Border pojok kiri atas & pojok kanan bawah */

.border-top-right {
  top: 0;
  right: 0;
  width: auto;
  height: 200px;
  display: flex;
  justify-content: flex-end;
  position: absolute;
}

.border-bottom-left {
  bottom: 0;
  left: 0;
  width: auto;
  height: 200px;
  display: flex;
  position: absolute;
}

.border-top-left {
  top: 0;
  left: 0;
  position: absolute;
  width: auto;
  height: 200px;
}

.border-bottom-right {
  bottom: 0;
  right: 0;
  display: flex;
  position: absolute;
  width: auto;
  height: 200px;
}

/* Container konten utama Home */

.container-home {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 15%;
  margin-top: -10%;
}

.home-content {
  z-index: 2;
  max-height: 80%;
  max-width: 90%;
  justify-content: center;
  align-items: center;
  display: cover;
  margin-top: 0;
  position: relative;
  font-size: 1rem;
}

/* Header Undangan dengan font tulisan tangan */
.home-header {
  font-family: "Dancing Script", cursive;
  font-size: 2.8em;
  font-weight: bold;
  color: rgb(3, 3, 0);
  text-shadow: 2px 2px 4px rgba(0, 200, 255, 0.547);
  margin-bottom: 10px;
}

.fotbar {
  position: relative;
  height: auto;
  width: 120%;
  margin-left: -11%;
}

.Kepada {
  font-size: 1em;
  margin-bottom: 10px;
  color: hsl(0, 0%, 0%);
  text-shadow: 2px 2px 4px rgba(7, 1, 116, 0.288);
  justify-content: center;
  align-items: center;
  display: cover;
}

#guestName {
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 1.2em;
  color: rgb(0, 0, 0);
  background-color: #ffffff3c;
  background-size: contain;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-radius: 10px;
  max-width: 80vw;
}

.sambutan {
  font-size: 1em;
  margin-bottom: 10px;
  color: hsl(0, 0%, 0%);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  width: 100%;
  justify-content: center;
  align-items: center;
  display: cover;
}

/* Tombol */
/* From Uiverse.io by gharsh11032000 */
.button {
  position: relative;
  width: 160px;
  height: 40px;
  background-color: #ffffff;
  align-items: center;
  color: rgb(255, 1, 149);
  flex-direction: column;
  border: none;
  padding: 5px;
  gap: 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -4px;
  top: -1px;
  margin: auto;
  width: 170px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: inherit;
}

.button::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
  box-sizing: inherit;
}

.button:hover::after {
  filter: blur(30px);
  box-sizing: inherit;
}

.button:hover::before {
  transform: rotate(-180deg);
  box-sizing: inherit;
}

.button:active::before {
  scale: 0.7;
  box-sizing: inherit;
}

#openInvitation {
  font-family: 'Times New Roman', Times, serif;
  text-shadow: #000000;
  box-shadow: #333;
}

/* ---------------------------- */
/* SECTION INFO */
/* ---------------------------- */
#info {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 15%;
  padding-bottom: 15%;
}

.info-content {
  width: 90%;
  max-height: 90%;
  border-radius: 10px;
  margin: 0 0;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  background-color: #ffffff6f;
  padding-top: 30px;
  padding-left: 15px;
  padding-right: 15px;
}

.info-header {
  font-size: 1.2em;
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  margin-bottom: 25px;
}

.quran {
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  margin-bottom: 15px;
  font-size: 0.8em;
}

.sambutan-info1 {
  font-size: 0.82em;
  color: hsl(0, 0%, 0%);
  margin-bottom: 40px;
  margin-top: 5px;
  font-family: 'Times New Roman', Times, serif;
}

.sambutan-info {
  font-size: 0.82em;
  color: hsl(0, 0%, 0%);
  margin-bottom: 40px;
  margin-top: 40px;
  font-family: 'Times New Roman', Times, serif;
}

.mempelai {
  margin: 20px 20px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  top: 50%;
  border-top-left-radius: 90px;
  border-top-right-radius: 90px;
  padding: 5px;
  background: #664e02;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 180px;
  height: auto;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0% { box-shadow: 0 0 5px #fff; }
  50% { box-shadow: 0 0 20px #b6983f, 0 0 30px #fff700; }
  100% { box-shadow: 0 0 5px #f2e18f; }
}

.mempelai img {
  width: 100%;
  height: auto;
  position: relative;
  border-top-left-radius: 90px;
  border-top-right-radius: 90px;
  object-fit: cover;
  object-position: center;
}

.mempelai .nama {
  font-family: "Dancing Script", cursive;
  font-size: 2.2em;
  margin-bottom: 5px;
}

.nama1 {
  font-family: "Dancing Script", cursive;
  font-size: 2.2em;
  margin-bottom: 5px;
  margin-top: 35px;
}

.nama2 {
  font-family: "Dancing Script", cursive;
  font-size: 2.2em;
  margin-bottom: 5px;
}

.dengan {
  font-family: "Dancing Script", cursive;
  font-size: 2.2em;
  margin-bottom: 30px;
  margin-top: 30px;
}

.ortu1 {
  font-size: 0.8em;
  font-family: 'Times New Roman', Times, serif;
}

.ortu2 {
  font-size: 0.8em;
  font-family: 'Times New Roman', Times, serif;
  margin-bottom: 35px;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.count-box {
  background-color: #ec4899;
  padding: 5px 10px;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 55px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-content: center;
}

.number {
  font-size: 1.6rem;
  color: #ffffff;
  font-weight: bold;
  display: block;
}

.label {
  font-size: 0.8rem;
  color: #ffffff;
}

/* ---------------------------- */
/* SECTION ACARA */
/* ---------------------------- */
#acara {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  height: 110vh;
}

.acara-header {
  font-size: 2.2em;
  font-family: dancing script;
  margin-bottom: 15px;
}

.acara-content {
  font-size: large;
  margin: 15px 15px;
  font-family: dancing script;
}

.acara-item {
  margin: 15px 0;
}

.acara-item h3 {
  font-size: 1.5em;
}

.qr-code {
  margin-top: 20px;
}

.btn-lokasi {
  margin-top: 30px;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 10px;
  font-weight: bold;
  color: white;
  background: #1a79fe;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Efek hover */
.btn-lokasi:hover {
  background: #e64a19;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Efek klik */
.btn-lokasi:active {
  transform: scale(0.95);
}

/* Styling ikon */
.btn-lokasi i {
  font-size: 10px;
}

/* ---------------------------- */
/* SECTION GALLERY */
/* ---------------------------- */
#gallery .gallery-content {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;

}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 15px;
    padding: 10px;
    position: flex;
    justify-content: center;
    margin-top: 30%;
    margin-bottom: 30%;
}

.gallery-item-text h2 {
  color: #000000;
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0%;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(22, 6, 199, 0.5);
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
}

.gallery-item-text {
    border-radius: 10px;
    transition: transform 0.3s ease;
    aspect-ratio: 1;
    justify-content: center;
    align-items: center;
    display: flex;
    object-fit: cover;
}
.gallery-item {
    position: flex;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    aspect-ratio: 1;
    justify-content: center;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 1;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .img-overlay {
    opacity: 1;
}

.img-description {
    color: #fff;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .img-description {
    transform: translateY(0);
}

/* Lightbox Effect */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* ---------------------------- */
/* SECTION GIVE */
/* ---------------------------- */
/* Give Section Styling */

#give {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  height: 100vh;
  background: url(background/salju2\ hutan.jpg) no-repeat center center/cover;
}

.give-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 80, 211, 0.988) 0%, rgb(149, 0, 87) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.logo-bank {
  width: 100px;
  height: auto;
}

.give-content h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
  position: relative;
  padding-bottom: 1rem;
}

.give-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #e0c3fc 0%, #8ec5fc 100%);
}

.rekening {
  background: rgba(255,255,255,0.95);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 15px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.rekening:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.rekening p {
  font-size: 1.1rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Button Styling dengan Animasi */
.copy-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #fc8ed2 0%, #a20182 100%);
  border: none;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.copy-btn::before {
  content: 'MAKASIH BANYAK YA :)';
  align-content: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #5601a4 0%, #8ec5fc 100%);
  transition: all 0.4s ease;
  z-index: 1;
}

.copy-btn:hover::before {
  left: 0;
}

.copy-btn span {
  position: relative;
  z-index: 2;
}

/* Animasi saat diklik */
@keyframes copyAnim {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.copy-btn:active {
  animation: copyAnim 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .give-content {
      padding: 1.5rem;
      margin: 1rem;
  }
  
  .give-content h2 {
      font-size: 1.8rem;
  }
  
  .rekening {
      padding: 1rem;
      margin: 1rem 0;
  }
  
  .copy-btn {
      width: 100%;
      justify-content: center;
  }
}

/* Efek setelah copy */
.copied-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
  0% { opacity: 0; bottom: 10px; }
  20% { opacity: 1; bottom: 20px; }
  80% { opacity: 1; bottom: 20px; }
  100% { opacity: 0; bottom: 30px; }
}

/* ---------------------------- */
/* SECTION RSVP */
/* ---------------------------- */
/* RSVP Section Styling */
.rsvp-section {
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6eb 100%);
  min-height: 100vh;
}

.rsvp-container {
  max-width: 100%;
  margin: 0 auto;
}

.rsvp-title {
  text-align: center;
  color: #e91e63;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-family: 'Great Vibes', cursive;
  text-shadow: 2px 2px 4px rgba(233,30,99,0.2);
}

/* Form Styling */
.rsvp-form {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(233,30,99,0.1);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

input, textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #555;
  border-bottom: 2px solid #eee;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-bottom-color: #e91e63;
}

.underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #e91e63;
  transition: all 0.3s ease;
}

input:focus ~ .underline,
textarea:focus ~ .underline {
  width: 100%;
}

/* Button Styling */
.submit-btn {
  background: linear-gradient(135deg, #e91e63 0%, #ff80ab 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff80ab 0%, #e91e63 100%);
  transition: all 0.4s ease;
  z-index: 1;
}

.submit-btn:hover::before {
  left: 0;
}

.submit-btn span {
  position: relative;
  z-index: 2;
}

.submit-btn:active {
  transform: scale(0.95);
}

/* Messages Container */
.messages-container {
  background: white;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(233,30,99,0.1);
  width: 100%;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e91e63 #ffe5ee;
}

.messages-container::-webkit-scrollbar {
  width: 8px; /* Lebar scrollbar */
}

.messages-container::-webkit-scrollbar-track {
  background: #ffe5ee; /* Warna track */
  border-radius: 10px;
}

.messages-container::-webkit-scrollbar-thumb {
  background: #e91e63; /* Warna thumb */
  border-radius: 10px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: #ff80ab; /* Warna thumb saat hover */
}

.message-card {
  background: #fff9fb;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 15px;
  border: 1px solid #ffe5ee;
  animation: fadeIn 0.5s ease;
  text-align: left;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.sender-name {
  color: #e91e63;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.message-time {
  color: #ff80ab;
  font-size: 0.6rem;
  font-style: italic;
}

.message-text {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rsvp-form {
      padding: 1.5rem;
  }
  
  .rsvp-title {
      font-size: 2rem;
  }
}

/* ---------------------------- */
/* FOOTER */
/* ---------------------------- */
footer {
  background-color: #f8afd4;
  padding: 20px;
  font-size: small;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  animation: fadeIn 1s ease-in-out;
}

/* ---------------------------- */
/* ANIMASI */
/* ---------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}
