/* ============================================
   VEERAMREDDY EVENT - STYLES
   Post-Event Memories Website
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  transition: background-color 0.5s ease, color 0.5s ease;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

::selection {
  background-color: var(--accent);
  color: var(--bg-primary);
}

/* ---------- CSS Variables / Themes ---------- */
:root {
  /* Default: Elegance (Warm Cream + Navy + Gold) */
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --text-primary: #f0e6d3;
  --text-secondary: #d4c5a9;
  --accent: #c9a96e;
  --accent-hover: #d4b87a;
  --card-bg: rgba(255, 255, 255, 0.06);
  --border-color: rgba(201, 169, 110, 0.25);
}

[data-theme='royal'] {
  --bg-primary: #004d40;
  --bg-secondary: #00695c;
  --text-primary: #ffffff;
  --text-secondary: #e0f2f1;
  --accent: #ffd700;
  --accent-hover: #ffc107;
  --card-bg: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 215, 0, 0.3);
}

[data-theme='minimal'] {
  --bg-primary: #faf8f5;
  --bg-secondary: #f0ebe3;
  --text-primary: #2c2c2c;
  --text-secondary: #5a5a5a;
  --accent: #8b7355;
  --accent-hover: #6d5a43;
  --card-bg: rgba(255, 255, 255, 0.85);
  --border-color: rgba(139, 115, 85, 0.2);
}

[data-theme='temple'] {
  --bg-primary: #800000;
  --bg-secondary: #a52a2a;
  --text-primary: #fff8e1;
  --text-secondary: #ffecb3;
  --accent: #ffd700;
  --accent-hover: #ffb300;
  --card-bg: rgba(0, 0, 0, 0.2);
  --border-color: #ffd700;
}

[data-theme='floral'] {
  --bg-primary: #2d1b3d;
  --bg-secondary: #3d2451;
  --text-primary: #f8e8f0;
  --text-secondary: #e0c0d0;
  --accent: #d4738c;
  --accent-hover: #e0889e;
  --card-bg: rgba(255, 255, 255, 0.08);
  --border-color: rgba(212, 115, 140, 0.3);
}

/* ---------- Typography ---------- */
.serif-heading {
  font-family: 'Playfair Display', serif;
}

.telugu-text {
  font-family: 'Noto Sans Telugu', sans-serif;
}

.telugu-heading {
  font-family: 'Gidugu', cursive;
}

.text-accent {
  color: var(--accent);
}

.bg-accent {
  background-color: var(--accent);
}

/* ---------- Glass Effect ---------- */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

/* ---------- Container ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
}

.navbar.scrolled {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

@media (max-width: 1023px) {
  .hidden-mobile {
    display: none !important;
  }
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
}

.nav-links a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ---------- Mobile Menu Button ---------- */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: background 0.3s, transform 0.2s;
}

.mobile-menu-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: scale(1.05);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* ---------- Mobile Menu Overlay ---------- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ---------- Mobile Menu Drawer ---------- */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  z-index: 51;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
}

.mobile-menu-drawer.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: background 0.2s, color 0.2s;
}

.mobile-menu-close:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  flex: 1;
  overflow-y: auto;
}

.mobile-menu-link {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: background 0.2s, color 0.2s, padding-left 0.3s;
  border-left: 3px solid transparent;
}

.mobile-menu-link:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  padding-left: 2.5rem;
  border-left-color: var(--accent);
}

.mobile-menu-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}

.mobile-menu-footer .lang-toggle {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  text-align: center;
}



.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  border-radius: 9999px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.theme-switcher .palette-icon {
  color: var(--accent);
  margin-left: 0.25rem;
}

.theme-dots {
  display: flex;
  gap: 0.25rem;
}

.theme-dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}

.theme-dot:hover {
  transform: scale(1.1);
}

.theme-dot.active {
  border-color: var(--text-primary);
  transform: scale(1.1);
}

/* ---------- Language Toggle ---------- */
.lang-toggle {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.lang-toggle:hover {
  background: var(--accent);
  color: var(--text-primary);
}


/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1rem 1rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.3;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 1s ease-out forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-family-tag {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-divider {
  width: 6rem;
  height: 4px;
  background: var(--accent);
  margin: 0 auto 2rem;
  border-radius: 9999px;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  margin-bottom: 3rem;
  font-style: italic;
  opacity: 0.9;
}

/* ---------- Hero Event Badge ---------- */
.hero-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 0.4rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.event-complete-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: completePulse 2s ease-in-out infinite;
}

@keyframes completePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero-thank-you {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-style: italic;
  opacity: 0.95;
}

.hero-date {
  font-size: 0.85rem;
  opacity: 0.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* ---------- Hero Thank-You Sub Message ---------- */
.hero-thank-you-sub {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-top: -0.25rem;
  margin-bottom: 1rem;
  font-style: italic;
  opacity: 0.85;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ---------- Celebration Sparkle Canvas ---------- */
.sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 30;
  pointer-events: none;
  transition: opacity 0.8s ease-out;
}

/* ---------- Celebration Stats ---------- */
.celebration-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.25rem 2rem;
  max-width: 36rem;
  margin: 0 auto;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
  flex: 1;
  min-width: 80px;
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border-color);
  flex-shrink: 0;
}

