html {
    scroll-behavior: smooth;
}

#avatar-container {
    margin: 0;
    padding: 0;
    width: 40px;
    height: 40px;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Asegúrate de que no cubra otros elementos */
}


#hamburguesa {
    display: none;
    cursor: pointer;
    font-size: 30px;
    color: black;
    transition: transform 0.3s ease-in-out;
}

#hamburguesa.active {
    transform: rotate(90deg);
}


/* Transición para el menú */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    transition: all 0.3s ease-in-out;
}

.nav-link {
    color: #474e93;
}

.nav-link:hover {
    color: #8b5dff;
}

/* Estilos generales */
.l-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    background: linear-gradient(135deg, #F7F7F7, #F7F7F7);
    font-family: "Poppins", sans-serif;
}

.l-main,
.about {
    background: rgba(247, 247, 247, 0.8);
    /* Transparente para que las partículas sean visibles */
}

section {
    width: 100%;
    max-width: 1100px;
    padding: 50px 0;
}


.home {
    display: flex;
    justify-content: space-between;
    /* Espacio entre texto e imagen */
    align-items: center;
    /* Alinea verticalmente */
    gap: 2rem;
    max-width: 1100px;
    width: 90%;
    margin: auto;
}

/* Texto principal */
.home__title {
    font-size: 2.5rem;
    color: #3b3f5c;
    line-height: 1.2;
    font-weight: 700;
}

.home__title-color {
    color: #f9ca24;
}

/* Botón de contacto */
.button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background-color: #98D8EF;
    color: #333;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
}

.button:hover {
    background-color: #C5BAFF;
    transform: scale(1.1);
}

