html {
    scroll-behavior: smooth;
}

body {
    background-color: ghostwhite;
}

@font-face {
    font-family: allagia;
    src: url(fonts/allagia.otf)
}

@font-face {
    font-family: cutiva;
    src: url(fonts/CutiveMono-Regular.ttf)
}

@font-face {
    font-family: gyre;
    src: url(fonts/gyre.otf)
}

* {
    box-sizing: border-box;
}

:root {
    height: 100%
}

body {
    height: 100%;
    margin: 0;
    text-rendering: optimizeLegibility;
}

.w3-animate-right {
    position: relative;
    animation: animateright 2s
}

@keyframes animateright {
    from {
        right: -300px;
        opacity: 0
    }
    to {
        right: 0;
        opacity: 1
    }
}

.w3-animate-left {
    position: relative;
    animation: animateleft 2s
}

@keyframes animateleft {
    from {
        left: -300px;
        opacity: 0
    }
    to {
        left: 0;
        opacity: 1
    }
}

h1 {
    font-size: 3vw;
    color: #F8F2F5;
    font-family: allagia, sans-serif;
}

h2 {
    position: relative;
    padding: 0;
    margin: 0;
    font-family: "Raleway", sans-serif;
    font-weight: 300;
    font-size: 40px;
    color: #b874f0;
    -webkit-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}

h2 span {
    display: block;
    font-size: 0.5em;
    line-height: 1.3;
}

h2 em {
    font-style: normal;
    font-weight: 600;
}

.heading h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 160px;
    text-align: center;
    margin: auto;
    white-space: nowrap;
    padding-bottom: 13px;
}

.heading h2:before {
    background-color: #671569;
    content: '';
    display: block;
    height: 3px;
    width: 75px;
    margin-bottom: 5px;
}

.heading h2:after {
    background-color: #671569;
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    height: 3px;
    width: 75px;
    margin-bottom: 0.25em;
}

#quote {
    font-size: 15px;
    color: #F8F2F5;
    font-family: cutiva;
    padding-top: 20%;
}

h2 {
    font-family: gyre, sans-serif;
    color: #6d4291;
    font-size: 40px;
    text-align: center;
    margin: 0;
}

p {
    font-family: gyre, sans-serif;
    font-size: 16px;
    color: #3C3C3C;
}

li {
    font-size: 20px;
    font-family: gyre, sans-serif;
    line-height: 24px;
}

section {
    padding: 1rem 0;
}

hr {
    background-color: #b874f0;
    border: 0 none;
    color: #eee;
    height: 4px;
    margin: 40px;
    border-radius: 7px 7px 7px 7px;
}

span {
    font-family: gyre, sans-serif;
    font-size: 1.5rem;
    color: #3C3C3C;
}


/*Header image, greeting, button */

#header-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: rgb(58, 27, 70);
    overflow: hidden;
}

#angled {
    position: absolute;
    width: 150%;
    height: 100%;
    top: 0;
    left: 30%;
    background-color: rgb(19, 5, 18);
    transform: skewX(-15deg);
}

#photo {
    position: absolute;
    height: 70%;
    top: 5%;
    left: 30%;
    transform: translateX(-30%);
}

#greeting {
    position: absolute;
    top: 0;
    left: 40%;
    transform: translateX(30%);
    margin: 10%;
    transition: transform 1000ms;
}

#greeting p {
    font-size: 2vw;
    color: #d3d3d3;
    margin: 0;
    font-family: gyre, sans-serif;
    height: 100%;
}

#greeting img {
    position: absolute;
    height: 15%;
    vertical-align: middle;
}

#greeting h1 {
    white-space: nowrap;
    overflow: hidden;
    color: #a59f9f;
    margin: 0 auto;
    animation: typing 3.5s steps(20, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent
    }
}

.btn {
    font-size: 1vw;
    margin: 0 9px;
    background: rgb(63, 16, 70);
    border-radius: 2rem;
    color: #f8f8f8;
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    transition: background-color 650ms;
    font-weight: 500;
    letter-spacing: 2px;
    text-decoration: none;
    font-family: gyre, sans-serif;
}

.btn:hover {
    color: #000000;
    background: rgb(218, 170, 219);
}


/*About section*/

.main-cont {
    background-color: ghostwhite;
    margin: 4%;
}

