/* ==========================================================================
   Events Section — Timeline
   ========================================================================== */
#events {
  background-color: var(--color-bg);
  position: relative;
  z-index: 1;
  padding-top: var(--space-sm);
}


/* Timeline cards get a subtle parallax float */
.timeline-entry {
  will-change: transform;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: var(--max-width);
  width: 100%;
  position: relative;
}

/* Day divider row */
.day-divider {
  grid-column: 1 / -1;
  padding: var(--space-xs) 0;
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.day-divider:first-child {
  margin-top: 0;
}

.day-divider::before,
.day-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-accent),
    transparent
  );
  opacity: 0.35;
}

.day-date {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-white);
  white-space: nowrap;
  padding: 0.5rem 1.4rem;
  border: none;
  border-radius: 20px;
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(200, 168, 78, 0.3);
}


.timeline-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  background: var(--color-card-bg);
  border: 2px solid var(--color-accent);
  border-radius: 32px;
  padding: var(--space-lg) var(--space-md);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.03),
    inset 0 0 30px rgba(200, 168, 78, 0.03);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  overflow: visible;
  max-width: 520px;
  margin: 0 auto;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(200, 168, 78, 0.35);
  border-radius: 26px;
  pointer-events: none;
}

.timeline-entry::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 42px;
  pointer-events: none;
  z-index: 2;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate(50,50)'%3E%3Cellipse cx='-16' cy='8' rx='7' ry='3.5' fill='%23a08c3c' opacity='0.7' transform='rotate(-35 -16 8)'/%3E%3Cellipse cx='-10' cy='14' rx='6' ry='3' fill='%23b09c4c' opacity='0.6' transform='rotate(-15 -10 14)'/%3E%3Cellipse cx='14' cy='-8' rx='7' ry='3.5' fill='%23a08c3c' opacity='0.7' transform='rotate(35 14 -8)'/%3E%3Cellipse cx='10' cy='-14' rx='6' ry='3' fill='%23b09c4c' opacity='0.6' transform='rotate(55 10 -14)'/%3E%3Cellipse cx='18' cy='6' rx='5' ry='2.5' fill='%23908040' opacity='0.5' transform='rotate(10 18 6)'/%3E%3Cg%3E%3Cellipse cx='0' cy='-8' rx='4' ry='8' fill='%23c8a84e' opacity='0.85'/%3E%3Cellipse cx='0' cy='-8' rx='4' ry='8' fill='%23c8a84e' opacity='0.75' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4' ry='8' fill='%23c8a84e' opacity='0.75' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4' ry='8' fill='%23c8a84e' opacity='0.75' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4' ry='8' fill='%23c8a84e' opacity='0.75' transform='rotate(288)'/%3E%3Ccircle r='4' fill='%23dfc06a' opacity='0.9'/%3E%3C/g%3E%3Cg transform='translate(-18,-6)'%3E%3Cellipse cx='0' cy='-5.5' rx='3' ry='5.5' fill='%23c8a84e' opacity='0.7'/%3E%3Cellipse cx='0' cy='-5.5' rx='3' ry='5.5' fill='%23c8a84e' opacity='0.6' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-5.5' rx='3' ry='5.5' fill='%23c8a84e' opacity='0.6' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-5.5' rx='3' ry='5.5' fill='%23c8a84e' opacity='0.6' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-5.5' rx='3' ry='5.5' fill='%23c8a84e' opacity='0.6' transform='rotate(288)'/%3E%3Ccircle r='2.8' fill='%23dfc06a' opacity='0.8'/%3E%3C/g%3E%3Cg transform='translate(16,12)'%3E%3Cellipse cx='0' cy='-4.5' rx='2.5' ry='4.5' fill='%23c8a84e' opacity='0.6'/%3E%3Cellipse cx='0' cy='-4.5' rx='2.5' ry='4.5' fill='%23c8a84e' opacity='0.5' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-4.5' rx='2.5' ry='4.5' fill='%23c8a84e' opacity='0.5' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-4.5' rx='2.5' ry='4.5' fill='%23c8a84e' opacity='0.5' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-4.5' rx='2.5' ry='4.5' fill='%23c8a84e' opacity='0.5' transform='rotate(288)'/%3E%3Ccircle r='2.2' fill='%23dfc06a' opacity='0.7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate(50,50) scale(-1,-1)'%3E%3Cellipse cx='-16' cy='8' rx='7' ry='3.5' fill='%23a08c3c' opacity='0.7' transform='rotate(-35 -16 8)'/%3E%3Cellipse cx='-10' cy='14' rx='6' ry='3' fill='%23b09c4c' opacity='0.6' transform='rotate(-15 -10 14)'/%3E%3Cellipse cx='14' cy='-8' rx='7' ry='3.5' fill='%23a08c3c' opacity='0.7' transform='rotate(35 14 -8)'/%3E%3Cellipse cx='10' cy='-14' rx='6' ry='3' fill='%23b09c4c' opacity='0.6' transform='rotate(55 10 -14)'/%3E%3Cellipse cx='18' cy='6' rx='5' ry='2.5' fill='%23908040' opacity='0.5' transform='rotate(10 18 6)'/%3E%3Cg%3E%3Cellipse cx='0' cy='-8' rx='4' ry='8' fill='%23c8a84e' opacity='0.85'/%3E%3Cellipse cx='0' cy='-8' rx='4' ry='8' fill='%23c8a84e' opacity='0.75' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4' ry='8' fill='%23c8a84e' opacity='0.75' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4' ry='8' fill='%23c8a84e' opacity='0.75' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4' ry='8' fill='%23c8a84e' opacity='0.75' transform='rotate(288)'/%3E%3Ccircle r='4' fill='%23dfc06a' opacity='0.9'/%3E%3C/g%3E%3Cg transform='translate(-18,-6)'%3E%3Cellipse cx='0' cy='-5.5' rx='3' ry='5.5' fill='%23c8a84e' opacity='0.7'/%3E%3Cellipse cx='0' cy='-5.5' rx='3' ry='5.5' fill='%23c8a84e' opacity='0.6' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-5.5' rx='3' ry='5.5' fill='%23c8a84e' opacity='0.6' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-5.5' rx='3' ry='5.5' fill='%23c8a84e' opacity='0.6' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-5.5' rx='3' ry='5.5' fill='%23c8a84e' opacity='0.6' transform='rotate(288)'/%3E%3Ccircle r='2.8' fill='%23dfc06a' opacity='0.8'/%3E%3C/g%3E%3Cg transform='translate(16,12)'%3E%3Cellipse cx='0' cy='-4.5' rx='2.5' ry='4.5' fill='%23c8a84e' opacity='0.6'/%3E%3Cellipse cx='0' cy='-4.5' rx='2.5' ry='4.5' fill='%23c8a84e' opacity='0.5' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-4.5' rx='2.5' ry='4.5' fill='%23c8a84e' opacity='0.5' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-4.5' rx='2.5' ry='4.5' fill='%23c8a84e' opacity='0.5' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-4.5' rx='2.5' ry='4.5' fill='%23c8a84e' opacity='0.5' transform='rotate(288)'/%3E%3Ccircle r='2.2' fill='%23dfc06a' opacity='0.7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-position: top -10px right -10px, bottom -10px left -10px;
  background-size: 75px 75px;
  background-repeat: no-repeat;
}

