* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 50%, #cd853f 100%);
  color: #333;
  overflow-x: hidden;
}
/* Tambahkan di bagian awal file CSS */
body {
  overflow: hidden; /* Mencegah scroll di awal */
}

body.opened {
  overflow-y: auto; /* Mengizinkan scroll setelah invitation dibuka */
}

.guest-name {
    font-family: 'Great Vibes', cursive; /* atau font yang sesuai tema */
    font-size: 2.5em;
    color: #ad9463; /* sesuaikan dengan warna tema */
    margin: 10px 0;
    text-align: center;
    text-transform: capitalize;
}

.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  background: var(--background-color);
  transition: opacity 1s ease;
}

.hero.opened {
  opacity: 0;
  pointer-events: none;
}

.main-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
  margin-top: 100vh; /* Memberikan space untuk hero section */
}

.main-content.visible {
  opacity: 1;
}
.section {
  min-height: 100vh;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Decorative Elements */
.ornament {
  position: absolute;
  opacity: 0.3;
  z-index: 0;
}

.ornament-1 {
  top: 10%;
  right: 10%;
  font-size: 60px;
  color: #fff;
}

.ornament-2 {
  bottom: 10%;
  left: 10%;
  font-size: 50px;
  color: #fff;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(139, 69, 19, 0.7), rgba(160, 82, 45, 0.7)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="%23fff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>');
  background-size: cover;
}

.couple-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 20px auto;
    background-size: cover;
    background-position: 50% 50%; /* Mengatur posisi gambar tepat di tengah */
    border: 3px solid #ffd700;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Optional: Jika menggunakan tag img di dalam div */
.couple-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Memastikan gambar selalu di tengah */
}

@media (max-width: 768px) {
    .couple-photo {
        width: 150px;
        height: 150px;
        margin: 15px auto;
    }
}

.wedding-title {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.couple-names {
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.wedding-date {
  color: #fff;
  font-size: 18px;
  margin-bottom: 30px;
}

.invitation-text {
  color: #fff;
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
}

.open-invitation-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.open-invitation-btn:hover {
  background: #fff;
  color: #8b4513;
}

/* Dear Guest Section */
.dear-guest {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bg-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1s ease-in-out, transform 5s ease-in-out;
}


.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(139, 69, 19, 0.7); /* Brown color with opacity */
  z-index: 2;
}

.guest-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 20px;
  max-width: 600px;
}

.guest-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ecb50f;
}

.guest-name {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
}

.guest-message {
  font-size: 1.2em;
  line-height: 1.6;
}

/* Wedding Info Section */
.wedding-info {
    position: relative;
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.wedding-info .container {
    position: relative;
    padding: 60px 20px;
}

.info-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.info-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}



.info-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.info-content h2 {
    color: #8b4513;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.info-content p {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.countdown {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  margin: 30px 0;
  backdrop-filter: blur(10px);
}

.countdown-title {
  font-size: 24px;
  margin-bottom: 20px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.countdown-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 10px;
  min-width: 60px;
}

.countdown-number {
  font-size: 28px;
  font-weight: bold;
  display: block;
}

.countdown-label {
  font-size: 12px;
  opacity: 0.8;
}

.save-date {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  color: #0f0e0e;
}

/* Quran Verse Section */
.quran-verse {
  background: linear-gradient(
    rgba(222, 184, 135, 0.9),
    rgba(210, 180, 140, 0.9)
  );
  padding: 60px 20px;
}

.verse-content {
  max-width: 600px;
  text-align: center;
  color: #8b4513;
}

.verse-title {
  font-size: 20px;
  margin-bottom: 30px;
  font-weight: bold;
}

.verse-text {
  font-size: 16px;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

.verse-reference {
  font-size: 14px;
  font-weight: bold;
}

/* Couple Section */
.couple-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.couple-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.couple-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 69, 19, 0.7);
    z-index: 2;
}

.couple-container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.couple-member {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    transition: transform 0.3s ease;
}

.couple-member:hover {
    transform: translateY(-5px);
}

.couple-photo-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid #ffd700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.couple-photo-wrapper:hover .member-photo {
    transform: scale(1.1);
}

.couple-label {
    color: #ffd700;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.couple-name {
    color: #fff;
    font-size: 2em;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}

.couple-details {
    color: #fff;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.social-link {
    color: #ffd700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.8));
    color: #fff;
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #ffd700;
}

.gallery-container {
    margin-bottom: 40px;
}

.gallery-subtitle {
    text-align: center;
    color: #8b4513;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.gallery-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-slider.landscape .gallery-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.gallery-slider.portrait .gallery-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.gallery-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    padding: 0;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #8b4513;
    z-index: 2;
    transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: #fff;
    color: #8b4513;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 3px solid rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .gallery-slider.landscape .gallery-slide img {
        max-height: 100vh;
        object-fit: contain;
    }

    .gallery-slider.portrait .gallery-slide img {
        max-height: 100vh;
        object-fit: contain;
    }
    
    .gallery-slide {
        min-width: 100%;
        padding: 0;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-slide img {
        max-height: 100vh;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        width: auto;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .gallery-slider {
        padding: 0;
        margin: 0;
        height: 100vh;
    }

    .wedding-info .container {
        padding: 40px 15px;
    }

    .info-content {
        padding: 20px;
        margin: 0 15px;
    }

    .couple-title {
      color: #ffffff;
        font-size: 2em;
    }
}

/* Wedding Event Section */
.wedding-event {
  background: linear-gradient(rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.8));
  color: #fff;
}