.container {
    background-color: ghostwhite;
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about {
    width: 100%;
    max-width: 70rem;
    margin: auto;
}

.about .container {
    display: flex;
    align-items: center;
}

.about-img img {
    height: 12rem;
    width: auto;
    border-radius: 70%;
    display: block;
    margin-right: 1rem;
    box-shadow: 0 20px 30px 0 rgba(255, 201, 166, 0.5);
    justify-content: center;
}

.about-text-box {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    margin-left: 10%;
    margin-bottom: 5%;
    margin-top: 5%;
}

.about-text-box p {
    font-family: gyre, sans-serif;
    font-size: 1.4rem;
    padding: 0;
    margin: 0 0 1.45rem;
}


/*Education section*/

.edu-shadow {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.education {
    display: flex;
    justify-content: center;
}

.education-item {
    height: 20rem;
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: default;
}

.education-item p {
    font-family: gyre, sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.education-item i {
    font-size: 1.5rem;
}


/* Skills */

#skill-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 8px;
    width: 95%;
    height: auto;
    margin: 40px auto;
    background-color: #fff;
    border: 1px solid #cdcdcd;
    padding: 10px;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
}

.skill-bar {
    width: calc(1/3*100% - (1 - 1/3)*10px);
    box-sizing: border-box;
    height: 50px;
    position: relative;
    background: rgba(17, 17, 17, .3);
    margin: 20px auto;
}


/************HTML and CSS*************/

#skill-html {
    width: 90%;
    height: 50px;
    position: absolute;
    background-color: #4e1072;
}

.skill-area {
    z-index: 1;
    float: left;
    margin-top: 15px;
    margin-left: 15px;
    text-shadow: none;
    color: rgb(219, 204, 204);
    font-size: 18px;
}

@keyframes animate-html {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-webkit-keyframes animate-html {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-moz-keyframes animate-html {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}


/************JAVASCRIPT*************/

#skill-javascript {
    width: 90%;
    height: 50px;
    position: absolute;
    background-color: #4e1072;
}

@keyframes animate-js {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-webkit-keyframes animate-js {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-moz-keyframes animate-js {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}


/************JAVA*************/

#skill-java {
    width: 90%;
    height: 50px;
    position: absolute;
    background-color: #4e1072;
}

@keyframes animate-java {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-webkit-keyframes animate-java {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-moz-keyframes animate-java {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}


/************PYTHON*************/

#skill-python {
    width: 90%;
    height: 50px;
    position: absolute;
    background-color: #4e1072;
}

@keyframes animate-python {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-webkit-keyframes animate-python {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-moz-keyframes animate-python {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}


/************ C# *************/

#skill-csharp {
    width: 90%;
    height: 50px;
    position: absolute;
    background-color: #4e1072;
}

@keyframes animate-csharp {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-webkit-keyframes animate-csharp {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-moz-keyframes animate-csharp {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}


/************ SQL *************/

#skill-sql {
    width: 90%;
    height: 50px;
    position: absolute;
    background-color: #4e1072;
}

@keyframes animate-sql {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-webkit-keyframes animate-sql {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-moz-keyframes animate-sql {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}


/************ GIT *************/

#skill-git {
    width: 90%;
    height: 50px;
    position: absolute;
    background-color: #4e1072;
}

@keyframes animate-git {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-webkit-keyframes animate-git {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-moz-keyframes animate-git {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}


/************ Android Development *************/

#skill-android {
    width: 90%;
    height: 50px;
    position: absolute;
    background-color: #4e1072;
}

@keyframes animate-android {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-webkit-keyframes animate-android {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-moz-keyframes animate-android {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}


/************ GO *************/

#skill-go {
    width: 90%;
    height: 50px;
    position: absolute;
    background-color: #4e1072;
}

@keyframes animate-go {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-webkit-keyframes animate-go {
    from {
        width: 10px;
    }
    to {
        width: 90%
    }
}

@-moz-keyframes animate-go {
    from {
        width: 50px;
    }
    to {
        width: 90%
    }
}


/* Projects */

.has-margin-right {
    margin: 0 3rem 0 0;
}

.projs {
    padding: 0 20%;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1.45rem 5rem 1.45rem;
}

.project-img {
    flex: 1;
}

.project-img img {
    width: 70%;
    max-width: 100%;
    height: auto;
}

.project-description {
    flex: 1;
}

.project-description h2 {
    font-size: 2rem;
    margin: 2rem 0;
    background: linear-gradient( to right, rgba(249, 105, 14, 1) 0%, rgba(102, 51, 153, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-description li {
    font-size: 16px;
    color: #3C3C3C;
}

.project-link {
    display: inline-block;
    margin: 2rem 0;
    font-size: 1.4rem;
}

.project-item i {
    font-size: 1rem;
    color: rgb(189, 72, 0);
    ;
}


/*Contact*/

.fo {
    left: 0;
    bottom: 0;
    width: 100%;
    padding-bottom: 20px;
    color: white;
    text-align: center;
}

.fo i {
    padding: 20px;
    font-size: 50px;
    width: 100px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
    color: #50154d;
}

.fi i:hover {
    opacity: 0.7;
    color: #50154d;
}


/*Scroll elements*/

.js-scroll {
    opacity: 0;
    transition: opacity 500ms;
}

.js-scroll.scrolled {
    opacity: 1;
}

.scrolled.fade-in {
    animation: fade-in 1s ease-in-out both;
}

.scrolled.fade-in-bottom {
    animation: fade-in-bottom 1s ease-in-out both;
}

.scrolled.slide-left {
    animation: slide-in-left 1s ease-in-out both;
}

.scrolled.slide-right {
    animation: slide-in-right 1s ease-in-out both;
}

.scrolled.animate-html {
    animation: animate-html 4s;
}

.scrolled.animate-js {
    animation: animate-js 5s;
    -webkit-animation: animate-js 5s;
    -moz-animation: animate-js 5s;
}

.scrolled.animate-android {
    animation: animate-android 5s;
    -webkit-animation: animate-android 5s;
    -moz-animation: animate-android 5s;
}

.scrolled.animate-java {
    animation: animate-java 5s;
    -webkit-animation: animate-java 5s;
    -moz-animation: animate-java 5s;
}

.scrolled.animate-go {
    animation: animate-go 5s;
    -webkit-animation: animate-go 5s;
    -moz-animation: animate-go 5s;
}

@keyframes slide-in-left {
    0% {
        -webkit-transform: translateX(-100px);
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    0% {
        -webkit-transform: translateX(100px);
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in-bottom {
    0% {
        -webkit-transform: translateY(50px);
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/*Media queries*/

@media (max-width: 960px) {
    .education-item {
        padding: 10%;
        height: 10rem;
        font-size: 1rem;
    }
    .education {
        flex-direction: column;
        margin: 0 25%;
    }
    .project-img {
        width: 20rem;
        position: center;
        text-align: center;
        margin: 0;
    }
    .project-img img {
        text-align: center;
        margin: 0;
        width: 100%;
    }
    .has-margin-right {
        margin: 0;
    }
}

@media (max-width: 750px) {
    .main-message h3 {
        font-size: 3rem;
    }
    .about .container {
        flex-direction: column;
    }
    .about-text-box p,
    .education-item p,
    .contact p,
    .project-description p {
        font-size: 1rem;
    }
    .education {
        gap: 0;
        padding-left: 0;
    }
    .education-item {
        padding: 0;
    }
    span {
        font-size: 1rem;
    }
    .projs {
        padding: 0;
    }
    .project-item {
        display: block;
        padding: 0.5rem;
        margin: 0;
        box-shadow: 0 20px 30px 0 rgba(212, 255, 255, 0.15);
    }
    .project-img {
        margin: auto;
    }
    .project-column-reverse {
        flex-direction: column-reverse;
    }
}

@media screen and (max-width: 402px) {
    #photo {
        height: 80%;
    }
    .btn {
        border-radius: 0.9rem;
        padding: 0.5rem 0.5rem;
        font-size: 3vw;
        margin: 20px 0;
    }
    #greeting h1 {
        font-size: 5.1vw;
    }
    .education-item {
        margin-bottom: 25%;
    }
    .project-item {
        display: block;
        padding: 0.5rem;
        margin: 0;
        box-shadow: 0 20px 30px 0 rgba(212, 255, 255, 0.15);
    }
    .project-img {
        margin: auto;
    }
    .project-img img {
        text-align: center;
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 668px) {
    .about-text-box h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    .about-text-box p {
        margin: 0 0 2.45rem;
    }
    #greeting h1 {
        font-size: 3.5vw;
    }
}

@media screen and (max-width: 626px) {
    #greeting {
        top: 70%;
        left: 50%;
        width: 100%;
        transform: translateX(-50%);
        padding: 10px 10px;
        background: rgba(46, 16, 43, 0.9);
        margin: 0;
        text-align: center;
    }
    .skill-bar {
        width: 90%;
    }
    #greeting p {
        font-size: 4vw;
    }
    #photo {
        height: 90%;
    }
    .btn {
        border-radius: 0.9rem;
        padding: 0.6rem 0.6rem;
        font-size: 2.5vw;
        margin: 10px 0;
    }
    #quote {
        font-size: 10px;
        color: #F8F2F5;
        font-family: cutiva;
        padding-top: 2%;
    }
    .education {
        flex-direction: column;
    }
}