/* Shared responsive overrides for all pages */

@media (max-width: 1024px) {
    header {
        padding: 12px 18px !important;
        gap: 10px;
    }

    .glass-pane {
        width: 98vw !important;
        margin: 1vh auto !important;
        border-width: 6px !important;
    }

    .hero {
        padding: 35px 6% !important;
    }

    .hero h2 {
        font-size: clamp(2rem, 7vw, 3.2rem) !important;
        line-height: 1.12 !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 20px 6% 40px 6% !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    header {
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .logo-group {
        width: 100%;
        justify-content: center;
    }

    nav {
        width: 100%;
    }

    nav ul {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    nav ul li a {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        padding: 8px !important;
    }

    .profile-dropdown {
        position: fixed !important;
        top: 12px;
        right: 12px;
        z-index: 1300;
    }

    .profile-dropdown .user-profile {
        width: 48px !important;
        height: 48px !important;
    }

    .profile-menu {
        right: 0 !important;
        left: auto !important;
        min-width: min(320px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px);
    }

    .hero {
        min-height: auto !important;
        padding: 28px 5% !important;
    }

    .hero p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 22px !important;
    }

    .btn-group,
    .cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center !important;
        text-align: center;
        width: 100%;
    }

    .service-nav {
        gap: 8px !important;
    }

    .service-nav button {
        font-size: 0.82rem !important;
        padding: 6px 12px !important;
    }

    .service-grid,
    .grid-detailed,
    .why-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .services,
    .why-us,
    .cta-section,
    .page-header {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .services-title,
    .why-us-title,
    .page-header h2,
    .cta-box h2 {
        font-size: clamp(1.45rem, 6vw, 2.2rem) !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 16px 5% 26px 5% !important;
    }

    .stat-card {
        padding: 20px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    footer {
        padding: 40px 5% 18px 5% !important;
    }

    .main-container,
    .content-wrapper {
        padding: 14px !important;
        height: auto !important;
        min-height: calc(100vh - 96px);
        align-items: flex-start !important;
    }

    .glass-box,
    .glass-card,
    .card,
    .wrap {
        width: 100% !important;
        max-width: none !important;
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px !important; /* Prevent iOS zoom */
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1rem !important;
    }

    .logo-text span {
        font-size: 0.68rem !important;
    }

    .profile-menu {
        min-width: calc(100vw - 16px) !important;
        right: -4px !important;
    }

    .chatbot-panel {
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        height: 68vh !important;
    }

    .chatbot-toggle {
        right: 10px !important;
        bottom: 12px !important;
        width: 52px !important;
        height: 52px !important;
    }
}
