/* ============================================================
   GRADUATION INVITATION — STYLES.CSS
   ============================================================
   Customize: Search "✏️" comments throughout this file
   ============================================================ */

/* ──────────────────────────────────────────
   CSS VARIABLES — edit to rebrand instantly
────────────────────────────────────────── */
:root {
  /* ✏️ Core palette */
  --pink-lightest: #fff5f7;
  --pink-light:    #ffe0ec;
  --pink-blush:    #ffc2d1;
  --pink-mid:      #ff9ab8;
  --pink-rose:     #ff6b9d;
  --pink-hot:      #e91e8c;
  --pink-deep:     #c2185b;
  --pink-darker:   #7b1557;

  /* ✏️ Accent */
  --gold:          #ffd700;
  --gold-soft:     #ffe680;
  --gold-muted:    #f5c842;

  /* Typography / neutral */
  --white:         #ffffff;
  --text-dark:     #3d1235;
  --text-mid:      #7a4070;
  --text-light:    #b07aa0;
  --text-ghost:    rgba(255,255,255,0.55);

  /* Cards & surfaces */
  --card-bg:       rgba(255, 255, 255, 0.88);
  --glass:         rgba(255, 255, 255, 0.6);

  /* Shadows */
  --shadow-soft:   0 8px 32px rgba(233, 30, 140, 0.12);
  --shadow-card:   0 4px 24px rgba(180, 30, 100, 0.14);
  --shadow-hover:  0 12px 48px rgba(233, 30, 140, 0.28);
  --shadow-glow:   0 0 24px rgba(233, 30, 140, 0.4);

  /* Shape */
  --radius:        14px;
  --radius-lg:     22px;
  --radius-pill:   50px;

  /* Typography */
  --font-script: 'Great Vibes', 'Dancing Script', cursive;
  --font-serif:  'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --font-sans:   'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.25s;
  --dur-mid:  0.4s;
  --dur-slow: 0.7s;
}

