/* ROBOTO FONTFACE */

@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Noto Sans', sans-serif;
    min-height: 100vh;
    min-width: 360px;
    background-size: cover;
    background-attachment: fixed;
    background-color: rgb(11 17 34);
    background-image: url('../images/hero-dark@90.dba36cdf.jpg');
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend', sans-serif;
}
/* FACE SECTION */

#face {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    background-size: cover;
}

#face .content {
    margin: auto;
    text-align: center;
    color:white;
}

.avatar {
    background: linear-gradient(to right, #ff105f, #ffad06);
    display: inline-flex;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 0 150px 2px rgba(212, 98, 45, 0.5);
}

.avatar img {
    border-radius: 50%;
    width: 130px;
    margin: 3px;
    transition: 0.3s;
}

.avatar:hover {
    box-shadow: 0 0 350px 30px rgba(212, 98, 45, 0.5);
    transform: scale(1.1);
}

#face .content h1 {
    background: linear-gradient(to right, #ff105f, #ffad06);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 60px;
    margin: 10px;
}

#face .content h2 {
    font-size: 18px;
    margin: 10px;
    font-weight: 600;
}


.socials {
    display: flex;
    justify-content: center;
    margin: 20px;
    gap: 10px;
}

.social {
    background-color: transparent;
    padding: 5px;
    display: flex;
    transition: 0.3s;
    border-radius: 5px;
}

.social-content {
    transition: 0.3s;
    width: 0;
    overflow: hidden;
}

.social-content {
    font-size: 14px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.socials a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto Mono', monospace;
}

.arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15px;
    transition: 0.3s;
    color: white;
    cursor: pointer;
    padding: 20px;
}

.arrow.transparent {
    color: rgba(0, 0, 0, 0);
}

section {
    padding: 20px 250px;
}

/* ABOUT ME */

#aboutme {
/*     background-color:  rgba(20, 30, 48, 0.8);
    backdrop-filter: blur(5px); */
    color: white;
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr 1fr;
/*     border-top: solid 1px rgba(255, 255, 255, 0.1);
    border-bottom: solid 1px rgba(255, 255, 255, 0.1); */
}

#aboutme h1 {
    text-align: center;
    font-size: 24px;
    margin: 20px;
}

.aboutme, .education-content, .courses-content {
    padding: 20px;
    box-sizing: border-box;
    background-color: rgba(47, 57, 77, 0.8);
    border-radius: 10px;
    border: solid 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.aboutme p {
    text-align: justify;
}


.courses {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course {
    background-color:  rgba(78, 92, 120, 0.4);
    border: solid 1px rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 72px;
    display: flex;
    width: 100%;
}

.course img {
    width: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.course div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    width: 100%;
}

.course p, .course h4 {
    margin: 0;
}

.course p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.course h4 {
    font-size: 13px;
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 5px;
}

.fin {
    background: linear-gradient(to right, #ff0055, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* PORTFOLIO */

#portfolio {
    color: white;
}

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background-color:  rgba(47, 57, 77, 0.8);
    border: solid 1px rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    border-radius: 10px;
    height: 200px;
    object-fit: cover;
    border: solid 1px rgba(255, 255, 255, 0.1);
}

.card p, h4 {
    overflow-wrap: anywhere;
}

.card p {
    text-align: justify; 
}

.card div {
    display: flex;
    justify-content: end;
    margin-top: auto;
    gap: 10px;
}

.tags {
    flex-wrap: wrap;
}

.tag {
    padding: 2px 7px;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    background: linear-gradient(to right, #ff105f, #ffad06);
    border-radius: 5px;
    font-size: 14px;
    transition: 0.2s;
}

.tag:hover {
    box-shadow: 0 0 10px 0 rgb(255, 78, 55);
}

.card div a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
    background-color: #484f66;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: right;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    border: solid 1px rgba(255, 255, 255, 0.1);
    text-align: center;
}

.card div a:hover {
    filter: brightness(0.7);
}

@media screen and (min-width: 2400px){
    #aboutme {
        width: 1700px;
        margin: auto;
        padding: 0;
    }
    section {
        width: 1700px;
        margin: auto;
        padding: 20px 0;
    }
}

@media screen and (max-width: 1700px) {
    .courses {
        width: 100%;
    }
    .aboutme span {
        width: 100%;
    }
    section {
        padding: 20px 100px;
    }
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .aboutme {
        width: 100%;
    }
    
    .education-content {
        width: 100%;
    }
    
    .courses-content {
        width: 100%;
    }
}

@media screen and (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #aboutme {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 920px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 720px) {
    section {
        padding: 20px;
    }


/*     .card div a {
        padding: 10px 20px;
    } */
}

@media screen and (min-width: 720px) {
    .social:hover {
        background-color: rgba(0, 0, 0, 0.4);
    }
    
    .social:hover .social-content {
        width: 150px;
    }
}