:root {
  --primary-color: #0d6efd;
  --secondary-color: #f8f9fa;
  --text-color: #212529;
}

body {
  font-family: "Segoe UI", sans-serif;
  color: var(--text-color);
}
/* Desain Navbar */
.navbar {
  background-color: black !important; /* Warna gelap untuk navbar */
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Bayangan lembut */
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-toggler-icon {
  background-color: #ffffff;
}

/* Navbar link */
.navbar-nav .nav-item .nav-link {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover {
  color: #ffd700; /* Warna gold saat hover */
  transform: scale(1.1); /* Membesar sedikit saat hover */
}

/* Navbar Sticky Effect */
.navbar.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
}

/* Efek logo animasi */
.navbar-brand:hover img {
  transform: scale(1.1); /* Logo membesar sedikit saat hover */
}

/* Transisi warna background saat scroll */
.scrolled {
  background-color: #111827 !important;
}

/* Mengubah navbar background color setelah scroll */
body {
  margin-top: 80px; /* Memberikan ruang untuk navbar fixed */
}

.hero {
  min-height: 90dvh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url("img/carousel1.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 30%;
  margin-top: -15px;
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
}
.carousel-item img {
  object-fit: fill;
  height: 400px;
}
.carousel-indicators {
  margin-bottom: -30px;
}

#promo {
  background: linear-gradient(135deg, var(--dark), #0f172a);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.video-container {
  position: relative;
  padding-bottom: 90%; /* 3:4 aspect ratio */
  max-width: 320px;
  max-height: 600px;
  width: 100%;
  margin: auto;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-5deg);
  border: 8px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.5;
  transition: opacity 0.3s;
  margin: 0 4px;
}

.carousel-indicators .active {
  background-color: #07d6ff;
  opacity: 1;
}

.hero-gradient {
  background: linear-gradient(135deg, #6e8efb 0%, #4a6cf7 100%);
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.camera-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.camera-image {
  transform: rotateY(-20deg) rotateX(10deg);
  transition: all 0.5s ease;
}
.camera-image:hover {
  transform: rotateY(0deg) rotateX(0deg);
}
.glow {
  box-shadow: 0 0 20px rgba(74, 108, 247, 0.5);
}
.animated-bg {
  animation: gradientShift 15s ease infinite;
  background-size: 200% 200%;
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(10%, -50%);
}
.carousel-img-wrapper {
  width: 100%;
  height: 250px; /* tinggi default */
  overflow: hidden;
  position: relative;
}

span.selamat {
  text-decoration-thickness: 100px;
  color: black;
}

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

.section {
  padding: 80px 0;
}

.card-custom {
  border: none;
  transition: transform 0.3s;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Desain tombol utama */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366; /* Warna hijau khas WhatsApp */
  color: white;
  font-size: 18px;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  animation: pulse 2s infinite, float 3s ease-in-out infinite; /* Animasi default */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Ikon WhatsApp */
.whatsapp-btn i {
  margin-right: 8px;
  font-size: 40px;
}

/* Keyframe animasi pulse untuk tombol */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5),
      0 0 20px rgba(37, 211, 102, 0.3);
  }
  50% {
    transform: scale(1.2); /* Membesar tombol */
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.8),
      0 0 30px rgba(37, 211, 102, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5),
      0 0 20px rgba(37, 211, 102, 0.3);
  }
}

/* Keyframe animasi float untuk gerakan naik turun */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* Tombol bergerak naik */
  }
  100% {
    transform: translateY(0); /* Tombol kembali ke posisi semula */
  }
}

/* Animasi klik */
.whatsapp-btn:active {
  transform: scale(0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.2);
}

footer {
  background: var(--secondary-color);
  padding: 30px 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #6c757d;
}

@media (max-width: 700px) {
  .carousel-img-wrapper {
    aspect-ratio: 4 / 3;
  }
  .carousel-item img {
    object-fit: fill;
    height: 200px;
  }
}

@media (max-width: 2000px) {
  .carousel-img-wrapper {
    aspect-ratio: 16 / 9;
  }
  .carousel-item img {
    object-fit: contain;
    height: 400px;
  }
}

@media (max-width: 992px) {
  .video-container {
    max-width: 320px; /* Menyesuaikan ukuran maksimum pada layar lebih kecil */
    padding-bottom: 90%; /* 3:4 aspect ratio */
  }
}

@media (max-width: 576px) {
  .video-container {
    max-width: 280px; /* Ukuran lebih kecil lagi pada perangkat yang lebih kecil */
    padding-bottom: 85%; /* Menyesuaikan tinggi video di perangkat kecil */
  }
}
