@import url('https://fonts.googleapis.com/css2?family=Abel&display=swap');



img, svg {
    display: block;
    max-width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Abel', sans-serif;

}

html, body {
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;

  }

h1,h2,h3,h4,h5,h5,p,ul {
    letter-spacing: 0.1rem;

}

/* Header and navbar*/

header {
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 5rem;    
    display: flex;
    padding: 0 8%;    
    justify-content: space-between;
    align-items: center;
    background-color: #0A192F;
    border-bottom: 1px solid #C8D2F2;

}

logo {
    height: auto;
    padding: 5px 0;    
}

nav {
    height: 100%;
    display: flex;
    
    align-items: center;
    justify-content: space-between;
    transition: all ease-in-out 0.2s;

}

nav ul {

    margin: 0;
    padding: 0;    
    list-style: none;    
    align-items: center;
    
    
}




nav ul li { 
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-inline: 30px;

}

@media screen and (max-width: 750px)  {
    nav ul li {
        margin-inline: 20px; 
    }

}

nav ul li a{
    display: flex;
    text-decoration: none;
    color: #C8D2F2;
    position: relative;  
    
}


nav ul li a::after {
    content: "";
    position: absolute;
    height: 0.15rem;
    width: 100%;
    border-radius: 100%;
    background: linear-gradient(to right, #29B52F, #7729B5, #B52929, #B5AF29, #B5AF29, #7729B5, #7729B5);
    background-size: 200% 100%;
    bottom: 0rem;
    left: 0;
    opacity: 0.9;
    transform: scale(0, 1);
    transition: 0.2s;
}

nav ul li a:hover::after {
    transform: scale(1, 1);
}

.contact-btn {
    display: block;    
    position: relative;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.2rem;    
    background-color: #4EC4B1;
    border-radius: 8px;
    border: none;
    text-align: center;
    padding: 6px 10px;
    cursor: pointer;
    z-index: 999;
    transition: ease 0.3s;    
}

.contact-btn:hover {
    scale: 1.1;
}


.contact-btn a {
    text-decoration: none;
    font-weight: bold;
    color: #0A192F;
    z-index: 999;
}

.hamburger {
    display: none;
    position: relative;
    width: 2rem;
    height: 2rem;
    appearance: none;
    background: none;
    outline: none;
    border: none;
    transition: 0.1s ease-in-out;
}

.hamburger .bar,
.hamburger::after,
.hamburger::before {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin: 7px 0;
    background-color: #C8D2F2;
    border-radius: 9999px;
}



.hamburger.is-active:before {
    transform: rotate(-45deg) translate(-5px, 4px);
}

.hamburger.is-active:after {
    transform: rotate(45deg) translate(-10px, -9px);
}

.hamburger.is-active .bar {
    opacity: 0;
} 

/*Hero section*/

.helper {
    width: 100%;
    height: 5rem;
}

.hero-section {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    
    overflow: hidden;
}

.rainbow-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 120%;
    height: 120%;
    z-index: -1;    
    background: conic-gradient(at 78% -22%, #0A192F 170deg, #B52929 180deg , #7729B5 184deg, #B5AF29 194deg, #29B52F 204deg,#0A192F 210deg);
    filter:blur(25px);
    opacity: 1;
    overflow: hidden;
    border: 1px solid red;
    margin: -70px -80px -70px -70px;
}

.hero-section-content {
    position: absolute;
    top: 50%;
    left: 8%;
    overflow: hidden;
    z-index: 3;
}



.hero-section h1,
.hero-section h2 {
    color: #C8D2F2;
}

.hero-section h1 {
    font-size: 2.5rem;
}

.hero-section h2 {
    margin-top: 1.6rem;
}




/* Skills section */

.skills {
    width: 100%;
    padding: 6rem 8%;
    min-height: 35rem;
    display: flex;    
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;    
    gap: 3rem;
    background-color: #C8D2F2;
        
}



.skills-content {    
    max-width: fit-content;
    display: flex;
    flex-direction: column;       
}


.skills-content h2,
.skills-content h3 { 
    color: #0A192F;
}

.skills-content h3 {
    margin-top: 6.2rem;
    line-height: 2rem;
}



.skills-wrapper {    
    max-width: 52rem;
    padding-inline: auto;
    display: flex;
    flex-grow: 1;
    flex-direction: column;    
    gap: 2.5rem;    

}

.skills-wrapper-upper,
.skills-wrapper-lower {
    display: flex;     
    gap: 2.5rem;

}

.skills-wrapper-upper {
    align-self: flex-start;    
}

.skills-wrapper-lower {    
    align-self: flex-end;
}




.skills-wrapper-card {    
    min-width: 10rem;
    min-height: 9rem;
    padding: 1rem 1rem;
    border-radius: 8px;
    background-color: #0A192F;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #4EC4B1;
    box-shadow: 8px 8px 8px 0px #4D4D4D;
}

.card-svg {
    max-height: 100%;
    max-width: auto;
    object-fit: cover;
}


.card-svg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



@media screen and (max-width: 1567px) {

    .skills-content h3 {
        margin-top: 3rem; 
    }    
    .skills-wrapper {
        margin-left: auto;
    }
}


/* Works section */

.works {    
    padding: 6rem 8%;    
    background-image: url(resources/Works.svg);
    background-size: cover;
    background-repeat: no-repeat;
}


.works h2 {
  display: flex;
  justify-content: flex-end;
}

.works-content-current {
   background: #695078;
}

.works-scroller {
    margin-top: 3rem;
    height: 75vh;

    border-radius: 16px;
    border: 3px solid #0a192f4e;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;    
    position: relative;
    z-index: 0;
    box-shadow: 8px 8px 8px 0px #4D4D4D;
}




.works-scroller::-webkit-scrollbar {
    height: 2.2rem;    
    cursor: pointer;
    
}

.works-scroller::-webkit-scrollbar-track {
    height: 2.2rem;
    background-color: #C8D2F2;
    
    border-radius: 0 0 12px 12px;

}

.works-scroller::-webkit-scrollbar-thumb { 
    height: 2.2rem;    
    background: #0A192F;
    border-radius: 0 0 12px 12px;
    
}


.snaps-inline {
    scroll-snap-type: inline mandatory;
}

.snaps-inline > * {
    scroll-snap-align: start;
}

.works-aequilibrum {
    display: grid;
    
    min-height: 100%;
    width: 100%;    
    background-image: linear-gradient(to bottom right,  #695078, #9675AE, #C7A8D1);
    margin-bottom: 1rem;
}

.works-giotur {
    display: grid;
    min-height: 100%;
    width: 100%;
    background-color:#4EC4B1;
    margin-bottom: 1rem;
}


/* About me section */

.about-me-section {
    width: 100%;
    
    min-height: 42rem;
    background-color: #0A192F;

}

.about_me_bg {
    width: 40rem;
    height: 40rem;

    float: left;
    
    margin-bottom: 2rem;
    position: relative;
}

.about_me_photo {
    z-index: 1;
    max-width: 100%;
    max-height: 100%;


}



.about_me_bg::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 101%;
    z-index: 2;    
    background: linear-gradient(to bottom,#0a192f08, #0a192fc7 76%, #0a192feb 86%,#0A192F 100%);
    
}

@media screen and (max-width:60rem) {
    .about_me_bg{
        width: 25rem;
        height: 25rem;
    }
}

.about-me-section-content {
    padding: 6rem 8% 6rem 08%;
    width: auto;
    z-index: 4;
    flex: 1 1;

}

.about-me-section-content h3,
.about-me-section-content h2 {
    color: #4EC4B1;
}

.about-me-section-content h3 {
    margin-top: 3.2rem;
}

/* Contact section */

.contact {
    width: 100%;
    height: auto;    
    padding: 6rem 8% 1rem;
    align-items: center;
    background-color: #C8D2F2;
    position: relative;
    z-index: 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(at 10% 0, #29B52F , #7729B5 , #B52929 ,#B5AF29 );    
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    
}

.contact-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    z-index: 2;
}

.contact-content h2,
.contact-content h3 {
    color:#0A192F;

}

.contact-content h3 {
    margin-top: 3.2rem;
}

.contact-social {
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 2;

}

.contact-social-container {
    display: flex;    
    align-items: center;
    gap: 2rem;
}

.contact-social-container a {
    text-decoration: none;
    color: #0A192F;
    position: relative;
}



.contact-social-container a::after {
    content: "";
    position: absolute;
    height: 0.15rem;
    width: 100%;
    border-radius: 100%;
    background: linear-gradient(to right, #29B52F, #7729B5, #B52929, #B5AF29, #B5AF29, #7729B5, #7729B5);
    background-size: 200% 100%;
    bottom: 0rem;
    left: 0;
    opacity: 0.9;
    transform: scale(0, 1);
    transition: 0.2s;
}

.contact-social-container a:hover::after {
    transform: scale(1, 1);
}


.copyright {
    display: flex;
    width: 100%;    
    justify-content: center;
    color: #0A192F;
    z-index: 2;
}

.copyright h3 {
    color: #0A192F;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 6rem;
    z-index: 2;
}


/* General medias*/

@media screen and (max-width:670px) {
    
    /* Navbar*/
    nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 5rem;
        width: 100%;
        right: -110%;        
        padding: 0;
        height: calc(100vh - 5rem);
        background-color: #0A192F;
        opacity: 0.96 ;
        align-items:start;
        justify-content: auto;
    }

    nav ul {        
        padding: 3rem 0;        
        width: 100%;

    }

    nav ul li {
        display: flex;        
        margin-top: 2rem;
        justify-content: center;

    }

    nav ul li:nth-child(1) {
        margin-top: 0;
    }

    nav ul li a {
        justify-self: center;
    
    }
    
    .open nav {
        right: 0;
    }

    .close nav {
        right: -100%;
    }

    .contact-btn {
        margin-right: 1rem;
    }
    


    .hamburger {
        display: block;
    }

    /*Hero section*/

    .hero-section {
        height: 85vh;
    }

    .rainbow-bg {
        width: 132%;
        margin: -70px -70px -70px -70px;
    }

    .hero-section-content {
        top: 40%;
        left: 8%;
    
    }




    /* Skills section*/

    .skills-wrapper {
        width: 100%;
        justify-content: space-between;
        align-items: space-between;
        
    }

    .skills-wrapper-upper,
    .skills-wrapper-lower {
        gap: none;


        justify-content: space-between;
        
        align-self: center;

    }

  
    .skills-wrapper-card {    
        min-width: 5.7rem;
        max-width: 5.7rem;
        min-height: 7.8rem;
        justify-content: space-between;
  
    }

    .skills-wrapper-card svg {
        height: 40px;

    }

    .skills-wrapper-card h3 {
        font-size: .83rem;

    }


    /*About me section*/

    .about_me_bg {
        width: 10rem;
        height: 10rem;
        margin-top: 6rem;
        margin-left: 8%;
        overflow: hidden;
        border-radius: 8px;
        margin-right: 3rem;

    }

    .about_me_bg::before {
        background: none;
    }

    .about_me_photo {
        border-radius: 8px;
        transform: scale(3.2, 3.2);
        transform-origin: 53% 8%;
    
        
    }


    /* Contact me section*/

    .contact-horizontal {
        flex-direction: column;
    }

    .contact-social {
        padding: 5rem 0 0 0;
    }
}
