header {
    position: relative;
    padding: 30px 5%;
    color: #fff;
    height: 100%;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(100%);
    box-shadow: inset 0 0 50px 10000px rgba(0, 0, 0, 0.5);
    z-index: -1;
}


nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .mobile_nav_btn{
    display: none;
}

.nav_sidebar{
    transition: all 0.5s ease;
    transform: translateX(-100%);
}

.nav_sidebar.active{
    transform: translateX(0);
}

.nav_logo{
    width: 200px;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}

.nav_logo a{
    width: 200px;
    height: 100%;
    font-family: "Genos", sans-serif;
    transition: all 0.5s ease;
}

.nav_logo img{
    width: 100%;
    height: auto;
}

.nav_logo a:hover{
    color: #FF6969;
}

.nav_links{
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.nav_links a{
    margin: 0 10px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.5s ease;
    text-transform: uppercase;
}

.nav_links a:hover{
    color: #FF6969;
}

#order_btn{
    padding: 0.7rem 1.6rem;
    border: 1px solid hsla(0,0%,100%,.1);
    border-radius: 62.5rem;
    font-size: 14px;
    color: #fff;
    line-height: 1.42;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.5s ease;
}

#order_btn:hover{
    box-shadow: 0 0 1px 0 #fff;
    color: #FF6969;
}


.header_main_text{
    width: 80%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 150px;
}

