/* ============ GLOBAL STYLES ============ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Quicksand", sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f5f2;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
}

/* ============ TYPOGRAPHY ============ */
h1 {
  font-family: "Luxurious Script", cursive;
  font-size: 5em;
  color: #2c3e50;
  font-weight: 500;
}

h2 {
  font-family: "Luxurious Script", cursive;
  font-size: 2.5em;
  color: #693d2c;
  font-weight: 500;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #e9c766;
}

h3 {
font-family: "Luxurious Script", cursive;
color: #2c3e50;
font-weight: 500;
font-size: 2.5em;
}

p {
  font-size: 1em;
}

.text {
  text-align: center;
  max-width: 700px;
  line-height: 1.6;
  margin: auto;
  font-style: italic;
  color: #7f8c8d;
  padding: 0 1rem;
}

/* ============ COVER SECTION ============ */
.cover-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: #2c3e50;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: opacity 1.5s ease, visibility 1.5s ease;
}

#cover-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cover-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  transition: opacity 1.2s ease-in-out;
  opacity: 0;
}

.cover-slide.active {
  opacity: 1;
}

.cover-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.cover-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 40px;
  max-width: 600px;
}

.cover-content p {
  color: #ffffff;
  font-size: 1.1rem;
}

.cover-content h1 {
  color: #ffffff;
  font-size: 5em;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.sapaan-pembuka {
  font-size: 1.1em;
  margin-top: 40px;
}

.guest-container {
  margin: 20px 0;
}

.guest-name {
  font-size: 1.5em;
  margin: 10px 0 30px;
  font-weight: 600;
}

.btn-open {
  margin-top: 30px;
  padding: 15px 40px;
  background: #e9c766;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-open:hover {
  background: #693d2c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.cover-container.hidden {
  opacity: 0;
  visibility: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* ============ MAIN CONTENT ============ */
.main-content {
  padding-top: 0;
}

/* ============ HEADER SECTION ============ */
header {
  text-align: center;
  padding: 0;
}

.separator-slideshow-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.separator-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.separator-slide.active {
  opacity: 1;
}

/* ============ PARENT NAMES ============ */
.parent-names {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0;
  gap: 40px;
}

.person-details {
    text-align: center;
    width: 40%;
    padding: 40px;
    border-radius: 15px;
    transition: transform 0.3s ease;
    background-image: url(or1.png);
    background-size: cover;
    background-position: center;
    max-width: 400px;
}

.person-details:hover {
  transform: translateY(-10px);
}

.person-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 30px;
  background-color: #e0e0e0;
  background-size: cover;
  background-position: center;
  border: 8px solid #f8f5f2;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.ampersand {
  font-size: 3em;
  color: #e9c766;
  font-family: serif;
}

/* ============ EVENT DETAILS ============ */
.details {
  display: flex;
  justify-content: space-between;
  margin: 60px 0;
  gap: 30px;
}

.event {
    width: 48%;
    background: url(or2.png);
    padding-top: 60px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    background-position: top;
    background-repeat: no-repeat;
}

.event:hover {
  transform: translateY(-10px);
}

.event h3 {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.event h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: #e9c766;
}

/* ============ COUNTDOWN ============ */
.countdown {
    padding-top: 40px;
    margin: auto;
    max-width: 600px;
}

.countdown-timer {
    display: grid;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.timer-box {
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: #693d2c;
  border-radius: 15px;
  padding: 0 0 1rem 0;
}

.timer-box span {
  font-size: 3em;
  font-weight: bold;
  color: #e9c766;
  display: block;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.timer-box p {
  margin: 0;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ecf0f1;
}

/* ============ LOCATION ============ */
.location {
  margin: 60px 0;
  text-align: center;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 30px 0;
  padding:30px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.btn-maps {
  display: inline-block;
  padding: 15px 40px;
  background: #e9c766;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-maps:hover {
  background: #693d2c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ============ LOVE STORY ============ */
.love-story {
  margin: 60px 0;
  text-align:center;
}
.timeline-content {
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 600px;
    margin: 2rem auto;
}
.timeline-content h3 {
    font-family: 'Quicksand';
    line-height: 1;
    margin: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.timeline-date {
    color: #e9c766;
}
.timeline-content p {
    font-size: 1rem;
    font-style: italic;
    color: #666;
}
/* ============ GALLERY ============ */
.gallery {
  text-align: center;
  margin: 60px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ============ GIFTS ============ */
.gifts {
  background: #ffffff;
  padding: 60px 40px;
  border-radius: 15px;
  margin: 60px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
}
.gifts-container {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 1rem;
    gap: 1rem;
}
.gift-item {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 10px;
}
button.btn-copy {
    padding: 10px 20px;
    border: none;
    margin: 1rem;
    background: #e9c766;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}
/* ============ RSVP FORM ============ */
.rsvp {
  background:#693d2c;
  color: #ffffff;
  padding: 60px 40px;
  border-radius: 15px;
  margin: 60px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
}

.rsvp h2 {
  color: #ffffff;
}

.rsvp h2::after {
  background: #e9c766;
}

#rsvp-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-family: inherit;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.3);
}

.form-group select {
  cursor: pointer;
}

option {
    background: #e9c766;
    color: #693d2c;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 15px;
  background: #e9c766;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.btn-submit:hover {
  background: #693d2c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.form-status-message {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.form-status-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-status-message.success {
  background: #d4edda;
  color: #155724;
}

.form-status-message.error {
  background: #f8d7da;
  color: #721c24;
}

/* ============ WISHES ============ */
.wishes {
  margin: 60px 0;
  text-align: center;
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wishes-list {

}

.wish-item {
  position: relative;
  background: #f8f5f2;
  border-radius: 10px;
  padding: 60px 40px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.wish-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.wish-item:last-child {
  margin-bottom: 0;
}

.wish-item strong {
  font-weight: bold;
  color: #2c3e50;
  display: block;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.wish-item p {
  margin: 0;
  font-size: 1em;
  color: #4a4a4a;
  line-height: 1.5;
  white-space: pre-wrap;
}

.btn-delete-rsvp {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e9c766;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 10;
}

.btn-delete-rsvp:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ============ ANIMATIONS ============ */
.fade-in-section {
  opacity: 1;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ LIGHTBOX ============ */
.custom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-lightbox.show {
  opacity: 1;
  visibility: visible;
}

.custom-lightbox img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: cursive;
}

.lightbox-close {
  top: 15px;
  right: 25px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 15px;
}

.lightbox-next {
  right: 15px;
}

/* ============ MUSIC CONTROL ============ */
.music-control {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #e9c766;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  color: #ffffff;
  font-size: 1.5em;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.music-control:hover {
  transform: scale(1.1);
  background: #693d2c;
}

.music-control.playing {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(230, 126, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5em;
  }

  .cover-content h1 {
    font-size: 4em;
  }
  
  .parent-names {
    flex-direction: column;
    gap: 30px;
  }
  
  .person-details {
    width: 100%;
  }
  
  .details {
    flex-direction: column;
    gap: 20px;
  }
  
  .event {
    width: 100%;
  }
  
  .countdown-timer {
    gap: 20px;
  }
  
  .timer-box {
    width: 45%;
  }
  .timer-box span {
    font-size: 2em;
  }
  .timer-box p {
    font-size: .9em;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2em;
  }
  

  .cover-content h1 {
    font-size: 4em;
  }
  
  .person-photo {
    width: 150px;
    height: 150px;
  }
  
  .timer-box {
    width: 100%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-thumbnail {
    width: 100%;
    height: 120px;
 }
  .map-container iframe {
    height: 300px;
  }
  
  .music-control {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}