@import url('https://fonts.cdnfonts.com/css/gotham');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Gotham-Bold';
}

.hero{
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(12, 3, 51, 0.35),rgba(12,3,51,0.35));
    position: relative;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

:root {
    --bg-color: #121018;
    --second-bg-color: #1A1825;
    --text-color: #F4F3F7;
    --main-color: #E31C47;
    --secondary-color: #FFD23F;
    --accent-color: #123884;
}

html{
    /* font-size: 62.5%; */
    overflow-x: hidden;
}

/* body{
    background: var(--bg-color);
    color: var(--text-color);
} */

section {
    min-height: 100vh;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky{
    border-bottom: .1rem solid rgba(0,0,0,0);
}

.logo {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

h1{
    color: var(--text-color);

}

h2{
    color: var(--text-color);
}

h3{
    color: var(--text-color);
}

h4{
    color: var(--text-color);
}

p {
    color: var(--text-color);
    font-family: 'Gotham-Medium', sans-serif; /* Asegúrate de tener una fuente de respaldo */
    line-height: 1.5; /* Mejora la legibilidad del texto */
    word-wrap: break-word; /* Permite que las palabras largas se rompan y no salgan del contenedor */
    overflow-wrap: break-word; /* Asegura que el texto largo se ajuste dentro del contenedor */
    margin: 0; /* Elimina el margen por defecto si es necesario */
    padding: 0; /* Elimina el padding por defecto si es necesario */
}

a{
    color: var(--text-color);
}

/* .navbar{
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px 8%;
    display: flex;
    align-items: center;
    justify-content: safe;
} */

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 2rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    -webkit-text-stroke: 1px var(--text-color);
    color: transparent;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}



.content{
    text-align: center;
}

.content h1{
    font-size: 6vw;
    color: #F4F3F7;
    font-weight: 600;
}

.content a{
    text-decoration: none;
    display: inline-block;
    color: #f4f4f4;
    font-size: 20px;
    border: 2px solid #fff;
    padding: 12px 65px;
    border-radius: 50px;
    margin-top: 20px;
}

/* .content {
    display: flex;
    justify-content: center;
    align-items: center;
} */

/* .home-content h3 {
    font-size: 2rem;
    font-weight: 700;
} */

/* .home-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.3;
} */

/* .home-img {
    width: 35vw;
    height: 35vw;
    margin-left: 4vw;
} */

/* #img-profile {
    width: 30vw;
    height: 30vw;
}  */


.back-video{
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 2rem;
    background-color: var(--second-bg-color);
    padding: 2rem 9%;
}

.about-img img {
    width: 28rem;
    height: 28rem;
}

.about-content{
    color: var(--text-color);
}

.about-content p{
    margin-top: 20px;
}

/* .heading{
    text-align: center;
    font-size: 4.5rem;
} */


.section-btn{
    text-decoration: none;
    display: inline-block;
    color: var(--text-color);
    font-size: 16px;
    border: 2px solid var(--text-color);
    padding: 8px 40px;
    border-radius: 50px;
    margin-top: 20px;
}

.home-btn{
    margin: 1rem;
}

.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
}


.experience h2{
    margin-bottom: 5rem;
}

.experience {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
}

.section-heading {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 4rem;
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    padding: 0 5%;
}

.exp-icon{
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 15px;
}



.skills-container .skills-box {
    flex: 1 1 calc(33.333% - 2rem);
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    /* height: 25rem; */
    transition: .5s ease;
}

.skills-container .skills-box:hover{
    border-color: var(--main-color);
    transform: scale(1.02);
}

.skills-box h3{
    font-size: 1.5rem;
}

.skills-box p{
    font-size: 1rem;
    margin: 1rem 0  3rem;
}

.portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--second-bg-color);
    padding: 2rem 0; /* Añadido para consistencia */
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    padding: 0 5%;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    padding: 0 5%;
}


.portfolio-img {
    width: 100%; /* Asegura que las imágenes sean responsivas */
    transition: .5s ease;
}

.portfolio-img:hover{
    transform: scale(1.1);
}

.portfolio-container .portfolio-box{
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}

.experience-container .portfolio-box{
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}

.portfolio-box .portfolio-layer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0), var(--bg-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer{
    transform: translateY(0);

}

.portfolio-layer h4{
    font-size: 2rem;
}

.portfolio-layer p{
    font-size: .9rem;
    margin: .3rem 0 1rem;
}

.portfolio-layer a {
    /* display: inline-flex; */
    display: none;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: var(--text-color);
    border-radius: 50%;
}

.portfolio-layer a i{
    font-size: 1.5rem;
    color: var(--second-bg-color);
    display: none;
}


.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 2rem;
    background-color: var(--bg-color);
    padding: 2rem 9%;
}

.contact-icon{
    font-size: 4rem;
    color: var(--text-color);
    margin-right: 1rem; /* Espacio entre el ícono y el enlace */
}

.contact-content{
    color: var(--text-color);
}

.contact-content p{
    margin-top: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.linkedinlink {
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none; /* Elimina el subrayado por defecto */
}

.linkedinlink:hover {
    text-decoration: underline; /* Añade subrayado al pasar el mouse */
}





/* BREAKPOINTS */

@media (max-width: 1200px) {
    html {
        font-size: 80%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }

    .section-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .home-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: transparent;
        border-top: .1rem solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .navbar.active {
        opacity: 1;
        visibility: visible;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .about {
        flex-direction: column;
        align-items: center;
    }

    .about-img {
        width: 65vw;
        height: auto;
        margin: 0;
        display: flex;
        justify-content: center;
    }

    .about-img img {
        width: 100%;
        height: auto;
        max-width: 65vw;
    }

    .portfolio-box .portfolio-layer{
        transform: translateY(0);
    
    }

    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .home-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 617px) {
    .experience-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .portfolio-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .portfolio-box .portfolio-layer{
        transform: translateY(0);
    
    }
    
    .home-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
}