:root {
  --bg: #f4ede4;
  --card: #fff9f4;
  --accent: #6e1f2c;
  --gold: #d9b98e;
  --text: #3d302d;
  --white: #fff;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* PRELOADER */

#preloader {
  position: fixed;
  inset: 0;
  background: #f4ede4;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 1s;
}

.loader-ring {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(110, 31, 44, .2);
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#preloader h2 {
  margin-top: 25px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--accent);
  font-size: 38px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* HERO */

.hero {
  min-height: 100vh;
  position: relative;
  background-image: url(/assets/gallery.JPG);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(1.5px);
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero h1 {
  font-size: 90px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
}

.hero h1 span {
  color: var(--gold);
}

.hero-subtitle {
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-line {
  width: 120px;
  height: 1px;
  background: var(--gold);
  margin: 30px auto;
}

.hero-date {
  font-size: 30px;
}

.hero-parents {
  margin-top: 20px;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 16px 34px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: .4s;
  cursor: pointer;
}

.btn:hover {
  background: #8d2a39;
  transform: translateY(-3px);
}

/* ORNAMENTS */

.ornament {
  position: absolute;
  width: 220px;
  height: 220px;
  opacity: .12;
}

.ornament-top {
  top: 20px;
  left: 20px;
  background: url('assets/ornament-top.png') center/contain no-repeat;
}

.ornament-bottom {
  bottom: 20px;
  right: 20px;
  background: url('assets/ornament-bottom.png') center/contain no-repeat;
}

/* SECTIONS */

.section {
  padding: 50px 20px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 52px;
  margin-bottom: 50px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--accent);
}

/* GLASS CARD */

.glass-card {
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(18px);
  border-radius: 30px;
  padding: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
}

.text {
  text-align: center;
  font-size: 22px;
  line-height: 1.8;
}

/* COUNTDOWN */

.countdown {
  display: flex;
  justify-content: space-around;
  /* grid-template-columns:repeat(4,1fr);
  gap:25px; */
}

.count-box {
  /* background:white;
  border-radius:25px; */
  /* padding:40px 20px; */
  text-align: center;
  /* box-shadow:0 10px 30px rgba(0,0,0,.06); */
}

.count-box span {
  font-size: 54px;
  color: var(--accent);
  font-family: 'Cormorant Garamond', serif;
}

/* GALLERY */

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

.gallery-item {
  overflow: hidden;
  border-radius: 25px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: 1s;
}

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

.location {
  justify-content: center;
  text-align: center;
}

.location h2,
h5,
p {
  padding-top: 15px;
}

.location h5 {
  letter-spacing: 1px;
}

/* TIMELINE */

.timeline {
  display: grid;
  gap: 25px;
}

.timeline-item {
  display: flex;
  gap: 30px;
  align-items: center;
  background: white;
  padding: 30px;
  border-radius: 25px;
}

.timeline-time {
  font-size: 38px;
  color: var(--accent);
  min-width: 120px;
  font-family: 'Cormorant Garamond', serif;
}

/* FORM */

form {
  display: grid;
  gap: 20px;
}

input,
textarea,
select {
  padding: 18px;
  border-radius: 18px;
  border: none;
  background: white;
  font-size: 16px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 40px 20px;
}

/* ANIMATION */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* LANGUAGE */

.lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.lang-btn {
  border: none;
  padding: 10px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .7);
  cursor: pointer;
	color: black;
}

.lang-btn.active {
  background: var(--accent);
  color: white;
}

.footer {
  display: flex;
  justify-content: center;
  font-size: 32px;
}

.great-vibes-regular {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  padding: 0 30px;
}



/* MOBILE */

@media(max-width:768px) {

  /* .hero{
    background:
      linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),
      url('assets/mobile-hero.jpg') center/cover no-repeat;
  } */

  .hero h1 {
    font-size: 52px;
  }

  .section-title {
    font-size: 38px;
  }

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

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

  .glass-card {
    padding: 35px 25px;
  }

  .timeline-item {
    flex-direction: column;
    text-align: center;
  }

}

@media(max-width:480px) {

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

  .hero {
    background-image: url(/assets/img3.JPG);
background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  }

}