/* Redes sociales */
.home__social {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.home__social-icon {
    font-size: 1.8rem;
    color: #fff;
    transition: transform 0.3s ease-in-out, color 0.3s;
}

.home__social-icon:hover {
    transform: scale(1.2);
    color: #f9ca24;
}

/* Imagen SVG */
.home__img {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Alinea la imagen a la derecha */
}

.home__blob {
    width: 300px;
    fill: #fff;
    animation: float 3s ease-in-out infinite;
}

.home__blob-img {
    width: 100%;
}

/* Estilos generales para la sección de acerca de mi */
.about {
    padding: 60px 20px;
    background: linear-gradient(135deg, #F7F7F7, #F7F7F7);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

.about__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: auto;
}

/* Imagen de perfil */
.about__img img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.about__img img:hover {
    transform: scale(1.05);
}

/* Texto */
.about__subtitle {
    font-size: 1.8rem;
    font-weight: bold;
    color: #474e93;
}

.about__text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    text-align: justify;
    max-width: 600px;
}

/* Estilos para los iconos */
.iconos {
    text-align: center;
    margin-top: 40px;
}

.icons_list {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Espacio entre los iconos */
    list-style-type: none;
    padding: 0;
}

.icons_list li {
    font-size: 2rem;
    color: #474e93;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Efecto al pasar el mouse sobre los iconos */
.icons_list li:hover {
    transform: scale(1.2);
    color: #3b3f5c;
}

/* Sección para el área de habilidades */
.skills__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.skills__content {
    flex: 1;
    min-width: 300px;
}

.skills__subtitle {
    margin-bottom: 1rem;
}

.skills__text {
    margin-bottom: 2em;
}

/* Contenedor de cada habilidad */
.skills__data {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    font-weight: 600;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
    background: #f8f9fa;
}

/* Nombre e icono de la habilidad */
.skills__names {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

/* Iconos */
.skills__icon {
    font-size: 2rem;
}

/* Contenedor de la barra de progreso */
.skills__bar-container {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 8px;
}

/* Barras de progreso */
.skills__bar {
    height: 10px;
    border-radius: 0.5rem;
    transition: width 1s ease-in-out;
}

/* Específicas para cada habilidad */
.skills__html {
    width: 75%;
}

.skills__css {
    width: 60%;
}

.skills__js {
    width: 85%;
}

.skills__laravel {
    width: 90%;
}

.skills__sql {
    width: 80%;
}

/* Imagen */
.skills__img {
    flex: 1;
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
}

/* Sección de trabajos */
.work {
    text-align: center;
    padding: 4rem 0;
}

.work__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

/* Estilo para cada tarjeta de trabajo */
.work__img {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    padding: 1rem;
    background: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    /* Asegura que el contenedor no tenga estilos de enlace */
    color: inherit;
    /* Mantiene el color del texto */
}

.work__img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Estilo del texto debajo de cada imagen */
.title__work {
    margin-top: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: block;
    text-decoration: none;
}

/* Efecto hover */
.work__img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Estilos para la línea de tiempo */
.timeline {
    padding: 50px 0;
    background: linear-gradient(135deg, #F7F7F7, #F7F7F7);
}

.timeline__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline__item {
    position: relative;
    margin-bottom: 30px;
    width: 80%;
}

/* El contenido de cada ítem */
.timeline__content {
    padding: 20px;
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1;
}

.timeline__title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.timeline__description {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
    display: none;
    /* Inicia oculto */
    transition: all 0.5s ease;
}

.timeline__date {
    font-size: 0.9em;
    color: #007bff;
}

/* Línea de tiempo */
.timeline__container:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: calc(100% - 30px);
    width: 4px;
    background-color: #007bff;
    transform: translateX(-50%);
    z-index: 0;
}

/* Cambiar el icono de la flecha cuando se hace clic */
.info.rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Deslizar hacia abajo el contenido */
.timeline__item.active .timeline__description {
    display: block;
    max-height: 200px;
    /* Limita el tamaño máximo, ajusta según sea necesario */
    overflow: hidden;
    padding-top: 10px;
}

.contact__container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact__form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Estilo de los campos del formulario */
.contact__input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact__input:focus {
    border-color: #0066ff;
    outline: none;
}

/* Estilo del botón */
.contact__button {
    background-color: #0066ff;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact__button:hover {
    background-color: #0052cc;
}

/* pie de pagina */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    font-size: 1rem;
}

.footer__title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.footer__title b {
    color: #0066ff;
    /* Color destacado para el nombre */
}

.footer__social {
    margin: 20px 0;
}

.footer__icon {
    margin: 0 10px;
    font-size: 1.8rem;
    color: #fff;
    transition: color 0.3s ease;
}

.footer__icon:hover {
    color: #B2A5FF;
    /* Color al pasar el cursor sobre los iconos */
}

.footer__copy {
    font-size: 0.9rem;
    color: #ccc;
}

.floating-home {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-size: 24px;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1000;
}

.floating-home:hover {
    background-color: #B2A5FF;
    color: white;
    transform: scale(1.1);
}


/* Animación flotante */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@media screen and (min-width: 1024px) {
    .about__container {
        display: flex;
        flex-direction: column;
        /* Apilan los elementos uno debajo del otro */
        align-items: center;
        /* Centra los elementos horizontalmente */
        gap: 40px;
        /* Espacio entre los elementos */
    }

    .about__img {
        order: -1;
        /* Mueve la imagen arriba */
    }

    .iconos {
        margin-top: 20px;
        /* Ajusta el margen superior para los iconos */
    }

    .contact__form {
        max-width: 80%;
        padding: 25px;
    }

    .contact__input {
        padding: 12px;
        font-size: 1.1rem;
    }

    .contact__button {
        padding: 14px;
        font-size: 1.2rem;
    }
}

/* Responsivo */
@media screen and (max-width: 768px) {
    .home__social {
        flex-direction: row;
        justify-content: center;
    }

    .home {
        grid-template-columns: 1fr;
        text-align: center;
        flex-direction: column;
        /* Cambia la dirección a columna en pantallas pequeñas */
        text-align: center;
        /* Centra el texto */
    }

    .home__img {
        margin-top: 20px;
    }

    .home__title {
        font-size: 2rem;
    }

    .about__container {
        flex-direction: column;
        text-align: center;
    }

    .about__img img {
        width: 200px;
        height: 200px;
    }

    .icons_list {
        flex-wrap: wrap;
        /* Permite que los iconos se ajusten a varias filas */
        justify-content: center;
    }

    .icons_list li {
        margin-bottom: 20px;
    }

    .skills__container {
        flex-direction: column;
        text-align: center;
    }

    .skills__img {
        max-width: 100%;
    }

    .work__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .title__work {
        font-size: 0.9rem;
        text-decoration: none;
    }

    .contact__form {
        max-width: 90%;
        padding: 20px;
    }

    .contact__input {
        font-size: 1.1rem;
    }

    .contact__button {
        padding: 12px;
        font-size: 1.1rem;
    }
}

/* Ocultar menú en dispositivos pequeños */
@media only screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    .nav-link {
        text-align: center;
    }

    #hamburguesa {
        display: block;
    }

    .nav-menu.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 480px) {
    .work__container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .title__work {
        font-size: 0.85rem;
        text-decoration: none;
    }

    .contact__form {
        max-width: 100%;
        padding: 15px;
    }

    .contact__input {
        padding: 10px;
        font-size: 1rem;
    }

    .contact__button {
        padding: 12px;
        font-size: 1rem;
    }
}