/*-- Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    font-family: "Poppins", serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding: 2rem;
    box-sizing: border-box;
}

/* Variables */
:root {
    --container-color: #f5f5f5;
    --second-color: #f8f8f8;
    --text-color: #666363;
    --text-light-color: #0a0a0a;
    --bg-color: #fff;
    --primary-color: #4A90E2;
    --secondary-color: #666363;
    --hover-color: #666363;
}

::selection {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

img {
    width: 100%;
}

section {
    padding: 2rem 0;
}


.home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 3rem 0 2rem;
    background-color: var(--container-color);
    padding-top: 5rem;
}

.home-img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin-bottom: 0.25rem;
}

h2, h3 {
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.2rem;
}

i {
    margin-bottom: 0.25rem;
    font-size: 60px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 0.25rem;
    padding: 0.5rem;
    gap: 1rem;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 2rem;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    color: var(--hover-color);
}

.button {
    margin-top: 50rem;
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: var(--hover-color);
}

.about-me, .skills, .projects, .contact-me {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 3rem 0 2rem;
}

.projects-mobile{
    display: none;
}

.section-separator {
    border: none;
    border-top: 2px solid var(--text-light-color);
    margin: 2rem 0;
    width: 80%;
}

.scroll-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    font-size: 2rem;
    color: var(--primary-color);
    background-color: var(--container-color);
    padding: 0.3rem;
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.3s, background-color 0.3s;
}

.about-me p, .skills p, .projects p, .contact-me p {
    width: 80%;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: black;
}

.skills-container, .contact-me-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 3rem 0 2rem;
}

.skills-img {
    display: flex;
    width: 40%;
    justify-content: center;
    padding: 0;
    margin-bottom: 0.25rem;
    gap: 1rem;
}

.list-skills ul {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    list-style: none;
    column-gap: 6rem;
    padding: 0;
}

.list-skills li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.list-skills li::before {
    content: "🏅";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    line-height: 1.5rem;
}

.projects-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
    height: 3rem 0 2rem;
    width: 80%;
}

.project {
    display: contents;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.project-button {
    padding: 0.5rem 2rem;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.project-button:hover {
    background-color: var(--hover-color);
}

.project-image img {
    width: 100%;
    border-radius: 5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 0.5rem;
    border: 1px solid var(--text-color);
    border-radius: 5px;
    font-size: 1rem;
}

.submit-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    max-width: 150px;
}

.submit-button:hover {
    background-color: var(--hover-color);
}

/* Estilos generales de la navegación */


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: top 0.5s ease-in-out;
}

.nav-menu {
    display: flex;
    margin-left: auto;
}

.nav-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--container-color);
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-color);
}


/* Botón del menú hamburguesa (oculto en pantallas grandes) */
.nav-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--container-color);
}

/* Estilos para pantallas pequeñas (responsive) */
@media screen and (max-width: 768px) {
    .nav-menu-toggle {
        display: block; /* Muestra el botón hamburguesa */
    }

    .nav-list {
        display: none; /* Oculta la lista en móviles */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        text-align: center;
        padding: 10px 0;
    }

    .nav-list.active {
        display: flex; /* Muestra la lista cuando está activa */
    }

    .nav-item {
        padding: 10px 0;
    }


    .home {
        padding-top: 7rem;
    }

    .home-img {
        width: 120px;
        height: 120px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1rem;
    }

    .social-icons a {
        font-size: 1.5rem;
    }

    .button {
        width: 80%;
        max-width: 200px;
        text-align: center;
    }

    .projects-mobile-container {
        display: flex;
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: center;
        text-align: center;
        height: 3rem 0 2rem;
        width: 80%;
    }
    .projects-mobile{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 3rem 0 2rem;
    }

    .project-info h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .project-info h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .project-info p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .project-button {
        padding: 0.5rem 0.5rem;
        background-color: var(--primary-color);
        color: var(--bg-color);
        border: none;
        border-radius: 30px;
        cursor: pointer;
        transition: background-color 0.3s;
    }
    
    .project-button:hover {
        background-color: var(--hover-color);
    }
    
    .project-image img {
        width: 80%;
        border-radius: 5px;
    }
    .project {
        display: flex;
        flex-direction: column; /* Orden en columna */
        align-items: center;
        text-align: center; /* Centrar texto */
    }

    .projects{
        display: none;
    }


    .skills-img {
        width: 80%;
    }

    .list-skills ul {
        columns: 1;
        text-align: center;
    }

    .contact-form {
        width: 90%;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
    }
    
}

