@import url('https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

.nav-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    min-height: 10vh;
    max-width: 100%;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: transparent;
    padding: 5px 60px;
    transition: background-color 0.3s ease;
}

.nav-bar.scrolled {
    background: #0c0c0caa;
}

.logo{
    color: #e5e7eb;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: "Changa One", sans-serif;
    height: 10vh;
    max-width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img{
    max-width: 40%;
}

.logo h1:hover{
    color: #007e76;
    transition: 0.3s;
}

.navigation{
    display: flex;
    gap: 30px;
    max-width: 100%;
    height: 100%;
    z-index: 998;
}

.navigation a{
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    color: #e5e7eb;
    position: relative;
    padding-bottom: 6px;
}

.navigation a::after{
    content: "";
    position: absolute;
    right: 100%;
    bottom: 0;
    height: 2px;
    width: 0;
    background: #007e76;
    transition: width 0.28s ease, right 0.28s ease;
}

.navigation a:hover::after,
.navigation a:focus::after{
    right: 0;
    width: 100%;
}

.navigation a.active::after{
    left: 0;
    width: 100%;
}

.get-started a::after{
    display: none;
}
.get-started a.active::after{
    display: none;
}

.get-started a{
    border: 2px solid #007e76;
    padding: 10px;
    border-radius: 8px;
    color: #e5e7eb;
    text-decoration: none;
}

.get-started a:hover{
    background: #007e76;
    color: #e5e7eb;
    transition: 0.28s;
    box-shadow: 0 8px 40px #171616;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 100;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #e5e7eb;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 575px) {
    #header{
        width: 100%;
    }
    .nav-bar {
        padding: 10px 20px;
    }

    .logo {
        font-size: 0.9rem;
        letter-spacing: 2px;
        max-width: 50%;
    }
    #company-name{
        font-size: 1.85rem;
    }

    .logo img {
        max-width: 40%;
        padding-left: 20px; /* 🔥 fix spacing */
    }

    .hamburger {
        display: flex;
    }

    .navigation {
        position: fixed;
        top: 10vh;
        left: 0;
        width: 100%;
        background-color: #0f172a;

        flex-direction: column;
        align-items: flex-start;

        max-height: 0;
        overflow: hidden;

        transition: max-height 0.3s ease;
        padding: 0 20px;
    }

    .navigation.active {
        max-height: 100vh;
        padding: 20px;
    }

    .navigation a {
        width: 100%;
        text-align: left;
        padding: 15px 0;
        border-bottom: 1px solid rgba(229, 231, 235, 0.2);
    }

    .get-started a {
        width: 100%;
        max-width: 250px;
        padding: 10px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {

    .nav-bar {
        padding: 10px 30px;
    }

    .logo {
        max-width: 30%;
    }

    .logo img {
        max-width: 40%;
    }

    .navigation {
        gap: 15px;
    }

    .navigation a {
        font-size: 0.9rem;
    }

    .get-started a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {

    .nav-bar {
        padding: 10px 40px;
    }
    .navigation {
        gap: 20px;
    }

    .navigation a {
        font-size: 0.95rem;
    }
}