/* ──────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: linear-gradient(
    165deg,
    var(--pink-lightest) 0%,
    var(--pink-light)    30%,
    var(--pink-blush)    65%,
    var(--pink-mid)      100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

button {
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
  background: none;
}

address { font-style: normal; }

/* Focus rings for accessibility */
:focus-visible {
  outline: 2px solid var(--pink-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ──────────────────────────────────────────
   CONFETTI CANVAS
────────────────────────────────────────── */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ──────────────────────────────────────────
   NAVIGATION
────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  padding: 14px 20px;
  background: rgba(255, 240, 245, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(233, 30, 140, 0.08);
  transition: padding var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}

#navbar.scrolled {
  padding: 10px 20px;
  box-shadow: 0 4px 20px rgba(233, 30, 140, 0.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: var(--pink-hot);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.nav-links a:hover {
  background: var(--pink-rose);
  color: var(--white);
}

/* ──────────────────────────────────────────
   HERO SECTION
────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 64px;
  overflow: hidden;
}

/* Radial glow behind hero content */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    rgba(255, 133, 161, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.sparkle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Individual sparkle elements (injected via JS) */
.sparkle {
  position: absolute;
  animation: floatSparkle var(--dur, 4s) var(--delay, 0s) infinite ease-in-out;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

@keyframes floatSparkle {
  0%   { transform: translateY(0)      rotate(0deg)   scale(0.4); opacity: 0;   }
  15%  { opacity: 1;                                                              }
  85%  { opacity: 0.8;                                                            }
  100% { transform: translateY(-130px) rotate(360deg) scale(0);   opacity: 0;   }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-pre {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-mid);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  animation: fadeSlideDown 1s var(--ease-out) both;
}

.hero-name {
  font-family: var(--font-script);
  /* ✏️ Change this size if the name is longer/shorter */
  font-size: clamp(3.8rem, 14vw, 8rem);
  color: var(--pink-hot);
  line-height: 1.05;
  text-shadow:
    0 4px 24px rgba(233, 30, 140, 0.22),
    0 2px 8px  rgba(233, 30, 140, 0.15);
  animation: fadeSlideUp 1s 0.25s var(--ease-out) both;
  margin-bottom: 12px;
}

.hero-class {
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dark);
  animation: fadeSlideUp 1s 0.5s var(--ease-out) both;
  margin-bottom: 32px;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
  animation: fadeSlideUp 1s 0.65s var(--ease-out) both;
  margin-bottom: 36px;
}

.hero-photo {
  width: clamp(200px, 42vw, 340px);
  height: clamp(200px, 42vw, 340px);
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: 0 0 0 4px var(--pink-rose), var(--shadow-hover);
}

.scroll-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-mid);
  animation: fadeSlideUp 1s 0.75s var(--ease-out) both;
  transition: color var(--dur-fast) ease;
}

.scroll-btn:hover { color: var(--pink-hot); }

.scroll-btn-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.arrow-bounce {
  display: block;
  font-size: 1.5rem;
  animation: bounce 1.6s ease-in-out infinite;
}

/* Floating decorative icons */
.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.deco {
  position: absolute;
  opacity: 0.13;
  animation: floatDeco var(--fdur, 7s) var(--fdel, 0s) ease-in-out infinite;
}

.deco-cap1  { font-size: 2.6rem; top: 14%; left: 7%;  --fdur: 7s; --fdel: 0s;   }
.deco-star1 { font-size: 1.8rem; top: 22%; right: 9%;  --fdur: 6s; --fdel: 1s;   }
.deco-heart1{ font-size: 1.6rem; bottom: 35%; left: 10%; --fdur: 8s; --fdel: 2s;  }
.deco-star2 { font-size: 2rem;   bottom: 18%; right: 7%; --fdur: 5s; --fdel: 0.5s;}
.deco-cap2  { font-size: 2rem;   top: 55%; left: 4%;    --fdur: 9s; --fdel: 1.5s; }
.deco-heart2{ font-size: 2.2rem; top: 12%; right: 25%;  --fdur: 7s; --fdel: 3s;   }

/* ──────────────────────────────────────────
   SHARED SECTION STYLES
────────────────────────────────────────── */
.section {
  padding: 88px 24px;
}

.section-alt {
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink-hot);
  background: rgba(233, 30, 140, 0.08);
  padding: 4px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 18px;
}

.divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink-rose), var(--pink-hot));
  margin: 0 auto;
  border-radius: 2px;
}

/* ──────────────────────────────────────────
   SCROLL ANIMATION CLASSES
   (opacity + transform starts hidden;
    .visible is added by IntersectionObserver)
────────────────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity  var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-52px);
  transition:
    opacity  0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(52px);
  transition:
    opacity  0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay for detail cards */
.detail-card:nth-child(1) { transition-delay: 0.00s; }
.detail-card:nth-child(2) { transition-delay: 0.08s; }
.detail-card:nth-child(3) { transition-delay: 0.16s; }
.detail-card:nth-child(4) { transition-delay: 0.24s; }
.detail-card:nth-child(5) { transition-delay: 0.32s; }
.detail-card:nth-child(6) { transition-delay: 0.40s; }
.detail-card:nth-child(7) { transition-delay: 0.48s; }

/* ──────────────────────────────────────────
   PHOTO GALLERY
────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 560px)  { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 800px)  { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1040px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, var(--pink-light), var(--pink-rose));

  /* Start hidden for stagger-in animation */
  opacity: 0;
  transform: scale(0.88) translateY(20px);
  transition:
    opacity   0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
  will-change: transform, opacity;
}

.gallery-item.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.gallery-item:hover {
  transform: scale(1.045) translateY(-3px);
  box-shadow: var(--shadow-hover), 0 0 0 2.5px var(--pink-rose);
  z-index: 2;
}

/* Placeholder shown when image fails to load */
.photo-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink-blush) 60%, var(--pink-mid) 100%);
}

.photo-placeholder-num {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.75);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
}

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

/* Hover overlay with expand icon */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(233, 30, 140, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-mid) ease;
  z-index: 1;
}

.expand-icon {
  font-size: 2rem;
  color: var(--white);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity var(--dur-mid) ease, transform var(--dur-mid) var(--ease-spring);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1;
}

