/* 
 * WEDDING INVITATION MERN THEME - REWRITTEN
 * Robust Responsive Design
 */

/* ================= VARIABLES ================= */
:root {
  --primary-gold: #d4af37;
  --primary-gold-dark: #b88a44;
  --text-dark: #2c1a0f;
  --text-light: #5a4b41;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  --font-heading: "Playfair Display", serif;
  --font-body: "Poppins", sans-serif;
  --container-width: 1200px;
    --gold: #d4af37;
  --glass-bg: rgba(255,255,255,0.15);
  --glass-border: rgba(255,255,255,0.3);
}

/* ================= RESET & GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: #fffaf5;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ================= UTILITIES ================= */
.text-center { text-align: center; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 1;
}

.text-gradient-gold {
  background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive typography */
  color: var(--primary-gold-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.section-desc {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-style: italic;
}

.btn-gold {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary-gold), var(--primary-gold-dark));
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

/* ================= NAVIGATION ================= */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 250, 245, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-gold-dark);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary-gold); }

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-dark);
  transition: all 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  transform: translateY(-150%);
  transition: transform 0.4s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mobile-menu.active { transform: translateY(0); }
.mobile-menu a { font-size: 1.2rem; width: 100%; text-align: center; padding: 10px; }

/* ================= HERO SECTION ================= */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* Mobile viewport fix */
  width: 100%;
  background: url("/images/WhatsApp Image 2025-12-13 at 3.48.30 PM.jpeg") center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  color: #fff;
  padding: 80px 20px 20px; /* Top padding for nav */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
}

.divine-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.mantra-text {
  font-family: var(--font-heading);
  color: #ffd700;
  font-size: 1.2rem;
  font-weight: 600;
}

.ganesh-img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  margin: 10px 0;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.amp {
  font-family: "Baskerville", serif;
  font-style: italic;
  color: var(--primary-gold);
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.date-badge {
  display: inline-flex;
  flex-direction: column;
  padding: 15px 30px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}

.date-badge .day { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.date-badge .month { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; }
.date-badge .year { font-size: 1rem; letter-spacing: 4px; }

/* Countdown */
.countdown-container {
  display: flex;
  justify-content: center; /* Center items */
  gap: clamp(10px, 3vw, 20px); /* Responsive gap */
  padding: 15px;
  flex-wrap: wrap; /* Allow wrap on very small screens */
}

.time-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.time-segment span {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-gold-dark);
}

.time-segment label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-light);
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  color: #fff;
  font-size: 2rem;
  animation: bounce 2s infinite;
  z-index: 2;
  cursor: pointer;
}

/* ================= SECTIONS & LAYOUT ================= */
section {
  padding: 80px 20px;
}

.ornamental-divider {
  text-align: center;
  margin: 40px 0;
  color: var(--primary-gold);
  font-size: 2rem;
  opacity: 0.8;
}

/* Couple Section */
.section-couple {
  background: radial-gradient(circle at center, #fffaf5 0%, #fff0e0 100%);
  position: relative;
  overflow: hidden;
}

.mandala-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.1'%3E%3Cpath d='M50 0 L60 20 L80 20 L70 40 L80 60 L60 60 L50 80 L40 60 L20 60 L30 40 L20 20 L40 20 Z' /%3E%3Ccircle cx='50' cy='50' r='10' /%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  opacity: 0.1;
  animation: rotate-center 60s linear infinite;
  pointer-events: none;
}

.couple-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Ensure stacking on mobile */
  gap: 40px;
  margin-top: 40px;
}

.couple-card {
  width: 100%;
  max-width: 350px; /* Limit width on desktop */
  padding: 30px;
  text-align: center;
  transition: transform 0.3s;
}

.couple-card:hover { transform: translateY(-10px); }

.img-wrapper {
  width: 180px; height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.couple-card h3 { font-family: var(--font-heading); margin-bottom: 5px; color: var(--primary-gold-dark); }
.couple-divider { font-size: 3rem; color: var(--primary-gold); animation: heartbeat 1.5s infinite; }
.couple-card .job-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #d4af37;
  margin-top: 4px;
  letter-spacing: 1px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* spacing between icon and text */
}

.couple-card .job-title i {
  color: #b88a44;
  font-size: 1rem;
}

/* Optional parent styling */
.couple-card .parent-name {
  font-size: 0.9rem;
  color: #6b4e2e;
  margin-top: 2px;
  text-align: center;
}


/* Timeline Section */
.section-events {
  background: url("https://www.transparenttextures.com/patterns/cubes.png"), #fdfbfb;
  position: relative;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.timeline-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-gold);
  border-radius: 2px;
}

.groom-title { color: #5d9cec; }
.bride-title { color: #ec87c0; }

.timeline {
  position: relative;
  margin: 30px auto 0;
}

.timeline.vertical::after {
  content: "";
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--primary-gold), transparent);
  top: 0; bottom: 0; left: 0;
  margin-left: 0;
}