.header_main_text h1{
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.header_main_text p{
    color: #93999F;
    font-size: 1.5rem;
}

header .header_stack_runner {
    margin-top: 200px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

header .header_stack_runner img {
    width: 150px;
    height: 100px;
    margin: 0 20px;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: invert(1) brightness(2);
}

main{
    padding: 30px 5%;
    height: 100%;
    color: #fff;
}

main .skills_section{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

main .skills_section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/main-earth.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(100%);
    box-shadow: inset 0 0 50px 10000px rgba(0, 0, 0, 0.5);
    z-index: -1;
}


main .skills_section .section_header{
    width: 80%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main .skills_section .section_header h2{
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 20px;
}

main .skills_section .section_header p{
    color: #93999F;
    font-size: 1rem;
    width: 50%;
    margin: 0 auto;
    margin-bottom: 20px;
}

.dropdown{
    display: flex;
    flex-direction: column;
    background: #fff;
    position: absolute;
    z-index: -1;
    top: 115px;
    border-radius: 10px;
    height: 400px;
    overflow-y: auto;
    transform: translateY(50%);
    opacity: 0;
    transition: all 0.5s ease;
}

.dropdown.active{
    transform: translateY(0);
    opacity: 1;
    z-index: 999;
}

.dropdown a{
    color: #000;
    padding: 20px;
    border-radius: 5px;
    margin: 5px;
}

.dropdown a:hover{
    background-color: #000;
    color: #fff;
}

main .skills_section .skill_cards{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    margin-top: 50px;
}

main .skills_section .skill_cards .skill_card{
    width: 220px;
    height: 250px;
    border-radius: 10px;
    border: 1px solid #666A6D;
    padding: 20px;
    transition: all 0.5s ease;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 20px;
}

main .skills_section .skill_cards .skill_card:hover{
    box-shadow: 0 0 3px 0 #fff;
}

main .skills_section .skill_cards .skill_card i{
    font-size: 3rem;
    color: #FF6969;
    margin-bottom: 20px;
}

main .skills_section .skill_cards .skill_card h3{
    font-weight: 400;
    margin-bottom: 10px;
}


main .projects_section{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 200px 0;
}

main .projects_section .section_header{
    display: flex;
    justify-content: space-around;
    align-items: center;
}

main .projects_section .section_header h1{
    font-weight: 300;
    font-size: 60px;
}

main .projects_section .section_header p{
    width: 50%;
    color: #93999F;
    font-size: 1.2rem;
    text-align: center;
}

main .projects_section .projects_list{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    margin-top: 50px;
}

main .projects_section .projects_list .project_card{
    width: 600px;
    height: 450px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    justify-content: space-around;
}

main .projects_section .projects_list .project_card .project_card_img{
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 600px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

main .projects_section .projects_list .project_card .project_card_img img{
    width: 100%;
    height: auto;
    object-fit:cover;
    padding: 5px;
    border: 1px solid #666A6D;
    border-radius: 10px;
}

main .projects_section .projects_list .project_card .project_card_img:hover{
    transform: perspective(1000px) rotateX(15deg);
}

main .projects_section #order_btn{
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.5s ease;
    padding: 10px 50px;
}


footer{
    position: relative;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    color: #fff;
    padding: 20px 0;
}

footer .footer_wrapper{
    width: 80%;
    height: 100%;
    margin: 0 auto;
    padding-top: 30px;
    padding-bottom: 100px;
    border-top: 1px solid #262B2F;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/footer-bg.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(100%);
    box-shadow: inset 0 0 50px 10000px rgba(0, 0, 0, 0.5);
    z-index: -1;
}

footer .footer_info{
    display: flex;
    flex-direction: column;
}

footer .footer_info .footer_info_el{
    display: flex;
    align-items: center;
    margin-top: 30px;
}

footer .footer_info .footer_info_el a{
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
}

footer .footer_info .footer_info_el i{
    font-size: 1.5rem;
    margin-right: 10px;
    font-weight: 100;
}

footer .footer_wrapper .footer_links{
    display: flex;
    align-items: flex-start;
}

footer .footer_wrapper .footer_links .footer_links_el{
    display: flex;
    flex-direction: column;
    margin-right: 40px;
    align-items: flex-start;
    height: 100%;
}

footer .footer_wrapper .footer_links .footer_links_el span{
    font-size: 1.1rem;
    margin-bottom: 10px;
}

footer .footer_wrapper .footer_links .footer_links_el a{
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 300;
    transition: all 0.5s ease;
    margin-bottom: 10px;
}

.reasons_why{
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.reasons_why .reason_wrapper{
    background-color: #071523;
    width: 100%;
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
}

.reason_footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contacts_wrapper{
    height: 40vh;
    text-align: center;
    display: flex;
    align-items: center;
}

.contacts_info{
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 40px;
}

@media (max-width: 768px) {

    header{
        padding: 20px 30px;
    }

    header nav .nav_links, .nav_logo{
        display: none;
    }

    header nav .mobile_nav_btn{
        display: block;
    }

    header nav .mobile_nav_btn i{
        font-size: 2rem;
    }

    #order_btn{
        font-size: 12px;
        padding: 10px;
    }

    .scroll_absolute{
        display: none;
    }

    .header_main_text h1{
        font-size: 2rem;
    }
    .portfolio h1{
        font-size: 55px;
    }
    .header_main_text p{
        font-size: 1rem;
    }

    main .skills_section .section_header h2{
        font-size: 1.5em;
    }

    main .skills_section .section_header p{
        font-size: 0.9rem;
        width: 80%;
    }

    main .skill_cards{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    main .skills_section .skill_cards .skill_card{
        width: 200px;
        height: 250px;
        margin: 0;
    }

    main .skills_section .skill_title h3{
        font-size: 16px;
    }

    main .skills_section p{
        font-size: 14px;
    }

    main .projects_section .section_header{
        display: flex;
        flex-direction: column;
    }

    main .projects_section .section_header h1{
        font-size: 35px;
    }

    main .projects_section .section_header p{
        width: 80%;
        font-size: 0.9rem;
    }

    main .projects_section .projects_list{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    main .projects_section .projects_list .project_card{
        width: 300px;
        height: 150px;
        padding: 10px;
        margin: 40px 0;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    main .projects_section .projects_list .project_card .project_card_img{
        width: 300px;
        height: 150px;
        margin-bottom: 30px;
    }

    main .projects_section .projects_list .project_card .project_card_info h3{
        font-size: 1rem;
    }

    .projects_list .project_card .project_card_info p{
        font-size: 0.8rem;
        color: #666A6D;
    }

    footer .footer_wrapper{
        flex-direction: column;
        align-items: center;
        padding: 0;
        width: 100%;
    }

    footer{
        padding: 0;
    }

    footer .footer_wrapper .footer_info_el{
        margin-top: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    footer .footer_wrapper .footer_links{
        margin-top: 40px;
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        justify-content: center;
    }

    footer .footer_wrapper .footer_links .footer_links_el{
        text-align: center;
        margin-top: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .about_text{
        width: 100%;
    }

    .about_text p{
        font-size: 1rem;
    }

    .reasons_why .reason_wrapper{
        background-color: #071523;
        width: 100%;
        padding: 40px;
        border-radius: 10px;
        margin-top: 40px;
    }

    .reason_wrapper h3{
        font-size: 18px;
    }

    .reason_wrapper h1{
        font-size: 16px;
    }

    .reason_footer h1{
        text-align: center;
        font-size: 16px;
    }

    .reason_footer p{
        text-align: center;
        font-size: 12px;
    }

    .contacts_wrapper{
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .contacts_wrapper h1{
        font-size: 3rem;
    }

    .contacts_info{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contacts_info .contact_info_el{
        margin-bottom: 20px;
    }

    .contacts_info .contact_info_el h3{
        font-size: 16px;
        color: red;
    }

    .contacts_info .contact_info_el span{
        font-size: 14px;
        color: red;
    }

    .nav_sidebar{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000A14;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .nav_sidebar .nav_sidebar_contact #order_btn{
        font-size: 1rem;
        padding: 10px 20px;
    }

    .nav_sidebar .nav_sidebar_close{
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        color: #fff;
        cursor: pointer;
    }

    .nav_sidebar .nav_sidebar_links{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav_sidebar .nav_sidebar_links a{
        font-size: 2rem;
        color: #fff;
        text-decoration: none;
        transition: all 0.5s ease;
    }

    .nav_sidebar .nav_sidebar_contact{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 50px;
    }

    .nav_sidebar .nav_sidebar_contact a{
        font-size: 1.5rem;
        color: #fff;
        text-decoration: none;
        transition: all 0.5s ease;
    }
}


