@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;1,400&display=swap');

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

body {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-style: italic;
  background: #0a0a0a;
  color: #f5f3ef;
  overflow-x: hidden;
  letter-spacing: 0.25px;
  line-height: 1.9;
}

/* — Hero — */
.hero {
  position: relative;
  background: url('IMG_0018.JPG') center center/cover no-repeat;
  height: 130vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.85) 100%),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.65) 25%,
      rgba(0, 0, 0, 0.85) 65%,
      rgba(0, 0, 0, 0.97) 100%
    );
  backdrop-filter: blur(10px);
  z-index: 1;
}

.hero .content {
  position: relative;
  z-index: 2;
  animation: fadeIn 2.5s ease;
  max-width: 740px;
  margin: 0 auto;
  padding: 9rem 1.5rem 8rem;
}

.hero h1 {
  font-family: 'EB Garamond', serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2.2rem;
  color: #f3eee6;
}

.subtitle {
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(235, 224, 208, 0.9);
  margin-bottom: 2.4rem;
}

.details {
  color: #bfa97d;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 3.5rem;
}

/* — RSVP Form — */
.rsvp-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(197, 173, 138, 0.25);
  border-radius: 12px;
  padding: 2.5rem 2.8rem;
  width: min(90%, 500px);
  margin: 5rem auto 0;
  z-index: 3;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.rsvp-form input,
.rsvp-form select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #f0ebe4;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus {
  border-color: #c5ad8a;
  background: rgba(255, 255, 255, 0.09);
}

.rsvp-form button {
  margin-top: 1.4rem;
  width: 100%;
  padding: 1rem;
  background: none;
  border: 1px solid rgba(197, 173, 138, 0.6);
  color: #c5ad8a;
  font-family: 'EB Garamond', serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.rsvp-form button:hover {
  background: #c5ad8a;
  color: #0a0a0a;
}

/* — L’Esprit de la Soirée — */
.esprit {
  background: #0b0b0b;
  color: rgba(235, 224, 208, 0.85);
  text-align: center;
  padding: 8rem 2rem;
}

.esprit h2 {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: #c5ad8a;
  letter-spacing: 0.06em;
}

.esprit p {
  max-width: 700px;
  margin: 0 auto 4rem;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* — Cinematic Carousel — */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 5rem auto;
  overflow: hidden;
}

.carousel {
  display: flex;
  gap: 0.75rem;
  scroll-behavior: smooth;
  overflow-x: auto;
  padding: 1rem 1.5rem;
  scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel img {
  flex: 0 0 auto;
  width: 260px;
  height: 340px;
  object-fit: cover;
  border-radius: 6px;
  filter:
    brightness(0.85)
    contrast(1.1)
    saturate(0.9)
    sepia(0.25)
    hue-rotate(-5deg);
  box-shadow:
    inset 0 0 40px rgba(35, 25, 15, 0.75),
    0 0 20px rgba(0, 0, 0, 0.3);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.carousel img:hover {
  filter: brightness(1) contrast(1.05) saturate(1);
  transform: scale(1.02);
}

/* Black Fade Edges */
.carousel-wrapper::before,
.carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0));
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0));
}

/* Responsive Carousel */
@media (max-width: 768px) {
  .carousel img {
    width: 220px;
    height: 300px;
  }
  .carousel-wrapper::before,
  .carousel-wrapper::after {
    width: 80px;
  }
}

/* — Invitation — */
.invitation {
  background: #0a0a0a;
  color: rgba(230, 223, 210, 0.85);
  padding: 8rem 1.5rem 9rem;
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 2;
  letter-spacing: 0.03em;
}

/* — Footer — */
footer {
  background-color: #0a0a0a;
  text-align: center;
  padding: 4rem 1.5rem;
  font-size: 0.85rem;
  color: rgba(193, 181, 161, 0.7);
  letter-spacing: 0.05em;
}

/* — Animations — */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* — Fade-in on Scroll — */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

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