/* ── FONTS ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────── */
:root {
  --dark:        #0d0508;
  --burgundy:    #7b1f3a;
  --deep-rose:   #b54a5a;
  --rose:        #c5687a;
  --blush:       #e8a0b0;
  --cream:       #fdf3ec;
  --white:       #ffffff;
  --gold:        #c9a84c;
  --gold-light:  #e8cfa0;
  --glass-bg:    rgba(255,255,255,0.05);
  --glass-border:rgba(201,168,76,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--cream); font-family: 'Lato', sans-serif; overflow-x: hidden; }

/* ── NAV ────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13,5,8,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-brand { font-family: 'Great Vibes', cursive; font-size: 1.6rem; color: var(--gold); text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; transition: max-height 0.3s ease-out; }
.nav-links a { color: var(--cream); text-decoration: none; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: var(--gold); }
#music-btn { background: transparent; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; padding: 0; outline: none; box-shadow: 0 0 0 0 rgba(201,168,76,0); }
#music-btn:hover { background: var(--gold); color: var(--dark); transform: scale(1.1); }
#music-btn .music-icon-pause { display: none; }
#music-btn.playing .music-icon-play { display: none; }
#music-btn.playing .music-icon-pause { display: block; }

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(201,168,76,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}
#music-btn.playing { animation: pulseGlow 2s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.hamburger { display: none; background: transparent; border: none; font-size: 1.8rem; color: var(--gold); cursor: pointer; }

/* ── HERO ───────────────────────────────────────── */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-top: 5rem; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem; max-width: 900px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pre-title { font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.couple-names { font-family: 'Great Vibes', cursive; font-size: clamp(4rem,12vw,7.5rem); color: var(--white); line-height: 1.1; margin-bottom: 0.5rem; text-shadow: 0 0 60px rgba(201,168,76,0.4); }
.ampersand { color: var(--gold); }
.hero-tagline { font-style: italic; color: var(--blush); margin: 1rem 0 0.5rem; font-size: 1.05rem; }
.hero-date { color: var(--gold-light); font-size: 1rem; letter-spacing: 2px; margin-bottom: 1.5rem; }
.hero-event-pills { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.event-pill { background: rgba(201,168,76,0.15); border: 1px solid var(--gold); border-radius: 20px; padding: 0.4rem 1rem; font-size: 0.8rem; letter-spacing: 1px; color: var(--cream); backdrop-filter: blur(4px); }
.hero-divider { width: 80px; height: 1px; background: linear-gradient(to right,transparent,var(--gold),transparent); margin: 0 auto 2.5rem; }
.hero-couple-img { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 0 60px rgba(201,168,76,0.3); }

/* ── SECTIONS ───────────────────────────────────── */
section { padding: 0; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; text-align: center; }
.section-label { font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; display: block; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem,5vw,3rem); color: var(--white); margin-bottom: 0.5rem; }
.gold-line { display: block; width: 60px; height: 2px; background: var(--gold); margin: 1rem auto 2.5rem; border-radius: 2px; }

/* ── SAVE THE DATE (Calendar + Countdown) ───────── */
#save-the-date { background: linear-gradient(135deg,#1a0a0d,#0d0508); }
.calendar-wrap { max-width: 320px; margin: 0 auto 2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.5rem; backdrop-filter: blur(8px); }
.cal-header { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); margin-bottom: 1rem; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font-size: 0.9rem; }
.cal-dow { color: var(--blush); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.cal-day { padding: 8px 0; border-radius: 6px; position: relative; z-index: 1; }
.cal-day.empty { visibility: hidden; }
.cal-day.sunday { color: var(--rose); }
.cal-day.wedding-day { background: rgba(201,168,76,0.2); border: 1px solid var(--gold); color: var(--gold-light); font-weight: bold; box-shadow: 0 0 10px rgba(201,168,76,0.5); }
.countdown-grid { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.count-box { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.2rem 1rem; min-width: 90px; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; backdrop-filter: blur(8px); }
.count-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.count-label { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--blush); }
.add-cal-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.cal-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 0.6rem 1.2rem; border-radius: 30px; text-decoration: none; font-size: 0.85rem; letter-spacing: 1px; transition: all 0.3s; cursor: pointer; }
.cal-btn:hover { background: var(--gold); color: var(--dark); }

