/* HEADER */
@media screen and (max-width: 900px) {
    .header .nav-items a {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .header {
        background-attachment: scroll;
    }

    .header__social-icons {
        position: absolute;
        bottom: 1.5em;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        margin: 0 auto;
    }

    .menu-button-container {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 0;
        margin-top: 70px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
    }

    #menu-toggle~.menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    #menu-toggle:checked~.menu li {
        border: none;
        height: 2.5em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    .menu>li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
    }

    .heading-secondary {
        padding-top: 2em;
    }

    .header {
        background-attachment: scroll;
    }



    /* Social icons - remove hover */
    .social-icons__link .fa-github:hover {
        color: #fff;
    }

    .social-icons__link .fa-linkedin:hover {
        color: #fff;
    }

    .social-icons__link .fa-discord:hover {
        color: #fff;
    }

    .social-icons__link .fa-facebook:hover {
        color: #fff;
        background-image: none;
    }

    .social-icons__link .fa-instagram:hover {
        color: #fff;
        background-image: none;

    }

    .social-icons__link .fa-twitter:hover {
        color: #fff;
    }

    .social-icons__link .fa-viber:hover {
        color: #fff;
    }


    /* Navbar remove hover */
    header .nav-items li::after {
        display: none;
        /* Hide the element under 700 pixels */
    }

    .header .nav-items .nav-item:hover::after {
        transform: none;
        background-color: initial;
    }
}


@media screen and (max-width: 500px) {
    .heading-primary--main {
        font-size: 26px;
    }

    .heading-primary--sub {
        font-size: 14px;
    }

    .header_content .media {
        width: 140px;
    }
}


@media screen and (max-width: 400px) {
    .header__social-icons {
        gap: 0;
    }

    .social-icons__link i {
        font-size: 24px;
        padding-right: 0.5em;
    }

    header .nav-items li {
        padding-top: 0em;
        padding-bottom: 0em;
    }
}





/* ABOUT */
@media screen and (max-width: 1200px) {
    .container_about {
        max-width: 800px;
    }

    .category-title {
        font-size: 0.8em;
    }
}

@media screen and (max-width: 900px) {
    .container_about {
        max-width: 700px;
        margin: 0 auto;
        height: auto;
    }

    .about_container_content {
        height: 100%;
    }

    .about__skills-icon {
        height: 1.5em;
        width: 1.5em;
    }

    .tooltip .tooltiptext {
        font-size: 0.75em;
        width: 80px;
        padding: 4px 0;
    }

    .about__skills-icon {
        height: 1.2em;
        width: 1.2em;
    }

    .about__content {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 768px) {
    .container_about {
        max-width: 600px;
        margin: 0 auto;
        height: auto;
    }

    .about_container_content {
        height: 100%;
        padding-top: 0;
    }

    .about__content {
        font-size: 1em;
        font-weight: 400;
        line-height: 1.2;
    }

    .category-title {
        font-size: 0.7em;
    }

    .about__skills-icon {
        height: 1.2em;
        width: 1.2em;
    }

    .tooltip .tooltiptext {
        font-size: 0.6em;
        width: 70px;
        padding: 3px 0;
    }

    .about_technology_first_line,
    .about_technology_second_line {
        gap: 2.5em;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 600px) {
    .container_about {
        max-width: 550px;
        margin: 0 auto;
        padding-left: 2em;
        padding-right: 2em;
        font-size: 1em;
        height: auto;
    }

    .about_technology_first_line,
    .about_technology_second_line {
        gap: 1em;
    }
}

@media screen and (max-width: 400px) {
    .about .about__content p {
        text-indent: 2em;
    }

}


/* WORK */
@media screen and (max-width: 768px) {
    .project-box {
        flex: 1 1 100%;
        border-radius: none;
        box-shadow: none;
    }

    .project-box:hover {
        transform: translateY(0px);
        box-shadow: none;
    }

    .project {
        margin: 0 auto;
    }

    .btn-right {
        padding-bottom: 2em;
    }

    .nav-buttons .page-btn {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    .nav-tabs {
        align-items: center;
    }

    .btn--ghost,
    .btn--full {
        padding: 0.5em 1em;
    }
}



/* Table Responsive styles */
@media screen and (max-width: 400px) {
    .table {
        width: 100%;
    }

    .table thead {
        display: none;
    }

    .table tbody {
        display: block;
    }

    .table tr {
        margin-bottom: 10px;
        display: block;
        border: 1px solid #dee2e6;
    }

    .table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5em;
        justify-content: left;
        box-sizing: border-box;
    }

    .table td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
    }

    .show-all-btn {
        padding-bottom: 2em;
    }

}



/* COUNTER */
@media screen and (max-width: 990px) {
    .counter-item {
        flex: 0 0 45%;
        max-width: 45%;
    }
}

@media screen and (max-width: 580px) {
    .counter-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* CONATCTS */
@media screen and (max-width: 980px) {
    .form_contact {
        width: 80%;
    }
}

@media screen and (max-width: 768px) {
    .form_contact {
        width: 90%;
    }
}

@media screen and (max-width: 600px) {
    .form_contact {
        width: 100%;
    }
}

@media screen and (max-width: 400px) {
    .container_contact {
        padding: 1em;
    }
}



/* FOOTER */

@media screen and (max-width: 768px) {

    /* Social icons - remove hover */
    .ssocial-icons__link_footer .fa-github:hover {
        color: #fff;
    }

    .ssocial-icons__link_footer .fa-linkedin:hover {
        color: #fff;
    }

    .social-icons__link_footer .fa-discord:hover {
        color: #fff;
    }

    .social-icons__link_footer .fa-facebook:hover {
        color: #fff;
        background-image: none;
    }

    .social-icons__link_footer .fa-instagram:hover {
        color: #fff;
        background-image: none;

    }

    .social-icons__link_footer .fa-twitter:hover {
        color: #fff;
    }

    .social-icons__link_footer .fa-viber:hover {
        color: #fff;
    }




    .footer {
        background-attachment: scroll;
    }

}


@media screen and (max-width: 400px) {
    .container {
        padding: 0;
    }

    .social-icons--lg {
        display: block;
        margin: auto;
        margin-bottom: 1em;
        text-align: center;
    }

    .footer-nav-ul {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav-item {
        margin-bottom: 1em;
    }

    .social-icons__link_footer i {
        font-size: 24px;
    }

    .heading-tertiary {
        padding-top: 1em;
    }
}