/* Fonts */
:root {
    --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
        "Noto Color Emoji";
    --heading-font: "Raleway", sans-serif;
    --nav-font: "Poppins", sans-serif;
}

/* Smooth scroll */
:root {
    scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
    font-family: var(--default-font);
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 24px;
    line-height: 0;
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
}

/* Styling for the navbar */
.navbar {

    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
    font-family: var(--nav-font);
}

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

.navbar-brand img:hover {
    transform: rotate(360deg);
}

/* Styling for the navigation links */
.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    /* color: rgba(0, 0, 0, 0.8); */
    transition: color 0.2s ease-in-out;
}

.nav-link:hover,
.nav-link.active {
    color: #ffc107 !important;
}

.nav-link::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s ease-in-out;
}

.nav-link.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: #ffc107;
}

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

/* Non-transparent navbar on scroll */
.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Menambahkan shadow saat navbar menjadi tidak transparan */
}


/* Styling for buttons */
.btn {
    transition: transform 0.2s ease, background-color 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-warning {
    background-color: #ffc107;
    border: none;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    /* background-color: #343a40; */
    border: none;
}

.dropdown-item {
    /* color: rgba(255, 255, 255, 0.8); */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active  {
    background-color: #ffc107 !important;
    color: #343a40;
}

/* Search icon button */
.btn .bi-search {
    font-size: 1.3rem;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    color: #ffc107;
}

/* Theme Toggle Button */
#bd-theme .theme-icon-active {
    color: #ffc107;
}

/* Media Queries for responsive design */
@media (max-width: 767px) {
    .navbar {
        background-color: var(--bs-body-bg);
    }

    .navbar-brand img {
        width: 40px;
    }

    .nav-link {
        font-size: 1rem;
    }
}

/* Menambahkan searchInput */
#searchInput {
    transition: width 0.3s ease, opacity 0.3s ease;
}

#searchInput.d-none {
    width: 0;
    opacity: 0;
}

#searchInput.show {
    width: 200px;
    opacity: 1;
}


.slides {
    width: 100%;
    min-height: 70vh;
    position: relative;
    align-items: center;
}
.slides:before {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.slides .hero-waves {
    display: block;
    width: 100%;
    height: 60px;
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 3;
  }

.slides .wave1 use {
    animation: move-forever1 10s linear infinite;
    animation-delay: -2s;
    fill: var(--bs-body-bg);
    opacity: 0.6;
  }

.slides .wave2 use {
    animation: move-forever2 8s linear infinite;
    animation-delay: -2s;
    fill: var(--bs-body-bg);
    opacity: 0.4;
  }

  .slides .wave3 use {
    animation: move-forever3 6s linear infinite;
    animation-delay: -2s;
    fill: var(--bs-body-bg);
  }

  @keyframes move-forever1 {
    0% {
      transform: translate(85px, 0%);
    }

    100% {
      transform: translate(-90px, 0%);
    }
  }

  @keyframes move-forever2 {
    0% {
      transform: translate(-90px, 0%);
    }

    100% {
      transform: translate(85px, 0%);
    }
  }

  @keyframes move-forever3 {
    0% {
      transform: translate(-90px, 0%);
    }

    100% {
      transform: translate(85px, 0%);
    }
  }

  @keyframes up-down {
    0% {
      transform: translateY(10px);
    }

    100% {
      transform: translateY(-10px);
    }
  }
