@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Josefin+Sans:wght@300;400;500&family=Great+Vibes&display=swap');

:root {
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gold-dark: #96772e;
  --ivory: #faf8f2;
  --ivory-dark: #f0ead6;
  --burgundy: #6b2737;
  --burgundy-light: #8e3a4e;
  --burgundy-dark: #4a1a26;
  --charcoal: #2c2c2c;
  --text-primary: #3a3a3a;
  --text-secondary: #6b6b6b;
  --white: #ffffff;
  --shadow-soft: 0 4px 30px rgba(0,0,0,0.08);
  --shadow-medium: 0 8px 40px rgba(0,0,0,0.12);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Josefin Sans', sans-serif;
  color: var(--text-primary);
  background: var(--ivory);
  overflow-x: hidden;
  line-height: 1.7;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; }
.script-font { font-family: 'Great Vibes', cursive; }

/* ══════════ NAV ══════════ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 1rem 2rem;
  display: flex; justify-content: center; gap: 2rem;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(250,248,242,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}
.nav a {
  text-decoration: none; color: var(--white);
  font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
  padding: 0.5rem 1rem; position: relative; transition: var(--transition);
}
.nav.scrolled a { color: var(--charcoal); }
.nav a::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 1px; background: var(--gold);
  transition: var(--transition); transform: translateX(-50%);
}
.nav a:hover::after { width: 80%; }

/* ══════════ HERO (shared) ══════════ */
.hero {
  height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(74,26,38,0.55) 0%, rgba(44,44,44,0.5) 50%, rgba(74,26,38,0.6) 100%);
}
.hero-content { position: relative; z-index: 2; animation: fadeInUp 1.5s ease-out; }
.hero-cross { font-size: 2rem; color: var(--gold-light); margin-bottom: 1rem; opacity: 0.8; }
.hero-subtitle {
  font-size: 0.85rem; letter-spacing: 6px; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1rem;
}
.hero-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 8vw, 6rem); line-height: 1.2; margin-bottom: 0.5rem;
}
.hero-amp {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold-light); display: block; margin: 0.3rem 0;
}
.hero-date {
  font-size: 1rem; letter-spacing: 4px; color: var(--gold-light); margin-top: 1rem;
}
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 2; animation: bounce 2s infinite;
}
.scroll-indicator span {
  display: block; width: 20px; height: 20px;
  border-right: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(45deg); margin: -5px;
}

/* ══════════ SECTION BASE ══════════ */
.section {
  padding: 6rem 2rem; max-width: 1000px; margin: 0 auto; text-align: center;
}
.section-label {
  font-size: 0.75rem; letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--burgundy); margin-bottom: 0.5rem;
}
.section-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--gold); margin-bottom: 2rem;
}
.divider { width: 60px; height: 1px; background: var(--gold); margin: 1.5rem auto; }
.divider-ornament {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem auto;
}
.divider-ornament::before, .divider-ornament::after {
  content: ''; width: 60px; height: 1px; background: var(--gold-light);
}
.divider-ornament span { color: var(--gold); font-size: 1rem; }

/* ══════════ LANDING PAGE ══════════ */
.landing-hero .hero-overlay {
  background: linear-gradient(180deg,
    rgba(74,26,38,0.6) 0%, rgba(44,44,44,0.55) 50%, rgba(74,26,38,0.65) 100%);
}
.landing-events {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; max-width: 900px; margin: 0 auto; padding: 0 2rem;
}
.landing-card {
  position: relative; border-radius: 16px; overflow: hidden;
  height: 450px; cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  text-decoration: none; color: var(--white);
  display: flex; align-items: flex-end;
}
.landing-card:hover { transform: translateY(-8px); box-shadow: 0 16px 50px rgba(0,0,0,0.2); }
.landing-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}
.landing-card:hover img { transform: scale(1.05); }
.landing-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(74,26,38,0.85) 100%);
}
.landing-card-content {
  position: relative; z-index: 2;
  padding: 2rem; width: 100%;
}
.landing-card-label {
  font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 0.3rem;
}
.landing-card-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem; line-height: 1.2;
}
.landing-card-date {
  font-size: 0.85rem; letter-spacing: 2px; color: var(--gold-light);
  margin-top: 0.5rem;
}
.landing-card-btn {
  display: inline-block; margin-top: 1rem;
  padding: 0.6rem 1.5rem; border: 1px solid var(--gold-light);
  border-radius: 50px; font-size: 0.7rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-light); transition: var(--transition);
}
.landing-card:hover .landing-card-btn {
  background: var(--gold); border-color: var(--gold); color: var(--white);
}

