
html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  
}

.navbar {
  transition: background-color 0.3s ease-in-out;
  z-index: 1050;
}

.navbar-scrolled {
  background-color: rgba(0, 51, 102, 0.85) !important; /* biru muda transparan */
  backdrop-filter: saturate(180%) blur(10px);
}

.navbar-brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.navbar-text {
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  user-select: none;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  padding: 0.5rem 0.75rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #cce4ff !important;
  text-decoration: underline;
  outline-offset: 2px;
}

.dropdown-menu {
  min-width: 10rem;
}
.dropdown-menu a.dropdown-item {
  font-weight: 500;
  color: #212529;
  transition: background-color 0.2s ease;
}
.dropdown-menu a.dropdown-item:hover,
.dropdown-menu a.dropdown-item:focus {
  background-color: #e9ecef;
  color: #0d6efd;
  outline: none;
}

/* Hero Carousel */


#hero {
  position: relative;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.hero-slide {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding-bottom: 100px;
  user-select: none;
}
.hero-slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}
.hero-slide > div {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 90vw;
  margin: 0 auto;
}
.text-shadow {
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

/* Responsive font sizes */
.hero-slide h1 {
  font-weight: 700;
  font-size: 4rem;

  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.hero-slide p {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  margin: 0;
}
@media (max-width: 768px) {
  .hero-slide h1 {
    font-size: 2.5rem;
  }
  .hero-slide p {
    font-size: 1.125rem;
  }
}
@media (max-width: 576px) {
  .hero-slide {
    background-size: contain;
    background-position:  center;
    background-repeat: no-repeat;
    background-color: #000;
    padding-bottom: 60px;
  }
  .hero-slide h1 {
    font-size: 2rem;
  }
  .hero-slide p {
    font-size: 1rem;
  }
  .navbar-text {
    display: none;
  }
  .navbar-nav {
    text-align: center;
  }
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  .dropdown-menu {
    min-width: 100%;
  }
}

/* Carousel controls color override */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/* Umum */
.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: white;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 40px 0 40px; /* atas, kanan, bawah, kiri */
  }
  
  .hero-slide h1,
  .hero-slide p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin: 0;
  }
  
  /* Navbar Umum */
  .navbar {
    background-color: rgba(0, 0, 0, 0.4);
    /* backdrop-filter: blur(6px); */
    transition: background-color 0.3s ease;
  }
  
  .navbar .nav-link {
    color: white;
  }
  
  .navbar .nav-link:hover {
    color: #ccc;
  }
  
  /* RESPONSIF UNTUK HP (<= 768px) */
  @media (max-width: 768px) {
    .navbar {
      background-color: rgba(0, 0, 0, 0.6); /* transparan hitam */
      
    }
  
    .navbar-collapse {
      background-color: transparent;
      padding: 1rem;
      border-radius: 0 0 10px 10px;
    }
  
    .hero-slide {
      /* height: 100vh; */
      /* width: 100%; */
      /* background-size: cover; */
      object-fit: contain;
      background-position: center;
      padding: 80px 20px 0 20px; /* lebih sempit untuk HP */
      align-items: flex-start;
      justify-content: flex-start;
      text-align: left;
    }
  
    .navbar-toggler {
      border-color: white;
    }
  
    .navbar-toggler-icon {
      background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }
  }
  