/* ======================
   Font Import
   ====================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ======================
   Color Theme Variables
   ====================== */
:root {
  --primary-color: #1a3a52;      /* Navy Blue */
  --secondary-color: #2c3e50;    /* Dark slate */
  --accent-color: #e8d7c3;       /* Light cream */
  --light-blue-bg: #e8f1f7;      /* Light blue for sections */
  --accent-color-secondary: #d4736b; /* Rose/coral for accents */
  --text-dark: #333333;          /* Dark text */
  --text-light: #ffffff;         /* Light text */
  --border-light: #e0e0e0;       /* Light border */
  --shadow: rgba(0, 0, 0, 0.1);  /* Shadow */
}

/* ======================
   Global Styles
   ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Palatino', 'Palatino Linotype', serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #F8F3E5;
}

/* ======================
   Language Toggle
   ====================== */
.language-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 1000;
  background: var(--text-light);
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
}

.lang-btn {
  padding: 6px 12px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.lang-btn.active {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

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

/* ======================
   Navigation Menu
   ====================== */
.nav-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  background: var(--text-light);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-icon {
  width: 20px;
  height: 2px;
  background: var(--primary-color);
  position: relative;
  transition: all 0.3s ease;
}

.nav-icon::before,
.nav-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--primary-color);
  left: 0;
  transition: all 0.3s ease;
}

.nav-icon::before {
  top: -6px;
}

.nav-icon::after {
  top: 6px;
}

/* Hamburger to X animation */
.nav-toggle.active .nav-icon {
  background: transparent;
}

.nav-toggle.active .nav-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active .nav-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-list {
  position: absolute;
  top: 54px;
  left: 0;
  background: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 180px;
}

.nav-list.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-list li a {
  display: block;
  padding: 12px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.nav-list li a:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

/* ======================
   Hero Section
   ====================== */
.hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.8), 0px 0px 4px rgba(0, 0, 0, 0.9);
}

.hero-date {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.8), 0px 0px 3px rgba(0, 0, 0, 0.9);
}

.hero-location {
  font-size: 1.2rem;
  text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.8), 0px 0px 3px rgba(0, 0, 0, 0.9);
}

/* ======================
   Countdown Section
   ====================== */
.countdown-section {
  padding: 40px 10px;
  background: #F8F3E5;
  text-align: center;
}

.countdown-container {
  max-width: 600px;
  margin: 0 auto;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 12px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1;
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ======================
   Buttons
   ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  font-family: 'Palatino', 'Palatino Linotype', serif;
  text-decoration: none;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ======================
   Modal
   ====================== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
  overscroll-behavior: contain;
  touch-action: none;
}

.modal-content {
  background-color: var(--text-light);
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 350px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 20px var(--shadow);
}

.modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.modal-buttons .btn {
  width: 100%;
  flex: 1;
}

.modal-btn-square {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-btn-square:hover {
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.calendar-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.close {
  position: absolute;
  top:5px;
  right: 8px;
  color: var(--text-dark);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

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

/* ======================
   RSVP Section
   ====================== */
.rsvp-section h2 {
  margin-bottom: 5px;
  text-align: center;
}

.form-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
}

.form-container iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ======================
   Section Styles
   ====================== */
section {
  padding: 80px 10px;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  color: var(--secondary-color);
  font-weight: 300;
  letter-spacing: 1px;
}

.event-day-section,
.transport-section,
.accommodation-section,
.restaurant-section,
.gifts-section,
.photos-section,
.rsvp-section {
  background: #F8F3E5;
}

/* ======================
   Event Tiles
   ====================== */
.event-tile {
  width: 100%;
  background: var(--text-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
}

.event-tile.no-image .tile-content {
  padding: 20px 20px;
}

.tile-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #FFFFFF; /* #F8F3E5;*/
  position: relative;
  overflow: hidden;
}

.tile-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}

.tile-content {
  padding: 15px 20px 30px;
}

.tile-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.account-number {
  font-size: 1rem;
  font-weight: bold;
  color: var(--primary-color);
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
  margin: 10px 0;
}

.event-time {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
}

.info-text {
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.8;
}

.info-text-last {
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.8;
}

.tile-content .btn {
  display: inline-flex;
  width: fit-content;
  margin: 15px auto 0;
}

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

.tile-content h3,
.tile-content p:not(.account-number),
.tile-content .info-text,
.tile-content .info-text-last,
.tile-content .event-time {
  text-align: left;
}

.bus-stops-list {
  list-style: disc;
  margin: 0 0 0 20px;
  padding: 0;
  text-align: left;
  color: var(--text-dark);
  line-height: 1.8;
}

.bus-stops-list li {
  margin-bottom: 5px;
}

.town-name {
  margin: 20px 0 5px 0;
  color: var(--primary-color);
}

.hotel-list {
  list-style: disc;
  margin: 0 0 0 20px;
  padding: 0;
  text-align: left;
  color: var(--text-dark);
  line-height: 1.8;
}

.hotel-list li {
  margin-bottom: 5px;
}

.gifts-section .tile-content,
.gifts-section .tile-content p {
  text-align: center;
}

.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-text {
  white-space: nowrap;
  font-weight: bold;
}

.transport-tile {
  width: 100%;
  background: var(--text-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  margin-bottom: 30px;
}

.transport-tile:last-child {
  margin-bottom: 0;
}

/* ======================
   Gifts Section
   ====================== */
.gifts-content {
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
}

.gift-message {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-dark);
  line-height: 1.8;
}

/* ======================
   Photos Section
   ====================== */
.photos-section {
  text-align: center;
}

.photos-description {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-dark);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ======================
   Footer
   ====================== */
.footer {
  background: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
  padding: 60px 10px;
  position: relative;
  z-index: 10;
}

.footer p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-info {
  margin-top: 30px;
}

.contact-info p {
  margin: 10px 0;
}

.contact-info a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--light-blue-bg);
}

/* ======================
   Fade In Animation
   ====================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ======================
   Mobile Responsiveness
   ====================== */
@media (max-width: 768px) {
  .nav-menu {
    top: 10px;
    left: 10px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-list {
    min-width: 160px;
  }

  .nav-list li a {
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .language-toggle {
    top: 10px;
    right: 10px;
    gap: 4px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 12px;
  }

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

  .hero-date {
    font-size: 1.1rem;
  }

  .hero-location {
    font-size: 1rem;
  }

  section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 30px 15px;
  }

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

  .countdown-label {
    font-size: 0.8rem;
  }

  .tile-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .tile-content {
    padding: 0px 20px 20px;
  }

  .tile-content h3 {
    font-size: 1.5rem;
  }

  .modal-content {
    width: 95%;
    padding: 30px;
  }

  .footer {
    padding: 40px 10px;
  }

  section {
    padding: 60px 10px 30px;
  }

  .rsvp-section {
    padding: 60px 10px 30px;
  }

  .countdown-section {
    padding: 30px 10px;
  }
}

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

  .hero-date {
    font-size: 1rem;
  }

  .hero-location {
    font-size: 0.9rem;
  }

  section h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .countdown {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 20px 5px;
  }

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

  .countdown-label {
    font-size: 0.65rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .tile-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .gift-message {
    font-size: 1rem;
  }

  .account-number {
    font-size: 1rem;
  }
}

/* ======================
   Desktop Styles
   ====================== */
@media (min-width: 769px) {
  .event-tile,
  .transport-tile,
  .form-container,
  .gift-message,
  .photos-description {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
  }
}