/* ══════════ INVITATION SECTION (modern) ══════════ */
.invitation-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--ivory-dark) 100%);
  padding: 5rem 2rem; position: relative; overflow: hidden;
}
.invitation-section::before {
  content: ''; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.invitation-card {
  max-width: 680px; margin: 0 auto;
  position: relative;
  padding: 3.5rem 3rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(250,248,242,0.95) 100%);
  border-radius: 16px;
  box-shadow:
    0 1px 0 var(--gold-light),
    0 20px 60px rgba(107,39,55,0.06),
    0 4px 20px rgba(0,0,0,0.04);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

/* Gold corner ornaments */
.invitation-card::before,
.invitation-card::after {
  content: ''; position: absolute;
  width: 80px; height: 80px;
  opacity: 0.35;
}
.invitation-card::before {
  top: 20px; left: 20px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  border-radius: 4px 0 0 0;
}
.invitation-card::after {
  bottom: 20px; right: 20px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  border-radius: 0 0 4px 0;
}

/* Extra corner ornaments via child spans */
.invitation-corner-tr,
.invitation-corner-bl {
  position: absolute; width: 80px; height: 80px; opacity: 0.35;
}
.invitation-corner-tr {
  top: 20px; right: 20px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  border-radius: 0 4px 0 0;
}
.invitation-corner-bl {
  bottom: 20px; left: 20px;
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  border-radius: 0 0 0 4px;
}

/* Top gold accent line */
.invitation-card .card-accent {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 0 0 4px 4px;
}

.invitation-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; line-height: 2;
  color: var(--text-primary);
  position: relative; z-index: 1;
}

.invitation-text .parents {
  font-size: 1.05rem; color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.invitation-text .highlight {
  font-size: 1.5rem; color: var(--burgundy);
  font-weight: 600; letter-spacing: 2px;
  display: inline-block; margin: 0.3rem 0;
}

.invitation-text .names-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400; color: var(--burgundy);
  display: block; margin: 0.4rem 0;
  text-shadow: 0 1px 2px rgba(107,39,55,0.08);
}

.invitation-text .with-text {
  font-size: 0.9rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold-dark);
  display: block; margin: 0.5rem 0;
}

.invitation-text .date-line {
  font-size: 1.05rem; color: var(--text-primary);
  letter-spacing: 0.5px;
}

.invitation-text .bible-verse {
  font-style: italic; color: var(--text-secondary);
  font-size: 0.95rem; margin-top: 2rem; display: block;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-light);
}

.invitation-text .verse-ref {
  display: block; margin-top: 0.3rem;
  font-style: normal; font-size: 0.8rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-dark);
}

/* Knanaya tradition description */
.invitation-text .tradition-note {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.8; margin-top: 1rem;
  font-style: italic;
}

/* ══════════ COUNTDOWN ══════════ */
.countdown-section {
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
  color: var(--white); padding: 4rem 2rem;
}
.countdown-section .section-title { color: var(--gold-light); }
.countdown-grid {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 2rem;
}
.countdown-item {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(201,168,76,0.3); border-radius: 12px;
  padding: 1.5rem 2rem; min-width: 110px; transition: var(--transition);
}
.countdown-item:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); }
.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 300; color: var(--gold-light); line-height: 1;
}
.countdown-label {
  font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-top: 0.3rem;
}

/* ══════════ EVENT CARDS ══════════ */
.events-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.event-card {
  background: var(--white); border-radius: 12px;
  padding: 2.5rem 2rem; box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--gold); transition: var(--transition);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); }
.event-icon { font-size: 2rem; margin-bottom: 1rem; color: var(--gold); }
.event-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--burgundy); margin-bottom: 0.5rem;
}
.event-detail {
  font-size: 0.9rem; color: var(--text-secondary); margin: 0.3rem 0;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.event-detail svg { width: 16px; height: 16px; fill: var(--gold); flex-shrink: 0; }

/* ══════════ VENUE ══════════ */
.venue-section { background: var(--white); }
.venue-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; margin-top: 2rem; text-align: left;
}
.venue-image {
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-medium); position: relative;
}
.venue-image img {
  width: 100%; height: 350px; object-fit: cover;
  display: block; transition: var(--transition);
}
.venue-image:hover img { transform: scale(1.05); }
.venue-info h3 { font-size: 1.8rem; color: var(--burgundy); margin-bottom: 0.5rem; }
.venue-info p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.95rem; }
.venue-map-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--burgundy); color: var(--white); text-decoration: none;
  padding: 0.75rem 1.5rem; border-radius: 50px;
  font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  transition: var(--transition);
}
.venue-map-link:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* ══════════ TIMELINE ══════════ */
.timeline {
  position: relative; max-width: 600px; margin: 2rem auto 0; text-align: left;
}
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 1px; background: var(--gold-light);
}
.timeline-item {
  padding-left: 55px; margin-bottom: 2rem; position: relative;
  opacity: 0; transform: translateY(20px); transition: all 0.6s ease;
}
.timeline-item.visible { opacity: 1; transform: translateY(0); }
.timeline-dot {
  position: absolute; left: 12px; top: 5px;
  width: 17px; height: 17px; background: var(--ivory);
  border: 2px solid var(--gold); border-radius: 50%;
}
.timeline-time {
  font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 0.3rem;
}
.timeline-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--burgundy);
}
.timeline-desc { font-size: 0.85rem; color: var(--text-secondary); }

