/* Import Google Font - Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    background-color: #181A1B;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;

}

.container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

p {
    color: #CDCCC9;
    font-size: 1.4rem;
    margin-top: 5px;
    line-height: 2.5rem;
    font-weight: 300;
    letter-spacing: .05rem;
}

.section-title {
    font-size: 4rem;
    font-weight: 300;
    color: #CDCCC9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .2rem;
    text-align: center;
}

.section-title span {
    background: linear-gradient(to right, coral,#FF5757);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.cta {
    display: inline-block;
    padding: 10px 30px;
    color: #FF5757;
    background-color: transparent;
    border: 2px solid #FF5757;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: .1rem;
    margin-top: 36px;
}

.cta:hover {
    color: #FFF;
    background: linear-gradient(to right, coral 0%,#FF5757 100%);
}

.brand h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: #CDCCC9;
}

.brand h1 span {
    background: linear-gradient(to right, coral 0%,#FF5757 100%);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.key-button {
    background: linear-gradient(to right, coral,#FF5757);
    border-radius: 16px;
    padding: 2px;
    margin: 4px;
    color: black;
}

/* Scroll bar */

::-webkit-scrollbar {
    width: 1em;
    height: 1em;

}

::-webkit-scrollbar-track {
    background: hsl(0 0% 15% / 1);
    border-radius: 100vw;
    margin-block: .5em;
}

::-webkit-scrollbar-thumb {
    background: hsl(6 80% 60% / 1);
    border: .25em solid hsl(0 0% 15% / 1);
    border-radius: 100vw;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(6 93% 71% / 1);
}

@supports (scrollbar-color: salmon, black) {
    * {
        scrollbar-color: hsl(6 80% 60% / 1) hsl(0 0% 15% / 1);
        scrollbar-width: thin;
    }
}

/* End scroll bar section */

/* Header section */

#header {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: auto;
}

#header .header {
    min-height: 8vh;
    background-color: rgba(31, 30, 30, 0.24);
}

#header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    padding: 0 10px;
}

#header .nav-list ul {
    list-style: none;
    position: absolute;
    background-color: rgb(31, 30, 30);
    width: 100vw;
    height: 100vh;
    left: 100%;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow-x: hidden;
    transition: .5s ease left;
}

#header .nav-list ul.active {
    left: 0;
}

#header .nav-list ul a {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: .2rem;
    text-decoration: none;
    color: #FFF;
    text-transform: uppercase;
    padding: 20px;
    display: block;
}

#header .nav-list ul a::after {
    content: attr(data-after);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: rgba(248, 248, 255, 0.021);
    font-size: 13rem;
    letter-spacing: 50px;
    z-index: -1;
    transition: .3s ease letter-spacing;
}

#header .nav-list ul li:hover a::after {
    transform: translate(-50%, -50%) scale(1);
    letter-spacing: initial;
}

#header .nav-list ul li:hover a {
    color: #FF5757;
}

#header .hamburger {
    height: 60px;
    width: 60px;
    display: inline-block;
    border: 3px solid #FFF;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transform: scale(.8);
    margin-right: 20px;
}

#header .hamburger:after {
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    border-radius: 50%;
    border: 3px solid #FFF;
    animation: hamburger_pulse 1s ease infinite;
}

#header .hamburger .bar {
    height: 2px;
    width: 30px;
    position: relative;
    background-color: #FFF;
    z-index: -1;
}

#header .hamburger .bar::after,
#header .hamburger .bar::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    background-color: #FFF;
    transition: .3s ease;
    transition-property: top, bottom;
}

#header .hamburger .bar::after {
    top: 8px;
}

#header .hamburger .bar::before {
    bottom: 8px;
}

#header .hamburger.active .bar::before {
    bottom: 0;
}

#header .hamburger.active .bar::after {
    top: 0;
}

/* End hero section */

/* Hero section */

#hero {
    background-image: url("images/hero2.jpg");
    background-size: cover;
    background-position: top center;
    position: relative;
    z-index: 1;
}

#hero::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    opacity: .7;
    z-index: -1;
}

#hero .hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    justify-content: flex-start;
}

#hero h1 {
    display: block;
    width: fit-content;
    font-size: 4rem;
    position: relative;
    color: transparent;
    animation: text_reveal .5s ease forwards;
    animation-delay: 1s;
}

#hero h1:nth-child(1) {
    animation-delay: 1s;
}

#hero h1:nth-child(2) {
    animation-delay: 2s;
}

#hero h1:nth-child(3) {
    font-weight: 300;
    animation: text_reveal_name .5s ease forwards;
    animation-delay: 3s;
}

#hero h1 span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #FF5757;
    animation: text_reveal_box 1s ease;
    animation-delay: .5s;
}

