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

.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

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

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #170A8B;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #170A8B;
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: #170A8B;
    font-weight: 700;
}

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

.nav-link:focus {
    outline: 2px solid #170A8B;
    outline-offset: 4px;
    border-radius: 2px;
}

.navbar-contact .btn-contact {
    background-color: #170A8B;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: inline-block;
}

.navbar-contact .btn-contact:hover {
    background-color: #152a6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 10, 139, 0.3);
}

.navbar-contact .btn-contact:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(23, 10, 139, 0.3);
}

.navbar-contact .btn-contact:focus {
    outline: 2px solid #170A8B;
    outline-offset: 4px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    width: 35px;
    height: 35px;
    justify-content: center;
    align-items: center;
}

.navbar-toggle:focus {
    outline: 2px solid #170A8B;
    outline-offset: 4px;
    border-radius: 4px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: #170A8B;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

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

@media (max-width: 768px) {
    .navbar-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 0 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
        gap: 0;
    }

    .navbar-menu.active {
        max-height: 400px;
        opacity: 1;
        padding: 20px;
        gap: 15px;
    }

    .navbar-menu li {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .navbar-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .navbar-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .navbar-menu.active li:nth-child(4) { transition-delay: 0.25s; }

    .nav-link {
        padding: 12px 0;
        display: block;
        text-align: center;
        font-size: 16px;
    }

    .nav-link::after {
        left: 0;
        transform: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-contact {
        display: none;
    }

    .navbar-menu.active .navbar-contact-mobile {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
}