/* ── DETAILS GALLERY ────────────────────────────── */
#details { background: var(--dark); border-top: 1px solid var(--glass-border); }
.details-grid-new { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 1rem; }
.venue-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 2.5rem; text-align: left; backdrop-filter: blur(8px); }
.venue-header { margin-bottom: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.venue-header-text h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold); margin-bottom: 0.5rem; }
.venue-header-text p { color: var(--cream); font-size: 1rem; line-height: 1.5; }
.location-text { display: inline-flex; align-items: center; gap: 0.4rem; }
.venue-time { color: var(--gold-light) !important; font-size: 0.9rem !important; margin-top: 0.5rem; letter-spacing: 1px; }
.venue-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.gallery-thumb { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; cursor: pointer; border: 1px solid var(--glass-border); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.thumb-overlay { position: absolute; inset: 0; background: rgba(13,5,8,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; color: var(--gold); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-thumb:hover .thumb-overlay { opacity: 1; }
.venue-map-link-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--gold); transition: transform 0.3s; background: transparent; }
.venue-map-link-icon:hover { transform: translateY(-2px) scale(1.1); }

.venue-split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; align-items: stretch; }
.venue-map { width: 100%; height: 100%; }
.venue-map iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; min-height: 250px; }

/* ── DRESS CODE SLIDESHOW ───────────────────────── */
.attire-tabs { display: flex; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; }
.attire-tab { background: transparent; border: none; font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--blush); cursor: pointer; padding: 0.5rem 1rem; transition: color 0.3s; }
.attire-tab.active { color: var(--gold); border-bottom: 2px solid var(--gold); }
.attire-panel { display: flex; flex-direction: column; gap: 1.2rem; }
.attire-panel.hidden { display: none; }
.attire-slideshow { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: rgba(0,0,0,0.3); }
.slide { display: none; width: 100%; height: 100%; position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.slide.active { display: block; opacity: 1; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-prev, .slide-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(26,10,13,0.65); border: 1px solid var(--glass-border); color: var(--gold-light); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.3s; z-index: 5; }
.slide-prev { left: 0.6rem; }
.slide-next { right: 0.6rem; }
.slide-prev:hover, .slide-next:hover { background: rgba(201,168,76,0.6); color: var(--dark); }
.slide-dots { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 5; }
.slide-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); border: 1px solid rgba(201,168,76,0.5); cursor: pointer; transition: background 0.3s; }
.slide-dot.active { background: var(--gold); }
.attire-note { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--cream); line-height: 1.6; }

/* ── RSVP ───────────────────────────────────────── */
#rsvp { background: linear-gradient(135deg,var(--dark),#1a0a0d); border-top: 1px solid var(--glass-border); }
.rsvp-desc { max-width: 600px; margin: 0 auto 2rem; color: var(--cream); font-size: 1.05rem; }
.rsvp-open-btn { background: var(--gold); color: var(--dark); border: none; padding: 1rem 2.5rem; border-radius: 30px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.rsvp-open-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(201,168,76,0.3); }

/* ── MESSAGES ───────────────────────────────────── */
#messages { background: var(--dark); border-top: 1px solid var(--glass-border); }
.msg-form { max-width: 600px; margin: 0 auto 3rem; background: var(--glass-bg); padding: 2rem; border-radius: 12px; border: 1px solid var(--glass-border); }
.msg-form-fields { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.msg-input { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 8px; padding: 1rem; color: var(--cream); font-family: 'Lato', sans-serif; }
.msg-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 10px rgba(201,168,76,0.2); }
.msg-textarea { resize: vertical; min-height: 100px; }
.msg-submit-btn { width: 100%; background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 1rem; border-radius: 8px; cursor: pointer; transition: all 0.3s; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; }
.msg-submit-btn:hover { background: var(--gold); color: var(--dark); }
.msg-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.msg-card { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.5rem; text-align: left; animation: slideUp 0.5s forwards; opacity: 0; transform: translateY(20px); }
.msg-card-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; }
.msg-card-name { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.1rem; }
.msg-card-time { font-size: 0.75rem; color: var(--blush); opacity: 0.8; }
.msg-card-text { color: var(--cream); font-size: 0.95rem; line-height: 1.6; word-wrap: break-word; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* ── ABOUT US ───────────────────────────────────── */
#about { background: linear-gradient(135deg,#1a0a0d,var(--dark)); border-top: 1px solid var(--glass-border); }
.about-intro { max-width: 600px; margin: 0 auto 2.5rem; color: var(--blush); line-height: 1.8; }
.members-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.member-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; backdrop-filter: blur(8px); }
.member-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg,var(--deep-rose),var(--burgundy)); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.2rem; border: 2px solid var(--gold); }
.member-avatar-text { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); letter-spacing: 1px; }
.member-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--white); margin-bottom: 0.3rem; }
.member-role { font-size: 0.8rem; color: var(--blush); letter-spacing: 1px; margin-bottom: 1rem; text-transform: uppercase; }
.portfolio-btn { display: inline-block; padding: 0.5rem 1.2rem; border: 1px solid var(--gold); border-radius: 20px; color: var(--gold); font-size: 0.8rem; text-decoration: none; letter-spacing: 1px; transition: all 0.3s; }
.portfolio-btn:hover { background: var(--gold); color: var(--dark); }
.course-badge { max-width: 420px; margin: 1.5rem auto 0; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.2rem 1.5rem; text-align: center; color: var(--cream); font-size: 0.9rem; line-height: 1.8; }