.timeline-entry:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.06);
}

.timeline-entry > img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--color-accent);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

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

.timeline-content h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.4rem;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
  font-weight: 400;
}


.timeline-content p {
  color: var(--color-text);
  line-height: 1.4;
}

.event-details {
  list-style: none;
  margin-top: var(--space-sm);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.event-details li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.venue-link {
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-accent);
  transition: color var(--duration-fast) var(--ease-out);
}

.venue-link:hover {
  color: var(--color-accent);
}



/* ==========================================================================
   Countdown Component
   ========================================================================== */
.countdown-display {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.countdown-digit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--color-heading);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

.countdown-digit.digit-changing {
  opacity: 0;
  transform: scale(0.85);
}

.countdown-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}

.celebratory-message {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-top: var(--space-md);
}

/* ==========================================================================
   RSVP Section
   ========================================================================== */
#rsvp {
  background-color: var(--color-bg-alt);
  text-align: center;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  min-height: 90vh;
  min-height: 90dvh;
  gap: var(--space-md);
}

.rsvp-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  padding: var(--space-lg) var(--space-xl);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.03);
  position: relative;
}

.rsvp-content::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(200, 168, 78, 0.2);
  border-radius: 10px;
  pointer-events: none;
}

.rsvp-content p {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  color: var(--color-heading);
  font-weight: 400;
}

.rsvp-content p:last-child {
  margin-bottom: 0;
}
