@media (max-width: 1120px) {
    .hero_area {
        height: auto;
    }

    .slider_section {
        padding: 40px 0;
    }
}

@media (max-width: 992px) {
    .user_option {
        flex-direction: column;
    }

    .custom_nav-container .nav_search-btn {
        background-position: center;
        margin-top: 10px;
    }

    .user_option a {
        margin-bottom: 10px;
    }

    .custom_nav-container.navbar-expand-lg .navbar-nav .nav-link {
        padding: 0 5px;
    }

    .who_section .row {
        flex-direction: column-reverse;
    }

    .who_section .img-box {
        margin-bottom: 30px;
        text-align: center;
    }

    .client_section .owl-carousel .owl-nav .owl-prev,
    .client_section .owl-carousel .owl-nav .owl-next {
        bottom: -60px;
    }
}

@media (max-width: 768px) {
    .info_section .col-md-3 {
        text-align: center;
    }

    .info_section .col-md-3:not(:nth-last-child(1)) {
        margin-bottom: 35px;
    }

    .who_section .detail-box {
        margin-left: 15px;
        margin-top: 35px;
        text-align: center;
    }

    .work_section .work_container .box.b-1,
    .work_section .work_container .box.b-2,
    .work_section .work_container .box.b-3,
    .work_section .work_container .box.b-4 {
        width: 100%;
    }

    .info_section .col-md-3>div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info_section .info_form .social_box {
        justify-content: center;
    }

    .info_section .info_form .social_box a {
        margin: 0 10px;
    }

    .footer_section p {
        padding: 20px 30px;
    }

    /* Mobile navigation improvements */
    .navbar-collapse {
        background-color: #ffffff;
        padding: 20px;
        margin-top: 10px;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid #eee;
        color: #2c3e50 !important;
    }

    .dropdown-menu {
        background-color: #ffffff !important;
        border: 1px solid #e0e0e0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        margin-left: 20px;
    }

    /* Better button spacing on mobile */
    .blue-button {
        display: block;
        margin: 10px auto;
        text-align: center;
        width: 200px;
    }

    /* Improve image display on mobile */
    .who_section .img-box img {
        max-width: 100%;
        height: auto;
    }

    /* Better spacing for todo app images */
    .who_section .img-box div {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .who_section .img-box div img {
        width: 60% !important;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .slider_section .detail-box h1 {
        font-size: 3.5rem;
    }

    .slider_section .detail-box h2 {
        font-size: 1.8rem;
    }

    .heading_container h2 {
        font-size: 1.8rem;
    }

    .do_section .do_container .arrow_bg::before {
        display: none;
    }

    .who_section .detail-box {
        margin-left: 0;
        padding: 0 15px;
    }

    .client_section .box {
        margin: 10px;
        padding: 15px;
    }

    /* Improve table display on mobile */
    .modern-table-container {
        overflow-x: auto;
    }

    .modern-table {
        min-width: 500px;
    }
}

@media (max-width: 480px) {}

@media (max-width: 420px) {
    .slider_section .detail-box h2 {
        font-size: 1.5rem;
    }

    .slider_section .detail-box h1 {
        font-size: 3rem;
    }

    .heading_container h2 {
        font-size: 1.5rem;
    }

    .blue-button {
        width: 180px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .who_section .img-box div img {
        width: 80% !important;
    }
}

@media (max-width: 360px) {}

@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Keep current design as it's already dark-themed */
}
