/* Base Styles & Variables */
:root {
  --color-cream: #FDF5E6;
  --color-light-brown: #8B7355;
  --color-gold: #DAA520;
  --color-dark: #2C1810;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Poppins', sans-serif;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-dark);
  line-height: 1.6;
}

/* RSVP Form Styles */
.rsvp-button {
  background-color: transparent;
  color: var(--color-cream);
  border: 2px solid var(--color-gold);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rsvp-button:hover {
  background-color: var(--color-gold);
  transform: translateY(-2px);
}

.rsvp-modal {
  max-width: 500px;
}

.rsvp-modal h2 {
  color: var(--color-dark);
  font-family: var(--font-serif);
  text-align: center;
  margin-bottom: 2rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--color-dark);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 1px solid rgba(139, 115, 85, 0.3);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.radio-group {
  display: flex;
  gap: 2rem;
  padding: 0.5rem 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--color-gold);
}

.submit-rsvp {
  background-color: var(--color-gold);
  color: var(--color-cream);
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-rsvp:hover {
  background-color: #c69500;
  transform: translateY(-2px);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1100;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  position: relative;
  background-color: var(--color-cream);
  margin: 2rem auto;
  padding: 2.5rem;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 1.8rem;
  color: var(--color-light-brown);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  background-color: rgba(139, 115, 85, 0.1);
}

.close-modal:hover {
  background-color: rgba(139, 115, 85, 0.2);
  transform: rotate(90deg);
}

/* Success Message Styles */
.success-message {
  background-color: #4CAF50;
  color: white;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  margin-top: 1rem;
  display: none;
}

/* Error Message Styles */
.error-message {
  background-color: #f44336;
  color: white;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  margin-top: 1rem;
  display: none;
}

/* Guest List Mobile Styles */

/* Guest List Section Styles */
.guest-list {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  order: 999;
  position: relative;
  z-index: 2;
}

.guest-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat-card {
  background-color: var(--color-cream);
  padding: 2rem 3rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(139, 115, 85, 0.15);
  border: 2px solid rgba(218, 165, 32, 0.3);
  min-width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(139, 115, 85, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-serif);
  margin-bottom: 0.8rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.guest-table-container {
  overflow-x: auto;
  margin-top: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(218, 165, 32, 0.2);
}

.guest-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 800px;
}

.guest-table th,
.guest-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.guest-table th {
  background-color: rgba(218, 165, 32, 0.15);
  color: var(--color-dark);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  z-index: 10;
}

.guest-table th:first-child {
  border-top-left-radius: 12px;
}

.guest-table th:last-child {
  border-top-right-radius: 12px;
}

.guest-table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.guest-table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.guest-table tr:hover {
  background-color: rgba(218, 165, 32, 0.05);
}

.guest-table td {
  color: var(--color-dark);
  transition: background-color 0.3s ease;
}

.guest-name {
  font-weight: 500;
  color: var(--color-dark);
}

.guest-institution {
  color: var(--color-light-brown);
  font-style: italic;
}

.guest-status {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.5rem;
}

.status-attending {
  background-color: rgba(76, 175, 80, 0.15);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-attending::before {
  content: "✓";
  font-weight: bold;
}

.status-not-attending {
  background-color: rgba(244, 67, 54, 0.15);
  color: #d32f2f;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.status-not-attending::before {
  content: "×";
  font-weight: bold;
  font-size: 1.2em;
}

.guest-rsvp-time {
  color: var(--color-light-brown);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guest-rsvp-time::before {
  content: "🕒";
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .guest-stats {
    gap: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem 2rem;
    min-width: 160px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .guest-table-container {
    margin: 1rem -1rem;
    width: calc(100% + 2rem);
    border-radius: 0;
  }

  .guest-table {
    min-width: 650px;
  }

  .guest-table th,
  .guest-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .guest-status {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .rsvp-modal {
    padding: 1.5rem;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
  }
  
  .guest-list {
    padding: 1rem;
  }
  
  .guest-list li {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-cream);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: rgba(253, 245, 230, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  height: 80px; /* Tetapkan tinggi navbar */
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-wrap: wrap;
  }
  
  .navbar .menu-toggle {
    order: 1;
  }
  
  .navbar .logo {
    order: 2;
    flex-grow: 1;
    text-align: center;
  }
  
  .navbar .lang-switch {
    order: 3;
  }
  
  .navbar .nav-links {
    order: 4;
    width: 100%;
  }
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-light-brown);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-gold);
}

.lang-switch button {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-light-brown);
}

.lang-switch button.active {
  color: var(--color-gold);
  font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-gold);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-cream);
  overflow: hidden;
  padding-top: 80px; /* Tambahkan padding atas sesuai tinggi navbar */
  margin-top: 75px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(44, 24, 16, 0.7), rgba(44, 24, 16, 0.7)),
              url('assets/images/batik4.jpg') center/cover no-repeat;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  animation: fadeIn 1.5s ease-out;
  margin-top: -80px; /* Kompensasi untuk padding-top pada hero */
}

