
:root{
    --text-hero-color: #FFFF;
    --title-color: #6665ee;
    --title-after-color: #149ddd;
}

html {
    scroll-behavior: smooth;
}

body{
    margin: 0;
    min-height: 100vh;
    background: #f5f8fd;
}

body::-webkit-scrollbar{
    width: 8px;
}

body::-webkit-scrollbar-thumb{
    background: var(--title-color);
    border-radius: 5px; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
}

p {
    font-family: 'Open Sans', sans-serif;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/

/*Hero Background*/

#hero {
    width: 100%;
    height: 100vh;
    background: url(assets/hero-bg.jpg) top center;
    background-size: cover;
}

#hero:before {
    content: "";
    background: rgba(5, 13, 24, 0.3);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

#hero .hero-container {
    text-align: center;
    z-index: 1;
    min-width: 300px;
    position: absolute;
    top: 50%;
    transform: translate(50%, -50%);
}

/* Hero Text*/

#hero h1 {
    margin: 0 0 70px 0;
    font-size: 90px;
    font-weight: 700;
    line-height: 56px;
    color: var(--text-hero-color);
}

#hero p {
    color: var(--text-hero-color);
    margin-bottom: 50px;
    font-size: 40px;
    display: flex;
    font-style: italic;
    white-space: nowrap;
    padding-bottom: 4px;
    letter-spacing: 1px;
    border-right: 4px solid;
    width: 16ch;

    animation: typing 4s steps(16),
    blink .5s infinite step-end alternate;

    animation-iteration-count: infinite;

    overflow: hidden;
}

@keyframes typing {
    from { width: 0 }
}

@keyframes blink {
    50% {border-color: transparent}
}

/*Hero Social Media Icons*/

.wrapper{
    margin-top: 60px;
    display: inline-flex;
  }
  
.wrapper .icon{
    margin: 0 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 2;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
  
.wrapper .icon span{
    display: block;
    height: 60px;
    width: 60px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0px 10px 10px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
  
.wrapper .icon span i{
    line-height: 60px;
    font-size: 25px;
}
  
.wrapper .icon .tooltip{
    position: absolute;
    top: 0;
    z-index: 1;
    background: #fff;
    color: #fff;
    padding: 10px 18px;
    font-size: 20px;
    font-weight: 500;
    border-radius: 25px;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0px 10px 10px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
  
.wrapper .icon:hover .tooltip{
    top: -70px;
    opacity: 1;
    pointer-events: auto;
}
  
.icon .tooltip:before{
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    background: #fff;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%) rotate(45deg);
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
  
.wrapper .icon:hover span{
    color: #fff;
}
  
.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip{
    text-shadow: 0px -1px 0px rgba(0,0,0,0.4);
}

  .wrapper .twitter:hover span,
  .wrapper .twitter:hover .tooltip,
  .wrapper .twitter:hover .tooltip:before{
    background: #46C1F6;
}

.wrapper .instagram:hover span,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip:before{
    background: #e1306c;
}

.wrapper .github:hover span,
.wrapper .github:hover .tooltip,
.wrapper .github:hover .tooltip:before{
    background: #333;
}

@media (min-width: 1024px) {
    #hero {
        background-attachment: fixed;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 28px;
        line-height: 36px;
    }
    #hero h2 {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 30px;
    }
}


/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/

#about, #skills, #investigation{
    padding: 25px 0;
    overflow: hidden;
    margin: 25px 150px 25px 150px;
}

#about, #skills, #investigation p{
    font-size: 20px;
    margin-bottom: 25px;
}


/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/

/*About title*/

.about-title-div {
    width: 100%;
    height: 100px;
    display:flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.about-title{
    font-size: 50px;
    color: var(--title-color);
}

.about-title::after{
    content: '';
    position: flex;
    display: block;
    width: 100px;
    height: 3px;
    background: var(--title-after-color);
    bottom: 0;
    left: 0;
}

/*About Description*/

.about-description{
    font-size: 25px;
    margin-bottom: 50px;
}

/*Personal Picture*/

#my_picture{
    float: left;
    margin-right: 30px;
    width: 550px;
    height: 550px;
    border-radius: 20px;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
	transform: scale(0.9);
	transition: .7s ease-in-out all;
}

#my_picture.izquierda {
	transform: translateX(-100px);
}

#my_picture.derecha {
	transform: translateX(100px);
}

#my_picture.visible {
	opacity: 1;
	transform: scale(1) translateX(0);
}

.cargo{
    clear: both;
    overflow: hidden;
}

