/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

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

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-grid {
        gap: 2rem;
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets & Large Phones */
@media (max-width: 768px) {

    /* Hide Topbar on Mobile to save space */
    .topbar {
        display: none;
    }

    /* Reset Navbar Position */
    .navbar {
        top: 0;
    }

    /* Navbar fixes */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        /* Above navbar */
    }

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

    .mobile-toggle {
        display: block;
        z-index: 1002;
    }

    /* Layout collapses */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 3rem 0;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image-container {
        order: 2;
        margin-top: 3rem;
    }

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

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

    .hero-glass-card {
        transform: none !important;
        max-width: 100%;
        padding: 1.5rem;
    }

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

    .app-float-badge {
        right: 0;
        bottom: -20px;
    }

    /* Process steps */
    .process-step {
        flex-direction: row;
        text-align: left;
    }

    .step-circle::after {
        display: none;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

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

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

    .footer p {
        margin: 0 auto;
    }

    .footer .d-flex {
        justify-content: center;
    }

    .footer-links li {
        justify-content: center;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .btn-lg {
        width: 100%;
        padding: 1rem;
    }

    .cta-banner {
        padding: 2.5rem 1.5rem;
    }

    .cta-banner h2 {
        font-size: 1.75rem;
    }

    .app-float-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        justify-content: center;
        width: 100%;
    }
}