.timeline-item {
  padding: 0 0 40px 40px;
  position: relative;
  width: 100%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  background-color: #fff;
  border: 3px solid var(--primary-gold);
  border-radius: 50%;
  top: 5px;
  left: -7px;
  z-index: 1;
}

.timeline-content {
  padding: 25px;
  width: 100%;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-color: var(--primary-gold);
}

.event-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--primary-gold), var(--primary-gold-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.timeline-content h3 { 
  font-family: var(--font-heading); 
  color: var(--text-dark); 
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.timeline-content .time, .timeline-content .location {
  margin-bottom: 5px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
}

.timeline-content .time i, .timeline-content .location i {
  color: var(--primary-gold);
  width: 16px;
}

.soon-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-gold-dark);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (min-width: 992px) {
  .border-left-lg {
    border-left: 1px dashed rgba(212, 175, 55, 0.3);
  }
}

/* Gallery Section */
.section-gallery {
  padding: 80px 0; /* Full width flow */
  overflow: hidden;
}

.gallery-marquee {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content; /* Allow content to dictate width */
}

/* Animations */
.scroll-left {
  animation: scrollLeft 30s linear infinite;
}

.scroll-right {
  animation: scrollRight 30s linear infinite;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Move half way (since duplicate) */
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); } /* Start from half way */
  100% { transform: translateX(0); }
}

.gallery-item {
  width: 300px; /* Fixed width for standard item size */
  height: 225px; /* 4:3 Aspect Ratio */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0; /* Prevent shrinking in flex container */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery-item:hover { transform: scale(1.05); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile Adjustment for Marquee speed/size */
@media (max-width: 480px) {
  .section-gallery { padding: 50px 0; }
  .gallery-item {
    width: 200px;
    height: 150px;
  }
}

/* Location Section */
.section-location {
  padding: 100px 0;
  background: #fffaf5;
  overflow: hidden;
}

.venue-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.venue-wrapper {
  margin-bottom: 40px;
}

.venue-category-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.venue-category-title i {
  font-size: 1.5rem;
}

.venue-showcase {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(255, 255, 255, 0.4);
}

.venue-content {
  display: flex;
  flex-direction: column;
}

/* Ornamental Corners */
.corner-ornament {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary-gold);
  z-index: 5;
  pointer-events: none;
}

.corner-ornament.top-left { top: 15px; left: 15px; border-right: none; border-bottom: none; border-radius: 12px 0 0 0; }
.corner-ornament.top-right { top: 15px; right: 15px; border-left: none; border-bottom: none; border-radius: 0 12px 0 0; }
.corner-ornament.bottom-left { bottom: 15px; left: 15px; border-right: none; border-top: none; border-radius: 0 0 0 12px; }
.corner-ornament.bottom-right { bottom: 15px; right: 15px; border-left: none; border-top: none; border-radius: 0 0 12px 0; }

/* Compact Address Card */
.address-card-compact {
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.8);
  margin: 20px;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary-gold-dark);
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.venue-title-gu {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.address-details p {
  margin-bottom: 6px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.main-address { font-weight: 500; }
.sub-address { opacity: 0.8; }

.btn-gold-shimmer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #d4af37, #fcf6ba, #b38728);
  background-size: 200% auto;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
  animation: shimmer 3s infinite;
  transition: transform 0.3s;
  margin-top: 15px;
}

.btn-gold-shimmer.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-gold-shimmer:hover {
  transform: translateY(-2px) scale(1.02);
  color: #fff;
}

/* Compact Map Wrapper */
.map-wrapper-compact {
  height: 300px;
  min-height: 250px;
  margin: 20px;
  margin-top: 0;
}

.map-inner {
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(212, 175, 55, 0.05);
  pointer-events: none;
  transition: opacity 0.5s;
}

.map-inner:hover .map-overlay {
  opacity: 0;
}

/* Unified Map Section */
.unified-map-section {
  margin-top: 60px;
}

.map-section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  text-align: center;
  color: var(--primary-gold-dark);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.unified-map-wrapper {
  position: relative;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 991px) {
  .venue-wrapper {
    margin-bottom: 50px;
  }
  
  .venue-category-title {
    font-size: 1.4rem;
  }
  
  .address-card-compact {
    margin: 15px;
  }
  
  .map-wrapper-compact {
    height: 250px;
    margin: 15px;
  }
  
  .unified-map-section {
    margin-top: 40px;
  }
  
  .unified-map-wrapper {
    height: 400px;
  }
  
  .corner-ornament { display: none; }
}

/* ================= CONTACT SECTION ================= */
.section-contact {
  padding: 80px 0;
  background: radial-gradient(circle at center, #fffaf5 0%, #fff0e0 100%);
}

.contact-card {
  padding: 35px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.25);
}

.contact-header i {
  font-size: 1.8rem;
}

.contact-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 25px;
}

.contact-person-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.3s;
}

.contact-person-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(3px);
}

.person-info {
  flex: 1;
}

