/* 
   Fail Reka Bentuk Utama (CSS): Walimatulurus Aliff & Afiqah
   Gaya: Premium Champagne Rose Gold dengan sentuhan Romantik Tradisional Malaysia
*/

/* -------------------------------------------------------------
   1. RESET & VARIABLE DECLARATIONS
   ------------------------------------------------------------- */
:root {
  /* Color Palette */
  --primary-rose: #d4a373; /* Champagne Gold */
  --primary-light: #fefae0; /* Warm Silk Cream */
  --primary-accent: #b5828f; /* Dusty Rose / Soft Pink */
  --text-dark: #2f2e2e; /* Muted Charcoal */
  --text-light: #6c757d; /* Muted Grey */
  --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  --gold-solid: #c5a880;
  --bg-warm: #faf7f2;
  --bg-pure: #ffffff;
  
  /* Fonts */
  --font-serif: 'Playfair Display', serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Inter', sans-serif;
  
  /* Border Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(181, 130, 143, 0.1);
  --shadow-lg: 0 20px 50px rgba(47, 46, 46, 0.08);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-warm);
  line-height: 1.6;
  overflow-x: hidden;
}

/* -------------------------------------------------------------
   2. TYPOGRAPHY & GENERAL LAYOUTS
   ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.hidden {
  display: none !important;
}

/* Section Common Headers */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--font-script);
  font-size: 36px;
  color: var(--primary-accent);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 40px;
  color: var(--text-dark);
  text-transform: capitalize;
  letter-spacing: 1px;
}

.header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.header-divider::before,
.header-divider::after {
  content: "";
  width: 60px;
  height: 1px;
  background-color: var(--gold-solid);
  margin: 0 16px;
}

