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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #050202;
  color: #fff;
  overflow-x: hidden;
}

.overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(150, 0, 0, 0.35), transparent 35%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.20), transparent 30%);
  pointer-events: none;
  z-index: -1;
}

/* HERO */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 60px 8%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.85)),
    url("assets/images/invitation-main.webp") center/cover no-repeat;
}

.hero-content {
  max-width: 720px;
}

.hero-subtitle {
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.hero-age {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: -10px;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.35),
    0 0 30px rgba(212, 175, 55, 0.18);
}

.hero-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 400;
  color: #f7d46a;
  line-height: 0.95;
  margin-bottom: 24px;
  text-shadow:
    0 0 10px rgba(247, 212, 106, 0.7),
    0 0 28px rgba(212, 175, 55, 0.45),
    0 0 70px rgba(184, 134, 11, 0.3);
}

.hero-description {
  max-width: 560px;
  color: #f5e7c6;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.event-card {
  background: rgba(5, 5, 5, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 24px;
  padding: 26px;
  max-width: 560px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.event-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.event-item:last-child {
  border-bottom: none;
}

.label {
  color: #d4af37;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1px;
}

.value {
  color: #fff;
  line-height: 1.6;
}

/* COUNTDOWN */

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  margin-bottom: 10px;
}

.countdown div {
  min-width: 110px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.35);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.countdown strong {
  display: block;
  font-size: 2rem;
  color: #f6d46b;
  font-family: "Cormorant Garamond", serif;
}

.countdown span {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* BUTTONS */

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37, #fff0a8, #b8860b);
  color: #180b00;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 38px rgba(212, 175, 55, 0.65);
}

.btn-secondary {
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #f8d978;
  background: rgba(0, 0, 0, 0.45);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-3px);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: min(420px, 100%);
  border-radius: 34px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow:
    0 0 45px rgba(212, 175, 55, 0.25),
    0 25px 90px rgba(0, 0, 0, 0.75);
}

/* INVITATION */

.invitation-section,
.gallery-section,
.rsvp-section {
  padding: 90px 8%;
}

.invitation-container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 50px;
}

.invitation-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.65);
}

.invitation-text h2,
.rsvp-container h2,
.section-title {
  font-family: "Cormorant Garamond", serif;
  color: #f8d978;
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 20px;
}

.invitation-text p,
.rsvp-container p {
  color: #f5e7c6;
  font-size: 1.08rem;
  line-height: 1.9;
  max-width: 650px;
  margin-bottom: 18px;
}

/* GALLERY */

.gallery-section {
  background: linear-gradient(180deg, rgba(5, 2, 2, 0), rgba(80, 0, 0, 0.18));
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.gallery-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

/* RSVP */

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

.rsvp-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 55px 30px;
  border-radius: 34px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.9)),
    url("assets/images/margarita-casino-seated.webp") center/cover no-repeat;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.72);
}

.rsvp-container p {
  margin-left: auto;
  margin-right: auto;
}

/* FOOTER */

footer {
  padding: 28px 8%;
  text-align: center;
  color: #d7c9a3;
  background: #020101;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

/* REVEAL ANIMATIONS */

.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

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

/* BUTTON CLICK EFFECT */

.clicked {
  transform: scale(0.96);
}

/* RESPONSIVE */

@media (max-width: 950px) {

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 70px;
  }

  .hero-content,
  .event-card,
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons,
  .countdown {
    justify-content: center;
  }

  .invitation-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .invitation-image {
    order: 2;
  }

  .invitation-text {
    order: 1;
  }

  .invitation-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 520px;
  }
}

@media (max-width: 560px) {

  .hero {
    padding: 45px 6%;
  }

  .event-card {
    padding: 20px;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .countdown {
    justify-content: center;
  }

  .countdown div {
    min-width: 130px;
  }

  .invitation-section,
  .gallery-section,
  .rsvp-section {
    padding: 65px 6%;
  }

  .gallery-item img {
    height: 430px;
  }
}