:root {
  /* Primary Colors - Warna Utama */
  --primary-light: #d4a574;
  --primary-base: #8b4513;
  --primary-dark: #5c2e0a;

  /* Secondary Colors - Warna Pendukung */
  --secondary-light: #f5e6d3;
  --secondary-base: #d2b48c;
  --secondary-dark: #a0826d;

  /* Accent Colors - Warna Aksen */
  --accent-gold: #c19a6b;
  --accent-copper: #b87333;

  /* Neutral Colors - Warna Netral */
  --neutral-white: #ffffff;
  --neutral-cream: #faf6f0;
  --neutral-light: #e8dcc8;

  /* Text Colors - Warna Teks */
  --text-primary: #3e2723;
  --text-secondary: #5d4037;
  --text-light: #795548;
}

/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Cairo", sans-serif;
  background: var(--neutral-cream);
}
.hidden {
  display: none;
}
/* Arabic/Islamic Text Font */
.arabic-text,
.bismillah,
.ayat-text {
  font-family: "Scheherazade New", serif;
}

.elegant-text {
  font-family: "Aref Ruqaa", serif;
}

/* Cover/Opening */
#cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("../assets/ornamen/bg.webp ") center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  transition: transform 0.8s ease-in-out;
  overflow: hidden;
}

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

.cover-content {
  text-align: center;
  color: var(--secondary-dark);
  padding: 20px;
}

.bismillah-cover {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 700;
}

.couple-name-cover {
  font-family: "Aref Ruqaa", serif;
  font-size: 50px;
  line-height: 1.1;
  padding-top: 4.5rem;
  width: 25rem;
  height: 20rem;
  background-image: url("../assets/ornamen/tengah.webp");
  background-blend-mode: overlay;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 95% auto;
}

.open-button {
  background: var(--accent-gold);
  color: var(--primary-dark);
  border: none;
  padding: 5px 20px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s;
  font-weight: 700;
  font-family: "Cairo", sans-serif;
  z-index: 999;
}

.open-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(193, 154, 107, 0.5);
  background: var(--primary-light);
}

.ornament-1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background-image: url("../assets/ornamen/ats.webp");
  background-blend-mode: overlay;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

.ornament-2 {
  position: fixed;
  bottom: -60px;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background-image: url("../assets/ornamen/bawah.webp");
  background-blend-mode: overlay;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 115% auto;
}

/* Desktop Navigation */
.navbar {
  background: var(--neutral-white) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  padding: 15px 0;
}

.navbar-brand {
  font-family: "Aref Ruqaa", serif;
  font-size: 32px;
  color: var(--primary-base) !important;
  font-weight: 700;
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 600;
  margin: 0 10px;
  transition: color 0.3s;
  font-size: 16px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-base) !important;
}

/* Mobile Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--neutral-white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  padding: 8px 0 5px;
}

.bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 100vw;
}

.bottom-nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.3s;
  padding: 5px;
}

.bottom-nav-item i {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}

.bottom-nav-item span {
  font-size: 11px;
  display: block;
  font-weight: 600;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--primary-base);
}

.bottom-nav-item.active i {
  transform: scale(1.1);
}

/* Hero Section */
.ornament-3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background-image: url("../assets/ornamen/bwh2.webp");
  background-blend-mode: overlay;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
}

.hero-section {
  min-height: 100vh;
  background: linear-gradient(to top, #e6ddd2 30%, #00000000 90%), url("../assets/gellery/1.jpeg") top center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: center;
  color: var(--text-light);
  position: relative;
  padding: 100px 20px 80px;
}

.bismillah {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.8;
}

.couple-names {
  font-family: "Aref Ruqaa", serif;
  font-size: 80px;
  margin: 30px 0;
  font-weight: 700;
}

.hero-date {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* Countdown */
#countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.countdown-section {
  background: var(--neutral-cream);
  padding: 80px 0;
  display: flex;
}

.countdown-box {
  background: var(--neutral-white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(139, 69, 19, 0.15);
  margin: 0 10px;
  text-align: center;
  border: 2px solid var(--secondary-light);
}

.countdown-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-base);
}

.countdown-label {
  font-size: 18px;
  color: var(--text-light);
  margin-top: 10px;
  font-weight: 600;
}

/* Section Styling */
section {
  padding: 80px 0;
}

.section-title {
  font-family: "Amiri", serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-base);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

/* Couple Section */
.couple-card {
  background: var(--neutral-white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
  text-align: center;
  transition: transform 0.3s;
  border: 2px solid var(--secondary-light);
}

.couple-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(139, 69, 19, 0.25);
}

.couple-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  margin-bottom: 20px;
}

.couple-img-ring {
  position: absolute;
  width: 220px;
  height: auto;
  margin-top: -10px;
  margin-left: -207px;
}

.couple-name {
  font-family: "Amiri", serif;
  font-size: 32px;
  color: var(--primary-base);
  margin: 15px 0;
  font-weight: 700;
}

/* Ayat Section */
.ayat-box {
  background: linear-gradient(135deg, var(--primary-base) 0%, var(--primary-dark) 100%);
  color: var(--neutral-white);
  padding: 40px 20px;
  border-radius: 20px;
  text-align: center;
  font-size: 16px;
  line-height: 2;
  font-style: italic;
  box-shadow: 0 10px 40px rgba(139, 69, 19, 0.3);
  border: 2px solid var(--accent-gold);
}

