/* MEDIA QUERYS */

/* LAPTOP */
@media (max-width: 1920px) {
    .bg-1::before {
        background-position: 100% 500% !important;
    }
}

@media (max-width: 1440px) {
    .img-button-next {
        left: 1%;
    }

    .img-button-prev {
        right: 1%;
    }
}

/* TABLET */
@media (max-width: 1024px) {
    .slider-wrapper .slider-item .slide-content {
        max-width: 100%;
    }

    .container {
        padding: 0 1rem;
    }

    .header .row {
        align-items: center;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 100px 20px 20px;
        transition: right 0.3s ease;
    }

    nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        border-right: none;
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }

    .nav-link:hover {
        display: none;
    }

    .nav-link:hover {
        opacity: 1 !important;
    }

    .nav-toggle,
    .nav-close {
        display: block;
        margin-left: auto;
    }

    .nav-close {
        position: absolute;
        top: 80px;
        right: 20px;
    }

    .social-media-links {
        display: none;
    }

    .slider-controls {
        display: none;
    }

    .slider-wrapper .slider-item::before {
        background-position: -115%;
    }

    .about .row {
        flex-direction: column-reverse;
    }

    .about-left,
    .about-right {
        max-width: 100%;
        text-align: left;
        margin: 0;
    }

    .about-right .about-heading {
        width: 100%;
        font-size: 3.5rem;
        text-align: left;
        letter-spacing: -0.05em;
    }

    .about-right p {
        text-align: left;
        margin: 2rem 0;
        font-size: 1rem;
    }

    .about-right .button {
        width: 100%;
    }

    .counter .row {
        padding: 1rem;
        flex-direction: row;
    }

    .service p {
        font-size: 1.5rem;
        margin: 2rem 0;
    }

    .service-text {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .service-text h4 {
        margin-bottom: 2rem;
    }

    .service-text h4::after {
        left: -0.5rem;
        width: 2.5rem;
    }

    .service-heading {
        font-size: 2.5rem;
        letter-spacing: -0.05em;
    }

    .service-heading span {
        font-size: 3rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2);
    }

    .service-content {
        padding: 4rem;
    }

    .worlds-from-our-founder {
        padding-top: 5rem;
    }

    .worlds-from-our-founder-left {
        max-width: 100%;
        text-align: left;
        margin-top: 3rem;
    }

    .worlds-from-our-founder-right {
        max-width: 100%;
    }

    .portfolio-image-frames .row {
        justify-content: center;
    }

    .portfolio-tab {
        height: 5rem;
        margin-top: 1.5625rem;
        margin-bottom: 3.75rem;
    }

    .tab-heading {
        line-height: 5.1rem;
    }

    .border-top {
        top: 0.3rem;
    }

    .border-bottom {
        top: 4.7rem;
    }

    .border-left {
        left: 0.3rem;
        height: 5.1rem;
    }

    .border-right {
        left: calc(100% - 0.3rem);
        height: 5.1rem;
    }

    .portfolio-image-frame {
        padding: 1.5rem 1.2rem;
        margin-bottom: 0.5rem;
    }

    .portfolio-image {
        height: auto;
        max-width: 100%;
    }

    .portfolio-image-frame::before,
    .portfolio-image-frame .line_top {
        top: 0.5rem;
    }

    .portfolio-image-frame::before,
    .portfolio-image-frame .line_top {
        bottom: 0.5rem;
    }

    .portfolio-image-frame-child::before {
        left: 0.5rem;
    }

    .portfolio-image-frame-child::after {
        right: 0.5rem;
    }


    .footer-left,
    .footer-center {
        flex: 0 0 50%;
        margin-bottom: 2rem;
    }

    .footer-right {
        flex: 0 0 100%;
        padding: 0;
    }
}

/* LANDSCAPE */
@media (max-width: 768px) {
    .slider-wrapper .slider-item::before {
        background-position: -75%;
    }

    .portfolio-heading h2 {
        font-size: 6.5rem;
    }

    .footer-top-text {
        height: 8rem;
        font-size: 6.5rem;
    }

    .footer-bottom .row {
        flex-direction: column;
    }

    .footer-bottom-left {
        max-width: 100%;
    }

    .footer-bottom-right {
        width: 100%;
        margin-top: 15px;
    }

    .contact-form .form-group.half {
        max-width: 100%;
    }

    .contact-text h2 {
        font-size: 6.5rem;
    }

    .portfolio-heading h2 {
        font-size: 4rem;
    }

    .tab-heading {
        font-size: 0.8rem;
        line-height: 5.438rem;
    }

    .tab-heading::after {
        bottom: 10px;
    }

    .img-button-prev,
    .img-button-next {
        width: 5rem;
        height: 5rem;
    }

    .img-button-prev i,
    .img-button-next i {
        line-height: 5rem;
        font-size: 1.5rem;
    }

    .button-elem {
        font-size: 1.5rem;
    }

    .img-button-next {
        left: 5%;
    }

    .img-button-prev {
        right: 5%;
    }

    .img-button-prev::before,
    .img-button-prev::after,
    .img-button-next::before,
    .img-button-next::after {
        border-width: 1px;
    }
}

/* MOBILE */
@media (max-width: 500px) {
    .slider-wrapper .slider-item::before {
        background-position: -50%;
    }

    .heading {
        font-size: 2.5rem;
    }

    .heading span {
        font-size: 4rem;
    }

    .paragraph {
        font-size: 1rem;
        max-width: 90%;
        line-height: 1.5rem;
    }

    .button {
        width: 15rem;
        line-height: 3.5rem;
        font-size: 1.2rem;
    }

    .service-text h4::after {
        left: -0.5rem;
        width: 2.5rem;
    }

    .service-text h4 {
        font-size: 1rem;
        letter-spacing: 0.3em;
        margin-bottom: 2rem;
    }

    .portfolio-tab {
        padding: 0 1rem;
    }

    .tab-heading {
        font-size: 0.4rem;
    }

    .portfolio-image-frame-col:last-child {
        width: 100%;
        object-fit: cover;
    }

    .service-text h4::after {
        left: 0;
        width: 2.5rem;
    }

    .contact-arrow .icon-wrapper,
    .portfolio .icon-wrapper {
        font-size: 4.25rem;
    }

    .contact-info .text-hover-wrapper span {
        font-size: 1rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4);
    }

    .worlds-from-our-founder-left h3,
    .worlds-from-our-founder-left p {
        font-size: 1rem;
    }

    .worlds-from-our-founder-left img {
        margin-top: 2rem;
    }

    .worlds-from-our-founder .row {
        justify-content: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        flex: 0 0 100%;
    }

    .footer-top-text {
        height: 6rem;
        text-align: center;
        font-size: 4rem;
    }

    .footer-top .row {
        justify-content: center;
    }

    .footer-bottom-left .text-hover-wrapper span {
        font-size: 0.9375rem;
    }

    .contact-text h2 {
        font-size: 4rem;
    }

    .portfolio-image-frame img {
        max-width: 27.4375rem;
        width: 100%;
    }
}