:root {
  --primary-color: #414042;
  --background-color: #e0dedd;
  --white: #fff;
  --gray: #666;
  --light-gray: #676668;
  --accent-color: #414042;
  --font-primary: 'Cardo', serif;
  --font-display: 'Antic Didone', serif;
  --border-radius: 4px;
  --shadow-light: 0 1px 2px rgba(255, 255, 255, 0.5);
  --transition: all 0.3s ease;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Utility Classes */
.glass-card {
  background: var(--glass-bg);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  opacity: 0.8;
}

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

.margin-2-0-3 {
  margin: 2rem 0 3rem;
}

.padding-2 {
  padding: 2rem;
}

/* Font Loading */
@font-face {
  font-family: 'Cardo';
  font-display: swap;
}

@font-face {
  font-family: 'Antic Didone';
  font-display: swap;
}

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

body {
  font-family: var(--font-primary);
  background: var(--background-color);
  color: var(--primary-color);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 50%;
  background: url('assets/gemini-generated.webp') right top no-repeat;
  background-size: contain;
  filter: saturate(0.8);
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 50%;
  background: url('assets/gemini-generated.webp') right top no-repeat;
  background-size: contain;
  transform: rotate(180deg);
  z-index: -2;
  pointer-events: none;
  filter: saturate(0.8);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 58px);
  text-transform: uppercase;
  letter-spacing: 6px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: var(--shadow-light);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 32px);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: normal;
  margin-bottom: 30px;
  text-align: center;
}

h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: normal;
  font-style: italic;
  margin: 20px 0 10px;
}

a {
  color: var(--primary-color);
  transition: var(--transition);
}

/* Countdown Timer */
.countdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: nowrap;
  flex-direction: row;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 20px;
  border-radius: var(--border-radius);
  min-width: 80px;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1;
}

.countdown-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-top: 5px;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 20px;
  flex-wrap: wrap;
}

nav a {
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 18px;
  border: 1px solid var(--primary-color);
  padding: 8px 16px;
  transition: var(--transition);
  position: relative;
}

nav a:hover {
  background: var(--primary-color);
  color: var(--background-color);
}

nav a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

nav a:active {
  background: var(--primary-color);
  color: var(--background-color);
  outline: none;
  transition: none;
  transform: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.date-location {
  font-size: clamp(16px, 4vw, 20px);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Sections */
section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.event {
  background: var(--white);
  padding: 30px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(65, 64, 66, 0.1);
}

.event h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: normal;
  margin-bottom: 15px;
}

.event p {
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--background-color);
  padding: 12px 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--light-gray);
  transform: translateY(-1px);
}

.btn:active {
  background: var(--light-gray);
  transform: translateY(0px);
  transition: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  margin-top: auto;
}

/* Menu page */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.container h1 {
  font-size: 42px;
  letter-spacing: 4px;
  font-weight: normal;
  text-align: center;
  margin-bottom: 40px;
}

.container h2 {
  font-size: 24px;
  letter-spacing: 2px;
  margin: 30px 0 15px;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 5px;
  text-align: left;
}

.container h3 {
  font-size: 18px;
  margin: 20px 0 10px;
}

.container ul {
  list-style: none;
  margin-left: 20px;
}

.container li {
  margin-bottom: 5px;
}

.container p {
  margin-bottom: 10px;
}

.choice {
  font-style: italic;
  color: var(--gray);
  margin: 10px 0;
}

.back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  transition: var(--transition);
}

.back:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  body::after {
    position: absolute;
  }

  body {
    padding-bottom: 100px;
  }

  nav {
    gap: 30px !important;
  }

  .hero {
    padding-top: 260px;
  }

  .container h1 {
    padding-top: 120px;
  }

  .countdown {
    gap: 15px;
  }

  .countdown-item {
    min-width: 60px;
    padding: 10px 15px;
  }

  .countdown-number {
    font-size: 24px;
  }

  .btn {
    padding: 12px 15px !important;
  }

  .btn-hotel {
    margin-left: 0 !important;
    display: block;
    width: fit-content;
    white-space: nowrap;
  }

  footer {
    padding: 0 20px !important;
    position: relative;
    top: -20px;
  }

  footer p {
    display: none;
  }

  footer::before {
    content: 'D & K';
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--primary-color);
    width: 100px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
  }

  footer::after {
    content: '2.20.2027';
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 2px;
  }
}

/* Honeymoon Fund Page Styles */
.donation-header {
  text-align: center;
  margin: 2rem 0 1rem;
}

.donation-header img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  filter: brightness(1.1) contrast(0.95) saturate(1.2);
  opacity: 0.69;
}

