:root {
  --white: #ffffff;
  --beige: #f4efe9;
  --green: #1f3d2b;
  --gold: #c7b28a;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--beige);
  color: var(--green);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
}

section {
  padding: 100px 10%;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(31, 61, 43, 0.5), rgba(31, 61, 43, 0.5)),
    url('./assets/background.png') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);

  h1 {
    font-family: 'Mea Culpa', serif;
    font-size: 5rem;
    margin-bottom: 20px;
    animation: fadeDown 1.4s ease forwards;
  }

  p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: fadeUp 1.6s ease forwards;
  }
}

/* COUNTDOWN */
.countdown {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.countdown div {
  background: rgba(255, 255, 255, 0.15);
  padding: 15px 20px;
  border-radius: 10px;
  min-width: 70px;
  text-align: center;
  flex-shrink: 0;
}

.countdown span {
  font-size: 1.4rem;
  font-weight: 600;
  display: block;
  transition: transform 0.3s ease;
}

.countdown div:hover span {
  transform: scale(1.15);
}

@media (max-width: 480px) {
  .countdown span {
    font-size: 1.2rem;
  }

  .countdown div {
    padding: 10px 12px;
    min-width: 60px;
  }
}

/* INFO */
.info {
  background-color: var(--white);
  text-align: center;

  h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  perspective: 1000px;
}

.info-box {
  padding: 40px;
  border-radius: 20px;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  height: 360px;
  position: relative;
  background-color: transparent;

  .card-front,
  .card-back {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--beige);
  }

  .card-back {
    transform: rotateY(180deg);
  }
}

.info-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.info-box.flipped .card-front {
  transform: rotateY(180deg);
}

.info-box.flipped .card-back {
  transform: rotateY(0deg);
}

.flip-btn {
  width: 180px;
  margin-top: 20px;
  background-color: var(--green);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  bottom: 20px;
}

.flip-btn:hover {
  opacity: 0.9;
}

.flip-btn:active {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* QUOTE */
.quote {
  background-color: var(--beige);
  text-align: center;
}

.quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-style: italic;
  max-width: 900px;
  margin: auto;
  color: var(--green);
  position: relative;
}

.quote span {
  display: block;
  margin-top: 20px;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--gold);
  font-style: normal;
}

/* FORM */
.form-section {
  background-color: var(--white);
  text-align: center;
}

.form-container iframe {
  width: 100%;
  height: 1100px;
}

/* SCHEDULE */
.schedule {
  background-color: var(--green) !important;
  color: var(--white);
  text-align: center;

  h2 {
    margin-bottom: 40px;
  }
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--white);
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(44, 95, 77, 0.1);
}

.timeline-time {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--green);
}

/* CAROUSEL */
.gallery-section {
  background-color: var(--white);
  text-align: center;

  h2 {
    font-size: 2.5rem !important;
    margin-bottom: 40px;
  }
}

.carousel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: auto;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.8s ease;
}

.carousel-item {
  min-width: 100%;
  height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;

  img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
  }
}

.carousel-year {
  position: absolute;
  bottom: 25px;
  right: 25px;
  color: var(--white);
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  letter-spacing: 3px;
  z-index: 3;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.carousel-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(
    to top,
    rgba(54, 54, 54, 0.9),
    rgba(54, 54, 54, 0)
  );
  color: var(--white);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 60px 30px 80px;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 0 0 20px 20px;
  font-size: 1.4rem;
  text-align: right;
}

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

/* FAQ Section */
.section-faq {
  background-color: var(--beige);
  text-align: center;

  .container > h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(44, 95, 77, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  text-align: left;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.faq-question {
  padding: 1.5rem 2rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark-green);
  background: var(--white);
  position: relative;
  padding-right: 3rem;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--light-green);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--light-green);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding: 0 2rem 1.5rem;
  max-height: 200px;
}

/* FOOTER */
footer {
  background-color: #162a1f;
  color: var(--gold);
  text-align: center;
  padding: 30px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  section {
    padding: 80px 6%;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .form-container iframe {
    width: 100%;
    height: 1300px;
  }

  section {
    padding: 60px 5%;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 0.8rem;
  }

  .timeline-item {
    flex-direction: column !important;
  }

  .timeline-content {
    width: 100% !important;
  }

  .carousel-overlay {
    height: 250px;
    font-size: 1rem;
    padding: 20px 15px 50px;
  }

  .carousel-year {
    font-size: 1.5rem;
    bottom: 15px;
    right: 15px;
  }
}
