/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-scrolled {
    background-color: var(--bg-primary-transparent);
    backdrop-filter: blur(15px);
}

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

.navbar-logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.navbar-logo a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-logo a:hover {
    color: var(--accent-primary);
}

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

.navbar-item {
    margin-left: 30px;
    position: relative;
}

.navbar-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.navbar-link:hover {
    color: var(--accent-primary);
}

/* Active link styling */
.navbar-item.active .navbar-link {
    color: var(--accent-primary);
}

.navbar-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-primary);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-item:hover::after {
    transform: scaleX(1);
}

/* Mobile menu toggle */
.navbar-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}


/* Media Query for responsive design */
@media screen and (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
    }

    .navbar-toggle {
        display: block;
        z-index: 10;
    }

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

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

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

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        flex-direction: column;
        justify-content: center;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.5s ease;
        padding: 50px 0;
        z-index: 5;
        background-color: var(--bg-primary) !important;
        opacity: 1 !important;
        min-height: 100vh;
    }

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

    .navbar-item {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
}


main > section:first-child,
main > div:first-child {
    padding-top: 120px !important;
}

@media screen and (max-width: 768px) {
    .navbar-menu {

    }
}