.header-divider i {
  color: var(--primary-accent);
  font-size: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #523f12;
  box-shadow: 0 5px 15px rgba(191, 149, 63, 0.3);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(191, 149, 63, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  border: 1px solid var(--gold-solid);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background-color: var(--primary-accent);
  color: #fff;
  border-color: var(--primary-accent);
  transform: translateY(-3px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-block {
  display: flex;
  width: 100%;
  margin-bottom: 12px;
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success {
  background-color: rgba(37, 211, 102, 0.1);
  color: #1ebe57;
}

.badge-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* -------------------------------------------------------------
   3. BACKGROUND MUSIC FLOATING PLAYER
   ------------------------------------------------------------- */
.music-player-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transform: translateX(150px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.music-player-container.visible {
  transform: translateX(0);
  opacity: 1;
}

.music-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: none;
  box-shadow: var(--shadow-md);
  color: #523f12;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  outline: none;
  position: relative;
  z-index: 2;
}

.music-btn.playing {
  animation: spinCD 4s linear infinite;
}

.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 25px;
  padding: 0 10px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1px solid rgba(191, 149, 63, 0.2);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}

.music-waves.active {
  opacity: 1;
  transform: scaleX(1);
}

.music-waves span {
  display: block;
  width: 3px;
  background-color: var(--primary-accent);
  border-radius: 3px;
  animation: bounceWaves 1s ease infinite alternate;
}

.music-waves span:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.music-waves span:nth-child(2) { height: 18px; animation-delay: 0.3s; }
.music-waves span:nth-child(3) { height: 13px; animation-delay: 0.5s; }
.music-waves span:nth-child(4) { height: 7px; animation-delay: 0.2s; }

.music-tooltip {
  position: absolute;
  right: 65px;
  background-color: rgba(47, 46, 46, 0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: var(--transition);
}

.music-player-container:hover .music-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* -------------------------------------------------------------
   4. NAVIGATION BAR (STICKY BLUR NAVBAR)
   ------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 999;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 14px 0;
  background-color: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(191, 149, 63, 0.15);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 2px;
}

.nav-logo::after {
  content: ".";
  color: var(--primary-accent);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-accent);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

/* -------------------------------------------------------------
   5. SECTION 1: HERO / HOME
   ------------------------------------------------------------- */
.hero-section {
  height: 100vh;
  min-height: 700px;
  background-image: url('assets/images/Aliff & Afiqah school image.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(47, 46, 46, 0.4) 0%, rgba(47, 46, 46, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-greeting {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.hero-title {
  font-family: var(--font-script);
  font-size: 90px;
  margin-bottom: 20px;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease 0.2s;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 3px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease 0.4s;
}

/* Countdown Card */
.countdown-container {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px 40px;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease 0.6s;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #fff;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.countdown-text {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.countdown-finished-msg {
  font-family: var(--font-serif);
  font-size: 28px;
  font-style: italic;
  color: #fff;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease 0.8s;
}

/* Scroll Indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  color: rgba(255, 255, 255, 0.75);
  animation: bounceIndicator 2s infinite;
}

/* -------------------------------------------------------------
   6. SECTION 2: THE COUPLE / PENGANTIN
   ------------------------------------------------------------- */
.couple-section {
  background-color: var(--bg-warm);
}

.couple-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
}

.couple-card {
  flex: 1;
  max-width: 420px;
  background-color: var(--bg-pure);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(191, 149, 63, 0.1);
  transition: var(--transition);
}

.couple-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.couple-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 380px;
}

.couple-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.couple-card:hover .couple-img-wrapper img {
  transform: scale(1.05);
}

.couple-shape-overlay {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, var(--bg-pure), transparent);
}

.couple-info {
  padding: 30px 24px;
}

.couple-info h3 {
  font-family: var(--font-script);
  font-size: 42px;
  color: var(--primary-accent);
  margin-bottom: 4px;
}

.couple-fullname {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.couple-parent {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.parent-names {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-top: 4px;
  line-height: 1.6;
}

.social-links {
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--primary-accent);
  font-weight: 500;
}

.social-link:hover {
  color: var(--text-dark);
}

.couple-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ampersand {
  font-family: var(--font-script);
  font-size: 72px;
  color: var(--gold-solid);
}

/* Quranic Quote block */
.quran-quote {
  max-width: 800px;
  margin: 80px auto 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(191, 149, 63, 0.1);
  padding: 40px 60px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  backdrop-filter: blur(5px);
}

.quran-quote i.quote-icon-left {
  position: absolute;
  top: 25px;
  left: 30px;
  font-size: 24px;
  color: rgba(181, 130, 143, 0.25);
}

.quran-quote i.quote-icon-right {
  position: absolute;
  bottom: 25px;
  right: 30px;
  font-size: 24px;
  color: rgba(181, 130, 143, 0.25);
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 12px;
}

.quote-source {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary-accent);
}

/* -------------------------------------------------------------
   7. SECTION 3: OUR LOVE STORY
   ------------------------------------------------------------- */
.story-section {
  background-color: var(--bg-pure);
}

.story-bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(181, 130, 143, 0.02) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(191, 149, 63, 0.02) 0%, transparent 40%);
  pointer-events: none;
}

/* Timeline Layout */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: rgba(191, 149, 63, 0.25);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-badge {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-pure);
  border: 2px solid var(--gold-solid);
  top: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-item.left .timeline-badge {
  right: -20px;
}

.timeline-item.right .timeline-badge {
  left: -20px;
}

.timeline-card {
  background-color: var(--bg-warm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(191, 149, 63, 0.1);
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.timeline-card:hover .timeline-badge {
  background-color: var(--primary-accent);
  color: #fff;
  border-color: var(--primary-accent);
}

.timeline-img {
  height: 200px;
  overflow: hidden;
}

.timeline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-info {
  padding: 24px;
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-accent);
  display: inline-block;
  margin-bottom: 4px;
}

.timeline-info h4 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.timeline-info p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   8. SECTION 4: EVENT DETAILS & ITINERARY
   ------------------------------------------------------------- */
.event-section {
  background-color: var(--bg-warm);
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.event-card {
  background-color: var(--bg-pure);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 50px 40px;
  border: 1px solid rgba(191, 149, 63, 0.1);
  position: relative;
  overflow: hidden;
}

.event-icon-top {
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 120px;
  color: rgba(191, 149, 63, 0.04);
  pointer-events: none;
}

.event-card h3 {
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.event-card h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-accent);
}

/* Event Metadata Block */
.event-meta {
  margin-bottom: 35px;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.meta-item i {
  font-size: 22px;
  color: var(--primary-accent);
  margin-top: 4px;
}

.meta-item strong {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-dark);
}

.meta-item p {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 2px;
}

/* Map buttons */
.maps-shortcut-btns {
  display: flex;
  gap: 16px;
}

.btn-map {
  flex: 1;
  padding: 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

.btn-gmaps {
  background-color: #f1f3f4;
  color: #1a73e8;
  border: 1px solid #dadce0;
}

.btn-gmaps:hover {
  background-color: #e8f0fe;
  transform: translateY(-2px);
}

.btn-waze {
  background-color: #eceff1;
  color: #33b5e5;
  border: 1px solid #cfd8dc;
}

.btn-waze:hover {
  background-color: #e0f7fa;
  transform: translateY(-2px);
}

/* Itinerary timeline list */
.itinerary-list {
  position: relative;
  padding-left: 24px;
}

.itinerary-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background-color: rgba(191, 149, 63, 0.3);
}

.itinerary-item {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.itinerary-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--primary-accent);
  border: 2px solid var(--bg-pure);
  box-shadow: 0 0 0 2px rgba(181, 130, 143, 0.2);
  transition: var(--transition);
}