/* ── FOOTER ─────────────────────────────────────── */
footer { text-align: center; padding: 2.5rem 1rem; border-top: 1px solid var(--glass-border); color: var(--blush); font-size: 0.85rem; line-height: 2; }

/* ── LIGHTBOX ───────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(5px); }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; background: transparent; border: none; color: var(--cream); font-size: 2.5rem; cursor: pointer; transition: color 0.3s; }
.lightbox-close:hover { color: var(--gold); }
.lightbox img { max-width: 90%; max-height: 80vh; object-fit: contain; border: 2px solid var(--gold); border-radius: 8px; box-shadow: 0 0 40px rgba(0,0,0,0.8); }
.lightbox p { margin-top: 1rem; color: var(--gold-light); font-family: 'Playfair Display', serif; font-size: 1.2rem; letter-spacing: 1px; }

/* ── RSVP MODAL ─────────────────────────────────── */
.rsvp-modal { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 1rem; }
.rsvp-modal.active { opacity: 1; pointer-events: auto; }
.rsvp-modal-box { background: linear-gradient(135deg,#1a0a0d,#0d0508); border: 1px solid var(--gold); border-radius: 16px; width: 100%; max-width: 500px; padding: 2.5rem 2rem; position: relative; max-height: 90vh; overflow-y: auto; text-align: center; box-shadow: 0 0 50px rgba(201,168,76,0.15); }
.rsvp-modal-close { position: absolute; top: 1rem; right: 1rem; background: transparent; border: none; font-size: 1.5rem; color: var(--blush); cursor: pointer; transition: color 0.3s; }
.rsvp-modal-close:hover { color: var(--gold); }
.rsvp-modal-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--gold); margin-bottom: 0.5rem; }
.rsvp-modal-sub { color: var(--cream); margin-bottom: 2rem; font-style: italic; }
.rsvp-field { margin-bottom: 1.5rem; text-align: left; }
.rsvp-field label { display: block; margin-bottom: 0.5rem; color: var(--gold-light); font-size: 0.9rem; letter-spacing: 1px; }
.rsvp-field input[type="text"], .rsvp-field input[type="email"], .rsvp-field select, .rsvp-field textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 8px; padding: 0.8rem; color: var(--white); font-family: inherit; }
.rsvp-field input:focus, .rsvp-field select:focus, .rsvp-field textarea:focus { outline: none; border-color: var(--gold); }
.rsvp-radio-group { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 0.5rem; }
.rsvp-radio { color: var(--cream); font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; }
.rsvp-submit-btn { width: 100%; background: var(--gold); color: var(--dark); border: none; padding: 1rem; border-radius: 8px; font-size: 1.1rem; font-weight: bold; cursor: pointer; margin-top: 1rem; transition: background 0.3s; }
.rsvp-submit-btn:hover { background: var(--gold-light); }
.rsvp-success { margin-top: 2rem; color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1.2rem; }

/* ── REVEAL ANIMATION ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE / RESPONSIVENESS ────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,5,8,0.95); flex-direction: column; padding: 0 2rem; max-height: 0; overflow: hidden; border-bottom: 1px solid transparent; align-items: center; text-align: center; }
  .nav-links.active { padding: 1rem 2rem 2rem; max-height: 400px; border-bottom: 1px solid var(--glass-border); }
  .nav-links li { width: 100%; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-links li:last-child { border-bottom: none; }
  
  .details-grid-new { grid-template-columns: 1fr; }
  .venue-gallery { grid-template-columns: 1fr; }
  .venue-split-layout { grid-template-columns: 1fr; }
  .venue-header { flex-direction: column; text-align: center; align-items: center; }
  .attire-tabs { justify-content: center; }
  
  .couple-names { font-size: clamp(3.5rem, 15vw, 5rem); }
  .hero-date, .hero-tagline, .pre-title { font-size: 0.9rem; }
  .hero-event-pills { flex-direction: column; align-items: center; gap: 0.5rem; }
  
  .count-box { min-width: 75px; padding: 1rem 0.5rem; }
  .count-num { font-size: 1.8rem; }
  
  .rsvp-modal-box { padding: 2rem 1.5rem; }
  .msg-form { padding: 1.5rem 1rem; }
}
