:root {
  --pink: #f14e95;
  --gold: #c9a77d;
  --bg: #0a0a0a;
  --shadow: 0 2px 2px rgb(0 0 0 / 0.5);
  --soft-white: #f8f9fa;
}

body {
  font-size: 1.2rem;
  font-family: 'Work Sans', sans-serif;
  min-height: 2000px;
  background-color: var(--soft-white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(img/beautiful-wedding.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* efek parallax */
  z-index: -1;
}

.hero {
  position: relative;
  min-height: 100vh;
}

.hero h1,
.hero h4,
.hero p {
  text-shadow: var(--shadow);
}

.hero h1 {
  font-family: 'Sacramento', cursive;
  font-size: 6rem;
  animation: fadeInDown 1.5s ease;
}

.hero h4 {
  font-size: 1.6rem;
  animation: fadeInUp 1.5s ease;
}

.hero p {
  font-size: 1.4rem;
  animation: fadeInUp 1.5s ease 0.2s both;
}

.hero a {
  color: var(--pink);
  background-color: white;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  animation: fadeInUp 1.5s ease 0.4s both;
}

.hero a:hover {
  background-color: var(--pink);
  color: white;
  transform: scale(1.05);
  border-color: var(--pink);
}

/* Navbar */
.mynavbar {
  background-color: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(4px);
  transition: background-color 0.3s;
}

.mynavbar .offcanvas {
  height: 100vh;
}

.mynavbar .navbar-brand,
.mynavbar .offcanvas-title {
  font-family: 'Sacramento', cursive;
  font-size: 3.2rem;
  font-weight: bold;
  color: var(--pink);
}

.mynavbar .nav-link {
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.mynavbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.mynavbar .nav-link:hover::after {
  width: 50%;
}

.mynavbar .nav-link:hover {
  color: var(--gold) !important;
}

/* Home Section */
.home {
  background-image: url(img/bg.png);
  background-size: cover;
  min-height: 100vh;
  margin-top: -7rem;
  padding-top: 12rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: -1;
}

.home h2,
.info h2,
.rsvp h2,
.gifts h2 {
  color: var(--pink);
  font-family: 'Sacramento';
  font-size: 5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.home h3 {
  color: #444;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.home p {
  font-size: 1.1rem;
  color: #666;
}

.home .couple {
  /* margin-top: 10px; */
  position: relative;
}

.home .couple h3 {
  font-family: 'Sacramento';
  font-size: 2.4rem;
  color: var(--pink);
}

.home .couple img {
  width: 100%;
  transition: transform 0.3s ease;
}

.home .couple img:hover {
  transform: scale(1.05) rotate(2deg);
}

.home .heart {
  width: 50px;
  height: 50px;
  background-color: white;
  display: flex;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  animation: heartbeat 1.5s ease infinite;
}

.home .heart i {
  margin: auto;
  color: var(--pink);
}

/* Info Section */
.info {
  background-color: var(--bg);
  color: white;
  padding-top: 10rem;
  padding-bottom: 8rem;
  position: relative;
}

.info .alamat {
  font-size: 1.1rem;
}

.info .description {
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: #ddd;
}

.info .card {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border: 1px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.info .card-header {
  border-bottom: 1px solid var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  background-color: transparent;
}

.info .card-body i {
  font-size: 2rem;
  color: var(--gold);
}

.info .card-footer {
  border-top: 1px solid var(--gold);
  font-size: 0.9rem;
  font-weight: 300;
  background-color: transparent;
}

/* RSVP Section */
.rsvp {
  background-color: var(--bg);
  padding-top: 10rem;
  padding-bottom: 8rem;
}

.rsvp h2 {
  font-size: 4.5rem;
}

.rsvp p {
  color: white;
}

.rsvp form label {
  color: white;
}

.rsvp .form-control,
.rsvp .form-select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gold);
  color: white;
  transition: all 0.3s;
}

.rsvp .form-control:focus,
.rsvp .form-select:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  color: white;
}

.rsvp button {
  background-color: var(--pink);
  color: white;
  border: 1px solid var(--pink);
  transition: all 0.3s;
}

.rsvp button:hover {
  background-color: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  transform: scale(1.05);
}

/* Gifts Section */
.gifts {
  padding-top: 10rem;
  padding-bottom: 8rem;
  background-image: linear-gradient(135deg, #fdfbfb 0%, #f7f7f7 100%);
}

.gifts span {
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 1rem;
}

.gifts .list-group-item {
  background: white;
  border: 1px solid var(--gold);
  margin-bottom: 0.5rem;
  border-radius: 10px !important;
  transition: transform 0.3s ease;
}

.gifts .list-group-item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  padding: 3rem;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  color: white;
}

footer a {
  color: var(--bg);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: white;
}

/* Audio Icon */
.audio-icon-wrapper {
  width: 4rem;
  height: 4rem;
  font-size: 4rem;
  position: fixed;
  bottom: 2.5rem;
  right: 2rem;
  cursor: pointer;
  color: white;
  opacity: 0.8;
  mix-blend-mode: difference;
  animation: rotating 4s linear infinite;
  transform-origin: center;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  z-index: 999;
}

@keyframes rotating {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

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

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

@keyframes heartbeat {
  0% {
    transform: translateX(-50%) translateY(65px) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(65px) scale(1.1);
  }
  100% {
    transform: translateX(-50%) translateY(65px) scale(1);
  }
}

/* Media Query */
@media (max-width: 1200px) {
  .home .heart {
    transform: translateX(-50%) translateY(45px);
  }
}

@media (max-width: 992px) {
  html {
    font-size: 75%;
  }
  .simply-countdown > .simply-section {
    padding: 70px;
  }
  .home .heart {
    display: none;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 65%;
  }
  .simply-countdown > .simply-section {
    padding: 60px;
    margin: 5px;
  }
  .mynavbar .nav-link {
    font-size: 2rem;
    text-align: center;
  }
  .sticky-top {
    overflow: hidden;
  }
  .home h2,
  .info h2,
  .rsvp h2,
  .gifts h2 {
    font-size: 3.5rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 60%;
  }
  .simply-countdown > .simply-section {
    padding: 45px;
    margin: 3px;
  }
}

/* Efek Cahaya untuk Background Hitam */
.info, .rsvp {
    position: relative;
    overflow: hidden;
}

/* Gradien cahaya yang berdenyut */
.info::before, .rsvp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.2) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(255, 105, 180, 0.15) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
    animation: glowPulse 10s ease-in-out infinite alternate;
}

/* Animasi denyut cahaya */
@keyframes glowPulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* Bintang berkelap-kelip */
.info::after, .rsvp::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 15px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 45px 120px, #ffd700, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 95px 210px, #ffb6c1, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 160px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 230px 340px, #ffd700, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 320px 150px, #ffb6c1, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 410px 230px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 520px 380px, #ffd700, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 630px 70px, #ffb6c1, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 720px 290px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 830px 190px, #ffd700, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 940px 410px, #ffb6c1, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 1050px 100px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1160px 330px, #ffd700, rgba(0,0,0,0));
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    animation: twinkle 5s ease-in-out infinite alternate;
}

/* Animasi kelap-kelip bintang */
@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.9; }
}

/* Pastikan konten di atas overlay */
.info .container, .rsvp .container {
    position: relative;
    z-index: 2;
}

/* Tambahkan efek teks bercahaya pada judul di area hitam */
.info h2, .rsvp h2 {
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.7), 0 0 20px rgba(255, 215, 0, 0.5);
}

.info .card, .rsvp form {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}