/* ══════════ RSVP ══════════ */
.rsvp-section {
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 50%, var(--burgundy-light) 100%);
  color: var(--white); padding: 6rem 2rem;
}
.rsvp-section .section-label { color: var(--gold-light); }
.rsvp-section .section-title { color: var(--white); }
.rsvp-form {
  max-width: 500px; margin: 2rem auto 0;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.form-group { position: relative; }
.form-group label {
  display: block; text-align: left;
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 0.4rem; color: var(--gold-light);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px; color: var(--white);
  font-family: 'Josefin Sans', sans-serif; font-size: 0.9rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(255,255,255,0.12);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}
.form-group select option { background: var(--burgundy-dark); color: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-rsvp {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white); border: none;
  padding: 1rem 2rem; border-radius: 50px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; transition: var(--transition); margin-top: 0.5rem;
}
.btn-rsvp:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(201,168,76,0.4); }
.rsvp-success { display: none; text-align: center; padding: 2rem; }
.rsvp-success.show { display: block; animation: fadeInUp 0.6s ease; }
.rsvp-success .check-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ══════════ STYLISH CARD DISPLAY ══════════ */
.card-showcase {
  background: linear-gradient(180deg, var(--ivory-dark) 0%, var(--white) 50%, var(--ivory-dark) 100%);
  padding: 5rem 2rem; text-align: center;
}
.card-showcase .section-title { margin-bottom: 0.5rem; }
.card-frame {
  max-width: 420px; margin: 2rem auto 0;
  position: relative;
  border-radius: 12px; overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.15),
    0 0 0 1px var(--gold-light),
    0 0 0 6px var(--ivory),
    0 0 0 7px var(--gold-light);
  transition: var(--transition);
}
.card-frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.2),
    0 0 0 1px var(--gold),
    0 0 0 6px var(--ivory),
    0 0 0 7px var(--gold);
}
.card-frame img {
  width: 100%; display: block;
  transition: var(--transition);
}
.card-frame::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.05) 100%);
  z-index: 1; pointer-events: none;
}
.card-shimmer {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.15) 45%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.15) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════ MAILANJI THEME OVERRIDES ══════════ */
.mailanji-hero .hero-overlay {
  background: linear-gradient(180deg,
    rgba(120,60,20,0.55) 0%, rgba(80,40,15,0.5) 50%, rgba(100,50,18,0.6) 100%);
}
.mailanji-accent { --gold: #d4a036; --burgundy: #8b4513; --burgundy-dark: #5c2d0e; }
.mailanji-section {
  background: linear-gradient(135deg, #5c2d0e 0%, #8b4513 100%);
  color: var(--white); padding: 4rem 2rem;
}

/* ══════════ FOOTER ══════════ */
.footer {
  background: var(--charcoal); color: rgba(255,255,255,0.6);
  text-align: center; padding: 3rem 2rem;
}
.footer-names {
  font-family: 'Great Vibes', cursive; font-size: 2rem;
  color: var(--gold-light); margin-bottom: 0.5rem;
}
.footer-hashtag {
  font-size: 0.8rem; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 1.5rem;
}
.footer-nav { margin-bottom: 1.5rem; }
.footer-nav a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  margin: 0 1rem; transition: var(--transition);
}
.footer-nav a:hover { color: var(--gold-light); }
.footer p { font-size: 0.75rem; letter-spacing: 1px; }

/* ══════════ PARTICLES ══════════ */
.particles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute; width: 4px; height: 4px;
  background: var(--gold-light); border-radius: 50%;
  opacity: 0; animation: particleFloat 8s infinite;
}

