* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #1d502f;
  --primary-green-1: rgba(3, 20, 9, 0.85);
  --primary-green-2: rgba(109, 159, 118, 0.25);
  --light-green: #6b9675;
  --mint-green: #a8d5ba;
  --cream: #faf9f6;
  --gold: #d4af37;
  --dark-gray: #333;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-gray);
  overflow-x: hidden;
  background-color: var(--cream);
}

/* Loading Screen */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

#loading.hide {
  opacity: 0;
  pointer-events: none;
}

.loader {
  text-align: center;
  color: white;
}

.loader i {
  font-size: 3rem;
  animation: pulse 1.5s infinite;
}

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

/* Cover Page */
#cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      135deg,
      var(--primary-green-1),
      var(--primary-green-2)
    ),
    url('../img/vira-satu-8.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: transform 0.8s ease-in-out;
}

#cover.open {
  transform: translateY(-100%);
}

.cover-content,
#side-content {
  text-align: center;
  color: white;
  padding: 2rem;
}

.cover-content h1,
#side-content h2 {
  font-family: 'Parisienne', cursive;
  font-size: 4rem;
  margin-bottom: 0.5rem;
  animation: fadeInDown 1s ease;
}

.cover-content .separator {
  width: 100px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto;
}
#side-content .separator {
  width: 100px;
  height: 2px;
  background: var(--gold);
  margin: 1rem 0;
}

.cover-content p,
#side-content p {
  font-size: 1.2rem;
  margin: 1rem 0;
  opacity: 0.95;
}

.guest-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  margin: 1.5rem 0;
}

.open-button {
  background: white;
  color: var(--primary-green);
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.open-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Music Control */
.music-control {
  position: fixed;
  bottom: 80px;
  left: 30px;
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.music-control:hover {
  transform: scale(1.1);
}

.music-control i {
  color: white;
  font-size: 1.2rem;
  animation: spin 3s linear infinite;
}

.music-control.paused i {
  animation: none;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Navigation */
nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  backdrop-filter: blur(10px);
  padding: 0.5rem;
  border-radius: 100px;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -20%);
  transition: transform 0.3s ease;
}

nav.show {
  left: 50%;
  transform: translate(-50%, -20%);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  /* flex-wrap: wrap; */
  gap: 0.5rem;
  padding: 0.3rem;
}

nav li {
  position: relative;
}

nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border: 2px solid var(--primary-green-1);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  color: var(--primary-green-1);
}

nav a i {
  font-size: 1.2rem;
}

nav a:hover {
  background: #f5f5f5;
  transform: scale(1.1);
}

/* Tooltip */
nav a[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-green-1);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 8px;
}

nav a[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% - 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--primary-green-1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

nav a:hover[data-tooltip]::after,
nav a:hover[data-tooltip]::before {
  opacity: 1;
}

/* Sections */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  /* opacity: 0;
  transform: translateY(30px); */
  transition: all 0.8s ease;
}

section.visible {
  /* opacity: 1;
  transform: translateY(0); */
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.section-title .separator {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* background: linear-gradient(135deg, rgba(168, 213, 186, 0.3), rgba(107, 150, 117, 0.3)); */
  background: linear-gradient(
      135deg,
      var(--primary-green-1),
      var(--primary-green-2)
    ),
    url('../img/vira-satu-2.webp'), fixed, fixed, fixed;
  background-size: cover;
  text-align: center;
  padding-top: 20px;
}
#container-content {
  display: flex; /* Mengaktifkan Flexbox */
  height: 100dvh;
}
#side-content {
  width: calc(100% - 500px);
  position: fixed;
  height: 100dvh;
  background: linear-gradient(
      135deg,
      var(--primary-green-1),
      var(--primary-green-2)
    ),
    url('../img/vira-satu-8.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  color: white;
  align-items: center;
  text-align: left;
  display: flex;
  padding: 60px;
  left: 0;
}
#main-content > #hero > p.short-doa {
  color: rgb(202, 202, 202);
}
#main-content {
  flex: 1;
  width: 500px;
  top: 0;
  right: 0;
  position: absolute;
  /* overflow-y: auto;  */
  /* Tambah scrollbar HANYA di div ini jika konten meluap */
}

#hero h1 {
  font-family: 'Parisienne', cursive;
  font-size: 5rem;
  color: white;
  margin-bottom: 1rem;
}

#hero .subtitle {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 2rem;
}