.gallery-item:hover .gallery-overlay { background: rgba(233, 30, 140, 0.32); }
.gallery-item:hover .expand-icon     { opacity: 1; transform: scale(1); }

/* ──────────────────────────────────────────
   LIGHTBOX
────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 4, 14, 0.96);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 60px 20px 30px;
}

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

.lightbox-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 900px);
  max-height: 75vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--pink-light), var(--pink-rose));
}

.lightbox-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 600px;
}

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

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease;
  z-index: 10;
}

.lightbox-close:hover { background: var(--pink-hot); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease;
  z-index: 10;
  line-height: 1;
}

.lightbox-nav:hover  { background: var(--pink-hot); }
.lightbox-nav.prev   { left: 12px; }
.lightbox-nav.next   { right: 12px; }

@media (max-width: 480px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-nav.prev { left: 6px; }
  .lightbox-nav.next { right: 6px; }
}

/* ──────────────────────────────────────────
   GRADUATION DETAILS CARDS
────────────────────────────────────────── */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 540px)  { .details-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 820px)  { .details-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.detail-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 30px 24px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 133, 161, 0.18);
  transition:
    transform    var(--dur-mid) var(--ease-out),
    box-shadow   var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out);
}

.detail-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 157, 0.45);
}

.card-icon {
  font-size: 2.1rem;
  display: block;
  margin-bottom: 14px;
}

.card-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  height: 60px;
  align-items: center;
}

.school-logo {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  display: block;
}

.detail-card h3 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-hot);
  margin-bottom: 8px;
}

.detail-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.detail-card p em {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ──────────────────────────────────────────
   PERSONAL MESSAGE SECTION
────────────────────────────────────────── */
#message {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}

.hearts-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.floating-heart {
  position: absolute;
  animation: floatHeart var(--dur, 5s) var(--delay, 0s) infinite ease-in-out;
  opacity: 0;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes floatHeart {
  0%   { transform: translateY(0)      scale(0.7) rotate(-8deg);  opacity: 0;   }
  20%  { opacity: 0.55;                                                           }
  80%  { opacity: 0.35;                                                           }
  100% { transform: translateY(-160px) scale(1.2) rotate(8deg);   opacity: 0;   }
}

.message-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  background: var(--card-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 133, 161, 0.18);
}

@media (max-width: 480px) {
  .message-content { padding: 36px 24px; }
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--pink-rose);
  display: block;
  opacity: 0.3;
}

.quote-mark.open  { margin-bottom: -22px; }
.quote-mark.close { margin-top: -12px; }

.message-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3.2vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.85;
  color: var(--text-dark);
  margin: 14px 0;
}

.message-sig {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  color: var(--pink-hot);
  margin-top: 18px;
}

/* ──────────────────────────────────────────
   LOCATION SECTION
────────────────────────────────────────── */
.location-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.location-pin-anim {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pin-icon {
  font-size: 3rem;
  display: block;
  animation: pinBounce 2.2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.pin-ring {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 10px;
  background: radial-gradient(ellipse, rgba(233, 30, 140, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  animation: pinShadow 2.2s ease-in-out infinite;
}

.venue-name {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.venue-addr {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 22px;
}

.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--pink-rose), var(--pink-hot));
  color: var(--white);
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 24px rgba(233, 30, 140, 0.32);
  transition:
    transform    var(--dur-mid) var(--ease-out),
    box-shadow   var(--dur-mid) var(--ease-out);
}

.maps-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(233, 30, 140, 0.5);
}

/* ──────────────────────────────────────────
   MEMORY SLIDESHOW
────────────────────────────────────────── */
.slideshow-wrap {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(233, 30, 140, 0.18);
  background: linear-gradient(135deg, var(--pink-blush), var(--pink-rose));
}

.slideshow-inner {
  position: relative;
  height: 360px;
  overflow: hidden;
}

@media (min-width: 560px)  { .slideshow-inner { height: 420px; } }
@media (min-width: 900px)  { .slideshow-inner { height: 480px; } }

.ss-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

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

.ss-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, var(--pink-blush), var(--pink-rose));
}

