html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

body {
  background-color: #fdebeb;
  color: #bd1736;
}

/* Fade-in Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Default */
section {
  width: 100%;
  padding: 80px 5%;
  background-color: rgba(255, 255, 255, 0.5);
  text-align: center;
  animation: fadeInUp 1s ease forwards;
  box-sizing: border-box;
}

.section-content {
  max-width: 1400px;
  margin: auto;
  padding: 0;
  box-sizing: border-box;
}

/* Header Controls */
.header-controls {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1002;
  pointer-events: none;
}

.header-controls .hamburger,
.header-controls .lang-toggle {
  pointer-events: all;
}

/* Language Toggle */
.lang-toggle button {
  margin: 0 5px;
  padding: 5px 12px;
  font-size: 0.9em;
  border-radius: 20px;
  border: 1px solid #bd1736;
  background: #fdebeb;
  cursor: pointer;
  color: #bd1736;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-toggle button:hover {
  background: #bd1736;
  color: #fdebeb;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 24px;
  background: #fdebeb;
  color: #bd1736;
  border: 1px solid #bd1736;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  z-index: 1001;
}

.hamburger:hover {
  background: #bd1736;
  color: #fdebeb;
}

.hamburger.open {
  transform: rotate(90deg);
}

/* Navbar */
.navbar {
  width: 100%;
  background: #fdebeb;
  backdrop-filter: blur(10px);
  box-shadow: none;
  z-index: 1003;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #bd1736;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

.navbar a:hover {
  background: #bd1736;
  color: #fdebeb;
}

/* Hero Section */
.hero {
  width: 100%;
  height: 100vh;
  background-image: url('1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  box-sizing: border-box;
  margin-top: 0px;
}

.hero-content {
  width: 100%;
  max-width: 1000px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 80%;
}

.hero-text {
  margin-top: 140px;
  color: white;
  animation: fadeInUp 1s ease forwards;
}

.hero-text h1 {
  font-family: 'Rufina', serif;
  font-size: 4em;
  margin: 0;
}

.hero-text h2 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 2em;
  margin: 0;
}

.hero-text h3,
.hero-text p {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.3em;
  margin-top: 10px;
}

.hero-button {
  margin-bottom: 30px;
}

/* RSVP Button */
.rsvp-button a {
  display: inline-block;
  background-color: #bd1736;
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.5em;
  font-weight: 400;
  overflow: hidden;
  white-space: nowrap;
  max-width: 150px;
  transition: max-width 0.4s ease, background-color 0.3s ease, transform 0.1s ease;
  text-align: center;
}

.rsvp-button a:hover {
  background-color: #a64747;
  max-width: 450px;
}

.rsvp-button a:active {
  transform: scale(0.96);
}

/* Page Background */
.page-background {
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-blend-mode: overlay;
}

/* Schedule Section */
.schedule-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  padding: 0 5%;
  box-sizing: border-box;
}

.schedule-item {
  flex: 1 1 300px;
  max-width: 400px;
  background: transparent;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
}

.schedule-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.timeline {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.timeline-event {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.timeline-time {
  flex: 0 0 30%;
  text-align: right;
  font-weight: bold;
  font-size: 1em;
  color: #bd1736;
  padding-right: 20px;
}

.timeline-line {
  flex: 0 0 2px;
  height: 50px;
  background-color: #bd1736;
}

.timeline-content {
  flex: 0 0 50%;
  font-size: 1.1em;
  color: #4a2c2a;
  text-align: left;
  padding-left: 20px;
}

/* Map */
.map-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-button-container {
  margin-top: 20px;
}

.map-button {
  display: inline-block;
  background-color: #bd1736;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 1em;
  font-weight: 400;
  transition: background-color 0.3s ease;
}

.map-button:hover {
  background-color: #a64747;
}

/* Guest Guide Section */
#guest-guide {
  padding: 80px 5%;
  background-color: rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
}

#guest-guide h2 {
  text-align: center;
  font-family: 'Tenor Sans', sans-serif;
  font-size: 2em;
  margin-bottom: 40px;
}

.guest-guide-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.guest-box {
  flex: 1 1 300px;
  max-width: 400px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 360px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.guest-box h3 {
  font-family: 'Tenor Sans', sans-serif;
  color: #bd1736;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.guest-box p {
  font-family: 'Work Sans', sans-serif;
  font-size: 1em;
  line-height: 1.6;
  color: #4a2c2a;
}

/* Q&A Section */
#qa {
  padding: 80px 5%;
  background-color: rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
}

#qa h2 {
  text-align: center;
  font-family: 'Tenor Sans', sans-serif;
  font-size: 2em;
  margin-bottom: 40px;
}

.qa-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.qa-entry {
  text-align: left;
}

.qa-question {
  font-weight: bold;
  margin-bottom: 10px;
}

.qa-answer {
  line-height: 1.6;
}

.qa-answer a.rsvp-link {
  color: #bd1736;
  text-decoration: underline;
  font-weight: normal;
}

.qa-answer strong {
  font-weight: bold;
}


/* Footer */
footer {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  font-size: 0.9em;
  color: #bd1736;
  margin-top: 60px;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    z-index: 999;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    background: #fdebeb;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    z-index: 1001;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .navbar ul.open {
    display: flex;
  }

  .navbar ul li {
    padding: 10px 0;
    border-top: 1px solid #eee;
    width: 100%;
    text-align: center;
  }

  .hero-content {
    padding: 10px;
    height: 90%;
  }

  .hero-text h1 {
    font-size: 2.5em;
  }

  .hero-text h2 {
    font-size: 1.5em;
  }

  .hero-text h3,
  .hero-text p {
    font-size: 1em;
  }

  .rsvp-button {
    font-size: 1.2em;
    padding: 12px 24px;
  }

  .schedule-container {
    flex-direction: column;
    padding: 0 5%;
  }

  .schedule-item {
    width: 100%;
    max-width: 100%;
  }

  .timeline-event {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .timeline-time {
    flex: 0 0 30%;
    text-align: right;
  }

  .timeline-line {
    flex: 0 0 2px;
    height: 30px;
  }

  .timeline-content {
    flex: 0 0 50%;
    text-align: left;
  }

  .guest-guide-container {
    flex-direction: column;
  }

  .guest-box {
    max-width: 100%;
    width: 100%;
    min-height: auto;
  }
}