.itinerary-item:hover::before {
  background-color: var(--gold-solid);
}

.itinerary-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-accent);
}

.itinerary-desc {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

/* -------------------------------------------------------------
   9. SECTION 5: GALLERY
   ------------------------------------------------------------- */
.gallery-section {
  background-color: var(--bg-pure);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 300px;
  cursor: pointer;
  border: 1px solid rgba(191, 149, 63, 0.1);
  transition: var(--transition);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(47, 46, 46, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  padding: 24px;
  text-align: center;
}

.gallery-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
  transform: translateY(-10px);
  transition: var(--transition);
}

.gallery-caption {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  transform: translateY(10px);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

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

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

.gallery-item:hover .gallery-icon,
.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* -------------------------------------------------------------
   10. SECTION 6: RSVP & GUESTBOOK
   ------------------------------------------------------------- */
.rsvp-section {
  background-color: var(--bg-warm);
}

.rsvp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.rsvp-card {
  background-color: var(--bg-pure);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 40px;
  border: 1px solid rgba(191, 149, 63, 0.1);
}

.rsvp-card h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.rsvp-card h3::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-accent);
}

/* Forms styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.required {
  color: var(--primary-accent);
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-accent);
  font-size: 16px;
}

.input-wrapper textarea + i {
  top: 25px; /* Aligns with top for textareas */
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(191, 149, 63, 0.25);
  background-color: var(--bg-warm);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  border-color: var(--primary-accent);
  background-color: var(--bg-pure);
  box-shadow: 0 0 0 3px rgba(181, 130, 143, 0.1);
}

/* Radio button styles */
.radio-group {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.radio-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-warm);
  border: 1px solid rgba(191, 149, 63, 0.25);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.radio-label input:checked ~ .radio-text {
  background-color: var(--primary-accent);
  color: #fff;
  border-color: var(--primary-accent);
  box-shadow: 0 4px 10px rgba(181, 130, 143, 0.2);
}

/* Guestbook Wishes List style */
.guestbook-card {
  display: flex;
  flex-direction: column;
  max-height: 520px;
}

.guestbook-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 10px;
}

.guestbook-list::-webkit-scrollbar {
  width: 6px;
}

.guestbook-list::-webkit-scrollbar-track {
  background: var(--bg-warm);
  border-radius: 4px;
}

.guestbook-list::-webkit-scrollbar-thumb {
  background: var(--gold-solid);
  border-radius: 4px;
}

.wish-card {
  padding: 16px 20px;
  background-color: var(--bg-warm);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(191, 149, 63, 0.15);
  margin-bottom: 16px;
  animation: slideInLeft 0.5s ease;
}

.wish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.wish-author {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
}

.wish-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  font-style: italic;
}

/* -------------------------------------------------------------
   11. FOOTER & SECRET ADMIN SYSTEM
   ------------------------------------------------------------- */