.guest-welcome {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.guest-welcome span {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-cream);
  opacity: 0.9;
}

.guest-welcome .guest-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-gold);
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.event-info {
  font-size: 1.2rem;
  margin: 1.5rem 0;
}

/* Countdown Timer */
.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.countdown div {
  text-align: center;
}

.countdown span {
  display: block;
  font-size: 2.5rem;
  font-weight: 600;
}

/* Save Date Button */
.save-date {
  background-color: var(--color-gold);
  color: var(--color-cream);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.save-date:hover {
  transform: translateY(-2px);
  background-color: #c69500;
}

/* Section Styles */
.section {
  padding: 5rem 10%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

.section.fade-in {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-light-brown);
  margin-bottom: 2rem;
  text-align: center;
}

/* Product Gallery */
.produk-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.produk-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.produk-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.produk-item:hover img {
  transform: scale(1.05);
}

.produk-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(44, 24, 16, 0.9);
  color: var(--color-cream);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.produk-item:hover .produk-info {
  transform: translateY(0);
}

/* Fashion Show Video */
.fashion-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.fashion-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Sosialisasi Section */
.sosialisasi-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.sosialisasi-content img {
  width: 100%;
  border-radius: 8px;
}

/* Event Schedule */
.event-schedule {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
}

.event-schedule li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-light-brown);
}

.event-location {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
  color: var(--color-gold);
}

/* Map Button Style */
.map-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-gold);
  color: var(--color-cream);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  margin-top: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  background-color: #c69500;
}

.map-icon {
  font-size: 1.2rem;
}

.map-text {
  font-weight: 500;
}

/* Event Location Style */
.event-location {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: var(--color-cream);
  padding: 3rem 5%;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1100;
}

.modal-content {
  position: relative;
  background-color: var(--color-cream);
  margin: 5% auto;
  padding: 2rem;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-light-brown);
}

/* Music Player */
.music-player {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

#musicToggle {
  background-color: var(--color-gold);
  color: var(--color-cream);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

#musicToggle:hover {
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
  }

  .hero {
    padding-top: 70px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .countdown {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .countdown div {
    min-width: 80px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .sosialisasi-content {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 5%;
  }

  .produk-gallery {
    grid-template-columns: 1fr;
  }

  .produk-item img {
    height: 300px;
  }

  .guest-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .guest-table-container {
    margin: 1rem -1rem;
    width: calc(100% + 2rem);
  }

  .guest-table {
    min-width: auto;
    width: 100%;
  }

  .guest-table th,
  .guest-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .guest-status {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .event-schedule li {
    padding: 0.8rem 0;
    font-size: 0.9rem;
  }

  .music-player {
    bottom: 1rem;
    right: 1rem;
  }

  #musicToggle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .countdown span {
    font-size: 1.8rem;
  }

  .save-date,
  .rsvp-button {
    width: 100%;
    padding: 0.8rem 1.5rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .guest-table th:nth-child(2),
  .guest-table td:nth-child(2) {
    display: none; /* Hide institution column on very small screens */
  }

  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
    width: calc(100% - 2rem);
  }
}