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

body{
  font-family:'Poppins',sans-serif;
  background:#fffaf5;
  color:#333;
  transition:opacity 1s ease;
}


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

.hero{
  min-height:100vh;
  background:url('https://images.unsplash.com/photo-1519225421980-715cb0215aed') center/cover no-repeat;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px;
}

.overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.35));
  backdrop-filter:blur(3px);

  /* FIX ZA KLIK */
  pointer-events:none;
}

.content{
  position:relative;
  z-index:2;
  color:white;
  max-width:760px;
  animation:fadeUp 1.2s ease;
}

.invite{
  letter-spacing:4px;
  font-size:13px;
  margin-bottom:20px;
  text-transform:uppercase;
  color:#f0d675;
}

h1{
  font-family:'Great Vibes',cursive;
  font-size:90px;
  font-weight:400;
  margin-bottom:10px;
}

h1 span{
  color:#d4af37;
  text-shadow:0 0 10px rgba(212,175,55,0.6);
}

.date{
  font-size:24px;
  margin-bottom:20px;
  font-weight:600;
}

.quote{
  font-size:18px;
  line-height:1.8;
  margin-bottom:30px;
}


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

#countdown{
  font-size:24px;
  margin-bottom:28px;
  font-weight:700;
  color:#f0d675;
  display:inline-flex;
  align-items:center;
  gap:8px;
}


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

.btn{
  display:inline-block;
  padding:15px 34px;
  background:white;
  color:#333;
  text-decoration:none;
  border-radius:40px;
  font-weight:700;
  transition:0.3s ease;
  border:none;
  position:relative;
  overflow:hidden;
  z-index:5;
}

.btn:hover{
  transform:translateY(-4px) scale(1.04);
}


/* RIPPLE */
.ripple{
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,0.6);
  transform:scale(0);
  animation:rippleAnim 600ms linear;
}

@keyframes rippleAnim{
  to{
    transform:scale(4);
    opacity:0;
  }
}


/* GOLD BUTTON */
.gold{
  background:linear-gradient(135deg,#d4af37,#e7c75a);
  color:white;
  margin-top:25px;
  box-shadow:0 0 15px rgba(212,175,55,0.4);
}

.gold:hover{
  box-shadow:0 0 30px rgba(212,175,55,0.8);
}


/* RSVP */
.rsvp-buttons{
  display:flex;
  gap:15px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:15px;
}


/* =======================
   DETAILS
======================= */

.details{
  padding:90px 20px;
  text-align:center;
  max-width:1000px;
  margin:auto;
}

.details h2{
  font-size:48px;
  margin-bottom:50px;
  font-family:'Great Vibes',cursive;
  color:#d4af37;
  text-shadow:0 0 10px rgba(212,175,55,0.6);
}


/* CARD */
.card{
  background:rgba(255,255,255,0.75);
  backdrop-filter:blur(10px);
  padding:36px 24px;
  margin-bottom:26px;
  border-radius:28px;
  box-shadow:0 15px 40px rgba(0,0,0,0.08);
  transition:0.3s ease;
  position:relative;
  z-index:1;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 60px rgba(0,0,0,0.15);
}

.card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:28px;
  opacity:0;
  transition:0.3s;
  box-shadow:0 0 30px rgba(212,175,55,0.3);

  /* FIX */
  pointer-events:none;
}

.card:hover::after{
  opacity:1;
}

.card h3{
  margin-bottom:16px;
  color:#d4af37;
  font-size:23px;
}

.card p{
  margin:10px 0;
  font-size:18px;
}


/* LINKS */
.map-link{
  display:inline-block;
  font-size:18px;
  text-decoration:none;
  color:#333;
  line-height:1.7;
  font-weight:600;
  transition:0.3s;
  position:relative;
  z-index:999;
}

.map-link:hover,
.phone-link:hover{
  color:#d4af37;
}

.phone-link{
  color:#333;
  text-decoration:none;
  font-weight:700;
}


/* SMALL BUTTON */
.small-btn{
  display:inline-block;
  margin-top:18px;
  padding:10px 22px;
  border-radius:30px;
  background:#fff7dc;
  color:#9b7918;
  text-decoration:none;
  font-weight:700;
  transition:0.3s;

  /* FIX */
  position:relative;
  z-index:999;
  pointer-events:auto;
}

.small-btn:hover{
  background:#d4af37;
  color:white;
  transform:translateY(-3px);
}


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

.music-btn{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:20;
  width:52px;
  height:52px;
  border-radius:50%;
  border:none;
  background:linear-gradient(135deg,#d4af37,#e7c75a);
  color:white;
  font-size:22px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 25px rgba(0,0,0,0.25);
  transition:0.3s;
}

.music-btn:hover{
  transform:scale(1.1);
}

.music-btn:not(.paused){
  animation:pulseMusic 2s infinite;
}

.music-btn.paused{
  background:#222;
}

@keyframes pulseMusic{
  0%{box-shadow:0 0 0 rgba(212,175,55,0.6);}
  50%{box-shadow:0 0 25px rgba(212,175,55,0.9);}
  100%{box-shadow:0 0 0 rgba(212,175,55,0.6);}
}


/* =======================
   ENTER OVERLAY
======================= */

#enter-overlay{
  position:fixed;
  inset:0;
  background:#111;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  transition:0.6s;
}

.enter-box{
  text-align:center;
  color:white;
}

.enter-box p{
  font-family:'Great Vibes',cursive;
  font-size:42px;
  margin-bottom:20px;
}

.enter-box button{
  padding:12px 28px;
  border:none;
  border-radius:30px;
  background:linear-gradient(135deg,#d4af37,#e7c75a);
  color:white;
  font-weight:700;
  cursor:pointer;
}


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

footer{
  text-align:center;
  padding:30px;
  background:#111;
  color:white;
  margin-top:50px;
}


/* =======================
   ANIMATIONS
======================= */

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


/* SCROLL */
.fade-in{
  opacity:0;
  transform:translateY(40px);
  transition:all 0.8s ease;
}

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


/* =======================
   MOBILE
======================= */

@media(max-width:768px){

  h1{
    font-size:58px;
  }

  .date{
    font-size:20px;
  }

  .quote{
    font-size:16px;
  }

  #countdown{
    font-size:19px;
  }

  .details{
    padding:65px 16px;
  }

  .details h2{
    font-size:38px;
  }

  .card{
    padding:26px 16px;
  }

  .card p,
  .map-link{
    font-size:16px;
  }

  .btn{
    padding:14px 26px;
    font-size:15px;
  }
}