#hero h1:nth-child(1) span {
    animation-delay: .5s;
}

#hero h1:nth-child(2) span {
    animation-delay: 1.5s;
}

#hero h1:nth-child(3) span {
    animation-delay: 2.5s;
}

#hero .cta:hover {
    transition: 1s ease;
}

/* End hero section */

/* About section */

#about .about {
    flex-direction: column-reverse;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

#about .col-left {
    width: 250px;
    height: 360px;
}

#about .col-right {
    width: 100%;
}

#about .col-right h2 {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: .2rem;
    margin-bottom: 20px;
    color: #CDCCC9;
}

#about .col-right p {
    margin-bottom: 20px;
}

#about .col-right a {
    color:#FF5757;
}

#about .col-right a:hover {
    color:#FFF;
    transition: 1s ease;
}

#about .col-right .cta {
    color: #FF5757;
    margin-bottom: 50px;
    padding: 10px 20px;
    font-size: 2rem;
}

#about .col-right .cta:hover {
    color: #FFF;
}

#about .col-left .about-img {
    height: 100%;
    width: 100%;
    position: relative;
    border: 10px solid #181A1B;
}

#about .col-left .about-img::after {
    content: '';
    position: absolute;
    left: -33px;
    top: 19px;
    height: 98%;
    width: 98%;
    border: 7px solid #FF5757;
    z-index: -1;
}

/* End about section */

/* Article section */

#articles .articles {
    flex-direction: column;
    text-align: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 100px 0;
}

#articles .article-top {
    max-width: 500px;
    margin: 0 auto;
}

#articles .article-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

#articles .article-item {
    flex-basis: 80%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px #21262C;
    background-image: linear-gradient(to right, #181A1B 0%,#161616 100%);
    /* To switch back to image background background-image: url("images/article2.jpg"); */
    background-size: cover;
    margin: 10px 5%;
    position: relative;
    overflow: hidden;
}

#articles .article-bottom .icon {
    height: 80px;
    width: 80px;
    margin-bottom: 20px;
}

#articles .article-item h2 {
    font-size: 2rem;
    color: #CDCCC9;
    margin-bottom: 10px;
    text-transform: uppercase;
}

#articles .article-item p {
    color: #CDCCC9;
    text-align: left;
}

#articles .article-bottom a {
    color:#FF5757;
    margin-top: 30px;
    font-size: 1.5rem;
    font-weight: 800;
}

#articles .article-bottom a:hover {
    color: #FFF;
    transition: 1s ease;
}

#articles .article-bottom .cta {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 2rem;
    font-weight: 500;
}

/* End of article section */

/* Projects section */

#projects .projects {
    flex-direction: column;
    margin: 0 auto;
    padding: 100px 0;
}

#projects .projects-header {
    max-width: 500px;
}

#projects .projects-header p {
    margin: 15px;
}

#projects .projects-header h1 {
    margin-bottom: 50px;
}

#projects .all-projects {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    overscroll-behavior-inline: contain;
    height: 80%;
    width: 100%;
}

#projects .project-item {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    flex: none;
    scroll-snap-align: start;
}

#projects .project-info {
    padding: 30px;
    flex-basis: 50%;
    color: #FFF;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

#projects .project-info h1 {
    font-size: 4rem;
    font-weight: 500;
}

#projects .project-info h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 10px;
}

#projects .project-info p {
    color: #FFF;
}

#projects .project-info a {
    color:#FF5757;
    margin-top: 30px;
    font-size: 1.5rem;
    font-weight: 800;
}

#projects .project-info a:hover {
    color: #FFF;
    transition: 1s ease;
}

#projects .project-info .cta {
    margin: 4px auto;
    padding: 10px 20px;
    font-size: 2rem;
    font-weight: 500;
}

#projects .project-info h3 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content:flex-start;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 10px;
}

#projects .project-image {
    flex-basis: 50%;
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

/* End of projects section */

/* Contact section */

#contact .contact {
    flex-direction: column;
    margin: 0 auto;
    padding: 60px 0;
    position: relative;
}

#contact .contact-holder {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: #CDCCC9;
    padding-left: 60px;
}

#contact .contact-items {
    display: flex;
    width: 80%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0px;
    margin: 10px 40px;
}

#contact .contact-items {
    padding-left: 40px;
    padding-right: 40px;
}

#contact .contact-item p {
    font-size: 1.5rem;
    font-weight: 300;
    color: #CDCCC9;
    margin-bottom: 20px;
    text-align: center;
}

#contact a {
    color: #FF5757;
    transition: .3s ease;
}

#contact a:hover {
    color:#CDCCC9;
}

