@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background-color: #ffffff;
    transition:
        background-color 0.3s ease,
        backdrop-filter 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.menu-open-navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-logo a {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 60px;
    width: auto;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.navbar-link {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f38128;
    transition: width 0.3s ease;
}

.navbar-link:hover {
    color: #f38128;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 100px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 100px);
    background-color: #ffffff;
    z-index: 999;
    transition: right 0.35s ease-in-out;
    padding-top: 0;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s ease-in-out,
        visibility 0.35s ease-in-out;
}

body.menu-open::before {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-list {
    list-style: none;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-link {
    text-decoration: none;
    color: #000;
    font-size: 24px;
    font-weight: 600;
    display: block;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #f38128;
}

@media screen and (max-width: 1024px) {
    .navbar-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar-container {
        padding: 20px 30px;
    }
}

@media screen and (max-width: 768px) {
    .navbar-container {
        padding: 15px 20px;
    }

    .navbar-logo img {
        height: 60px;
    }

    .hamburger {
        width: 28px;
        height: 22px;
    }

    .hamburger-line {
        height: 2.5px;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(9.75px) rotate(45deg);
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-9.75px) rotate(-45deg);
    }

    .mobile-menu {
        width: 100%;
        right: -100%;
        padding-top: 0;
        top: 80px;
        height: calc(100vh - 80px);
    }

    .mobile-menu-list {
        padding: 20px 25px;
        gap: 25px;
    }

    .mobile-link {
        font-size: 20px;
    }
}

body.menu-open {
    overflow: hidden;
}