.footer {
  background-color: #242220;
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 40px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 38px;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 40px;
  color: var(--gold-solid);
  margin-bottom: 6px;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-divider {
  width: 80px;
  height: 1px;
  background-color: rgba(191, 149, 63, 0.3);
  margin: 30px auto;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}

/* Secret Admin Toggle Lock Icon */
.admin-trigger {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  margin-top: 30px;
  font-size: 14px;
  transition: var(--transition);
}

.admin-trigger:hover {
  color: var(--gold-solid);
}

/* -------------------------------------------------------------
   12. POPUP MODALS: LIGHTBOX & SECRET ADMIN PANEL
   ------------------------------------------------------------- */
/* Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--primary-accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background-color: var(--primary-accent);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-content {
  max-width: 85%;
  max-height: 85%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.4s ease;
}

/* Secret Admin Modal Overlay */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(47, 46, 46, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.admin-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal {
  width: 100%;
  max-width: 750px;
  background-color: var(--bg-pure);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(191, 149, 63, 0.2);
  overflow: hidden;
  animation: slideInDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.admin-modal-header {
  background: var(--gold-gradient);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #523f12;
}

.admin-modal-header h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #523f12;
}

.admin-modal-body {
  padding: 30px;
}

.admin-intro {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.error-text {
  color: #dc3545;
  font-size: 12px;
  font-weight: 500;
  margin-top: 10px;
}

/* Admin Dashboard Elements */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-warm);
  border: 1px solid rgba(191, 149, 63, 0.15);
  text-align: center;
}

.stat-card.stat-success {
  background-color: rgba(37, 211, 102, 0.05);
  border-color: rgba(37, 211, 102, 0.2);
}

.stat-card.stat-success .stat-num {
  color: #1ebe57;
}

.stat-card.stat-danger {
  background-color: rgba(220, 53, 69, 0.05);
  border-color: rgba(220, 53, 69, 0.2);
}

.stat-card.stat-danger .stat-num {
  color: #dc3545;
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  display: block;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
}

.admin-table-wrapper {
  max-height: 250px;
  overflow-y: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(191, 149, 63, 0.15);
}

.admin-table-wrapper::-webkit-scrollbar {
  width: 6px;
}

.admin-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--gold-solid);
  border-radius: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.admin-table th {
  background-color: var(--bg-warm);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(191, 149, 63, 0.15);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(47, 46, 46, 0.05);
}

.admin-table-msg {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
  color: var(--text-light);
}

/* Custom Notification Styling */
.custom-notification {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: var(--bg-pure);
  border-radius: var(--radius-md);
  border: 1px solid #1ebe57;
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  max-width: 320px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.custom-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.custom-notification.error {
  border-color: #dc3545;
}

.custom-notification.error i {
  color: #dc3545;
}

.notif-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.notif-header i {
  color: #1ebe57;
  font-size: 16px;
}

.notif-header strong {
  font-size: 14px;
  color: var(--text-dark);
}

.custom-notification p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

/* -------------------------------------------------------------
   13. ANIMATIONS & TRANSITIONS
   ------------------------------------------------------------- */
@keyframes spinCD {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounceWaves {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.1); }
}

