
/* --------------- BASE ---------------*/

* {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    background: #888;
    overscroll-behavior: none;
    font-family: Monospace;
    font-size: 3.5vw;
}

body {
    overflow-y: visible;
}

@font-face {
    font-family: 'font-name';
    src: url('Fuentes/Michroma-Regular.ttf') format('truetype');
    font-display: swap;
}

ul, li, span {
    margin: 0;
    padding: 0;
}

p {
    line-height: 3vh;
    max-width: 500px;
    margin: 0vh auto;
    padding-inline: 40px;
}

.seccion {
    min-height: 100vh;
    position: relative;
}

#background-alex {
    width: 100vw;
    height: 100vh;
    filter: blur(.7vh) grayscale(100%);
    background: url("Img/Alex.jpg") no-repeat top / cover;
    position: fixed;
    z-index: 0;
}

#arrow {
    width: 100vw;
    position: absolute;
    top: 75vh;
    font-size: 10vh;
    animation: opacity0-1 1.5s linear forwards, 
    arrow-move .8s linear infinite alternate;
}

/* --------------- HEADER --------------- */

.name, #arrow {
    font-family: font-name;
    text-align: center;
    color: #fff;
}

#arrow {
    font-size: 10vh;
    position: sticky;
    top: 80vh;
}

header {
    position: sticky;
    width: 100vw;
    top: 0;
    z-index: 1;
    backdrop-filter: invert(100%);
}

ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 9vw;
}

a, li {
    text-decoration: none;
    font-weight: bold;
    list-style: none;
    color: #337;
}


/* --------------- SECCIONES---------------*/

#section1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
}

#name-main {
    width: 100%;
    font-size: 10vw;
    letter-spacing: 5px;
    font-weight: 100;
    position: absolute;
    margin-bottom: 20vh;
    animation: intro-name 1s ease;
    background: #fff;
    background: linear-gradient(-45deg, #fff 50%, #000 45%, #000 55%, #fff 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    background-position: 100% 0%;
    animation: brillito 2s infinite linear;
}

#section2, #section3, #section4 {
    background: #0007;
    color: #aaa;
    text-align: center;
    margin: auto;
    font-size: 100%;
    max-width: 1000px;
}

h2 {
    padding-top: 10vw;
    margin: 0 0 5vh 0;
    color: #ddd;
    letter-spacing: 1vw;
}

#container-img-alex img {
    clip-path: circle(50% at 50% 50%);
    width: 230px;
    height: 230px;
    object-fit: cover;
    object-position: top;
    margin-top: 10vw;
}

/* --------------- SOBRE MI --------------- */ 

.container-technologies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    grid-gap: 3vw;
}

.technology:nth-child(1) {
    background: #4448 url("Img/Logos/Html.png");
    background-size: 100% 100%;
}

.technology:nth-child(2) {
    background: #4448 url("Img/Logos/Css.png");
    background-size: 100% 100%;
}

.technology:nth-child(3) {
    background: #4448 url("Img/Logos/Gsap.png");
    background-size: 145% 145%;
    background-position: right;
}

.technology:nth-child(4) {
    background: #4448 url("Img/Logos/Javascript.png");
    background-size: 100% 100%;
}

.technology {
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10%;
}

h3 {
    font-size: 7vw;
    font-family: Sans-Serif;
    font-weight: 900;
    color: #99b;
    letter-spacing: 5px;
}

/* --------------- PROYECTOS --------------- */ 

.container-projects {
    display: grid;
    justify-items: center;
    align-content: center;
    grid-gap: 3vh;
}

.project {
    width: 75%;
    height: 100px;
    max-height: 300px;
    color: #669;
    border-radius: 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: contrast(150%);
}

/* --------------- CONTACTO --------------- */ 

.container-img-gmail {
    display: flex;
    justify-content: center;
}

img[src$="Gmail.png"] {
    filter: grayscale(100%);
    width: 50%;
    height: 50%;
    position: absolute;
}

/* --------------- FOOTER --------------- */

footer {
    background: #000;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* --------------- MEDIA QUERY --------------- */

@media screen and (min-width: 800px) {
  body {
    font-size: 1.7vw;
  }
  
  p {
      line-height: 4vw;
  }
  
  .technology {
      width: 300px;
      height: 300px;
  }
  
  #name-main {
      font-size: 7vw;
  }
  
  #container-img-alex img {
      width: 500px;
      height: 500px;
  }
}



@keyframes brillito {
    100% {
        background-position: 0% 0%;
    }
}

/* --------------- ANIMACIONES ---------------*/
/*
@keyframes brillito {
    100% {
        background-position: 0% 0%;
    }
}

@keyframes intro-name {
    from {
        scale: 7 0;
    }
}

@keyframes opacity0-1 {
    from {
        opacity: 0;
    }
    
    to {
        opacity: 1;
    }
}

@keyframes arrow-move {
    to {
        scale: 1.2;
    }
}

@keyframes loading {
    to {
        background-position: 100% 100%;   
    }
}

@keyframes loading-none {
    to {
        opacity: 0;
        translate: 0% -100%;
    }
}*/