/* Story Timeline */
.timeline {
  position: relative;
  padding: 50px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--accent-gold);
}

.timeline-item {
  position: relative;
  margin: 50px 0;
}

.timeline-content {
  position: relative;
  background: var(--neutral-white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(139, 69, 19, 0.15);
  width: 45%;
  border: 2px solid var(--secondary-light);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -20px;
  border-width: 15px 25px 15px 0;
  border-color: transparent var(--neutral-white) transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -20px;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent var(--neutral-white);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-icon {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-dark);
  font-size: 24px;
  border: 3px solid var(--neutral-white);
}

/* Event Details */
.event-card {
  background: var(--neutral-white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
  margin: 20px 0;
  text-align: center;
  border: 2px solid var(--secondary-light);
  transition: transform 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(139, 69, 19, 0.25);
}

.event-icon {
  font-size: 48px;
  color: var(--primary-base);
  margin-bottom: 20px;
}

.event-title {
  font-size: 28px;
  color: var(--primary-base);
  margin-bottom: 15px;
  font-weight: 700;
  font-family: "Amiri", serif;
}

.event-info {
  font-size: 18px;
  color: var(--text-primary);
  margin: 10px 0;
}

.map-button {
  background: var(--primary-base);
  color: var(--neutral-white);
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
  transition: all 0.3s;
  font-weight: 700;
}

.map-button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  color: var(--neutral-white);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 300px;
  border: 2px solid var(--secondary-light);
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(139, 69, 19, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.gallery-overlay i {
  color: var(--accent-gold);
  font-size: 40px;
}

/* RSVP Form */
.rsvp-form {
  background: var(--neutral-white);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid var(--secondary-light);
}

.form-control,
.form-select {
  border: 2px solid var(--secondary-light);
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  font-family: "Cairo", sans-serif;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-base);
  box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

.submit-button {
  background: var(--primary-base);
  color: var(--neutral-white);
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  font-weight: 700;
}

.submit-button:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

/* Wishes */
.wishes-container {
  max-width: 800px;
  margin: 0 auto;
}

.wish-card {
  background: var(--neutral-white);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
  margin: 20px 0;
  border: 2px solid var(--secondary-light);
}

.wish-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.wish-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-base);
  color: var(--neutral-white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  margin-right: 15px;
}

.wish-name {
  font-weight: 700;
  color: var(--primary-base);
}

.wish-text {
  color: var(--text-primary);
  line-height: 1.6;
}

/* Gift Section */
.gift-card {
  background: var(--neutral-white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
  text-align: center;
  margin: 20px 0;
  border: 2px solid var(--secondary-light);
  transition: transform 0.3s;
}

.gift-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(139, 69, 19, 0.25);
}

.gift-icon {
  font-size: 60px;
  color: var(--primary-base);
  margin-bottom: 20px;
}

.account-number {
  background: var(--secondary-light);
  padding: 15px;
  border-radius: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 20px 0;
  letter-spacing: 2px;
  border: 2px dashed var(--primary-base);
}

.copy-button {
  background: var(--accent-gold);
  color: var(--primary-dark);
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 700;
}

.copy-button:hover {
  transform: scale(1.05);
  background: var(--primary-light);
}

/* Music Player */
.music-player {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 999;
}

.music-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-base);
  color: var(--neutral-white);
  border: 2px solid var(--accent-gold);
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(139, 69, 19, 0.4);
  transition: all 0.3s;
}

.music-toggle:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.music-toggle.playing {
  animation: pulse 1.5s infinite;
}

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-base) 100%);
  color: var(--neutral-white);
  padding: 60px 0 90px;
  text-align: center;
}

.footer-heart {
  color: var(--accent-gold);
  font-size: 48px;
  margin-bottom: 20px;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 160px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--primary-dark);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 998;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(193, 154, 107, 0.4);
}

.scroll-top:hover {
  transform: scale(1.1);
  background: var(--primary-light);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 95vh;
  }
  /* Show bottom navigation on mobile */
  .bottom-nav {
    display: block;
  }

  /* Hide desktop navigation */
  .navbar {
    display: none !important;
  }

  /* Adjust sections padding for bottom nav */
  section {
    padding: 60px 0 80px;
  }

  footer {
    padding: 60px 0 100px;
  }

  .couple-name-cover {
    font-size: 40px;
    padding-top: 5.5rem;
  }
  .bismillah-cover {
    font-size: 26px;
  }
  .couple-names {
    font-size: 40px;
  }

  .bismillah {
    font-size: 24px;
  }

  .section-title {
    font-size: 32px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }

  .timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    border-width: 15px 25px 15px 0;
    border-color: transparent var(--neutral-white) transparent transparent;
  }
  .timeline-icon {
    left: 30px;
  }

  .rsvp-form {
    padding: 30px 20px;
  }
  #countdown {
    margin-bottom: 2rem;
  }
  .countdown-box {
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0;
    border-radius: 7px;
  }
  .countdown-number {
    font-size: 18px;
    margin: 0;
  }
  .countdown-label {
    font-size: 8px;
    margin: 0;
  }
  .music-player {
    bottom: 80px;
    right: 20px;
  }

  .music-toggle {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .scroll-top {
    bottom: 150px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (min-width: 769px) {
  .bottom-nav {
    display: none !important;
  }
}

/* Alert Success */
.alert-success {
  background: var(--secondary-light);
  border: 2px solid var(--accent-gold);
  color: var(--primary-dark);
  border-radius: 10px;
}