.honeymoon-intro p {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: var(--text-light);
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  align-items: stretch;
}

.payment-option {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.payment-option:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.payment-option h2 {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.payment-option p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.payment-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  border-color: var(--btn-color);
  background: linear-gradient(45deg, var(--btn-color), var(--btn-color-dark));
}

.payment-button:hover {
  background: linear-gradient(45deg, var(--btn-color-dark), var(--btn-color-darker));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--btn-shadow);
}

.paypal-button {
  --btn-color: #0070ba;
  --btn-color-dark: #003087;
  --btn-color-darker: #002973;
  --btn-shadow: rgba(0, 112, 186, 0.3);
}

.venmo-button {
  --btn-color: #3d95ce;
  --btn-color-dark: #1a73a8;
  --btn-color-darker: #0a6398;
  --btn-shadow: rgba(61, 149, 206, 0.3);
}

.cashapp-button {
  --btn-color: #00d632;
  --btn-color-dark: #00a426;
  --btn-color-darker: #009422;
  --btn-shadow: rgba(0, 214, 50, 0.3);
  white-space: nowrap;
}

.zelle-button {
  --btn-color: #6d1ed4;
  --btn-color-dark: #4c0e99;
  --btn-color-darker: #420d88;
  --btn-shadow: rgba(109, 30, 212, 0.3);
}

/* QR Code Images */
.qr-code {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem auto;
  display: block;
  background-color: white;
  padding: 8px;
}

/* Payment Info Containers - Consolidated */
.payment-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.payment-info p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.payment-info strong {
  color: var(--accent);
}

.thank-you {
  margin: 2rem 0 3rem;
}

.thank-you p {
  margin: 1rem 0;
  color: var(--text-light);
}

.thank-you p:last-child {
  font-size: 1.2rem;
  color: var(--accent);
  font-family: var(--font-display);
}

@media (max-width: 768px) {
  .payment-options {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .payment-option {
    padding: 1.5rem;
  }

  .payment-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .honeymoon-intro {
    padding: 1.5rem;
    margin: 1rem 0 2rem;
  }
}

/* Photo Gallery Styles */
.photos-intro p {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: var(--text-light);
}

.photo-section {
  margin: 3rem 0;
}

.photo-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary-color);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.photo-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-weight: 600;
}

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

.photos-footer {
  margin: 3rem 0;
}

.photos-footer p {
  margin: 1rem 0;
  color: var(--text-light);
}

.photos-footer p:last-child {
  font-size: 1.2rem;
  color: var(--accent);
  font-family: var(--font-display);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1rem;
  margin-top: 1rem;
  color: white;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close {
  top: 20px;
  right: 30px;
}

.lightbox-prev {
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.lightbox-next {
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Mobile responsiveness for photo gallery */
@media (max-width: 768px) {
  .photo-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  .photo-item img {
    height: 200px;
  }

  .photos-intro,
  .photos-footer {
    padding: 1.5rem;
    margin: 1rem 0 2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    right: 15px;
    top: 15px;
  }

  .lightbox-content {
    max-width: 95%;
  }
}

/* Fullscreen Page Styles (Save the Date & Invitation) */
/* Prevent scrolling on fullscreen pages */
body.fullscreen-page {
  overflow: hidden;
  height: 100vh;
}

.fullscreen-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  text-align: center;
  overflow: hidden;
}

.fullscreen-content {
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fullscreen-content a {
  text-decoration: none;
  border: none;
  outline: none;
  display: inline-block;
  transition: transform 0.2s ease;
}

.fullscreen-content a:hover {
  transform: translateY(-3px) scale(1.01);
}

.fullscreen-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: var(--card-radius);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  transition: var(--transition);
}

/* Desktop styling for fullscreen images */
@media (min-width: 769px) {
  .fullscreen-container {
    padding: 10px;
    max-width: 98vw !important;
  }

  .fullscreen-content {
    max-width: 98vw !important;
    max-height: 95vh !important;
    width: 98vw;
    height: auto;
  }

  .fullscreen-image {
    max-width: 96vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .fullscreen-container {
    padding: 5px;
    height: 100vh;
    overflow: hidden;
  }

  .fullscreen-content {
    max-width: 95vw;
    max-height: 90vh;
  }

  .fullscreen-image {
    border-radius: var(--card-radius);
    padding: 0.5rem;
    max-height: 85vh;
  }
}

/* Save the Date Link Styling */
.save-date-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  display: inline-block;
  margin-top: 1rem;
}

.save-date-link:hover {
  background: var(--glass-bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}