.stat-number {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-plus {
  font-size: 1rem;
  vertical-align: super;
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  white-space: nowrap;
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator-inner {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid var(--text-primary);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  padding-top: 0.4rem;
}

.scroll-indicator-dot {
  width: 4px;
  height: 8px;
  background: var(--text-primary);
  border-radius: 9999px;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* =============================================
   ABOUT / SUMMARY
   ============================================= */
.about-section {
  padding: 6rem 1rem;
  background: color-mix(in srgb, var(--bg-secondary) 30%, transparent);
}

/* ---------- Section Sub ---------- */
.section-sub {
  text-align: center;
  opacity: 0.7;
  margin-top: -1rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Event Summary Timeline ---------- */
.summary-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.summary-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.timeline-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.timeline-content h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.timeline-content p {
  opacity: 0.75;
  font-size: 0.9rem;
}

.about-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
  color: var(--accent);
}

.about-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  opacity: 0.9;
}

/* =============================================
   SCHEDULE
   ============================================= */
.schedule-section {
  padding: 6rem 1rem;
}

.schedule-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.schedule-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.schedule-card.main {
  border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.schedule-card-icon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem;
  opacity: 0.1;
  transition: opacity 0.3s;
}

.schedule-card:hover .schedule-card-icon {
  opacity: 0.2;
}

.schedule-card-icon img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}

.schedule-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.schedule-card h3 .emoji {
  font-size: 1.875rem;
}

.schedule-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0.9;
}

.schedule-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.schedule-detail-row svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.schedule-detail-row p {
  line-height: 1.5;
}

.schedule-detail-row .venue-name {
  font-weight: 700;
}

.schedule-detail-row .venue-location {
  font-size: 0.875rem;
}

.schedule-note {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-style: italic;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--accent) 80%, transparent);
}

/* =============================================
   GALLERY (Post-Event)
   ============================================= */
.gallery-section {
  padding: 6rem 1rem;
  background: color-mix(in srgb, var(--bg-secondary) 20%, transparent);
}

.gallery-wrapper-outer {
  max-width: 80rem;
  margin: 0 auto;
}

/* --- Gallery Tabs --- */
.gallery-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  margin-top: 1rem;
}

.gallery-tab {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: 1.5px solid var(--border-color);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  cursor: pointer;
}

.gallery-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-tab.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  font-weight: 700;
}

/* --- Gallery Grid --- */
.gallery-grid {
  columns: 1;
  column-gap: 1.5rem;
}

.gallery-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-card-img-wrap {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-card-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-card-img-wrap:hover img {
  transform: scale(1.06);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card-img-wrap:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-view-btn {
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.8);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
}

.gallery-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  gap: 0.5rem;
}

.gallery-card-label {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.85;
  flex: 1;
}

.gallery-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.gallery-download-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: scale(1.1);
}

/* --- Gallery Item (legacy, kept for compatibility) --- */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
}

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

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

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  transition: color 0.3s;
  z-index: 10;
}

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

.lightbox img {
  max-width: min(95vw, 1200px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.75rem;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  cursor: pointer;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.lightbox-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  z-index: 10;
}

.lightbox-counter {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.lightbox-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.lightbox-dl-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

/* =============================================
   MEMORIES SECTION
   ============================================= */
.memories-section {
  padding: 6rem 1rem;
  background: color-mix(in srgb, var(--bg-secondary) 30%, transparent);
}

.memories-outer {
  max-width: 72rem;
  margin: 0 auto;
}

.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.memory-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.memory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.memory-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.memory-title {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.memory-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
}

/* =============================================
   WISHES SECTION
   ============================================= */
.wishes-section {
  padding: 6rem 1rem;
}

.wishes-outer {
  max-width: 72rem;
  margin: 0 auto;
}

.wish-form-card {
  max-width: 44rem;
  margin: 0 auto 3rem;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.wishes-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.wish-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.75rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.wish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.wish-quote-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--accent);
}

.wish-message {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.9;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.wish-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wish-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}

.wish-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.wish-time {
  font-size: 0.75rem;
  opacity: 0.55;
  margin-top: 0.1rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =============================================
   THANK YOU SECTION
   ============================================= */
.thankyou-section {
  padding: 8rem 1rem;
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-secondary) 30%, transparent);
}

.thankyou-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.thankyou-outer {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
}

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

.thankyou-heart-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.thankyou-subtitle {
  opacity: 0.65;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.thankyou-message {
  max-width: 42rem;
  margin: 0 auto 3rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.85;
  opacity: 0.88;
}

.thankyou-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.thankyou-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.thankyou-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.thankyou-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.thankyou-card h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.thankyou-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
}

.thankyou-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.thankyou-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.thankyou-sig-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.thankyou-sig-family {
  font-size: 0.8rem;
  opacity: 0.6;
  letter-spacing: 0.1em;
}

