:root {
  --wedding-color: #ae8bb5;
  --wedding-color-hover: #8a5aa0;
  --wedding-blush: #f8f1ec;
  
  --bg-primary: #ede6de;
  --bg-secondary: #f3ede5;
  --bg-tertiary: #ebe4da;
  --text-primary: #343a40;
  --text-secondary: #6c757d;
  --text-muted: #6c757d;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 1.25rem 3rem rgba(0, 0, 0, 0.08);
  --navbar-bg: rgba(250, 246, 241, 0.95);
  --navbar-text: #343a40;
  --overlay-gradient: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  --icon-circle-bg: #f8f1ec;
  --card-bg: #fffdf9;
  --gift-card-gradient: linear-gradient(135deg, #fffdf9 0%, #f8f1ec 100%);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
}

.main-content {
  padding-top: 80px;
}

.flash-wrapper {
  padding-top: 1rem;
}

.navbar {
  transition: all 0.3s ease;
  background-color: var(--navbar-bg) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: var(--navbar-bg) !important;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
}

.navbar-brand {
  color: var(--navbar-text) !important;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand-cursive {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--wedding-color) !important;
}

.brand-icon {
  font-size: 1.75rem;
  animation: pulse 2s ease-in-out infinite;
}

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

.brand-text {
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary), var(--wedding-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@supports not (-webkit-background-clip: text) {
  .brand-text {
    color: var(--wedding-color);
  }
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: var(--navbar-text) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--wedding-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--wedding-color) !important;
  background-color: var(--bg-secondary);
}

.nav-link:hover::after {
  width: 60%;
}

.nav-link-rsvp {
  background-color: var(--wedding-color) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem !important;
  border-radius: 2rem;
}

.nav-link-rsvp::after {
  display: none;
}

.nav-link-rsvp:hover {
  background-color: var(--wedding-color-hover) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.navbar-actions {
  gap: 0.75rem !important;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.25rem;
  padding: 0;
}

.btn-icon:hover {
  background-color: var(--wedding-color);
  border-color: var(--wedding-color);
  transform: rotate(20deg) scale(1.1);
}

.btn-flag {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-flag:hover {
  transform: scale(1.2);
}

.btn-language {
  border: 2px solid var(--wedding-color);
  color: var(--wedding-color);
  background-color: transparent;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-language:hover {
  background-color: var(--wedding-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.navbar-toggler {
  border-color: var(--border-color);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(174, 139, 181, 0.25);
}

@media (max-width: 991px) {
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .navbar-actions {
    padding: 1rem 0;
    justify-content: center !important;
  }
}

.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  z-index: 2;
}

.hero-names {
  font-family: 'Great Vibes', cursive;
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-name-amp {
  margin: 0 0.5rem;
}

@media (max-width: 768px) {
  .hero-names {
    flex-direction: column;
    gap: 0;
  }
  
  .hero-name-amp {
    margin: 0.25rem 0;
  }
}

.hero-date {
  color: var(--wedding-color);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.05);
  }
  20% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.05);
  }
  40% {
    transform: scale(1);
  }
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  filter: brightness(0.7);
}

.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-gradient);
  z-index: 1;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-decoration: none;
  cursor: pointer;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 3px solid rgba(255, 255, 255, 0.8);
  border-bottom: 3px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  animation: scrollArrow 2s infinite;
  opacity: 0;
}

.scroll-arrow:nth-child(1) {
  animation-delay: 0s;
}

.scroll-arrow:nth-child(2) {
  animation-delay: 0.2s;
  margin-top: -10px;
}

.scroll-arrow:nth-child(3) {
  animation-delay: 0.4s;
  margin-top: -10px;
}

@keyframes scrollArrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

.scroll-indicator:hover .scroll-arrow {
  border-color: rgba(255, 255, 255, 1);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bg-light {
  background-color: var(--bg-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--icon-circle-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.info-tile {
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.gift-icon {
  font-size: 3rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

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

.person-card {
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.person-photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid var(--card-bg);
  box-shadow: var(--shadow-md);
}

.rsvp-section .card {
  border-radius: 1.25rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.rsvp-section h2 {
  color: var(--text-primary);
}

.rsvp-section .text-muted {
  color: var(--text-muted) !important;
}

.rsvp-section .card-body {
  background-color: var(--card-bg);
}

/* RSVP Completion page */
.rsvp-complete-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.rsvp-complete-card {
  padding: 4rem 3rem;
  background: var(--card-bg);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.rsvp-complete-icon {
  font-size: 5rem;
  display: inline-block;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.rsvp-complete-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rsvp-complete-message {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rsvp-complete-details {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.form-label {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-text {
  color: var(--text-muted);
}

.form-control,
.form-select {
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--bg-primary);
  border-color: var(--wedding-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.25rem rgba(174, 139, 181, 0.25);
}

.form-check-input {
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: var(--wedding-color);
  border-color: var(--wedding-color);
}

.form-check-input:focus {
  border-color: var(--wedding-color);
  box-shadow: 0 0 0 0.25rem rgba(174, 139, 181, 0.25);
}

.form-check-label {
  color: var(--text-primary);
  cursor: pointer;
  margin-left: 0.5rem;
}

.btn-primary {
  background-color: var(--wedding-color);
  border-color: var(--wedding-color);
}

.btn-primary:hover {
  background-color: var(--wedding-color-hover);
  border-color: var(--wedding-color-hover);
}

.btn-outline-secondary {
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.letter-spaced {
  letter-spacing: 0.35rem;
}

/* Footer */
footer {
  background-color: var(--bg-secondary) !important;
  color: var(--text-muted) !important;
  border-top: 1px solid var(--border-color);
}

/* Timeline styles */
.timeline {
  position: relative;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--wedding-color), var(--wedding-color-hover));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 4px solid var(--wedding-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
}

.timeline-content {
  width: 50%;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 0;
  padding-right: 2.5rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
  padding-left: 3.5rem;
}

/* Arrows pointing to timeline */
.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -20px;
  border-width: 15px 0 15px 20px;
  border-color: transparent transparent transparent var(--card-bg);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -20px;
  border-width: 15px 20px 15px 0;
  border-color: transparent var(--card-bg) transparent transparent;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.timeline-time {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--wedding-color);
  color: #fff;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-location {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.timeline-description {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.timeline-note {
  font-style: italic;
}

/* Info icon header for cards above timeline */
.info-icon-header {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Error page styles */
.error-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.error-card {
  padding: 3rem 2rem;
  background: var(--card-bg);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.error-icon {
  font-size: 5rem;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

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

.error-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.error-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.error-details {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.error-example {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--wedding-color);
  font-size: 0.9rem;
  word-break: break-all;
}

.error-help {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

@media (max-width: 991px) {
  .timeline::before {
    left: 40px;
  }
  
  .timeline-marker {
    left: 40px;
  }
  
  .timeline-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .timeline-content {
    width: calc(100% - 100px);
    margin-left: 100px !important;
    padding: 1.25rem !important;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 100px !important;
    margin-right: 0 !important;
  }
  
  .timeline-content::before {
    left: -20px !important;
    right: auto !important;
    border-width: 15px 20px 15px 0 !important;
    border-color: transparent var(--card-bg) transparent transparent !important;
  }
  
  .timeline-content-large {
    padding: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-section {
    padding-top: 5rem;
  }

  .hero-section .container {
    padding: 4rem 1rem;
  }
  
  .timeline-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    border-width: 3px;
  }
  
  .timeline-title {
    font-size: 1.1rem;
  }
  
  .timeline-time {
    font-size: 0.8rem;
  }
}
