:root {
  --color-navy: #1a2744;
  --color-navy-dark: #0f1829;
  --color-navy-light: #2a3a5c;
  --color-gold: #c9a227;
  --color-gold-light: #e8c547;
  --color-cream: #f5f2eb;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-soft: 0 4px 20px rgba(26, 39, 68, 0.1);
  --shadow-medium: 0 8px 30px rgba(26, 39, 68, 0.15);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
}

.btn-primary:hover {
  background-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-full {
  width: 100%;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition-smooth);
}

.nav.scrolled {
  background-color: var(--color-navy);
  box-shadow: var(--shadow-soft);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition-smooth);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-cta {
  padding: 10px 20px;
  background-color: var(--color-gold);
  color: var(--color-navy-dark) !important;
  border-radius: 4px;
}

.nav-cta:hover {
  background-color: var(--color-gold-light);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/20260513_161303.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: grayscale(100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 24, 41, 0.7) 0%,
    rgba(26, 39, 68, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  animation: fadeInUp 1s ease-out;
}

.hero-preheading {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.date-day {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-gold);
}

.date-year {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 0.2em;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 1;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.section-title-center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 60px;
}

.about {
  background-color: var(--color-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 3px solid var(--color-gold);
  border-radius: 8px;
  z-index: -1;
}

.about-lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.about-content p {
  margin-bottom: 24px;
  color: var(--color-text-light);
}

.event-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.highlight-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.highlight-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.highlight-text strong {
  font-weight: 600;
  color: var(--color-navy);
}

.highlight-text span {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.schedule {
  background-color: var(--color-white);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-navy-light));
}

.timeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 114px;
  top: 8px;
  width: 14px;
  height: 14px;
  background-color: var(--color-gold);
  border: 3px solid var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.timeline-time {
  flex-shrink: 0;
  width: 100px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: right;
}

.timeline-content {
  flex-grow: 1;
  padding-left: 20px;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
}

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

.gallery {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.gallery .section-title {
  color: var(--color-white);
}

.gallery .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item-large {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 39, 68, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

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

.gallery-overlay span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

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

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-smooth);
}

.lightbox-close:hover {
  color: var(--color-gold);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  transition: color var(--transition-smooth);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-gold);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.venue {
  background-color: var(--color-cream);
}

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.venue-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.venue-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.venue-item p {
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.venue-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.venue-map iframe {
  display: block;
}

.rsvp {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
}

.rsvp .section-title {
  color: var(--color-white);
}

.rsvp-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.rsvp-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.8;
}

.rsvp-contact h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.rsvp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 40px;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-cream);
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

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

.rsvp-form .btn {
  grid-column: 1 / -1;
  margin-top: 16px;
}

.footer {
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-social p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.footer-tribute {
  font-style: italic;
  color: var(--color-gold) !important;
}

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

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

@media (max-width: 1024px) {
  .about-grid,
  .venue-grid,
  .rsvp-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image::after {
    display: none;
  }

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

  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background-color: var(--color-navy);
    padding: 80px 40px;
    gap: 24px;
    transition: right var(--transition-smooth);
  }

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

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 60px 0;
  }

  .event-highlights {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
    gap: 16px;
    padding-left: 50px;
  }

  .timeline-item::before {
    left: 14px;
  }

  .timeline-time {
    width: auto;
    text-align: left;
  }

  .timeline-content {
    padding-left: 0;
  }

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

  .gallery-item-large {
    grid-column: span 1;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .hero-scroll {
    display: none;
  }

  .hero-background {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}