/* ===== GOOGLE FONTS ===== */
@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;1,600;1,700&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Great+Vibes&family=Montserrat:wght@300;400;500;600&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Color Palette - Rose/Blush inspired by the couple's photos */
  --rose-deep: #8B2252;
  --rose-primary: #C06C84;
  --rose-light: #D4A0A7;
  --rose-blush: #F2D7D9;
  --rose-pale: #FFF0F3;
  --cream: #FFF8F0;
  --gold: #C9A96E;
  --gold-light: #E8D5B5;
  --gold-shimmer: #F0E4CC;
  --charcoal: #2C2C2C;
  --text-dark: #3A3A3A;
  --text-medium: #6B6B6B;
  --text-light: #9A9A9A;
  --white: #FFFFFF;
  --overlay-dark: rgba(44, 44, 44, 0.6);
  --overlay-rose: rgba(192, 108, 132, 0.15);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-script: 'Great Vibes', cursive;
  --font-heading: 'Josefin Sans', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--rose-pale), var(--cream));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-heart {
  width: 60px;
  height: 60px;
  position: relative;
  animation: heartbeat 1.2s ease-in-out infinite;
}

.preloader-heart::before,
.preloader-heart::after {
  content: '';
  position: absolute;
  top: 0;
  width: 30px;
  height: 48px;
  border-radius: 30px 30px 0 0;
  background: var(--rose-primary);
}

.preloader-heart::before {
  left: 30px;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.preloader-heart::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
}

.preloader-text {
  margin-top: 30px;
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--rose-primary);
  letter-spacing: 2px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 40px;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 40px;
  box-shadow: 0 2px 30px rgba(192, 108, 132, 0.1);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  transition: var(--transition-smooth);
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--text-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--white);
  padding: 0 30px;
  transition: var(--transition-smooth);
}

.navbar.scrolled .nav-logo {
  color: var(--rose-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition-smooth);
}

.navbar.scrolled .nav-toggle span {
  background: var(--text-dark);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(44, 44, 44, 0.3) 0%,
    rgba(44, 44, 44, 0.2) 40%,
    rgba(44, 44, 44, 0.5) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-pretext {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 0.8s forwards;
}

.hero-ampersand {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--gold-light);
  display: block;
  margin: -5px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 1s forwards;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 25px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 1.2s forwards;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold-light);
  margin: 20px auto;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s ease 1.5s forwards;
}

.hero-scroll span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gold-light);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  100% { top: 100%; }
}

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

/* ===== COUNTDOWN SECTION ===== */
.countdown-section {
  background: linear-gradient(135deg, var(--rose-pale), var(--cream));
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--rose-light));
}

.countdown-label {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--rose-primary);
  margin-bottom: 40px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rose-blush);
  border-radius: 20px;
  padding: 30px 25px;
  min-width: 120px;
  transition: var(--transition-smooth);
}

.countdown-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(192, 108, 132, 0.15);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--rose-deep);
  line-height: 1;
}

.countdown-unit {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-medium);
  margin-top: 8px;
}

/* ===== SECTION COMMON STYLES ===== */
.section-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-subtitle {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--rose-primary);
  margin-bottom: 5px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: 2px;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto 0;
  position: relative;
}

.section-divider::after {
  content: '♥';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: var(--gold);
  background: var(--cream);
  padding: 0 10px;
}

/* ===== COUPLE SECTION ===== */
.couple-section {
  padding: var(--section-padding);
  background: var(--cream);
  position: relative;
}

.couple-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.couple-person {
  text-align: center;
  max-width: 350px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.couple-person.visible {
  opacity: 1;
  transform: translateY(0);
}

.couple-photo-frame {
  width: 280px;
  height: 350px;
  margin: 0 auto 30px;
  position: relative;
  overflow: hidden;
  border-radius: 200px 200px 20px 20px;
  box-shadow: 0 20px 60px rgba(192, 108, 132, 0.2);
}

.couple-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.couple-photo-frame:hover img {
  transform: scale(1.05);
}

.couple-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold-light);
  border-radius: inherit;
  pointer-events: none;
}

