@media (max-width: 1280px) {
    .about-section .container,
    .service-section .container,
    .portfolio-section .container,
    .contact-section .container {
        padding-left: 18px;
        padding-right: 86px;
    }
}

@media (max-width: 1100px) {
    .home-section .home-text,
    .home-section .home-img {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .home-section .home-text,
    .home-cta {
        text-align: center;
        justify-content: center;
    }

    .home-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .home-section .home-img {
        margin-top: 12px;
        padding-right: 0;
    }

    .home-section .home-img .img-box {
        margin: 0 auto;
        max-width: 280px;
    }

    .home-section .home-img::before {
        left: 50%;
        right: auto;
        width: 210px;
        transform: translateX(-28%) rotate(8deg);
    }

    .float-badge-top { left: 16%; }
    .float-badge-bottom { right: 16%; }

    .effect-4,
    .effect-1 {
        display: none;
    }
}

@media (max-width: 991px) {
    .portfolio-section .portfolio-items {
        grid-template-columns: 1fr 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-section .service-item,
    .service-grid .service-item:nth-child(4),
    .service-grid .service-item:nth-child(5) {
        grid-column: auto;
    }

    .service-grid .service-item:last-child {
        grid-column: 1 / -1;
    }

    .contact-section .contact-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding-bottom: 16px;
    }
}

@media (max-width: 860px) {
    .desktop-nav {
        display: none;
    }

    .header .humburger-btn {
        display: flex;
    }
}

@media (max-width: 767px) {
    .contact-section .w-50,
    .contact-section .contact-item,
    .portfolio-popup .description,
    .portfolio-popup .info,
    .about-section .skills .skill-item,
    .about-section .about-info,
    .about-section .about-img,
    .home-section .home-text,
    .home-section .home-img {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .portfolio-section .portfolio-items,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-grid .service-item:last-child {
        grid-column: auto;
    }

    .contact-section .submit-btn,
    .home-section .home-text,
    .home-cta {
        text-align: center;
        justify-content: center;
    }

    .home-section .full-screen {
        padding: 110px 0 30px;
        min-height: auto;
    }

    .home-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .home-section .home-img {
        margin-top: 36px;
    }

    .home-section .home-img .img-box {
        margin: 0 auto;
        max-width: 300px;
        transform: none;
    }

    .home-section .home-img::before {
        width: 70%;
        height: 78%;
        right: 12%;
        left: auto;
    }

    .float-badge-top { left: 8%; top: 6%; }
    .float-badge-bottom { right: 8%; bottom: 10%; }

    .effect-3 { margin-left: -80px; }
    .effect-4 { left: 12%; }
    .effect-1 { display: none; }

    .about-section .about-img {
        padding-bottom: 28px;
        max-width: 420px;
        margin: 0 auto;
    }

    .about-section .timeline .timeline-item:nth-child(odd) {
        padding-right: 15px;
        text-align: left;
        padding-left: 75px;
    }

    .about-section .timeline .timeline-item:nth-child(even) {
        padding-left: 75px;
    }

    .about-section .timeline:before { left: 35px; }

    .about-section .timeline .timeline-item:nth-child(odd) .icon {
        right: auto;
        left: -60px;
    }

    .about-section .timeline .timeline-item:nth-child(even) .icon {
        left: -60px;
    }

    .about-section .timeline .timeline-item:nth-child(odd) .timeline-item-inner:before {
        left: -30px;
        right: auto;
    }

    .about-section,
    .service-section,
    .portfolio-section,
    .contact-section {
        padding-top: 110px;
    }

    .portfolio-popup .pp-prev { left: 8px; }
    .portfolio-popup .pp-next { right: 8px; }
}

@media (max-width: 574px) {
    .home-section .home-img .img-box {
        max-width: 250px;
    }

    .home-section .home-text h2 {
        font-size: 52px;
    }

    .header {
        padding: 0 12px;
        top: 10px;
    }

    .float-badge {
        font-size: 12px;
        padding: 8px 10px;
    }
}
