/* Mobile App Experience Overrides */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 40px;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-content {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .modal-content {
        padding: 24px;
        border-radius: 30px;
    }
}

@media (max-width: 767px) {

    /* Global Spacing Reductions */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Hero Section Mobile Optimization */
    #home {
        min-height: auto !important;
        padding-top: 6rem !important;
        padding-bottom: 3rem !important;
    }

    #hero-title {
        font-size: 3.5rem !important;
        /* Smaller but still bold */
        line-height: 1 !important;
    }

    #hero-subtitle {
        font-size: 1.1rem !important;
        padding-left: 1rem !important;
        border-left-width: 4px !important;
    }

    .btn-premium {
        padding: 1.25rem 2rem !important;
        font-size: 1.1rem !important;
        border-radius: 20px !important;
    }

    #hero-car-image {
        border-width: 10px !important;
        border-radius: 40px !important;
        margin-top: 2rem;
    }

    /* Card Adjustments */
    .rounded-\[40px\],
    .rounded-\[50px\],
    .rounded-\[60px\],
    .rounded-\[80px\],
    .rounded-\[100px\] {
        border-radius: 32px !important;
    }

    /* Bottom Navigation Padding for Body */
    body {
        padding-bottom: 80px !important;
    }

    /* Fix Grid Gaps */
    .grid {
        gap: 1.5rem !important;
    }

    /* Products & Vehicles Container compacting */
    #vehicles-container,
    #products-container {
        grid-template-columns: 1fr !important;
    }

    /* About Section */
    #about {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    #about h2 {
        font-size: 2.5rem !important;
    }

    /* Hide excessive desktop decorations */
    .absolute.inset-0.z-0 img {
        opacity: 0.02 !important;
    }

    .blur-\[150px\],
    .blur-\[100px\] {
        display: none !important;
    }

    /* Bottom Navigation Styles */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        background: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(12px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.6rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        transition: all 0.3s;
    }

    .nav-item i {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .nav-item.active {
        color: #00d2ff;
    }

    .nav-item-special {
        background: linear-gradient(135deg, #0066ff 0%, #00d2ff 100%);
        color: white !important;
        width: 54px;
        height: 54px;
        border-radius: 18px;
        justify-content: center;
        margin-top: -40px;
        box-shadow: 0 8px 16px rgba(0, 102, 255, 0.4);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    /* Valuation App Experience */
    .responsive-hero-p {
        padding-top: 5rem !important;
        padding-bottom: 3rem !important;
    }

    .responsive-title {
        font-size: 2.5rem !important;
    }

    .responsive-subtitle {
        font-size: 1rem !important;
    }

    .responsive-rounded {
        border-radius: 30px !important;
    }

    .responsive-p {
        padding: 1.5rem !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
}