.ss-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(61, 18, 53, 0.72));
  padding: 48px 24px 18px;
  color: var(--white);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.slideshow-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.ss-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  transition: opacity 1s ease, transform 1s ease;
}

/* Pause badge shown on hover */
.slideshow-wrap:hover::after {
  content: '⏸';
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.4rem;
  opacity: 0.7;
  z-index: 5;
  pointer-events: none;
}

.slideshow-controls {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(255, 245, 247, 0.92);
  backdrop-filter: blur(8px);
}

.ss-btn {
  background: var(--white);
  color: var(--pink-hot);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition:
    background var(--dur-fast) ease,
    color     var(--dur-fast) ease,
    transform var(--dur-fast) ease;
  line-height: 1;
  flex-shrink: 0;
}

.ss-btn:hover {
  background: var(--pink-hot);
  color: var(--white);
  transform: scale(1.1);
}

.ss-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.ss-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-mid);
  cursor: pointer;
  transition:
    background  var(--dur-mid) ease,
    transform   var(--dur-mid) var(--ease-spring);
  border: none;
  padding: 0;
}

.ss-dot.active {
  background: var(--pink-hot);
  transform: scale(1.5);
}

/* ──────────────────────────────────────────
   SUPPORT OUR GRADUATE SECTION
────────────────────────────────────────── */
.support-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.support-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--dur-mid) var(--ease-out);
}

.support-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.support-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pink-hot);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.support-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.support-card.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

.qr-code-wrapper {
  width: 100%;
  max-width: 200px;
  margin-bottom: 20px;
}

.qr-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(233, 30, 140, 0.2);
}

.support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--pink-rose), var(--pink-hot));
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-out);
  box-shadow: 0 6px 20px rgba(233, 30, 140, 0.3);
}

.support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(233, 30, 140, 0.5);
}

/* Message Board */
.message-section {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 40px;
}

.message-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 32px;
  color: var(--text-dark);
}

.message-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.message-input,
.message-textarea {
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--pink-blush);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--dur-mid) var(--ease-out);
}

.message-input:focus,
.message-textarea:focus {
  outline: none;
  border-color: var(--pink-rose);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

.message-textarea {
  resize: vertical;
  min-height: 90px;
}

.message-btn {
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--text-dark);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-out);
  box-shadow: 0 6px 20px rgba(245, 200, 66, 0.3);
}

.message-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(245, 200, 66, 0.5);
}

.message-btn:active {
  transform: translateY(-1px);
}

.messages-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-card {
  background: var(--white);
  border-left: 4px solid var(--pink-rose);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(233, 30, 140, 0.08);
}

.message-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.message-text {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.5;
}

.rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 17px 34px;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-width: 210px;
  position: relative;
  overflow: hidden;
  transition:
    transform    var(--dur-mid) var(--ease-out),
    box-shadow   var(--dur-mid) var(--ease-out);
}

/* Ripple shimmer on hover */
.rsvp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.rsvp-btn:hover::before { transform: translateX(100%); }
.rsvp-btn:hover { transform: translateY(-5px); }
.rsvp-btn:active { transform: translateY(-2px); }

.rsvp-btn.attending {
  background: linear-gradient(135deg, var(--pink-rose), var(--pink-hot));
  color: var(--white);
  box-shadow: 0 8px 28px rgba(233, 30, 140, 0.38);
}
.rsvp-btn.attending:hover {
  box-shadow: 0 14px 42px rgba(233, 30, 140, 0.55);
}

.rsvp-btn.decline {
  background: var(--white);
  color: var(--text-mid);
  border: 2px solid var(--pink-blush);
  box-shadow: 0 4px 18px rgba(233, 30, 140, 0.1);
}
.rsvp-btn.decline:hover {
  border-color: var(--pink-rose);
  color: var(--pink-hot);
  box-shadow: 0 8px 28px rgba(233, 30, 140, 0.2);
}

.rsvp-btn.congrats {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--text-dark);
  box-shadow: 0 8px 28px rgba(245, 200, 66, 0.4);
}
.rsvp-btn.congrats:hover {
  box-shadow: 0 14px 42px rgba(245, 200, 66, 0.6);
}