.bismillah {
  font-family: 'Times New Roman', serif;
  font-size: 2rem;
  color: white;
  margin: 2rem 0;
  /* font-weight: bold; */
}

/* Quote Section */
#quote {
  background: white;
  padding: 60px 20px;
}

.quote-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 10px;
}

.quote-box .arabic {
  font-family: 'Times New Roman', serif;
  font-size: 1.5rem;
  line-height: 2;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.quote-box .translation {
  font-size: 1rem;
  font-style: italic;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.quote-box .reference {
  font-size: 0.9rem;
  color: var(--light-green);
  font-weight: 600;
}

/* Couple Section */
#couple {
  background: linear-gradient(to bottom, white, var(--cream));
}

.couple-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.couple-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.couple-card:hover {
  transform: translateY(-10px);
}

.couple-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--mint-green);
  margin-bottom: 1.5rem;
}

.couple-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.couple-parents {
  font-size: 0.9rem;
  color: var(--light-green);
  margin-top: 1rem;
}

.instagram-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

.instagram-link:hover {
  color: var(--gold);
}

/* Event Section */
#event {
  background: white;
}

.event-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.event-card {
  background: var(--cream);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 2px solid var(--mint-green);
}

.event-card i {
  font-size: 1rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.event-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.event-detail {
  margin: 0.5rem 0;
  color: var(--dark-gray);
}

/* Countdown */
#countdown {
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: white;
  text-align: center;
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 15px;
  min-width: 120px;
  backdrop-filter: blur(10px);
}

.countdown-item .number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
}

.countdown-item .label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Location */
#location {
  background: var(--cream);
}

.location-content {
  text-align: center;
}

.location-address {
  font-size: 1.1rem;
  margin: 2rem 0;
  line-height: 1.8;
}

.map-container {
  margin: 2rem 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.location-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary-green);
  color: white;
}

.btn-primary:hover {
  background: var(--light-green);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: white;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: white;
}

/* Gallery */
#gallery {
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 90, 61, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
}

/* RSVP */
#rsvp {
  background: linear-gradient(to bottom, var(--cream), white);
}

.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Messages Section */
.messages-section {
  max-width: 600px;
  margin: 3rem auto 0;
}

.messages-section h3 {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.messages-section h3 i {
  margin-right: 0.5rem;
}

.messages-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--mint-green);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.message-header strong {
  color: var(--primary-green);
  font-size: 1.1rem;
}

.attendance-badge {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.attendance-badge.attending {
  background: #d4edda;
  color: #155724;
}

.attendance-badge.not-attending {
  background: #f8d7da;
  color: #721c24;
}

.attendance-badge.maybe {
  background: #fff3cd;
  color: #856404;
}

.message-text {
  color: var(--dark-gray);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

.loading-messages,
.no-messages,
.error-messages {
  text-align: center;
  color: var(--light-green);
  padding: 2rem;
  font-style: italic;
}

.error-messages {
  color: #dc3545;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-green);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--mint-green);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Gift */
#gift {
  background: white;
}

.gift-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.gift-intro {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.gift-accounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gift-card {
  background: var(--cream);
  padding: 2rem;
  border-radius: 15px;
  border: 2px solid var(--mint-green);
}

.gift-card h4 {
  color: var(--primary-green);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.account-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin: 1rem 0;
  letter-spacing: 2px;
}

.account-name {
  color: var(--light-green);
  margin-bottom: 1rem;
}

.copy-button {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-button:hover {
  background: var(--light-green);
}

/* Footer */
footer {
  background: var(--primary-green);
  color: white;
  text-align: center;
  padding: 2rem;
}

footer p {
  margin: 0.5rem 0;
}
footer a {
  color: var(--gold);
}
footer a:visited {
  color: var(--gold);
}

.footer-heart {
  color: var(--gold);
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1080px) {
  /* nav.show {
    width: 95%;
  }

  nav ul {
    gap: 1rem;
    padding: 0 0.5rem;
  }

  nav a {
    font-size: 0.9rem;
  } */
  #main-content {
    position: static;
  }

  #side-content {
    display: none;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 3rem;
  }

  .cover-content h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .countdown-item {
    min-width: 80px;
    padding: 1.5rem;
  }

  .countdown-item .number {
    font-size: 2rem;
  }

  #main-content footer {
    padding-bottom: 80px;
  }
  .music-control {
    bottom: 100px;
  }
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}