#contact .icon {
    max-width: 40px;
    height: auto;
    margin: 10px auto;
    filter: grayscale(0);
    transition: .3s ease filter;
}

#contact .icon:hover {
    filter: grayscale(1);
}

#contact .contact-social {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#contact .contact-social .contact-item {
    margin: 0px 15px;
}

#contact .contact-form {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
}

#contact .contact-form h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #CDCCC9;
    margin-bottom: 20px;
    letter-spacing: .2rem;
    text-align: center;
}

#contact .contact-form form {
    display: flex;
    flex-direction: column;
    padding: 100px;
    align-items: center;
    justify-content: center;
}

#contact form input, form textarea {
    border: 0;
    padding: 20px 10px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: .05rem;
    width: 400px;
    color: #FF5757;
    box-shadow: 0px 0px 10px 0px #21262C;
    background-image: linear-gradient(to right, #181A1B 0%,#161616 100%);
    /* To switch back to image background background-image: url("images/article2.jpg"); */
    background-size: cover;
    margin: 10px 5%;
}

#contact form input:focus, form textarea:focus {
    border-bottom: 1px solid #FF5757;
    border-top: 0px;
}

#contact form .cta {
    padding: 10px 20px;
    font-size: 2rem;
    font-weight: 500;
    width: 150px;
}

#contact form .cta:hover {
    transition: 1s ease;
    cursor: pointer;
}

/* End contact section */

/* Footer section */

#footer {
    background-color: #00000075;
}

#footer .footer {
    min-height: 200px;
    flex-direction: column;
    padding-top: 50px;
    padding-bottom: 10px;
}

#footer h2 {
    color: #FFF;
    font-weight: 500;
    font-size: 1.8rem;
    letter-spacing: .1rem;
    margin-top: 10px;
    margin-bottom: 10px;
}

#footer .social-icon {
    display: flex;
    margin-bottom: 30px;
}

#footer .social-item {
    height: 50px;
    width: 50px;
    margin: 0 5px;
}

#footer .social-item img {
    filter: grayscale(1);
    transition: .3s ease filter;
}

#footer .social-item:hover img {
    filter: grayscale(0);
}

#footer p {
    color: #FFF;
    font-size: 1.3rem;
}

/* End footer section */

/* CSS popup */

.popup {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.popup .popup-inner {
    background-image: linear-gradient(to right, #181A1B 0%,#161616 100%);
    overflow-y: auto;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    height: 100%;
    padding: 32px 16px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.popup-inner a {
    text-decoration: none;
    color:#FF5757;
}

.popup-inner a:hover {
    color:#FFF;
    transition: 1s ease;
}

.popup .popup-inner h1 {
    font-weight: 500;
    margin-top: 60px;
    font-size: 4rem;
    color: #CDCCC9;
}

.popup .popup-inner h2 {
    font-weight: 500;
    font-size: 2rem;
    margin-top: 16px;
    color: #CDCCC9;
}

.popup .popup-inner h3 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 10px;
}

.popup .popup-inner p {
    color: #FFF;
    margin-top: 20px;
}

.popup .popup-inner li {
    margin: 12px 20px;
    line-height: 1.8rem;
    color: #FFF;
    
}

.popup .popup-inner li a {
    text-decoration: none;
    color: #FFF;
    font-size: 1.3rem;
}

.popup .popup-inner li a:hover {
    color: #CDCCC9;
}

.popup .popup-inner ul {
    margin: 12px auto;
    line-height: 2rem;
    font-size: 1.4rem;
    color: #CDCCC9;
}

.popup .popup-inner .popup-close {
    color:#000;
    font-size: 1.25rem;
    background: linear-gradient(to right, coral,#FF5757);
    padding: 2px 6px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 800;
}

.popup-inner .popup-close:hover {
    transition: 1s ease;
    color: #CDCCC9;
}

.popup:target {
    opacity: 1;
    pointer-events: all;
}

/* End CSS popup */

/* Keyframes */

@keyframes hamburger_pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

@keyframes text_reveal_box {
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0;
        left: 100%;
    }
}

@keyframes text_reveal {
    100% {
        color: #FFF;
    }
}

@keyframes text_reveal_name {
    100% {
        background: linear-gradient(to right, coral,#FF5757);
        -webkit-text-fill-color: transparent;
        -webkit-background-clip: text;
        font-weight: 500;
    }
}

/* End of Keyframes */

/* Media query for tablet */

@media only screen and (min-width: 768px) {
    .cta {
        font-size: 2.5rem;
        padding: 20px 60px;
    }

    h1 .section-title {
        font-size: 6rem;
    }

    /* Hero */

    #hero h1 {
        font-size: 7rem;
    }

    /* End of hero */

    /* Articles */

    #articles .article-bottom .article-item {
        flex-basis: 45%;
        margin: 2.5%;
    }

    /* End of articles */

    /* Projects */

    /* End of projects */

    /* About */

    #about .about {
        flex-direction: row;
    }

    #about .col-left {
        width: 600px;
        height: 400px;
        padding-left: 60px;
    }

    #about .about .col-left .about-img::after {
        left: -45px;
        top: 34px;
        height: 98%;
        width: 98%;
        border: 10px solid #FF5757;
    }

    #about .col-right {
        text-align: left;
        padding: 30px;
    }

    #about .col-right h1 {
        text-align: left;
    }

    /* End of about */

    /* Projects */

    /* End of Projects */

    /* Contact */

    #contact .contact-form {
        flex-direction: column;
        margin: 30px auto;
    }

    #contact .contact-social {
        flex-direction: row;
        padding: 20px 20px;
    }

    #contact .contact-info {
        padding: 0px 15px;
    }

    #contact .contact-items {
        border-radius: 10px;
        box-shadow: 0px 0px 10px 0px #21262C;
        background-image: linear-gradient(to right, #181A1B 0%,#161616 100%);
        /* To switch back to image background background-image: url("images/article2.jpg"); */
        background-size: cover;
        margin: 10px 40px;
        padding: 40px 60px;
        max-width: 500px;
    }

    #contact .contact-item {
        padding-left: 0px;
    }

    #contact .contact-item p {
        padding-left: 0px;
        padding-right: 0px;
    }

    /* End of contact */

    /* Popup */

    .popup .popup-inner {
        overflow-y: auto;
        scroll-behavior: smooth;
        padding: 32px 16px;
        max-width: 768px;
        max-height: 80%;
        border-radius: 16px;
        box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    }

    .popup .popup-inner .popup-close {
        padding: 2px 6px;
        border-radius: 5px;
        text-transform: uppercase;
        letter-spacing: .1em;
        font-weight: 800;
    }

    .popup .popup-inner h1 {
        margin-top: 0;
    }

    .popup .popup-inner li {
        line-height: .7rem;
    }

    .popup .popup-inner p {
        margin-top: 3rem;
    }

    /* End of popup */
}

