/* Base styles for the header */
header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.5s ease;
    font-family: "montserrat", sans-serif;
    height: 71.19px;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 71.19px;
}

.sticky.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

header .container {
    display: flex;
    align-items: center;
    width: 100%;
}

header .logo {
    display: flex;
    align-items: center;
    margin-right: 70px;
}

header .logo img {
    height: 40px;
}

/* Navigation menu for desktop */
nav ul {
    list-style: none;
    display: flex;
    align-items: center; /* Ensure text aligns with logo */
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px; /* Adjust spacing between nav items */
}

nav ul li:first-child {
    margin-left: 0; /* Remove left margin for the first item */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    line-height: 40px; /* Matches the height of the logo */
}

/* Hamburger Button for Mobile */
.navbar-toggler {
    background-color: #33333300;
    color: white;
    padding: 10px;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 2000;
    border-radius: 5px;
    display: none; /* hide hamburger button */
}

/* Hero section */
#hero {
    position: relative;
    height: 50vh; /* Responsif, tinggi menyesuaikan dengan viewport */
    width: 100%;

    background-image: url("../images/pexels_ekaterina_bolovtsova_6077123.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    color: white;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(
        0,
        0,
        0,
        0.5
    ); /* Overlay gelap untuk teks terlihat jelas */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px; /* Padding responsif */
}

.hero-content h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 14px;
}

/* Footer */
footer {
    background: #f0ede0;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}

.footer-section {
    width: 23%;
    padding: 0px;
    margin-bottom: 8px;
}

.footer-section.hubungi-kami {
    margin-right: 10px;
}

.footer-section h2 {
    font-family: "roboto", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    margin-bottom: 8px;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    margin: 0 0 8px 0;
}

.footer-section a {
    text-decoration: none;
    color: #000000;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section .social-media {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
}

.social-icon {
    width: 24px;
    height: 24px;
    background-size: cover;
}

.hubungi-kami-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 11px;
}

.footer-underline {
    border-bottom: 2px solid #000000;
    width: 100%;
    margin: 10px 0;
}

.footer-underline-short {
    border-bottom: 2px solid #000000;
    width: 100%;
    margin: 10px 0;
}

.logos {
    display: flex;
    gap: 10px;
    justify-content: right;
    align-items: center;
    width: 100%;
}

.logos img {
    width: 40px;
    height: auto;
    display: inline-block;
}

.logos img.peradi {
    width: 80px;
}

.footer-section img.logo {
    display: block;
    margin-top: 20px;
    width: 180px;
}

/*Header Mobile styles */
@media (max-width: 1024px) {
    /* Show the hamburger button */
    .navbar-toggler {
        display: block;
        background-color: #33333300;
        color: white;
        border-radius: 5px;
    }

    /* Hide the navbar menu initially on mobile */
    #navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95); /* Covers the full page */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Ensures it covers the whole height */
        padding: 20px;
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active ul {
        display: flex;
    }

    /* Hide the hamburger button when menu is active */
    .navbar-toggler.hidden {
        display: none;
    }

    /* Style the menu items for mobile */
    #navbar-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    #navbar-menu ul li a {
        font-size: 20px;
        color: white;
        text-align: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active {
        display: flex;
    }
}

/*Header Mobile styles */
@media (max-width: 860px) {
    /* Show the hamburger button */
    .navbar-toggler {
        display: block;
        background-color: #33333300;
        color: white;
        border-radius: 5px;
    }

    /* Hide the navbar menu initially on mobile */
    #navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95); /* Covers the full page */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Ensures it covers the whole height */
        padding: 20px;
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active ul {
        display: flex;
    }

    /* Hide the hamburger button when menu is active */
    .navbar-toggler.hidden {
        display: none;
    }

    /* Style the menu items for mobile */
    #navbar-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    #navbar-menu ul li a {
        font-size: 20px;
        color: white;
        text-align: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active {
        display: flex;
    }
}

/*Header Mobile styles */
@media (max-width: 768px) {
    /* Show the hamburger button */
    .navbar-toggler {
        display: block;
        background-color: #33333300;
        color: white;
        border-radius: 5px;
    }

    /* Hide the navbar menu initially on mobile */
    #navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95); /* Covers the full page */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Ensures it covers the whole height */
        padding: 20px;
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active ul {
        display: flex;
    }

    /* Hide the hamburger button when menu is active */
    .navbar-toggler.hidden {
        display: none;
    }

    /* Style the menu items for mobile */
    #navbar-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    #navbar-menu ul li a {
        font-size: 20px;
        color: white;
        text-align: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active {
        display: flex;
    }
}

/*Header Mobile styles */
@media (max-width: 560px) {
    /* Show the hamburger button */
    .navbar-toggler {
        display: block;
        background-color: #33333300;
        color: white;
        border-radius: 5px;
    }

    /* Hide the navbar menu initially on mobile */
    #navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95); /* Covers the full page */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Ensures it covers the whole height */
        padding: 20px;
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active ul {
        display: flex;
    }

    /* Hide the hamburger button when menu is active */
    .navbar-toggler.hidden {
        display: none;
    }

    /* Style the menu items for mobile */
    #navbar-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    #navbar-menu ul li a {
        font-size: 20px;
        color: white;
        text-align: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active {
        display: flex;
    }
}

/* Hero mobile */

@media (max-width: 450px) {
    /* Show the hamburger button */
    .navbar-toggler {
        display: block;
        background-color: #33333300;
        color: white;
        border-radius: 5px;
    }

    /* Hide the navbar menu initially on mobile */
    #navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95); /* Covers the full page */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Ensures it covers the whole height */
        padding: 20px;
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active ul {
        display: flex;
    }

    /* Hide the hamburger button when menu is active */
    .navbar-toggler.hidden {
        display: none;
    }

    /* Style the menu items for mobile */
    #navbar-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    #navbar-menu ul li a {
        font-size: 20px;
        color: white;
        text-align: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active {
        display: flex;
    }
}

/* hero */

@media (max-width: 1024px) {
    #hero {
        height: 60vh; /* Kurangi tinggi untuk layar yang lebih kecil */
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 14px;
    }

    #hero .hero-content {
        margin-left: 10px;
        max-width: 280px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    #hero {
        height: 60vh; /* Kurangi tinggi untuk layar yang lebih kecil */
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 14px;
    }

    #hero .hero-content {
        margin-left: 10px;
        max-width: 280px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #hero {
        height: 50vh; /* Kurangi lebih lanjut untuk layar kecil */
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 12px;
    }
}

/*Footer Responsive styling for mobile */
@media (max-width: 1030px) {
    .footer-section {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .logos img {
        width: 30px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .hubungi-kami-icon {
        width: 20px;
        height: 20px;
    }
}

/*Footer Responsive styling for mobile */
@media (max-width: 768px) {
    .footer-section {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .logos img {
        width: 30px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .hubungi-kami-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .footer-section {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .logos img {
        width: 30px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .hubungi-kami-icon {
        width: 20px;
        height: 20px;
    }
}
