/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
    padding: 20px 0;
    max-width: 100%;
}

.navbar.scrolled {
    background-color: var(--transparent-bg-8);
    box-shadow: 0 2px 10px var(--transparent-bg-3);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.language-switch,.theme-switch {
    display: flex;
    align-items: center;
}

.language-switch button,.theme-switch button {
    background: none;
    border: none;
    color: var(--light-text);
    margin-left: 10px;
    cursor: pointer;
    font-weight: 500;
}

.language-switch button.active,.theme-switch button.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 50px 0;
    text-align: center;
    opacity: 0.9;

}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    list-style: none;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links li {
    margin: 5px 15px;
    position: relative;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}


.nav-links .nav_active,.footer-links .nav_active{
    position: relative;
}
.nav-links .nav_active::after,.footer-links .nav_active::after{
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}



.social-links {
    display: flex;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links span {
    margin: 0px 10px;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    opacity: 0.6;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Contact button */
.contact-btn {
    cursor: pointer;
    position: relative;
}

.contact-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.contact-btn:hover::after {
    width: 100%;
}

.contact-btn:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--dark-bg);
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-image {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;


}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid var(--secondary-color);
}


/* Responsive */
@media (max-width: 768px) {
    .navbar-container {
        position: relative;
        max-width: 100%;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--transparent-bg-8);
        padding: 20px 0;
        box-shadow: 0 5px 15px var(--transparent-bg-3);
        transition: all 0.3s ease;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .language-switch {
        margin-right: 10px;
    }


    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}