/* Responsive Design System */

/* Large Screens - Desktop Defaults */
@media (min-width: 993px) {
    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        gap: 25px;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        width: auto !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }
}

/* Medium & Small Screens - Mobile Styles */
@media (max-width: 992px) {
    .main-header {
        position: sticky;
        top: 0;
        background: var(--white);
        z-index: 1000;
        padding: 15px 0;
    }

    .header-content-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-right {
        align-items: center;
    }

    .contact-info-header {
        flex-direction: column;
        gap: 10px;
    }

    .logo-text .main-title {
        font-size: 1.3rem !important;
    }

    .logo-text .sub-title {
        font-size: 0.75rem !important;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .nav-bar {
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin: 10px 0;
    }

    .nav-links li a {
        font-size: 1.1rem;
        display: block;
        padding: 10px;
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 20px;
        top: 25px;
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* Specific Phone Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .service-detail {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
        padding: 40px 0;
    }

    .detail-img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }

    .footer-logo {
        justify-content: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .logo-text-ml .main-title {
        font-size: 1.2rem !important;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }
}