/* ==========================================================================
   RESPONSIVE DESIGN & MEDIA QUERIES
   Muhammad Saad Qasim - Portfolio 2026
   ========================================================================== */

/* --- Tablet / Medium Screens (<= 1024px) --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-typing-wrap {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .sim-form-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Landscape / Tablet Small (<= 768px) --- */
@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    section {
        padding: 4.5rem 0;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-glass-strong);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform var(--transition-bounce);
    }

    .nav-menu.mobile-open {
        transform: translateX(0);
    }

    .nav-mobile-toggle {
        display: block;
    }

    .command-trigger-btn .command-shortcut {
        display: none;
    }

    .hero-avatar-container {
        width: 250px;
        height: 250px;
    }

    .hero-floating-pill {
        display: none; /* Hide floating badges on small screens to prevent overflow */
    }

    .booking-type-grid {
        grid-template-columns: 1fr;
    }

    .about-credentials-grid {
        grid-template-columns: 1fr;
    }

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

    .modal-dialog {
        max-height: 95vh;
        margin: 0.5rem;
        border-radius: var(--radius-lg);
    }

    .modal-header, .modal-body {
        padding: 1.25rem;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Small Mobile (<= 480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn,
    .hero-actions .dropdown {
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .tab-list {
        width: 100%;
    }

    .tab-btn {
        flex-grow: 1;
        text-align: center;
        justify-content: center;
        font-size: 0.82rem;
        padding: 0.45rem 0.75rem;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .totp-code-display {
        font-size: 2.2rem;
        letter-spacing: 0.1em;
    }
}