.event-content {
  max-width: 400px;
  text-align: center;
}

.event-title {
  font-size: 32px;
  margin-bottom: 40px;
}

.event-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 20px;
  border-radius: 20px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.event-type {
  font-size: 28px;
  font-style: italic;
  color: #ffd700;
  margin-bottom: 20px;
}

.event-date-large {
  font-size: 72px;
  font-weight: bold;
  line-height: 1;
  margin: 20px 0;
}

.event-month-year {
  font-size: 18px;
  margin-bottom: 20px;
}

.event-details {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.location-btn {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 2px solid #ffd700;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.location-btn:hover {
  background: #ffd700;
  color: #8b4513;
}
.couple-subtitle {
  color: #ffffff;
  text-align: center;
}
/* Wedding Gift Section */
.wedding-gift {
  background: linear-gradient(rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.8));
  color: #fff;
}

.gift-content {
  max-width: 500px;
  text-align: center;
}

.gift-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.gift-subtitle {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
}

.gift-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.gift-option {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
}

.bank-logo {
  font-size: 32px;
  color: #ffd700;
  min-width: 60px;
}

.bank-info {
  flex: 1;
  text-align: left;
}

.bank-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.account-number {
  font-size: 20px;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.account-name {
  font-size: 14px;
  opacity: 0.8;
}

.copy-btn {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 2px solid #ffd700;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #ffd700;
  color: #8b4513;
}

.gift-address {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.gift-address h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #ffd700;
}

/* RSVP Section */
.rsvp-section {
  background: linear-gradient(
    rgba(222, 184, 135, 0.9),
    rgba(210, 180, 140, 0.9)
  );
  color: #8b4513;
}

.rsvp-content {
  max-width: 500px;
  text-align: center;
}

.rsvp-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.rsvp-subtitle {
  font-size: 16px;
  margin-bottom: 40px;
}

.rsvp-form {
  background: rgba(255, 255, 255, 0.3);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
}
style.css */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #4CAF50;
    color: #2E7D32;
}

.notification.error {
    border-left: 4px solid #f44336;
    color: #c62828;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(139, 69, 19, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #8b4513;
  font-size: 16px;
  font-family: "Georgia", serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b4513;
}

.submit-btn {
  background: #8b4513;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-family: "Georgia", serif;
}

.submit-btn:hover {
  background: #a0522d;
  transform: translateY(-2px);
}

/* Wishes Section */
.wishes-section {
  background: linear-gradient(rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.8));
  color: #fff;
}

.wishes-content {
  max-width: 600px;
}

.wishes-title {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
}

.wishes-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.wish-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  backdrop-filter: blur(10px);
}

.wish-avatar {
  width: 50px;
  height: 50px;
  background: rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-size: 20px;
  flex-shrink: 0;
}

.wish-content-text {
  flex: 1;
}

.wish-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #ffd700;
}

.wish-message {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
  opacity: 0.9;
}

.wish-time {
  font-size: 0.8em;
  color: #0f0d0d;
  margin-top: 5px;
}

/* Thank You Section */
.thank-you {
  background: linear-gradient(
    rgba(222, 184, 135, 0.9),
    rgba(210, 180, 140, 0.9)
  );
  color: #8b4513;
}

.thankyou-content {
  max-width: 500px;
  text-align: center;
}

.thankyou-title {
  font-size: 32px;
  margin-bottom: 30px;
}

.thankyou-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
  font-style: italic;
}

.thankyou-couple h3 {
  font-size: 20px;
  margin-bottom: 30px;
}

.couple-signature {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.thankyou-message {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
  font-style: italic;
  box-sizing: border-box;
  margin: 0 20px;
  padding: 0 20px;
}

.signature-item {
  text-align: center;
}

.signature-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.signature-line {
  font-size: 24px;
  color: #cd853f;
}

.signature-and {
  font-size: 24px;
  font-style: italic;
  color: #cd853f;
}

.footer-info {
  border-top: 2px solid rgba(139, 69, 19, 0.3);
  padding-top: 30px;
  font-size: 14px;
  opacity: 0.8;
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  color: #8b4513;
  font-size: 24px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #cd853f;
  transform: translateY(-2px);
}

/* Music Button */
/* Default tersembunyi */
.music-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #8b4513;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Saat dimunculkan */
.music-button.show {
    opacity: 1;
    visibility: visible;
}

.music-button i {
    color: #8b4513;
    font-size: 20px;
}

.music-button.playing {
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-button:hover {
    transform: scale(1.1);
    background: #fff;
}


/* Add these styles for smooth transitions */
section:not(.hero) {
    transition: visibility 0.5s, opacity 0.5s ease;
}

/* Optional: Add smooth scroll behavior to body */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
  .couple-names {
    font-size: 36px;
  }

  .countdown-timer {
    gap: 10px;
  }

  .countdown-item {
    min-width: 50px;
    padding: 10px;
  }

  .countdown-number {
    font-size: 24px;
  }

  .event-date-large {
    font-size: 60px;
  }

  .couple-name {
    font-size: 24px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .couple-title {
      color: #ffffff;
        font-size: 2em;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #8b4513;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0522d;
}

.wish-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.attendance-label {
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.attendance-label.attending {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.attendance-label.not-attending {
    background-color: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.2);
}