@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-VariableFont_slnt\,wght.ttf");
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter";
    color: white;
    scroll-behavior: smooth;
    cursor: default;
}
section:not(#hero) {
    font-size: 20px;
}

body {
    background-color: #272932;
    overflow-x: hidden;
}

/* PRELOADER */
#preloader {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: #120003;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.preloader-spinner {
    position: relative;
    width: 64px;
    height: 60px;
  }
  .preloader-spinner::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    background: #fff;
    width: 64px;
    height: 32px;
    border-radius: 0 0 50px 50px;
    animation: move 0.5s linear infinite alternate;
  }
  .preloader-spinner::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    background: #FF3D00;
    width: 24px;
    height: 24px;
    transform: translateX(-50%) rotate(0deg);
    animation: rotate 2s linear infinite;
  }
  
  @keyframes rotate {
    100% { transform: translateX(-50%) rotate(360deg)}
  }
  @keyframes move {
    0% { transform: rotate(10deg)}
    100% { transform: rotate(-10deg)}
  }
  /* PRELOADER END */

#desktop-nav {
    width: 50%;
    height: 3rem;
    background-color: #981212;
    opacity: 0.2;
    position: fixed;
    top: -2.1rem;
    left: calc(50% - 25%);
    border-radius: 0 0 30px 30px;
    transition: 0.5s;
}
#desktop-nav:hover {
    opacity: 1;
    transition: 0.5s;
    top: 0;
}
#desktop-nav ul {
    height: 100%;
    list-style-type: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
#desktop-nav ul li a, #mobile-nav ul li a {
    text-decoration: none;
}
#desktop-nav ul li a:hover {
    cursor: pointer;
    filter: brightness(0.7);
    transition: 0.4s;
}

#mobile-nav-open {
    position: fixed;
    top: 2rem;
    right: 0;
    height: 3rem;
    width: 3.5rem;
    border-radius: 50px 0 0 50px;
    text-align: center;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    display: none;
}
#hamburger {
    font-size: 2rem;
}
#close {
    font-size: 3rem;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
}
#mobile-nav {
    padding: 1rem;
    position: fixed;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #260108;
    border-radius: 0 0 50px 50px;
    display: none;
    z-index: 99;
}
#mobile-nav ul {
    list-style-type: none;
    width: 100%;
}
#mobile-nav ul li {
    padding: 1rem;
    border-bottom: 1px solid rgba(240, 93, 94, 0.25);
}
#mobile-nav ul li:last-of-type {
    border: none;
    padding: 0;
    padding-top: 1rem;
}
#mobile-nav ul li a i {
    font-size: 1.5rem;
}

@media only screen and (max-width: 900px) {
    #desktop-nav {
        display: none;
    }
    #mobile-nav-open {
        display: flex;
    }
}

#back-to-top {
    font-size: 42px;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
}
#back-to-top:hover {
    cursor: pointer;
    color: #F05D5E;
    transition: 0.7s;
}

.shadow {
    box-shadow: 0 0 4px 3px #F05D5E;
    background-color: #260108;
    border: none;
    border-radius: 5px;
}
.contact {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}
.contact:hover {
    cursor: pointer;
    background-color: #981212;
    transition-duration: 0.7s;
}

/* HERO SECTION */
#hero {
    background-image: url("../images/hero.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100vw;
    height: 100vh;
    padding-left: 10%;
    display: flex;
    align-items: center;
}
#my-name {
    font-size: 3rem;
}
#role {
    font-size: 1.5rem;
    color: #F05D5E;
    padding-bottom: 0.7rem;
    padding-left: 1rem;
}
#links {
    display: inline-flex;
}
#hero-socials {
    margin-right: 2rem;
}
#hero-socials a i {
    font-size: 2rem;
    padding-right: 0.7rem;
}
#hero-socials a i:hover {
    color: #F05D5E;
    transition-duration: 0.7s;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    #hero {
        padding-left: 0;
        justify-content: center;
        align-items: flex-start;
        padding-top: 15%;
        text-align: center;
    }
    #my-name {
        font-size: 2.5rem;
    }
    #role {
        font-size: 1.2rem;
        padding-left: 0;
    }
    #hero-socials {
        margin-right: 1rem;
    }
}
@media only screen and (max-width: 450px) {
    #hero {
        padding-left: 0;
        justify-content: center;
        align-items: flex-start;
        padding-top: 50%;
    }
    #my-name {
        font-size: 2rem;
    }
    #role {
        font-size: 1rem;
    }
    #hero-socials {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    #links {
        flex-direction: column;
    }
}
/* END HERO */
section {
    margin-bottom: 1rem;
}
.section-title {
    text-align: center;
    margin-bottom: 0.3rem;
}
.underline {
    width: 10%;
    height: 1px;
    background-color: #F05D5E;
    margin: 0 auto;
}

