@font-face {
  font-family: "PinyonScript";
  src: url("PinyonScript-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "GreatVibes";
  src: url("GreatVibes-Regular.ttf") format("truetype");
}

body {
  font-family: Georgia, serif;
  background-color: #f8f6f3;
  color: #333;
  overflow-x: hidden;
  padding-top: 80px;
}

html {
  overflow-x: hidden;
}

.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0 1rem;
  background: #f8f6f3;
  text-align: center;
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-title {
  font-family: "PinyonScript", cursive;
  font-size: 2.5rem;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.9rem;
  padding-bottom: 1rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom: 1px solid #333;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 30px;
  margin: 0.5rem auto;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #333;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s ease;
}

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

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

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

section {
  min-height: 100vh;
  padding: 160px 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h2 {
  font-family: "PinyonScript", cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  max-width: 600px;
  line-height: 1.6;
  font-size: 1rem;
}

#home {
  position: relative;
  height: 100vh;
  background-image: url("header_large.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
}

#home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 1;
}

.welcome-content {
  position: relative;
  z-index: 2;
}

#home h2 {
  font-size: 3rem;
  font-weight: normal;
  font-family: "PinyonScript", cursive;
  margin-bottom: 20px;
  text-transform: none;
}

#home p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

#home .scroll-arrow {
  font-size: 2rem;
  margin-top: 20px;
}

.countdown-text {
  font-size: 2rem;
  font-family: "PinyonScript", cursive;
  margin-top: 20px;
}

#our-story {
  background: #f0eae2;
}

#wedding-party {
  background: #e8e8e8;
}

#schedule {
  background: #d4d4d4;
}

#gallery {
  background: #c0c0c0;
}

#rsvp {
  position: relative;
  height: 100vh;
  background-image: url("bench.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
  color: white;
}

#rsvp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 1;
}

#rsvp .rsvp-content {
  position: relative;
  z-index: 2;
}

#rsvp h2 {
  font-size: 3rem;
  font-weight: normal;
  font-family: "PinyonScript", cursive;
  margin-bottom: 20px;
  text-transform: none;
}

#rsvp p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

#faqs {
  max-width: 800px;
  margin: 0 auto;
}

#faqs h2 {
  font-size: 2em;
  text-align: center;
  margin-bottom: 0.5em;
}

#faqs > p {
  font-size: 1em;
  text-align: center;
  margin-bottom: 2em;
  color: #555;
}

.faq-list {
  border-top: 1px solid #ddd;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  width: 100%;
  box-sizing: border-box;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-size: 1.2em;
  padding: 1em 3em 1em 1em;
  text-align: left;
  cursor: pointer;
  position: relative;
  word-wrap: break-word;
  white-space: normal;
  font-family: inherit;
  color: #000000;
}

.faq-question::after {
  content: "+";
  font-size: 1.5em;
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  display: none;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0 1em 1em;
  color: #444;
  box-sizing: border-box;
}

.faq-answer p {
  text-align: left;
}

.faq-item.active .faq-answer {
  display: block;
}

#faqs .faq-list,
#faqs .faq-item,
#faqs .faq-question,
#faqs .faq-answer {
  width: 100%;
  text-align: left;
}

#faqs .faq-list {
  display: block;
}

.scroll-arrow {
  font-size: 2rem;
  margin-top: 20px;
  animation: bounce 2s infinite;
}

.rsvp-top {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid white;
  padding: 10px 40px;
  font-size: 20px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
  margin-top: 20px;
}

.rsvp-top:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: #fff;
}

.rsvp-top:focus {
  outline: none;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

#countdown {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.unit {
  text-align: center;
}

.number {
  font-size: 2rem;
  background: #fff;
  border-radius: 5px;
  padding: 0.3em 0.6em;
  display: inline-block;
  min-width: 40px;
  transition: transform 0.3s ease-in-out;
}

.number.flip {
  transform: rotateX(360deg);
}

.story-section {
  display: flex;
  justify-content: center;
  max-width: 1000px;
  margin: 40px auto;
  gap: 30px;
  flex-wrap: wrap;
}

.story-heading {
  flex: 1;
  min-width: 200px;
  font-family: "PinyonScript", cursive;
  text-align: right;
}

.story-heading h2 {
  font-size: 1.8rem;
  margin: 0;
}

.story-heading p {
  font-size: 1rem;
  margin-top: 8px;
  color: #777;
}

.story-date {
  font-family: "GreatVibes", cursive;
  font-size: 1.3rem;
  color: #2c2c2c;
  letter-spacing: 1px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

.story-divider {
  width: 1px;
  background: #aaa;
  min-height: 180px;
}

.story-content {
  flex: 2;
  min-width: 300px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.party {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  width: 100%;
}

.side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.timeline {
  position: relative;
  max-width: 600px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #333;
  transform: translateX(-50%);
}

.event {
  width: 50%;
  padding: 20px;
  position: relative;
}

.event.left {
  left: 0;
  text-align: right;
}

.event.right {
  left: 50%;
  text-align: left;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  max-width: 1000px;
  width: 100%;
}

.gallery-grid img {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.gallery-grid img.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 20px;
  background: #f0f0f0;
  font-size: 0.9rem;
}

.location-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.location-card {
  background: white;
  max-width: 600px;
  min-height: 550px;
  margin: 30px auto;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-card iframe {
  width: 100%;
  height: 250px;
  border-radius: 12px;
}

.location-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin-bottom: 15px;
  color: #d6336c;
}

.location-card p {
  margin: 10px 0;
  font-size: 18px;
}

.party {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.person {
  text-align: center;
  margin-bottom: 20px;
  flex-basis: 25%;
  box-sizing: border-box;
}

.person img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 5px;
}

.person h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.person p {
  font-size: 14px;
  color: #777;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    padding: 0 1rem;
    box-sizing: border-box;
    text-align: center;
  }

  .header-title {
    font-size: 2rem;
    padding: 1rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
  }

  #home {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }

  #home h2 {
    font-size: 3rem;
    font-family: "PinyonScript", cursive;

    font-weight: normal;
    margin-bottom: 20px;
    text-transform: none;
  }

  #home p {
    font-size: 1.2rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    background-color: #f8f6f3;
    z-index: 999;
    padding: 1rem 0;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .countdown-text {
    font-size: 1.5rem;
  }

  .timeline::before {
    left: 10px;
    transform: none;
  }

  .event {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 20px;
  }

  .story-section {
    flex-direction: column;
    text-align: center;
  }

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

  .story-heading {
    text-align: center;
    padding-right: 0;
    margin-bottom: 15px;
  }

  .story-divider {
    display: none;
  }

  #schedule {
    padding: 40px 10px;
  }

  .location-card {
    padding: 20px;
    margin: 20px 10px;
  }

  .location-card iframe {
    height: 250px;
  }
}
