/* =========================
   Google Font
========================= */

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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fad0c4);
  overflow-x: hidden;
  color: #fff;
}

/* =========================
Loader
========================= */

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #ff4b7d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.heart-loader {
  width: 80px;
  height: 80px;
  background: #fff;
  position: relative;
  transform: rotate(-45deg);
  animation: pulse 1s infinite;
}

.heart-loader::before,
.heart-loader::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
}

.heart-loader::before {
  top: -40px;
}

.heart-loader::after {
  left: 40px;
}

@keyframes pulse {
  0% {
    transform: rotate(-45deg) scale(1);
  }

  50% {
    transform: rotate(-45deg) scale(1.2);
  }

  100% {
    transform: rotate(-45deg) scale(1);
  }
}

/* =========================
Navbar
========================= */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  z-index: 1000;
}

.logo {
  font-size: 32px;
  font-family: "Great Vibes", cursive;
}

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

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

nav a:hover {
  color: #ff1744;
}

/* =========================
Hero
========================= */

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 70px;
  font-family: "Great Vibes", cursive;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.hero p {
  width: 700px;
  max-width: 90%;
  line-height: 1.8;
  font-size: 20px;
}

.hero button {
  margin-top: 40px;
  padding: 18px 50px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  background: #fff;
  color: #ff4b7d;
  font-size: 18px;
  font-weight: bold;
  transition: 0.4s;
}

.hero button:hover {
  transform: translateY(-5px);

  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.4);
}

/* =========================
Section
========================= */

section {
  padding: 120px 10%;
}

section h1 {
  text-align: center;

  font-size: 55px;

  margin-bottom: 60px;

  font-family: "Great Vibes", cursive;
}

/* =========================
Timeline
========================= */

.timeline {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 30px;
}

.card {
  background: rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(15px);

  padding: 30px;

  border-radius: 25px;

  transition: 0.4s;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card:hover {
  transform: translateY(-12px);

  background: rgba(255, 255, 255, 0.3);
}

.card h2 {
  margin-bottom: 15px;

  font-size: 26px;
}

.card p {
  line-height: 1.8;
}

/* =========================
Gallery
========================= */

.slider {
  position: relative;

  max-width: 900px;

  margin: auto;

  overflow: hidden;

  border-radius: 25px;
}

.slide {
  width: 100%;

  display: none;

  border-radius: 25px;
}

.slide.active {
  display: block;

  animation: fade 1s;
}

@keyframes fade {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}

#prev,
#next {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  background: rgba(255, 255, 255, 0.3);

  border: none;

  color: white;

  font-size: 35px;

  padding: 15px 20px;

  cursor: pointer;

  border-radius: 50%;
}

#prev {
  left: 20px;
}

#next {
  right: 20px;
}

#prev:hover,
#next:hover {
  background: white;

  color: #ff4b7d;
}
/* ===========================
   LOVE LETTER
=========================== */

.letter {
  max-width: 900px;
  margin: auto;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(15px);
  padding: 50px;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.letter p {
  font-size: 22px;
  line-height: 2;
  text-align: center;
  min-height: 250px;
}

/* ===========================
   LOVE COUNTER
=========================== */

.timer {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.timer div {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.4s;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.timer div:hover {
  transform: translateY(-10px);
}

.timer span {
  font-size: 55px;
  font-weight: bold;
}

.timer p {
  margin-top: 10px;
  font-size: 20px;
}

/* ===========================
   REASONS
=========================== */

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.reason {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(15px);
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  font-size: 22px;
  transition: 0.4s;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.reason:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.3);
}

/* ===========================
   SURPRISE
=========================== */

#surprise {
  text-align: center;
}

#loveBtn {
  padding: 18px 60px;
  border: none;
  border-radius: 40px;
  font-size: 22px;
  cursor: pointer;
  background: #ffffff;
  color: #ff4b7d;
  font-weight: bold;
  transition: 0.4s;
}

#loveBtn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
}

#message {
  display: none;
  margin-top: 50px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 40px;
  animation: showMessage 0.8s;
}

#message h2 {
  font-size: 42px;
  margin-bottom: 20px;
  font-family: "Great Vibes", cursive;
}

#message p {
  font-size: 22px;
  line-height: 2;
}

@keyframes showMessage {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

footer {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 100px;
}

footer h2 {
  font-size: 45px;
  font-family: "Great Vibes", cursive;
  margin-bottom: 15px;
}

footer p {
  font-size: 18px;
  opacity: 0.9;
}

/* ===========================
   SCROLLBAR
=========================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #ffc1d6;
}

::-webkit-scrollbar-thumb {
  background: #ff4b7d;
  border-radius: 20px;
}

/* ===========================
   GLOW EFFECT
=========================== */

.card,
.reason,
.timer div,
#loveBtn,
.hero button {
  transition: 0.4s;
}

.card:hover,
.reason:hover,
.timer div:hover,
.hero button:hover,
#loveBtn:hover {
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(255, 105, 180, 0.5);
}

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

@media (max-width: 900px) {
  .hero h1 {
    font-size: 50px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 18px;
  }

  section h1 {
    font-size: 42px;
  }

  nav {
    flex-direction: column;
    gap: 20px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .timer div {
    width: 140px;
    height: 140px;
  }

  .timer span {
    font-size: 40px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero button {
    width: 100%;
  }

  #prev,
  #next {
    font-size: 24px;
    padding: 10px 15px;
  }

  .letter {
    padding: 30px;
  }

  .letter p {
    font-size: 18px;
  }

  .reason {
    font-size: 18px;
  }

  #message h2 {
    font-size: 30px;
  }

  #message p {
    font-size: 18px;
  }
}

@keyframes fly {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(-120vh) scale(0.4);
    opacity: 0;
  }
}

@keyframes mouseHeart {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-30px) scale(2);
  }
}

@keyframes fall {
  from {
    transform: translateY(-20px) rotate(0deg);
  }
  to {
    transform: translateY(110vh) rotate(720deg);
  }
}
