@font-face {
    font-family: quicksand_book;
    src: url('font/quicksand/Quicksand_Book.otf');
}

body {
    margin: 0;
    font-family: quicksand_book;
    scroll-behavior: smooth;
    background-color: #000000;
    color: #d1e4c9;
}

.language-switcher {
    z-index: 1000;
}

.language-switcher button {
    background-color: #040404;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.language-switcher button:hover {
    transform: scale(1.2);
}

.header {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 2px;
    display: flex;
    height: 100vh;
    justify-content: space-between;
    padding: 10px 20px;
}

.logos{
    display: flex;
    gap: 10px;    
    filter: invert(1);
}

.logos a img {
    width: 25px;
    height: 25px;
    transition: transform 0.2s ease;
}

.logos a img:hover {
    transform: scale(1.2);
}

#p5-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; 
}

nav#side-menu{
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 10px;
    border-radius: 0 5px 5px 0;
    z-index: 3;
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

nav#side-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav#side-menu ul li {
    margin: 10px 0;
}

nav#side-menu ul li a {
    color: #9bad94;
    text-decoration: none;
    display: block;
    padding: 10px;
    font-size: 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}

nav#side-menu ul li a:hover {
    transform: scale(1.2); 
    color: rgb(209, 228, 201); 
}

nav#side-menu.sticky {
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(0);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 10px 0;
    z-index: 3;
}

nav#side-menu.sticky ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav#side-menu.sticky ul li {
    margin: 0;
}

nav#side-menu.sticky ul li a {
    padding: 10px 15px;
    font-size: 16px;
    color: #9bad94;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav#side-menu.sticky ul li a:hover {
    color: #d1e4c9;
}

section {
    position: relative;
    z-index: 2;
    padding: 20px;
}

#about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    text-align: right;
}


#about img {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about img:hover{
    transform: scale(1.03); 
}

#about #textabout{
    flex-direction: column;
}
#about h2 {
    margin-bottom: 10px;
}

#about p {
    margin-bottom: 15px;
    line-height: 1.6;
    max-width: 500px;
    line-height: 1.6; 
}

#about p a {
    color:#55975d;
}

.cv-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.cv-button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    background-color: #55975d;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cv-button:hover {
    background-color: #bcffc4;
    color: #55975d;
}

section {
    padding: 20px;
}
#skills {
    padding: 20px;
}
#skills h2 {
    text-align: center;
    margin-bottom: 30px;
}
.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}
.category-filter {
    color: #fff;
    background-color: rgba(209, 228, 201, 0.1);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.category-filter:hover{
    transform: scale(1.1);
    background-color: rgba(209, 228, 201, 0.2);
}
.category-filter.active {
    background-color: rgba(209, 228, 201, 0.5);
}
.language-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}
.languages-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.container-img {
    width: 50px;
    height: 50px;
    background-color: rgba(209, 228, 201, 0.1);
    border-radius: 10%;
    transition: transform 0.2s ease;
    position: relative;
}
.container-img p {
    left: 50%;
    translate: -50%;
    font-size: small;
    color: #fff;
    position: absolute;
    bottom: -40px;
    text-align: center;
}
.language-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    padding: 10%;
    filter: saturate(0.1);
}
.language-logo:hover {
    filter: saturate(1);
}
.container-img:hover {
    transform: scale(1.1);
}
.hidden {
    display: none;
}


#projects {
    padding: 40px;
    text-align: center;
}

.project-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.project {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 250px;
    height: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
    background-color:rgb(17, 17, 17, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5%;
    filter: saturate(0.7);
}

.project:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.project-languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.language-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: rgb(20, 20, 20, 0.7);
    color: #fff;
    font-size: 12px;
}

.language-tag img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.language-tag span {
    font-size: 12px;
    color: #fff;
}


.modal {
    display: none; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); 
    z-index: 1000;
    overflow: auto; 
}

.modal-content {
    margin: 10% auto;
    padding: 20px;
    background: #111;
    color: #fff;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.modal-content img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px; 
}


.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.modal-nav {
    display: inline-block;
    margin: 10px 20px;
    color: #a5ffb0;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.modal-nav:hover {
    color: #fff;
}

#contact {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 100px;
    margin-bottom: 150px;
}

.contact-section {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
}

.contact-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

footer{
    display: flex;
    background-color: #111;
    flex-direction: column;
    text-align: center;
    padding-bottom: 50px;
    padding-top: 30px;
}


@media (max-width: 768px) {
    .language-category {
        flex-direction: column;
        align-items: center;
    }

    .languages-images {
        justify-content: center;
        gap: 15px;
    }

    #languages h3 {
        margin-bottom: 15px;
    }

    .language-logo {
        width: 40px;
        height: 40px;
    }

    nav#side-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
        z-index: 3;
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        background-color: transparent;
        transition: all 0.3s ease;
    }
    
    nav#side-menu.mobile {
        flex-direction: row;
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
    }
    
    nav#side-menu.sticky,
    nav#side-menu.sticky-mobile {
        position: fixed;
        top: 25px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        transition: background-color 0.3s ease;
    }
    
    nav#side-menu ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 5%;
        justify-content: center;
    }
    
    nav#side-menu ul li {
        margin: 0;
    }
    
    nav#side-menu ul li a {
        color: #9bad94;
        text-decoration: none;
        font-size: 14px;
        padding: 10px 15px;
        transition: color 0.3s ease;
    }
    
    nav#side-menu ul li a:hover {
        color: #d1e4c9;
    }
    

    #about {
        flex-direction: column;
        text-align: center;
    }

    #about img {
        display: none;
    }
}
@media (max-width: 450px){

    .header {
        font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        display: flex;
        height: 100vh;
        justify-content: space-between;
        padding: 10px 20px;
    }

    nav#side-menu ul li a{
        font-size: 10px;
    }
}
