/* 
   EVENT CABS SERVICE - MOBILE OVERHAUL STYLES 
   "Exceptional Creativity" - White & Yellow Premium Theme
   Inspired by High-End Flutter Apps
*/

@media (max-width: 1023px) {

    /* --- Modern Reset & Base --- */
    :root {
        --mobile-header-height: 70px;
        --mobile-nav-height: 80px;
        --safe-area-bottom: env(safe-area-inset-bottom, 20px);
        --border-radius-lg: 24px;
        --border-radius-xl: 32px;

        --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
        --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.12);
        --glass-surface: rgba(255, 255, 255, 0.85);
    }

    body {
        background-color: var(--color-background);
        /* Support for dark mode & premium layout */
    }

    #mobile-app {
        min-height: 100vh;
        padding-bottom: calc(var(--mobile-nav-height) + var(--safe-area-bottom) + 20px);
        position: relative;
        overflow-x: hidden;
    }

    /* --- Floating Glass Header --- */
    .mobile-header {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        z-index: 1000;

        /* Glass Island Style */
        background: var(--glass-surface);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 100px;
        box-shadow: var(--shadow-soft);
        border: 1px solid rgba(255, 255, 255, 0.4);
    }

    .mobile-header .logo img {
        height: 72px;
        display: block;
        margin-left: -35px;
    }

    .mobile-header .actions {
        display: flex;
        gap: 8px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #000000;
        font-size: 1.25rem;
        background: transparent;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .icon-btn:active {
        transform: scale(0.9);
        background: rgba(0, 0, 0, 0.05);
    }

    .icon-btn.primary {
        background: var(--color-primary);
        color: var(--color-accent);
        /* Black on Yellow */
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    }

    /* --- Immersive Hero --- */
    .mobile-hero {
        padding-top: 0;
        min-height: 90vh;
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 30px 24px 30px 24px;
        margin-bottom: 0;
        background: #000;
        /* Fallback */
    }

    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        transform: translateZ(0);
        backface-visibility: hidden;
        pointer-events: none;
        /* Helps performance by ignoring touches */
    }

    /* Gradient Overlay */
    .mobile-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.2) 0%,
                rgba(0, 0, 0, 0) 40%,
                rgba(0, 0, 0, 0.4) 70%,
                rgba(0, 0, 0, 0.8) 100%);
        z-index: 1;
        pointer-events: none;
    }

    /* Removing grain animation for performance */
    .mobile-hero::before {
        display: none;
    }

    /* The Main Gradient Overlay (Now sits on top of everything) */
    .hero-overlay-main {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.3) 0%,
                rgba(0, 0, 0, 0) 40%,
                rgba(0, 0, 0, 0.6) 70%,
                rgba(0, 0, 0, 0.95) 100%);
        z-index: 3;
        pointer-events: none;
    }

    .hero-content {
        position: relative;
        z-index: 4;
        color: #111827;
    }

    .hero-content h1 {
        font-size: 3rem;
        font-weight: 800;
        line-height: 1.05;
        margin-bottom: 15px;
        letter-spacing: -1.5px;
        color: #FFFFFF !important;
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    .hero-content h1 span.text-accent {
        color: var(--color-primary) !important;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    }

    .hero-content p {
        font-size: 1.05rem;
        color: rgba(255, 255, 255, 0.9) !important;
        margin-bottom: 24px;
        font-weight: 500;
        line-height: 1.6;
        max-width: 100%;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    }

    /* Trust Indicators Mobile - Horizontal Single Line FORCE */
    .trust-indicators {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 32px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 16px;
        gap: 4px !important;
        /* Extremely tight for mobile */
    }

    .trust-item {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        color: #FFFFFF !important;
        font-size: 0.7rem !important;
        /* Reduced for single line fit */
        font-weight: 700 !important;
        opacity: 1 !important;
        white-space: nowrap !important;
    }

    .trust-item i {
        color: var(--color-primary) !important;
        font-size: 0.9rem !important;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .btn {
        height: 56px;
        border-radius: 16px;
        font-size: 1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: transform 0.1s;
    }

    .btn:active {
        transform: scale(0.96);
    }

    .btn-primary {
        background: var(--color-primary);
        color: var(--color-accent);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
        border: none;
    }

    .btn-whatsapp {
        background: #25D366;
        backdrop-filter: blur(10px);
        border: 1px solid #25D366;
        color: #FFFFFF;
    }

    /* --- Modern Grid Layouts --- */
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 24px;
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #000000 !important;
        /* Pure Black Heading */
        margin: 0;
    }

    .view-all {
        font-size: 0.9rem;
        font-weight: 600;
        color: #4B5563 !important;
        /* Force gray */
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* --- Why Choose Us (Mobile Overhaul) - Compact Auto Scroll --- */
    .mobile-choose-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 0 20px 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-choose-grid::-webkit-scrollbar {
        display: none;
    }

    .choose-card {
        flex: 0 0 280px;
        /* Much wider for better readability */
        scroll-snap-align: center;
        background: #FFFFFF;
        border-radius: 24px;
        padding: 32px 24px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
        border: 1px solid rgba(17, 24, 39, 0.03);
    }

    .choose-card h3 {
        font-size: 1.2rem;
        /* Clearer heading */
        font-weight: 800;
        margin-bottom: 12px;
        color: #111827 !important;
        line-height: 1.3;
    }

    .choose-card p {
        font-size: 0.9rem;
        /* Improved text size */
        color: #6B7280 !important;
        line-height: 1.6;
        margin: 0;
    }

    .choose-icon-container {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 16px;
        font-size: 1.5rem;
        position: relative;
    }

    .choose-icon-container::after {
        content: '';
        position: absolute;
        inset: -6px;
        border-radius: inherit;
        background: inherit;
        opacity: 0.15;
        filter: blur(15px);
        z-index: -1;
    }

    .choose-icon-container.safe {
        background: linear-gradient(135deg, #FFF9E6 0%, #FFF0C2 100%);
        color: #FBBF24;
    }

    .choose-icon-container.time {
        background: linear-gradient(135deg, #E6F0FF 0%, #D1E5FF 100%);
        color: #3B82F6;
    }

    .choose-icon-container.price {
        background: linear-gradient(135deg, #E6FFE6 0%, #C2FFC2 100%);
        color: #10B981;
    }

    /* --- Lamborghini Animation Optimization --- */
    #mobile-lamborghini-section {
        padding: 0;
        margin: 0 !important;
        background: transparent;
        overflow: hidden;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #lottie-lamborghini {
        height: 220px !important;
        /* Slightly larger than container to overlap slightly if needed */
        width: 100%;
        transform: scale(1.1);
    }

    /* --- Quick Access Grid --- */
    .quick-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 80px 24px 20px 24px;
        position: relative;
        z-index: 10;
        background: #FAFAFA;
    }

    .quick-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    .quick-card i {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        transition: all 0.3s ease;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.8);
    }

    /* Premium Color Accents - Mobile */
    .quick-card:nth-child(1) i {
        background: #FFF9E6;
        color: #F59E0B !important;
    }

    .quick-card:nth-child(2) i {
        background: #E6F0FF;
        color: #3B82F6 !important;
    }

    .quick-card:nth-child(3) i {
        background: #E6FFE6;
        color: #10B981 !important;
    }

    .quick-card:nth-child(4) i {
        background: #F5F3FF;
        color: #8B5CF6 !important;
    }

    .quick-card span {
        font-size: 0.75rem;
        font-weight: 700;
        color: #111827 !important;
        line-height: 1.2;
        margin-top: 4px;
    }

    /* Scrollbar hiding for horizontal sections */
    .places-scroll::-webkit-scrollbar,
    .fleet-scroll::-webkit-scrollbar {
        display: none;
    }

    /* --- Modern Premium Services - Mobile --- */
    .service-card-modern {
        background: #FFFFFF;
        border-radius: 20px;
        padding: 20px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
        display: flex;
        flex-direction: column;
        gap: 16px;
        transition: transform 0.3s ease;
    }

    .service-card-modern:active {
        transform: scale(0.98);
    }

    .service-icon-box {
        width: 48px;
        height: 48px;
        background: #FEE2E2;
        color: #EF4444;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
    }

    .service-content h3 {
        font-size: 1.1rem;
        font-weight: 800;
        color: #111827 !important;
        margin-bottom: 6px;
    }

    .service-content p {
        font-size: 0.82rem;
        color: #64748B !important;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .service-cta {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #FFD700 !important;
        font-weight: 800;
        text-decoration: none;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* --- Popular Places Grid --- */
    .places-grid {
        padding: 0 24px;
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        margin-bottom: 40px;
    }

    .place-card {
        height: 200px !important;
        border-radius: var(--border-radius-lg) !important;
        box-shadow: var(--shadow-soft);
        position: relative;
        overflow: hidden;
    }

    .place-card img {
        transition: transform 0.5s ease;
    }

    .place-card:active img {
        transform: scale(1.1);
    }

    /* --- "Island" Bottom Navigation --- */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        height: 72px;
        background: #FFFFFF;
        /* Bright Island */
        border-radius: 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
        /* softer shadow */
        border: 1px solid #E5E7EB;
        z-index: 1000;
    }

    .nav-item {
        position: relative;
        height: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94A3B8;
        /* Change from transparent white to visible gray */
        font-size: 0.75rem;
        font-weight: 600;
        text-decoration: none;
        gap: 4px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-item i {
        font-size: 1.5rem;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* Active State Animation */
    .nav-item.active {
        color: #111827;
        /* Dark black for active text */
    }

    .nav-item.active i {
        transform: translateY(-4px);
        color: var(--color-primary);
    }

    /* Active Indicator Dot */
    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        background: var(--color-primary);
        border-radius: 50%;
        box-shadow: 0 0 10px var(--color-primary);
    }

    /* Central Floating Button - Integrated with Island */
    .nav-item.central-action {
        width: 60px;
        flex: 0 0 60px;
    }

    .action-circle {
        width: 56px;
        height: 56px;
        background: var(--color-primary);
        border-radius: 16px;
        /* Squircle */
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-accent);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
        transform: translateY(-24px);
        /* Float above */
        border: 4px solid #FAFAFA;
        /* Separate from body bg, acts as cutout */
        animation: pulseGlow 2.5s infinite;
    }

    .action-circle i {
        font-size: 1.75rem;
    }

    /* --- Mobile Footer --- */
    .mobile-footer {
        background: #0B0F19;
        /* Consistent with inline dark theme */
        color: #94A3B8;
        padding: 60px 0 120px 0;
        /* Space for bottom nav, no side padding on the footer element itself */
        margin: 0;
        /* NO MARGINS */
        border-radius: 0;
        /* NO ROUNDED CORNERS */
        width: 100%;
        position: relative;
    }

    .footer-brand img {
        margin-bottom: 16px;
        filter: brightness(0) invert(1);
    }

    .footer-brand p {
        font-size: 0.9rem;
        color: #4B5563 !important;
        line-height: 1.6;
        margin-bottom: 32px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .link-group h4 {
        color: var(--color-primary);
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .link-group a {
        display: flex;
        align-items: center;
        gap: 8px;
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.4) !important;
    }

    /* --- Premium Mobile Menu Overlay --- */
    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .menu-content {
        height: 100%;
        padding: 40px 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transform: translateY(20px);
        transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .mobile-menu-overlay.active .menu-content {
        transform: translateY(0);
    }

    .menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 50px;
    }

    .close-menu {
        width: 48px;
        height: 48px;
        background: #F3F4F6;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: #111827;
        transition: transform 0.2s;
    }

    .close-menu:active {
        transform: scale(0.9);
    }

    .menu-links {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .menu-links a {
        display: flex;
        align-items: center;
        gap: 24px;
        padding: 12px 18px;
        border-radius: 28px;
        color: #111827;
        text-decoration: none;
        font-size: 1.4rem;
        font-weight: 800;
        background: transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid transparent;
    }

    .menu-links a:active {
        background: rgba(0, 0, 0, 0.03);
        transform: scale(0.98);
    }

    .menu-links a.active {
        background: #FFFBEB !important;
        border: 2px solid #FEF3C7;
        color: #111827;
    }

    .link-icon {
        width: 56px;
        height: 56px;
        background: #FFFFFF;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        color: #FFD700;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        flex-shrink: 0;
    }

    .menu-cta {
        margin-top: 20px;
        background: #F8FAFF !important;
        color: #111827 !important;
        justify-content: center !important;
        font-size: 1.1rem !important;
        height: 60px;
        gap: 12px !important;
    }

    .menu-footer {
        text-align: center;
    }

    .menu-footer p {
        font-size: 0.9rem;
        color: #6B7280;
        margin-bottom: 16px;
        font-weight: 600;
    }

    .social-mini {
        display: flex;
        justify-content: center;
        gap: 24px;
    }

    .social-mini a {
        font-size: 1.75rem;
        color: #111827;
    }
}

/* --- Premium Animations for Experience Section --- */
@keyframes pulse-premium {
    0% {
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 25px 50px rgba(255, 215, 0, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }
}

@keyframes shim {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.premium-pulse-badge {
    animation: pulse-premium 3s infinite ease-in-out;
}

.experience-card-mobile {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-card-mobile:active,
.service-card-modern:active,
.fleet-card-modern:active {
    transform: scale(0.96);
    background: #FFFFFF !important;
}

/* --- Mobile Fleet Grid System --- */
div#mobile-app .mobile-fleet-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 0 16px !important;
    margin-top: 20px !important;
}

div#mobile-app .fleet-card-modern {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
}

div#mobile-app .fleet-card-modern .fleet-image-wrap {
    width: 100% !important;
    aspect-ratio: 4/3 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

div#mobile-app .fleet-card-modern img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}