/* ===========================
   Global Reset & Base
=========================== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #333;
  margin: 0;
  background-color: #f8f9fa;
  padding-top :80px;
}
/* Jarak konten utama dari header */

a {
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  text-decoration: none;
}

/* ===========================
   Header & Navbar
=========================== */
#header {
  background: linear-gradient(90deg, #2196f3, #00bcd4, #3f51b5); /* gradasi biru cerah */
  padding: 10px 0;
  transition: all 0.5s;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Logo panjang + glowing */
.logo-img {
  max-height: 80px; /* lebih panjang */
  width: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.8));
}
.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(0, 191, 255, 1));
}

#navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

#navbar ul li {
  position: relative;
}

#navbar ul li a {
  padding: 10px 20px;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 4px;
  position: relative;
}

/* ✅ Animasi underline emas */
#navbar ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background-color: #ffd700;
  transition: width 0.3s ease;
}

#navbar ul li a:hover::after,
#navbar ul li a.active::after {
  width: 100%;
}

#navbar ul li a:hover,
#navbar ul li a.active {
  color: #ffffcc;
}

/* Login & Logout tombol khusus */
.login-btn {
  background-color: #4caf50;
  color: #fff !important;
  border-radius: 20px;
  padding: 6px 15px;
}
.login-btn:hover {
  background-color: #45a049;
}

.logout-btn {
  background-color: #f44336;
  color: #fff !important;
  border-radius: 20px;
  padding: 6px 15px;
}
.logout-btn:hover {
  background-color: #d32f2f;
}

.mobile-nav-toggle {
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: none;
}

/* ===========================
   Videotron Carousel
=========================== */
.videotron {
  /*margin-top: 80px; /* jarak dari header agar tidak tertimpa menu */
}

.videotron .carousel-item img {
  height: 500px;          /* lebih kecil dari 700px */
  width: 100%;
  object-fit: cover;      /* isi penuh, crop jika perlu */
  object-position: center;
  filter: brightness(70%);
}

.videotron .carousel-caption {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  bottom: 20px;           /* posisikan caption lebih rendah */
}

.videotron .carousel-item:hover .carousel-caption {
  opacity: 1;
  transform: translateY(0);
}

.videotron .carousel-caption h3 {
  font-size: 24px;        /* sedikit lebih kecil */
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 10px;
}

.videotron .carousel-caption p {
  font-size: 14px;
  color: #fff;
  margin-bottom: 15px;
}

.videotron .btn-warning {
  background-color: #ffd700;
  border: none;
  color: #003366;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 4px;
}

.videotron .btn-warning:hover {
  background-color: #ffcc00;
  color: #000;
}

/* Fade effect smoothness */
.carousel-fade .carousel-item {
  transition: opacity 1s ease-in-out;
}

/* ===========================
   Team Icons
=========================== */
.team-icon {
  text-align: center;
  margin: 15px 10px;
}

.team-icon img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #003366;
  transition: transform 0.3s, border-color 0.3s;
}

.team-icon img:hover {
  transform: scale(1.1);
  border-color: #ffd700;
}

.team-icon p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* ===========================
   Responsive Optimizations
=========================== */
@media (max-width: 991px) {
  #navbar ul {
    flex-direction: column;
    background: #003366;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    display: none;
  }

  #navbar ul li a {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 576px) {
  /* Videotron caption lebih kecil di smartphone */
  .videotron .carousel-item img {
    height: 250px; /* lebih kecil di HP */
  }

  .videotron .carousel-caption {
    padding: 10px;
    font-size: 14px;
    max-width: 90%;
  }

  .videotron .carousel-caption h3 {
    font-size: 18px;
  }

  .videotron .carousel-caption p {
    font-size: 12px;
  }

  .videotron .btn-warning {
    padding: 4px 10px;
    font-size: 12px;
  }

  /* Team icons lebih kecil */
  .team-icon img {
    width: 60px;
    height: 60px;
  }

  .team-icon p {
    font-size: 12px;
  }
}

/* Logo panjang + glowing pulse */
.logo-img {
  max-height: 56px; /* dikurangi 70% dari 80px */
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.8));
  animation: pulseGlow 2s infinite;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* Keyframes untuk efek pulse glowing */
@keyframes pulseGlow {
  0% { filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.8)); }
  50% { filter: drop-shadow(0 0 20px rgba(0, 191, 255, 1)); }
  100% { filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.8)); }
}

/* Responsif: lebih kecil lagi di HP */
@media (max-width: 576px) {
  .logo-img {
    max-height: 50px; /* lebih kecil di layar kecil */
  }
}