/* ──────────────────────────────────────────
   CONGRATULATIONS MODAL
────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 4, 14, 0.82);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 28px 80px rgba(0,0,0,0.35);
  overflow: hidden;
}

/* Pop-in animation controlled by JS adding .open to parent */
.modal-overlay.open .modal-box {
  animation: modalPop 0.45s var(--ease-spring) both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--pink-lightest);
  color: var(--text-mid);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.modal-close:hover {
  background: var(--pink-rose);
  color: var(--white);
}

.modal-confetti-area {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.modal-confetti-piece {
  position: absolute;
  border-radius: 2px;
  animation: confettiFall var(--dur, 2s) var(--delay, 0s) linear forwards;
}

@keyframes confettiFall {
  0%   { top: -14px; opacity: 1;   transform: rotate(0deg)   translateX(0); }
  100% { top: 110%;  opacity: 0.2; transform: rotate(540deg) translateX(var(--dx, 20px)); }
}

.modal-emoji {
  font-size: 3.2rem;
  margin-bottom: 16px;
  display: block;
  animation: wiggle 0.5s 0.5s ease both;
}

.modal-box h3 {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--pink-hot);
  margin-bottom: 12px;
}

.modal-box p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 28px;
}

.modal-ok {
  background: linear-gradient(135deg, var(--pink-rose), var(--pink-hot));
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 13px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 6px 22px rgba(233, 30, 140, 0.3);
  transition:
    transform  var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

.modal-ok:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(233, 30, 140, 0.5);
}

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
#footer {
  position: relative;
  padding: 90px 24px 64px;
  text-align: center;
  background: linear-gradient(165deg, var(--pink-deep) 0%, var(--pink-darker) 100%);
  overflow: hidden;
}

/* Subtle radial light in center */
#footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(255,133,161,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.footer-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer-piece {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  animation: footerFall var(--fdur, 4s) var(--fdel, 0s) linear infinite;
  opacity: 0.7;
}

@keyframes footerFall {
  0%   { top: -20px; opacity: 0;   transform: rotate(0deg)   translateX(0); }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.4; }
  100% { top: 108%;   opacity: 0;  transform: rotate(680deg) translateX(var(--fdrift, 20px)); }
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-caps {
  font-size: 2rem;
  letter-spacing: 0.35em;
  margin-bottom: 18px;
}

.footer-heading {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 8vw, 4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.footer-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 28px;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ──────────────────────────────────────────
   SHARED KEYFRAME ANIMATIONS
────────────────────────────────────────── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0);     }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(9px); }
}

@keyframes floatDeco {
  0%, 100% { transform: translateY(0)    rotate(0deg);  }
  50%       { transform: translateY(-22px) rotate(12deg); }
}

@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes pinShadow {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.55; }
  50%       { transform: translateX(-50%) scale(0.55); opacity: 0.18; }
}

@keyframes modalPop {
  from { transform: scale(0.65); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

@keyframes wiggle {
  0%   { transform: rotate(-12deg) scale(1.1); }
  25%  { transform: rotate(12deg)  scale(1.1); }
  50%  { transform: rotate(-8deg); }
  75%  { transform: rotate(8deg);  }
  100% { transform: rotate(0);     }
}

/* ──────────────────────────────────────────
   TOUCH / MOBILE OVERRIDES
────────────────────────────────────────── */
@media (hover: none) {
  /* On touch devices, remove hover scale so it doesn't get stuck */
  .gallery-item:hover  { transform: none; box-shadow: var(--shadow-card); }
  .gallery-item:active { transform: scale(0.96); }
  .support-btn:hover   { transform: none; }
  .support-btn:active  { transform: scale(0.97); }
  .message-btn:hover   { transform: none; }
  .message-btn:active  { transform: scale(0.97); }
}

/* ──────────────────────────────────────────
   RESPONSIVE TWEAKS
────────────────────────────────────────── */
@media (max-width: 480px) {
  .section            { padding: 64px 16px; }
  #hero               { padding: 82px 18px 52px; }
  #message            { padding: 72px 16px; }
  .message-content    { padding: 32px 20px; }
  .modal-box          { padding: 44px 24px; }
  .nav-links a        { padding: 5px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