/* =============================================
   VENUE (Redesigned)
   ============================================= */
.venue-section {
  padding: 6rem 1rem;
  background: color-mix(in srgb, var(--bg-secondary) 30%, transparent);
}

.venue-wrapper {
  max-width: 72rem;
  margin: 0 auto;
}

/* Map full-width at top */
.venue-map-hero {
  position: relative;
  height: 380px;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  margin-bottom: -4rem;
  z-index: 1;
}

.venue-map-hero iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Info card overlaid on bottom of map */
.venue-card {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  margin: 0 auto;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: grid;
  gap: 2rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.venue-card-header {
  text-align: center;
}

.venue-card-header .venue-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.venue-card-header h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.venue-card-header .venue-address {
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.venue-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.venue-detail-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--bg-primary) 40%, transparent);
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--border-color) 50%, transparent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.venue-detail-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.venue-detail-chip svg {
  color: var(--accent);
  flex-shrink: 0;
}

.venue-detail-chip .chip-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 0.125rem;
}

.venue-detail-chip .chip-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.venue-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.venue-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 30%, transparent);
}

.venue-directions-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}

.venue-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.venue-call-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* =============================================
   CONTACT / RSVP
   ============================================= */
.contact-section {
  padding: 8rem 1rem;
  position: relative;
  background: url("https://images.unsplash.com/photo-1511795409834-ef04bbd61622?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat fixed;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg-primary) 85%, transparent);
}

.contact-section>* {
  position: relative;
  z-index: 2;
}

.contact-wrapper {
  max-width: 44rem;
  margin: 0 auto;
}

.contact-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.contact-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-intro p {
  opacity: 0.8;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: color-mix(in srgb, var(--bg-primary) 50%, transparent);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 0.9rem;
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.2s ease;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.7rem;
  opacity: 1;
  color: var(--accent);
  background: var(--bg-primary);
  padding: 0 0.25rem;
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 1rem 2rem;
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 30%, transparent);
}

.contact-submit:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-submit .spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 70;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.toast.success {
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
}

.toast.error {
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
}

@media (min-width: 640px) {
  .venue-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .venue-card {
    padding: 3rem;
  }

  .contact-card {
    padding: 3rem;
  }
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 3rem 1rem;
  text-align: center;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-top-left-radius: 3rem;
  border-top-right-radius: 3rem;
}

.footer-heart {
  margin: 0 auto 1.5rem;
  color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

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

.footer-love {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-family {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.footer-date {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  opacity: 0.55;
  letter-spacing: 0.1em;
}

.footer-copyright {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.65rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* =============================================
   MUSIC TOGGLE
   ============================================= */
.music-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.3s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.music-toggle:hover {
  transform: scale(1.1);
}

.music-toggle .ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.music-toggle .ping::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pingAnim 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingAnim {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.from-left {
  transform: translateX(-30px);
}

.reveal.from-right {
  transform: translateX(30px);
}

.reveal.scale-in {
  transform: scale(0.9);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* =============================================
   RESPONSIVE (Post-Event)
   ============================================= */
@media (max-width: 480px) {
  .celebration-stats {
    gap: 0;
    padding: 1rem;
  }
  .stat-item {
    padding: 0 0.75rem;
  }
  .stat-divider {
    height: 2rem;
  }
  .gallery-grid {
    columns: 1;
  }
  .memories-grid {
    grid-template-columns: 1fr;
  }
  .wishes-wall {
    grid-template-columns: 1fr;
  }
  .thankyou-cards {
    grid-template-columns: 1fr;
  }
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
}

@media (min-width: 640px) {
  .gallery-grid {
    columns: 2;
  }
  .summary-timeline {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .timeline-item {
    flex: 1;
    min-width: 200px;
  }
}

@media (min-width: 768px) {
  .wishes-wall {
    grid-template-columns: repeat(2, 1fr);
  }
  .thankyou-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    columns: 3;
  }
  .memories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .wishes-wall {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Animations ---------- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* =============================================
   SVG Icon Styles (inline SVGs)
   ============================================= */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm svg {
  width: 1.125rem;
  height: 1.125rem;
}

.icon-lg svg {
  width: 2rem;
  height: 2rem;
}

.icon-xl svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* =============================================
   WHATSAPP & CHATBOT WIDGETS
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  /* left side to avoid overlapping chatbot/music */
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20BA5C;
}

/* ─── Skeleton Loader & Lazy Image ─────────────── */
.gallery-card-img-wrap { position: relative; }

.img-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--card-bg) 25%, color-mix(in srgb, var(--accent) 8%, var(--card-bg)) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}
.img-skeleton.hidden { opacity: 0; pointer-events: none; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Lazy image: invisible until loaded */
img.gallery-lazy {
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 2;
}
img.gallery-lazy.loaded {
  opacity: 1;
}

/* Prevent layout shift: handled by skeleton loader heights if needed */
.gallery-card-img-wrap {
  overflow: hidden;
  background: var(--card-bg);
}
.gallery-card-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
