/*====================================================
                WEDDING PREMIUM
====================================================*/

/*======================
RESET
======================*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;

  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;

  background: #faf8f5;

  color: #444;

  overflow-x: hidden;

  line-height: 1.8;
}

img {
  display: block;

  width: 100%;
}

a {
  text-decoration: none;
}

button {
  border: none;

  cursor: pointer;

  font-family: inherit;
}

/*======================
VARIABLES
======================*/

:root {
  --gold: #c8a35d;

  --gold-dark: #9d7a39;

  --white: #ffffff;

  --text: #555555;

  --shadow: 0 20px 45px rgba(0, 0, 0, 0.08);

  --radius: 28px;
}

/*======================
CONTAINER
======================*/

.container {
  width: min(1200px, 92%);

  margin: auto;
}

/*======================
SECTION
======================*/

section {
  padding: 90px 0;
}

.section-subtitle {
  display: block;

  text-align: center;

  letter-spacing: 4px;

  text-transform: uppercase;

  color: var(--gold);

  margin-bottom: 12px;

  font-size: 0.9rem;
}

section h2 {
  font-family: "Cormorant Garamond", serif;

  font-size: clamp(2.8rem, 5vw, 4.5rem);

  text-align: center;

  color: #3b2b24;
}

.divider {
  width: 90px;

  height: 4px;

  margin: 25px auto 60px;

  border-radius: 50px;

  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/*======================
PRELOADER
======================*/

#preloader {
  position: fixed;

  inset: 0;

  display: flex;

  justify-content: center;

  align-items: center;

  background: linear-gradient(135deg, #3a2d27, #191412);

  z-index: 99999;
}

.invitation-card {
  width: min(500px, 92%);

  padding: 60px 40px;

  border-radius: 35px;

  text-align: center;

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.15);
}

.invitation-card span {
  color: white;

  letter-spacing: 4px;

  text-transform: uppercase;
}

.invitation-card h1 {
  font-family: "Cormorant Garamond", serif;

  font-size: clamp(4rem, 8vw, 5.5rem);

  margin: 20px 0;

  color: white;
}

.invitation-card h1 span {
  color: var(--gold);
}

.invitation-card p {
  color: rgb(255, 255, 255);

  margin-bottom: 35px;
}

#openInvitation {
  padding: 18px 38px;

  border-radius: 50px;

  background: linear-gradient(135deg, var(--gold), var(--gold-dark));

  color: white;

  font-size: 1rem;

  transition: 0.3s;
}

#openInvitation:hover {
  transform: translateY(-5px);
}

/*======================
HERO
======================*/

#hero {
  position: relative;

  height: 100vh;

  overflow: hidden;

  display: flex;

  justify-content: center;

  align-items: center;
}

.hero-image {
  position: absolute;

  inset: 0;

  background: url("assets/images/hero.jpg") center center/cover no-repeat;

  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6));
}

.hero-content {
  position: relative;

  z-index: 10;

  text-align: center;

  color: white;

  width: min(850px, 90%);
}

.hero-content small {
  letter-spacing: 4px;

  text-transform: uppercase;
}

.hero-content h1 {
  font-family: "Cormorant Garamond", serif;

  font-size: clamp(4rem, 10vw, 8rem);

  line-height: 1;

  margin: 20px 0;
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: white;
  margin-bottom: 25px;
}

.hero-content p {
  margin: 30px auto;

  max-width: 650px;
}

.hero-btn {
  display: inline-block;

  padding: 18px 42px;

  border-radius: 50px;

  background: linear-gradient(135deg, var(--gold), var(--gold-dark));

  color: white;

  font-weight: 600;

  transition: 0.35s;
}

.hero-btn:hover {
  transform: translateY(-5px);
}

.scroll-down {
  position: absolute;

  bottom: 35px;

  left: 50%;

  transform: translateX(-50%);

  font-size: 2rem;

  color: white;

  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -12px);
  }
}
/*====================================================
COUNTDOWN
====================================================*/

#countdown {
  background: #ffffff;
}

.countdown-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px;

  margin-top: 40px;
}

.count-card {
  position: relative;

  background: #fff;

  border-radius: 30px;

  padding: 40px 20px;

  text-align: center;

  box-shadow: var(--shadow);

  transition: 0.35s;

  overflow: hidden;
}

.count-card::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 5px;

  background: linear-gradient(to right, var(--gold), #f3d998);
}

.count-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.count-card h1 {
  font-family: "Cormorant Garamond", serif;

  font-size: 4rem;

  color: var(--gold);

  line-height: 1;
}

.count-card span {
  display: block;

  margin-top: 12px;

  color: #666;

  letter-spacing: 2px;

  text-transform: uppercase;

  font-size: 0.85rem;
}

/*====================================================
STORY
====================================================*/

#story {
  background: #faf8f5;
}