.person-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px 0;
}

.person-role {
  font-size: 0.85rem;
  color: var(--primary-gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-gold-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 15px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 20px;
  transition: all 0.3s;
}

.phone-number:hover {
  background: var(--primary-gold);
  color: white;
  transform: scale(1.05);
}

.phone-number i {
  font-size: 0.9rem;
}

.address-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 12px;
  border-left: 4px solid var(--primary-gold);
}

.address-section i {
  font-size: 1.3rem;
  color: var(--primary-gold);
  margin-top: 3px;
}

.address-section p {
  margin: 0;
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 1rem;
}

.emergency-note {
  margin-top: 40px;
  padding: 22px 30px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.06));
  border-left: 5px solid var(--primary-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.emergency-note i {
  font-size: 1.8rem;
  color: var(--primary-gold);
}

.emergency-note p {
  margin: 0;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 25px;
  }
  
  .contact-person-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .phone-number {
    width: 100%;
    justify-content: center;
  }
  
  .emergency-note {
    flex-direction: column;
    text-align: center;
    padding: 18px 20px;
  }
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.back-to-top {
  position: absolute;
  top: -25px; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 50px;
  background: var(--primary-gold);
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ================= ANIMATIONS ================= */
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@keyframes rotate-center { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes heartbeat { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* Scroll Reveal */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: all 1s ease; }
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0); }

/* ================= MEDIA QUERIES (RESPONSIVE) ================= */
@media (max-width: 991px) { /* Tablet/Laptop */
  .section-title { font-size: 2.5rem; }
}

@media (max-width: 768px) { /* Mobile Landscape */
  .nav-links { display: none; } /* Hide Desktop Nav */
  .hamburger { display: block; } /* Show Hamburger */
  
  /* Timeline becomes single column */
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; text-align: left; }
  .timeline-item::after { left: 21px; }
  .timeline-item:nth-child(even) { left: 0; }
  .timeline-item:nth-child(odd)::after { left: 21px; } /* Reset right aligned dot */
  .timeline-item:nth-child(odd) .timeline-content { text-align: left; }
  
  .couple-divider { display: none; } /* Hide heart divider on stack */
  .hero { background-attachment: scroll; } /* Disable fixed bg on mobile */
}

@media (max-width: 480px) { /* Mobile Portrait */
  .main-title { font-size: 2.8rem; }
  .divine-header { gap: 10px; }
  .ganesh-img { width: 60px; }
  .mantra-text { font-size: 1rem; }
  
  .date-badge .day { font-size: 2rem; }
  .countdown-container { gap: 5px; }
  .time-segment { min-width: 50px; }
  
  .section-couple, .section-events, .section-gallery { padding: 50px 15px; }
  
  /* Ensure timeline fits */
  .timeline-item { padding-left: 50px; padding-right: 15px; }
  .timeline::after { left: 25px; }
  .timeline-item::after { left: 15px; margin-left: 0; }
  .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after { left: 15px; }


}

/* Music Button */
.music-fab {
  position: fixed; bottom: 20px; right: 20px;
  width: 50px; height: 50px;
  background: var(--primary-gold);
  color: #fff;
  border: none; border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 9999;
  display: grid; place-items: center; font-size: 1.2rem;
  cursor: pointer;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  display: none; justify-content: center; align-items: center;
  z-index: 10000;
}
.lightbox.active { display: flex; }
.lightbox-content { max-width: 95%; max-height: 90vh; }
.close-lightbox { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 2rem; cursor: pointer; }

/* Confetti */
#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.main-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 10px;
  animation: fadeUp 1.4s ease forwards;
}

/* Gold Gradient Text */
.text-gradient-gold {
  background: linear-gradient(
    120deg,
    #b88a44,
    #ffd700,
    #d4af37,
    #b88a44
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Ampersand Style */
.amp {
  font-size: 1.3em;
  margin: 0 14px;
  font-style: italic;
}

/* Names */
.name {
  display: inline-block;
}

/* Gujarati Subtitle */
.sub-title {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #6b4e2e;
  letter-spacing: 2px;
  animation: fadeUp 1.8s ease forwards;
}

/* Animations */
@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 300% center;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Names */
.name {
  display: inline-block;
}

/* Weds Styling */
.amp {
  display: inline-block;
  margin: 0 14px;
}

.amp small {
  font-family: 'Poppins', sans-serif;
  font-size: 0.20em;
  text-transform: uppercase;
  color: #b88a44; /* fallback if gradient not applied */
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* "weds" styling */
.weds {
    font-family: 'Playfair Display', serif;
    font-size: 0.35em;
    margin: 0 0px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #b88a44;
}

.logo {
  background: linear-gradient(
    120deg,
    #b88a44,
    #ffd700,
    #d4af37,
    #b88a44
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}



/* ================= GALLERY (TALL REEL STYLE) ================= */
.gallery-item {
  width: 220px;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .gallery-item {
    width: 180px;
    height: 300px;
  }
}
