/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Open+Sans&family=Poppins&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variabel Warna - Tema BOLAKU */
:root {
  --primary-color: #1f3fb3;       /* Biru utama */
  --secondary-color: #3366cc;     /* Biru royal */
  --background-color: #0a1029;    /* Gelap malam */
  --content-bg: rgba(10, 16, 41, 0.95);
  --text-color: #ffffff;
  --dark-text: #dddddd;
  --button-hover: #264db8;        /* Hover */
  --highlight: #ffcc00;           /* Aksen emas */
}

/* Gaya Umum */
body {
  background-color: var(--background-color);
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================
   NAVBAR VERSI HERO CUSTOM
   ========================= */
.hero-navbar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  padding: 25px 15px;
  text-align: center;
}

.hero-box {
  background-color: var(--content-bg);
  border: 2px solid var(--highlight);
  border-radius: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.hero-logo {
  max-width: 200px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.btn-red {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 15px rgba(31, 63, 179, 0.4);
  min-width: 120px;
}

.btn-red:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

/* Responsive Hero */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--highlight);
  color: var(--highlight);
  font-size: 26px;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  animation: glowPulse 2s infinite;
}

@media (max-width: 768px) {
  .hero-box {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .hero-buttons {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .hero-buttons.show {
    display: flex;
  }
}

/* =========================
   NAVBAR VERSI BOOTSTRAP
   ========================= */
.navbar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  padding: 12px 20px;
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.2);
  top: 0;
  z-index: 999;
}

.navbar-brand img {
  max-width: 200px;
  height: auto;
}

.navbar-nav .nav-item a {
  color: var(--text-color);
  font-weight: bold;
  padding: 10px 15px;
  transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-item a:hover {
  background-color: var(--button-hover);
  border-radius: 5px;
}

/* Tombol Bootstrap */
.nav-buttons {
  display: flex;
  gap: 15px;
}

.btn-masuk,
.btn-daftar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
  font-weight: bold;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  min-width: 120px;
  box-shadow: 0 0 15px rgba(31, 63, 179, 0.4);
  border: 2px solid transparent;

  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.2;
  height: 70px;
}

.btn-masuk:hover,
.btn-daftar:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
  border: 2px solid var(--highlight);
}

/* Responsif Tombol */
@media (max-width: 768px) {
  .nav-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* Kontainer Iframe */
.container {
  max-width: 1200px;
  width: 90%;
  margin: 30px auto;
  background-color: var(--content-bg);
  padding: 20px;
  border-radius: 10px;
  border: 2px solid var(--highlight);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.1);
}

/* Iframe */
.frame iframe {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: 10px;
  background: #000;
}

/* Footer Mewah */
footer {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  font-size: 24px;
  border-radius: 5px;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 0 8px var(--highlight);
}

/* Fixed Footer */
.fixed-footer-container {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 99;
  background: #0b1740;
  box-shadow: 0 -2px 10px #1f3fb366;
}

.fixed-footer {
  max-width: 960px;
  margin: auto;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fixed-footer a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  text-decoration: none;
  width: 60px;
  transition: all 0.2s ease;
}

.fixed-footer a img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 4px;
}

.fixed-footer a.active {
  font-weight: bold;
  color: var(--highlight);
}

.fixed-footer a:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

/* Efek animasi icon */
.live-chat-icon img {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* Burger Toggler (Mobile) */
.navbar-toggler {
  border: 2px solid var(--highlight);
  color: var(--highlight);
  background-color: transparent;
  border-radius: 8px;
  padding: 6px 10px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
  animation: glowPulse 2s infinite;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='gold' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
  color: #fff;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
  }
}

@media screen and (max-width: 600px) {
  .fixed-footer {
    justify-content: space-around;
  }

  .fixed-footer a {
    width: 50px;
    font-size: 10px;
  }

  .fixed-footer a img {
    width: 28px;
    height: 28px;
  }
}