/* ══════════ ANIMATIONS ══════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20px) scale(1); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(201,168,76,0.15); }
}
@keyframes textReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes drawLine {
  from { width: 0; }
  to { width: 60px; }
}
@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ── Fade-in variants ── */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.slide-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease; }
.slide-left.visible { opacity: 1; transform: translateX(0); }

.slide-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease; }
.slide-right.visible { opacity: 1; transform: translateX(0); }

.scale-in { opacity: 0; transform: scale(0.85); transition: all 0.7s ease; }
.scale-in.visible { opacity: 1; transform: scale(1); }

.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.3s; }
.fade-in-delay-3 { transition-delay: 0.45s; }
.fade-in-delay-4 { transition-delay: 0.6s; }

/* ── Animated divider ── */
.divider-animated {
  width: 0; height: 1px;
  background: var(--gold); margin: 1.5rem auto;
  transition: width 1s ease;
}
.divider-animated.visible { width: 60px; }

/* ── Countdown pop ── */
.countdown-item.pop .countdown-number { animation: countPop 0.3s ease; }

/* ── Floating card effect ── */
.invitation-card.visible { animation: floatSlow 6s ease-in-out infinite; }

/* ── Section title text reveal ── */
.text-reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.text-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Pulse glow on venue image ── */
.venue-image.visible { animation: pulseGlow 3s ease-in-out infinite; }

/* ══════════ ADD TO CALENDAR ══════════ */
.calendar-wrap {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; align-items: center;
}

.add-cal-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1rem 2.2rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border: none; border-radius: 60px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: visible;
  z-index: 1;
}

/* Animated pulse ring */
.add-cal-btn::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 60px;
  border: 2px solid var(--gold-light);
  opacity: 0;
  animation: calPulse 2.5s ease-in-out infinite;
}
.add-cal-btn::after {
  content: '';
  position: absolute; inset: -10px;
  border-radius: 60px;
  border: 1px solid var(--gold-light);
  opacity: 0;
  animation: calPulse 2.5s ease-in-out infinite 0.4s;
}

@keyframes calPulse {
  0% { opacity: 0; transform: scale(0.95); }
  40% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1.08); }
}

.add-cal-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 35px rgba(201,168,76,0.4);
}
.add-cal-btn:hover::before,
.add-cal-btn:hover::after {
  animation: none; opacity: 0;
}

.add-cal-btn:active {
  transform: scale(0.97);
}

/* Calendar icon */
.add-cal-btn .cal-icon {
  width: 22px; height: 22px;
  position: relative;
  animation: calIconBounce 3s ease-in-out infinite;
}
@keyframes calIconBounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-3px); }
  30% { transform: translateY(0); }
}

.add-cal-btn .cal-icon svg {
  width: 22px; height: 22px; fill: var(--white);
}

/* Success state */
.add-cal-btn.added {
  background: linear-gradient(135deg, #27ae60, #219a52);
  pointer-events: none;
}
.add-cal-btn.added::before,
.add-cal-btn.added::after { animation: none; opacity: 0; }

.add-cal-btn .btn-text { transition: all 0.3s ease; }
.add-cal-btn .btn-check {
  display: none; font-size: 1.1rem;
}
.add-cal-btn.added .btn-text { display: none; }
.add-cal-btn.added .btn-check { display: inline; }

/* Sub-text */
.cal-sub {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1.5px;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 768px) {
  .nav { gap: 0.5rem; flex-wrap: wrap; padding: 0.8rem 1rem; }
  .nav a { font-size: 0.65rem; letter-spacing: 2px; padding: 0.4rem 0.6rem; }
  .section { padding: 4rem 1.5rem; }
  .landing-events { grid-template-columns: 1fr; gap: 2rem; }
  .landing-card { height: 350px; }
  .venue-content { grid-template-columns: 1fr; text-align: center; }
  .venue-info { order: 2; }
  .venue-image { order: 1; }
  .form-row { grid-template-columns: 1fr; }
  .countdown-grid { gap: 1rem; }
  .countdown-item { min-width: 80px; padding: 1rem 1.2rem; }
  .countdown-number { font-size: 2.2rem; }
  .invitation-card { padding: 2.5rem 1.5rem; }
  .calendar-btns { flex-direction: column; align-items: center; }
  .calendar-btn { width: 100%; max-width: 280px; justify-content: center; }
}
@media (max-width: 480px) {
  .nav a { font-size: 0.6rem; letter-spacing: 1px; }
  .landing-card { height: 300px; }
  .invitation-text .names-script { font-size: 1.8rem !important; }
}