.couple-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.couple-role {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose-primary);
  font-weight: 400;
}

.couple-heart-divider {
  font-family: var(--font-script);
  font-size: 4rem;
  color: var(--rose-light);
  display: flex;
  align-items: center;
  animation: heartPulse 2s ease-in-out infinite;
}

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

/* ===== QUOTE SECTION ===== */
.quote-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--rose-pale) 0%, var(--cream) 100%);
  text-align: center;
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  color: var(--rose-blush);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 10px;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dark);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.quote-source {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose-primary);
  margin-top: 25px;
}

/* ===== EVENTS / DETAILS SECTION ===== */
.events-section {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
}

.events-section .section-divider::after {
  background: var(--white);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 950px;
  margin: 0 auto;
}

.event-card {
  background: linear-gradient(145deg, var(--rose-pale), var(--cream));
  border: 1px solid var(--rose-blush);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(40px);
}

.event-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(192, 108, 132, 0.15);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--rose-primary), var(--gold));
}

.event-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.event-type {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--rose-primary);
  margin-bottom: 8px;
}

.event-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 25px;
}

.event-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-medium);
  font-weight: 300;
}

.event-detail-icon {
  font-size: 1.1rem;
  color: var(--rose-primary);
  width: 24px;
  flex-shrink: 0;
}

.event-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 14px 32px;
  background: var(--rose-primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.event-map-btn:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 34, 82, 0.3);
}

.event-map-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  padding: var(--section-padding);
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  aspect-ratio: 3/4;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}

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

.gallery-item:nth-child(2) {
  grid-row: span 1;
}

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(139, 34, 82, 0.3) 100%
  );
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

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

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* ===== RSVP / WISHES SECTION ===== */
.rsvp-section {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--white), var(--rose-pale));
  position: relative;
}

.rsvp-section .section-divider::after {
  background: var(--white);
}

.rsvp-form {
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rose-blush);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition-smooth);
  outline: none;
  font-weight: 300;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 3px rgba(192, 108, 132, 0.1);
}

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

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C06C84' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rsvp-btn {
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-deep));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  align-self: center;
  margin-top: 10px;
}

.rsvp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(139, 34, 82, 0.3);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
  animation: fadeUp 0.6s ease;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.form-success p {
  font-size: 0.9rem;
  color: var(--text-medium);
  font-weight: 300;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--charcoal);
  padding: 60px 20px 30px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(192, 108, 132, 0.1), transparent);
  pointer-events: none;
}

.footer-names {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--rose-light);
  margin-bottom: 10px;
}

.footer-date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 30px;
}

.footer-verse {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 20px;
}

.footer-credit {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  font-family: var(--font-heading);
}

/* ===== FLOATING ELEMENTS ===== */
.floating-petals {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.petal {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--rose-blush);
  border-radius: 50% 0 50% 50%;
  opacity: 0.4;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(100vh) rotate(720deg) translateX(100px);
    opacity: 0;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .navbar.scrolled {
    padding: 10px 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 248, 240, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--text-dark) !important;
    font-size: 0.85rem;
  }

  .nav-logo {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-names {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero-pretext {
    font-size: 0.7rem;
    letter-spacing: 5px;
  }

  .countdown-timer {
    gap: 15px;
  }

  .countdown-item {
    min-width: 85px;
    padding: 20px 15px;
  }

  .countdown-number {
    font-size: 2.5rem;
  }

  .couple-content {
    gap: 50px;
  }

  .couple-photo-frame {
    width: 220px;
    height: 280px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    padding: 40px 30px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-names {
    font-size: 2rem;
  }

  .countdown-timer {
    gap: 10px;
  }

  .countdown-item {
    min-width: 72px;
    padding: 18px 12px;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .countdown-unit {
    font-size: 0.6rem;
  }

  .couple-photo-frame {
    width: 200px;
    height: 260px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .event-card {
    padding: 35px 25px;
  }
}

/* ===== FANCY LINE ORNAMENTS ===== */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 15px auto;
  max-width: 200px;
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--rose-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rose-primary);
}