@keyframes bounceIndicator {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

@keyframes slideInLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideInDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Scroll Trigger Active states */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate.align-left {
  transform: translateX(-40px);
}

.scroll-animate.align-left.active {
  transform: translateX(0);
}

.scroll-animate.align-right {
  transform: translateX(40px);
}

.scroll-animate.align-right.active {
  transform: translateX(0);
}

.animate-on-load.active {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   14. RESPONSIVE MEDIA QUERIES (RESPONSIVE STYLING)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .couple-grid {
    gap: 20px;
  }
  .couple-card {
    max-width: 340px;
  }
  .couple-img-wrapper {
    height: 320px;
  }
  .hero-title {
    font-size: 76px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  /* Navbar Mobile Hamburger Toggle */
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: -300px;
    left: 0;
    width: 100%;
    background-color: var(--bg-warm);
    border-bottom: 1px solid rgba(191, 149, 63, 0.2);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    pointer-events: none;
    opacity: 0;
  }
  
  .nav-menu.open {
    top: 72px; /* Placed exactly under the scrolled header */
    pointer-events: auto;
    opacity: 1;
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(47, 46, 46, 0.03);
  }
  
  .nav-link::after {
    display: none;
  }
  
  /* Hero section typography */
  .hero-title {
    font-size: 60px;
  }
  .hero-subtitle {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .countdown-timer {
    gap: 12px;
  }
  .countdown-item {
    min-width: 55px;
  }
  .countdown-number {
    font-size: 28px;
  }
  
  /* Couple layout */
  .couple-grid {
    flex-direction: column;
    gap: 30px;
  }
  .couple-divider {
    transform: rotate(90deg);
    margin: 10px 0;
  }
  .ampersand {
    font-size: 54px;
  }
  
  /* Timeline center line removal and adjust */
  .timeline::after {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }
  
  .timeline-item.right {
    left: 0;
  }
  
  .timeline-item.left .timeline-badge,
  .timeline-item.right .timeline-badge {
    left: 0;
    margin-left: 0;
  }
  
  /* Event grid and card adjustments */
  .event-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .event-card {
    padding: 35px 24px;
  }
  
  /* Gallery column reduction */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .gallery-item {
    height: 240px;
  }
  
  /* RSVP layout */
  .rsvp-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .rsvp-card {
    padding: 30px 20px;
  }
  
  /* Secret Admin Panel statistics grid */
  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 48px;
  }
  .countdown-container {
    padding: 16px 20px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .maps-shortcut-btns {
    flex-direction: column;
    gap: 10px;
  }
  .quran-quote {
    padding: 30px 20px;
  }
  .quran-quote i.quote-icon-left,
  .quran-quote i.quote-icon-right {
    display: none;
  }
}

/* -------------------------------------------------------------
   15. NEW PREMIUM FEATURES CSS (DRESS CODE, DITNOW SUMBANGAN, FLOATING TOOLBAR)
   ------------------------------------------------------------- */

/* Guest Dress Code Styles */
.dress-code-container {
  margin-top: 50px;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--gold-solid);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(5px);
}

.dress-code-container h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.dress-code-desc {
  font-size: 13px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 20px;
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.color-circle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.color-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.color-circle-wrapper:hover .color-circle {
  transform: scale(1.15);
  box-shadow: 0 6px 15px rgba(181, 130, 143, 0.3);
}

.color-name {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

/* Salam Kaut & Hadiah Digital Styles */
.gift-section {
  background-color: var(--bg-pure);
  border-bottom: 1px solid rgba(191, 149, 63, 0.1);
}

.gift-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.gift-card {
  background-color: var(--bg-warm);
  border: 1px solid rgba(191, 149, 63, 0.15);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gift-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.qr-card {
  text-align: center;
}

.qr-wrapper {
  background-color: #fff;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(191, 149, 63, 0.2);
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.qr-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-accent);
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bank-logo-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #ffc72c; /* Maybank gold color */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}

.bank-logo-placeholder i {
  color: var(--primary-accent);
  font-size: 24px;
}

.bank-details {
  width: 100%;
  margin-bottom: 20px;
}

.bank-detail-item {
  margin-bottom: 16px;
}

.detail-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail-val {
  font-size: 15px;
  color: var(--text-dark);
}

.account-copy-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border: 1px solid rgba(191, 149, 63, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.account-number {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-accent);
}

.btn-copy {
  background: var(--gold-gradient);
  border: none;
  color: #523f12;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-copy:hover {
  transform: scale(1.05);
}

.bank-notice {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  line-height: 1.6;
  border-top: 1px solid rgba(47, 46, 46, 0.05);
  padding-top: 16px;
  margin-top: 10px;
}

/* Floating Quick-Access Bar (Mobile Only) */
.floating-quick-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 100px);
  width: 90%;
  max-width: 450px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(191, 149, 63, 0.25);
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-around;
  padding: 10px 8px;
  z-index: 998;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.floating-quick-bar.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.float-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dark);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

.float-item i {
  font-size: 16px;
  color: var(--primary-accent);
  transition: var(--transition);
}

.float-item:hover {
  color: var(--primary-accent);
}

.float-item:hover i {
  transform: scale(1.15);
}

/* Specific floating item accents */
.float-item.rsvp i {
  color: var(--gold-solid);
}

/* Desktop: Hide Floating Bar */
@media (min-width: 769px) {
  .floating-quick-bar {
    display: none !important;
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .gift-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .gift-card {
    padding: 30px 20px;
  }
  /* Offset bottom content slightly to prevent overlap with floating quick bar */
  body {
    padding-bottom: 70px;
  }
}