/* ABOUT SECTION */
#about-content {
    display: flex;
    justify-content: center;
}
#about-content h3 {
    margin-bottom: 0.5rem;
}
#about-left {
    padding: 1rem;
    width: 55%;
}
#about-left p a {
    color: #F05D5E;
    text-decoration: none;
}
#about-left p a:hover {
    color: #981212;
    cursor: pointer;
}
#about-right {
    padding: 1rem;
    width: 45%;
}
#about-left p, .experience-container {
    margin-bottom: 1rem;
    padding-left: 1rem;
}
#about-right button {
    margin-top: 1rem;
    margin-left: 1.1rem;
}
.company {
    color: #F05D5E;
    font-weight: 600;
}
.experience-info {
    display: flex;
    flex-wrap: wrap;
}
.job-role {
    font-weight: 500;
}
.job-role::after {
    content: " - ";
}
@media only screen and (max-width: 500px) {
    #about-content {
        flex-direction: column;
    }
    #about-left, #about-right {
        width: 100%;
    }
    #about-right, #about-left {
        text-align: center;
    }
    #about-right h3, #about-left h3 {
        text-align: left;
    }
    #about-right button {
        margin-left: 0;
    }
    .experience-info {
        justify-content: center;
    }
}
/* END ABOUT */

/* PROJECTS SECTION */
.project {
    width: 100%;
    height: auto;
    min-height: 75vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    /* background-color: #063737; */
    padding: 2rem 1rem;
    box-shadow: 0 2px 1px -1px #260108;
}
.project-preview {
    box-shadow: 0 0 4px 3px #F05D5E;
    background-color: #260108;
    border: none;
    border-radius: 5px;
    margin-right: 1rem;
    max-height: 65vh;
    width: auto;
    height: auto;
}
.project-preview:hover {
    cursor: pointer;
    transition: 0.5s;
    filter: brightness(70%);
}
.project-info {
    align-self: center;
}
.project-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.project-desc {
    padding: 0.5rem 1rem;
    font-weight: 200;
    font-size: 1.3rem;
}
@media only screen and (max-width: 900px) {
    .project-preview {
        max-height: 50vh;
    }
    section:not(#hero), .project-desc {
        font-size: 16px;
    }
    .project-title {
        font-size: 1.3rem;
    }
}
@media only screen and (max-width: 700px) {
    .project {
        flex-direction: column;
    }
    .reverse {
        flex-direction: column-reverse;
    }
    .project-preview {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}
/* END PROJECTS */

/* CONTACT SECTION */
#contact input, #contact textarea {
    background-color: #063737;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}
#contact input:hover, #contact textarea:hover {
    background-color: #0d7272;
    transition: 0.7s;
    cursor:text
}
#contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 35%;
    margin: 2rem auto;
}
#contact-form button {
    background-color: #063737;
    width: 50%;
    padding: 0.5rem 1rem;
    margin: 0.5rem auto;
}
#contact-form button:hover {
    cursor: pointer;
    background-color: #0d7272;
    transition: 0.7s;
}
@media only screen and (max-width: 700px) {
    #contact-form {
        width: 45%;
    }
}
@media only screen and (max-width: 450px) {
    #contact-form {
        width: 70%;
    }
}
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: #FF3D00;
    border-radius: 50%;
    display: block;
    margin: 0.5rem auto;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    } 
/* END CONTACT */

/* FOOTER */
footer {
    text-align: center;
    background-color:#260108;
    box-shadow: 0 0 2px 1px #F05D5E;
    padding: 1rem;
}
footer h5 {
    margin-bottom: 0.5rem;
}
#footer-socials {
    font-size: 1.5rem;
}
#footer-socials a i:hover {
    color: #F05D5E;
    transition-duration: 0.7s;
    cursor: pointer;
}
/* END FOOTER */