.story-grid {
  display: grid;

  grid-template-columns: 1.1fr 1fr;

  gap: 60px;

  align-items: center;
}

.story-images {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;
}

.story-image {
  overflow: hidden;

  border-radius: 24px;

  box-shadow: var(--shadow);
}

.story-image.large {
  grid-column: span 2;

  height: 430px;
}

.story-image:not(.large) {
  height: 230px;
}

.story-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 1s;
}

.story-image:hover img {
  transform: scale(1.08);
}

.story-content {
  background: white;

  padding: 45px;

  border-radius: 30px;

  box-shadow: var(--shadow);
}

.story-content h3 {
  font-family: "Cormorant Garamond", serif;

  font-size: 2.5rem;

  color: #3b2b24;

  margin-bottom: 25px;
}

.story-content p {
  margin-bottom: 20px;

  color: #666;
}

.story-content blockquote {
  margin-top: 30px;

  padding-left: 20px;

  border-left: 4px solid var(--gold);

  font-style: italic;

  color: #555;
}

/*====================================================
HOVER EFFECT
====================================================*/

.story-content,
.story-image {
  transition: 0.35s;
}

.story-content:hover,
.story-image:hover {
  transform: translateY(-8px);
}

/*====================================================
RESPONSIVE
====================================================*/

@media (max-width: 992px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .story-images {
    grid-template-columns: 1fr;
  }

  .story-image.large {
    grid-column: auto;

    height: 320px;
  }

  .story-image {
    height: 260px !important;
  }

  .story-content {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .countdown-grid {
    grid-template-columns: 1fr;
  }

  .story-content h3 {
    font-size: 2rem;
  }
}
/*====================================================
TIMELINE
====================================================*/

#timeline {
  background: #ffffff;
}

.timeline {
  position: relative;

  max-width: 950px;

  margin: 0 auto;

  padding: 30px 0;
}

.timeline::before {
  content: "";

  position: absolute;

  left: 50%;

  top: 0;

  transform: translateX(-50%);

  width: 4px;

  height: 100%;

  background: linear-gradient(var(--gold), #ecd39d);

  border-radius: 20px;
}

.timeline-item {
  width: 50%;

  position: relative;

  margin-bottom: 60px;
}

.timeline-item:nth-child(odd) {
  left: 0;

  padding-right: 70px;
}

.timeline-item:nth-child(even) {
  left: 50%;

  padding-left: 70px;
}

.timeline-icon {
  position: absolute;

  top: 25px;

  width: 60px;

  height: 60px;

  border-radius: 50%;

  background: white;

  display: flex;

  justify-content: center;

  align-items: center;

  color: var(--gold);

  font-size: 1.4rem;

  box-shadow: var(--shadow);

  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-icon {
  right: -30px;
}

.timeline-item:nth-child(even) .timeline-icon {
  left: -30px;
}

.timeline-card {
  background: white;

  padding: 30px;

  border-radius: 24px;

  box-shadow: var(--shadow);

  transition: 0.35s;
}

.timeline-card:hover {
  transform: translateY(-8px);
}

.timeline-card .time {
  display: inline-block;

  color: var(--gold);

  font-weight: 600;

  margin-bottom: 15px;

  letter-spacing: 2px;
}

.timeline-card h3 {
  font-family: "Cormorant Garamond", serif;

  font-size: 2rem;

  margin-bottom: 10px;
}

/*====================================================
GALERIE
====================================================*/

#gallery {
  background: #faf8f5;
}

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  gap: 22px;
}

.gallery-item {
  overflow: hidden;

  border-radius: 24px;

  box-shadow: var(--shadow);

  cursor: pointer;

  aspect-ratio: 1/1;

  background: #fff;
}

.gallery-item img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 1s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/*====================================================
LIGHTBOX
====================================================*/

#lightbox {
  position: fixed;

  inset: 0;

  display: none;

  justify-content: center;

  align-items: center;

  background: rgba(0, 0, 0, 0.92);

  z-index: 99999;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  width: min(92%, 950px);

  max-height: 85vh;

  object-fit: contain;

  border-radius: 20px;
}

#closeLightbox,
#prevImage,
#nextImage {
  position: absolute;

  width: 60px;

  height: 60px;

  border-radius: 50%;

  border: none;

  background: rgba(255, 255, 255, 0.18);

  color: white;

  cursor: pointer;

  backdrop-filter: blur(10px);

  transition: 0.3s;
}

#closeLightbox:hover,
#prevImage:hover,
#nextImage:hover {
  background: var(--gold);
}

#closeLightbox {
  top: 30px;

  right: 30px;
}

#prevImage {
  left: 30px;

  top: 50%;

  transform: translateY(-50%);
}

#nextImage {
  right: 30px;

  top: 50%;

  transform: translateY(-50%);
}

/*====================================================
VIDEO
====================================================*/

#video {
  background: white;
}

