/* =========================
   GLOBAL STYLES
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #fffaf7;
  color: #4b3d36;
  overflow-x: hidden;
}

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

.section {
  padding: 110px 0;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

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

.section-title h2 {
  font-size: 3rem;
  color: #9d7b58;
  margin-bottom: 15px;
}

.section-title p {
  color: #7d6b63;
}

/* =========================
   NAVBAR
========================= */

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: 0.4s ease;
}

.header.scrolled {
  background: rgba(255, 250, 247, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.navbar {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-family: "Playfair Display", serif;
  color: white;
}

.header.scrolled .logo {
  color: #9d7b58;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.header.scrolled .nav-links a {
  color: #6b5649;
}

.nav-links a:hover {
  color: #d4b48c;
}

/* =========================
   HAMBURGER
========================= */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
}

.header.scrolled .hamburger span {
  background: #6b5649;
}

/* =========================
   HERO SECTION
========================= */

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;

  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=1600&auto=format&fit=crop");

  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.5)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  animation: fadeUp 1.5s ease;
}

.hero-subtitle {
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 6rem;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #f6d5b7;
}

.hero h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.hero-text {
  max-width: 700px;
  margin: auto;
  margin-bottom: 40px;
}

.hero-btn {
  display: inline-block;
  padding: 16px 40px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: 0.4s;
}

.hero-btn:hover {
  transform: translateY(-5px);
  background: #d4b48c;
}

/* =========================
   FLOATING ELEMENTS
========================= */

.floating {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  animation: float 7s infinite ease-in-out;
}

.floating-1 {
  width: 120px;
  height: 120px;
  top: 20%;
  left: 10%;
}

.floating-2 {
  width: 70px;
  height: 70px;
  bottom: 20%;
  right: 15%;
}

.floating-3 {
  width: 90px;
  height: 90px;
  top: 25%;
  right: 25%;
}

/* =========================
   COUNTDOWN
========================= */

.countdown-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.time-card {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 40px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: 0.4s;
}

.time-card:hover {
  transform: translateY(-10px);
}

.time-card h3 {
  font-size: 3rem;
  color: #9d7b58;
}

.time-card span {
  color: #7d6b63;
}

/* =========================
   STORY SECTION
========================= */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: 0.4s;
}

.timeline-content:hover {
  transform: translateY(-8px);
}

.timeline-content h3 {
  color: #9d7b58;
  margin-bottom: 15px;
}

/* =========================
   EVENTS
========================= */

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.event-card {
  background: white;
  padding: 50px;
  text-align: center;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: 0.4s;
}

.event-card:hover {
  transform: translateY(-10px);
}

.event-icon {
  width: 80px;
  height: 80px;
  margin: auto;
  margin-bottom: 25px;
  border-radius: 50%;
  background: linear-gradient(to right, #f3d7bf, #f7ede3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.event-icon i {
  font-size: 2rem;
  color: #9d7b58;
}

.event-card h3 {
  margin-bottom: 15px;
}

/* =========================
   GALLERY
========================= */

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

.gallery-item {
  overflow: hidden;
  border-radius: 20px;
}

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

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

/* =========================
   RSVP FORM
========================= */

.rsvp-form {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 50px;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 25px;
}

.rsvp-form input,
.rsvp-form select {
  width: 100%;
  padding: 18px;
  border: 1px solid #eadfd6;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(to right, #eec99c, #f9d3b2);
  color: #9d7b58;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.4s;
}

.submit-btn:hover {
  transform: translateY(-5px);
}

.success-message {
  margin-top: 20px;
  text-align: center;
  color: green;
  display: none;
}

/* =========================
   MUSIC BUTTON
========================= */

.music-btn {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #d4b48c;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* =========================
   FOOTER
========================= */

.footer {
  background: #f8efe8;
  padding: 70px 0;
  text-align: center;
}

.footer h2 {
  color: #9d7b58;
  margin-bottom: 15px;
}

.social-icons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #9d7b58;
  transition: 0.4s;
}

.social-icons a:hover {
  transform: translateY(-5px);
}

/* =========================
   REVEAL ANIMATION
========================= */

.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: 1s;
}

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

/* =========================
   KEYFRAMES
========================= */

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-25px);
  }

  100% {
    transform: translateY(0px);
  }
}

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

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

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

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

  .countdown-wrapper,
  .gallery-grid,
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    padding: 40px;
    transition: 0.4s;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: #6b5649 !important;
  }

  .hamburger {
    display: flex;
  }

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

  .hero h3 {
    font-size: 1.5rem;
  }

  .countdown-wrapper,
  .gallery-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

}