/* End media query for tablet */

/* Media query for desktop */

@media only screen and (min-width: 1200px) {
    /* Header */
    #header .hamburger {
        display: none;
    }

    #header .nav-list ul {
        position: initial;
        display: block;
        height: auto;
        width: fit-content;
        background-color: transparent;
    }

    #header .nav-list ul li {
        display: inline-block;
    }

    #header .nav-list ul li a {
        font-size: 1.8rem;
    }

    #header .nav-list ul a:after {
        display: none;
    }
    /*End of header */
    
    #articles .article-bottom .article-item {
        flex-basis: 22%;
        margin: 1.5%;
    }

    /* Projects */

    #projects .projects-header p {
        display: none;
    }

    #projects .all-projects {
        max-width: 1400px;
        height: 500px;
        overflow: hidden;
        background-image: url(./images/project/project_bg.png);
        background-size: contain;
        background-position: right;

    }

    #projects .all-projects .project-item {
        position: relative;
        width: 20%;
        height: 100%;
        border-right: 1px solid #000;
        border-radius: 0;
        box-sizing: border-box;
        transition: 0.5s ease;
        text-align: left;
    }

    #projects .project-item:nth-child(1) {
        background-image: url(/images/project/website.png);
        background-size: cover;
        background-position: left;
    }

    #projects .project-item:nth-child(2) {
        background-image: url(/images/project/splunk.png);
        background-size: cover;
        background-position: left;
    }

    #projects .project-item:nth-child(3) {
        background-image: url(/images/project/terraform.png);
        background-size: cover;
        background-position: left;
    }

    #projects .project-item:nth-child(4) {
        background-image: url(./images/project/ws2019.png);
        background-size: cover;
        background-position: left;
        border-right: 0;
    }

    #projects .all-projects .project-item:hover {
        width: 40%;
    }

    #projects .project-item .project-info {
        position: absolute;
        bottom: -100;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, .8);
        box-sizing: border-box;
        border-radius: 0;
        opacity: 0;
        padding: 0;
        margin: 0;
        z-index: 1;
    }

    #projects .project-info h1 {
        position: relative;
        top: 0;
    }

    #projects .project-image {
        display: none;
    }

    #projects .project-item:hover .project-info {
        bottom: 0;
        transition: 0.5s ease;
        opacity: 1;
    }

    /* End of projects */

    /* Contacts */

    #contact .contact-form {
        flex-direction: row;
        margin: 30px auto;
    }

    /* End of contacts */
}

/* End of media query for desktop */