.cargo-title{
    font-size: 30px;
    text-align: center;
    color: var(--title-color);

}

.datos-personales{
    font-size: 20px;
    margin: 20px;
    list-style: none;
    padding: 0;
    margin-left: 10px;
}

.datos-personales li::before { 
    content: "\2022";
    margin: 6px; 
    padding-right: 8px; 
    color: #6665ee;
    display: inline-block; 
    padding-right: 10px;
    font-size: 50px;
    line-height: 25px;
    vertical-align: -11px;
    width: 20px;
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/

#img-skills{
    width: 35%;
    margin-right: 50px;
    float: right;
    animation: ilustrationAnimate ease-in 1.5s infinite alternate;
}

@keyframes ilustrationAnimate{
    0%{
        transform: scale(1);
    }
    100%{
        transform: scale(1.06);
    }
}

.skills{
    font-size: 50px;
    color: var(--title-color);
}

.skills::after{
    content: '';
    position: flex;
    display: block;
    width: 100px;
    height: 3px;
    background: var(--title-after-color);
    bottom: 0;
    left: 0;
}

.container_skills{
    place-items: center;
}

::selection{
    color: #fff;
    background: #6665ee;
}

.skill-bars{
    padding: 25px 30px;
    width: 600px;
    background: #fff;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.2);
    border-radius: 10px;
}

.skill-bars .bar{
    margin: 20px 0;
}

.skill-bars .bar:first-child{
    margin-top: 0px;
}

.skill-bars .bar .info{
    margin-bottom: 5px;
}

.skill-bars .bar .info span{
    font-weight: 500;
    font-size: 17px;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    opacity: 0;
    animation: showText 1s 2s linear forwards;
}

@keyframes showText {
    100%{
        opacity: 1;
    }
}

.skill-bars .bar .progress-line{
    height: 10px;
    width: 100%;
    background: #f0f0f0;
    position: relative;
    transform: scaleX(0);
    transform-origin: left;
    border-radius: 10px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.05),
                0 1px rgba(255,255,255,0.8);
    animation: animate 1s cubic-bezier(1,0,0.5,1) forwards;
}

@keyframes animate {
    100%{
        transform: scaleX(1);
    }
}

.bar .progress-line span{
    height: 100%;
    position: absolute;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    background: #6665ee;
    animation: animate 1s 1s cubic-bezier(1,0,0.5,1) forwards;
}

.bar .progress-line.html span{
    width: 90%;
}

.bar .progress-line.css span{
    width: 60%;
}

.bar .progress-line.javascript span{
    width: 85%;
}

.bar .progress-line.python span{
  width: 50%;
}

.bar .progress-line.mysql span{
    width: 75%;
}

.progress-line span::before{
    position: absolute;
    content: "";
    top: -10px;
    right: 0;
    height: 0;
    width: 0;
    border: 7px solid transparent;
    border-bottom-width: 0px;
    border-right-width: 0px;
    border-top-color: #000;
    opacity: 0;
    animation: showText2 0.5s 1.5s linear forwards;
}

.progress-line span::after{
    position: absolute;
    top: -28px;
    right: 0;
    font-weight: 500;
    background: #000;
    color: #fff;
    padding: 1px 8px;
    font-size: 12px;
    border-radius: 3px;
    opacity: 0;
    animation: showText2 0.5s 1.5s linear forwards;
}

@keyframes showText2 {
    100%{
        opacity: 1;
    }
}

.progress-line.html span::after{
    content: "90%";
}

.progress-line.css span::after{
    content: "60%";
}

.progress-line.javascript span::after{
    content: "85%";
}

.progress-line.python span::after{
    content: "50%";
}

.progress-line.mysql span::after{
    content: "75%";
}


/*--------------------------------------------------------------
# Investigtion
--------------------------------------------------------------*/

.investigation{
    font-size: 50px;
    color: var(--title-color);
}

.investigation::after{
    content: '';
    position: flex;
    display: block;
    width: 300px;
    height: 3px;
    background: #149ddd;
    bottom: 0;
    left: 0;
}

.tecnologias {
    position: absolute;
    display: flex;
    justify-content: center;
}

.tecnologias img{
    width: 500px;
    height: 300px;
    border-radius: 20px;
    margin: 20px 0px 20px 0px;
}

.tecnologias img:hover{
    animation: cardZoom ease-in 1s infinite alternate;
}

@keyframes cardZoom{
    0%{
        transform: scale(1);
    }
    100%{
        transform: scale(1.04);
    }
}