@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;700&display=swap');

:root{
 /* Colores */
    --color1:#151515;
    --color2:#a855f4;
    --color3:#242424;
    --color4:#d9d9d9;
    --color5:#FFFFFF;
    --color6: #fb3e89;
    --color7: #f57fff;
    --color8: #8849f4;
    --color9: #00c4b3;
    --color10: #f7c600;
    --color11: #0967c1;

/* Typo */
--ff:'Space Grotesk', sans-serif;
/*H1*/
--h1-fs:77px;
--h1-lh:77px;
--h1-ls:-2.5px;
--h1-fw:bold;
/*H2*/
--h2-fs:48px;
--h2-lh:56px;
--h2-ls:-1.5px;
--h2-fw:bold;
/*h3*/
--h3-fs:24px;
--h3-lh:32px;
--h3-fw:bold;
/*Body*/
--fw:medium;
--fs:18px;
--lh:28px;
}

* {
    margin:0;
    outline: 0;
    padding: 0;
}

.bg-pink {
    opacity: 1;
    background-color: var(--color6);;
}
.bg-purple {
    opacity: 1;
    background-color: var(--color8);;
}
.translate-x-2 {
    transform: translate(10px);
}
.rounded-full {
    border-radius: 9999px;
}
.w-40 {
    width: 10rem;
}
.h-2 {
    height: .5rem;
}

/* General */
html, body{
    font-size: var(--fs);
    font-weight: var(--fw);
    font-family: var(--ff);
    background: var(--color1);
    color: var(--color5);
    overflow-x: hidden;
}

body{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.link{
    font-size: 1.5rem;
    color: var(--color5);
    letter-spacing: 2.28571px;
    font-weight: 700;
    margin: 0 auto;
    cursor: pointer;
}
.link:hover{
    color: var(--color7);
}



/* Header */
header {
    text-align: center;
    padding: 20px 0;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    /* line-height: 32px; */
    letter-spacing: -0.33px;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    gap:2px;
    margin-bottom: 10px;
}
.logo:hover .logoTitle{
    color:var(--color10)
}
.logo:hover .logoSVG path{
    fill:var(--color10);
}

/* footer .logo {
    padding-bottom: 20px;
} */

.redes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.red {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width:50px;
    height:50px;
}
.red:hover {
    border-radius: 50%;
    fill: #0e1a25;
    transform: scale(1.1);
    transition: background-color 0.5s, transform 0.5s ease-out;
}
.github {
    fill: var(--color6);
}
.github:hover {
    background: var(--color6);
}
.twitter {
    fill: var(--color4);
}
.twitter:hover {
    background: var(--color4);
}
.linkedin {
    fill: var(--color8);
}
.linkedin:hover {
    background: var(--color8);
}
.mail {
    fill: var(--color7);
}
.mail:hover {
    background: var(--color7);
}
.codepen {
    fill: var(--color10);
}
.codepen:hover {
    background: var(--color10);
}
.researchgate {
    fill: var(--color9);
}
.researchgate:hover {
    background: var(--color9);
}
.fork {
    fill: var(--color11);
}
.fork:hover {
    background: var(--color11);
}

/*Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 15px;
    width:90%;
    height: calc(100vh - 88px);
}

h1 span {
    border-bottom: 3px solid var(--color2);
}

.profile_img {
    display: flex;
    justify-content: center;
    align-items: center;
    /* order: 1; */
    border:4px solid var(--color6);
    border-radius: 5px;
}
.profile_img img {
    filter: grayscale(100%);
}

.hero_information {
    /* order: 2; */
    display:flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap:30px;
}
.hero_information h1 {
    font-size: 4rem;
}
.hero_information h2 {
    font-size: 2.5rem;
}
.hero_information h2 span {
    text-decoration: underline;
    text-decoration-color: var(--color6);
    text-underline-offset: 5px;
}
.hero_information p {
    margin-bottom: 60px;
    font-size: 1rem;
}

/* Skills */
.skills_title {
    margin-bottom: 50px;
    margin-top: 30px;
}
.skills {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap:20px;
    width:90%;
    margin-bottom: 50px;
}
.skill {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px 20px;
    width: 110px;
    border-radius: 10px;
    position: relative;
    background: transparent;
}
.skill .percent {
    font-size: 0.8rem;
    text-decoration: overline;
    margin-top:5px;
    opacity: 0;
}
.skill .icons {
    width:40px;
    fill:var(--color8);

}
.skill:hover .percent {
    opacity: 1;
    color: var(--color8);
}
.skill:hover .icons {
    transform: scale(1.08);
    fill:var(--color5);
    transition: fill 0.5s, transform 0.5s ease-out;
}
.skill:hover {
    background: black;
    box-shadow: var(--color6) 0px 0px 5px 0px, var(--color6) 0px 0px 1px 0px; 
    transition: all .5s;
}

.skill .name {
    font-size: 1rem;
}

/* TWEETS */
.tweets{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width:90%;
    gap:15px;
}

/* MEDIA SCREENS */

@media screen and (max-width: 992px) {
    .hero {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
    }
    .hero_information {
        align-items: center;
    }
    .hero_information h1 {
        font-size: 3rem;
    }
    .hero_information p {
        text-align: center;
        margin-bottom: 30px;
    }
    .hero_information .cMe {
        margin-bottom: 20px;
    }
    .skills {
        justify-content: space-evenly;
    }
  }

  @media screen and (max-width: 660px) {
    .hero_information h1 {
        font-size: 1.5rem;
    }
    .hero_information h2 {
        font-size: 1.5rem;
    }
    .hero_information p {
        font-size: 0.8rem;
    }
    .profile_img img {
        width: 370px;
    }
  }

  @media screen and (max-width: 400px) {
    .profile_img img {
        width: 250px;
    }
    .hero_information h1 {
        font-size: 1.2rem;
    }
    .hero_information h2 {
        font-size: 1.2rem;
    }
    .hero_information p {
        font-size: 0.7rem;
        margin-bottom: 20px;
    }
    .link{
        font-size: 1.2rem;
    }
    .skill .name {
        font-size: 0.8rem;
    }
    .skill {
        width:70px;
        padding: 15px 
    }
    .skill .icons {
        width:25px;
    
    }
  }