.video-card {
  max-width: 900px;

  margin: auto;

  border-radius: 30px;

  overflow: hidden;

  box-shadow: var(--shadow);
}

.video-card video {
  width: 100%;

  display: block;
}

/*====================================================
RESPONSIVE
====================================================*/

@media (max-width: 992px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;

    left: 0 !important;

    padding-left: 90px;

    padding-right: 0;
  }

  .timeline-icon {
    left: 0 !important;

    right: auto !important;
  }
}

@media (max-width: 768px) {
  #closeLightbox {
    top: 15px;

    right: 15px;
  }

  #prevImage {
    left: 10px;
  }

  #nextImage {
    right: 10px;
  }

  .timeline-card {
    padding: 22px;
  }
}
/*====================================================
LOCATION
====================================================*/

#location {
  background: #faf8f5;
}

.location-card {
  max-width: 750px;

  margin: auto;

  padding: 60px 45px;

  background: #fff;

  border-radius: 30px;

  text-align: center;

  box-shadow: var(--shadow);

  transition: 0.35s;
}

.location-card:hover {
  transform: translateY(-8px);
}

.location-icon {
  width: 90px;

  height: 90px;

  margin: 0 auto 30px;

  border-radius: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

  background: rgba(200, 163, 93, 0.15);
}

.location-icon i {
  color: var(--gold);

  font-size: 40px;
}

.location-card h3 {
  font-family: "Cormorant Garamond", serif;

  font-size: 2.5rem;

  color: #3b2b24;

  margin-bottom: 20px;
}

.location-card p {
  color: #666;

  margin-bottom: 35px;
}

.map-btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  padding: 18px 40px;

  border-radius: 60px;

  color: white;

  background: linear-gradient(135deg, var(--gold), var(--gold-dark));

  transition: 0.35s;
}

.map-btn:hover {
  transform: translateY(-5px);
}

/*====================================================
FOOTER
====================================================*/

footer {
  background: #241c18;

  color: white;

  text-align: center;

  padding: 80px 20px;
}

footer h2 {
  font-family: "Cormorant Garamond", serif;

  font-size: clamp(3rem, 5vw, 5rem);
}

footer h2 span {
  color: var(--gold);
}

footer p {
  margin: 20px 0;

  color: #ddd;
}

footer small {
  color: var(--gold);
}

/*====================================================
MUSIC BUTTON
====================================================*/

#musicToggle {
  position: fixed;

  right: 25px;

  bottom: 25px;

  width: 60px;

  height: 60px;

  border-radius: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

  background: linear-gradient(135deg, var(--gold), var(--gold-dark));

  color: white;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);

  z-index: 999;

  transition: 0.3s;
}

#musicToggle:hover {
  transform: scale(1.08);
}

/*====================================================
PETALS
====================================================*/

#petals {
  position: fixed;

  inset: 0;

  pointer-events: none;

  overflow: hidden;

  z-index: 2;
}

.petal {
  position: absolute;

  width: 18px;

  height: 18px;

  background: linear-gradient(#ffd6e5, #ff9fbe);

  border-radius: 60% 40% 60% 40%;
}

/*====================================================
PARTICLES
====================================================*/

#particles {
  position: fixed;

  inset: 0;

  pointer-events: none;

  overflow: hidden;

  z-index: 1;
}

.spark {
  position: absolute;

  width: 4px;

  height: 4px;

  border-radius: 50%;

  background: var(--gold);

  box-shadow: 0 0 15px var(--gold);
}

/*====================================================
ANIMATIONS
====================================================*/

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.hero-btn,
.map-btn,
.count-card,
.timeline-card,
.story-content {
  animation: float 6s ease-in-out infinite;
}

/*====================================================
RESPONSIVE
====================================================*/

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  .hero-content {
    width: 92%;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-btn,
  .map-btn {
    width: 100%;
  }

  .location-card {
    padding: 35px 25px;
  }

  #musicToggle {
    width: 52px;

    height: 52px;

    right: 15px;

    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .count-card h1 {
    font-size: 3rem;
  }

  .story-content {
    padding: 25px;
  }

  .timeline-card {
    padding: 20px;
  }
}

/*====================================================
OVERFLOW FIX
====================================================*/

html,
body {
  overflow-x: hidden;
}

section {
  overflow: hidden;
}

img,
video {
  max-width: 100%;

  height: auto;
}

/*====================================================
SCROLLBAR
====================================================*/

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--gold);

  border-radius: 20px;
}

::-webkit-scrollbar-track {
  background: #f3f0ea;
}

/*====================================================
SELECTION
====================================================*/

::selection {
  background: var(--gold);

  color: white;
}

.progress-bar {
  position: fixed;

  top: 0;

  left: 0;

  width: 0;

  height: 4px;

  background: linear-gradient(90deg, var(--gold), #f4d58d);

  z-index: 999999;
}
