/* Mobile CSS for Pickup Truckit */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 0 1.25rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--background-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        gap: 1.5rem;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.125rem;
        padding: 1rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link.active {
        color: var(--primary-color) !important;
        background: rgba(37, 99, 235, 0.1);
        border-radius: 0.5rem;
        font-weight: 600;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Section */
    .hero {
        min-height: 50vh;
        padding: 2rem 0;
    }
    
    /* Truck Animation Background - Mobile */
    #truck-animation-background {
        top: 0; /* Full screen on mobile too */
        height: 100vh;
        opacity: 0.2; /* Less visible on mobile */
    }
    
    .truck, .customer-pickup, .customer-dropoff-marker {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .item-badge {
        width: 14px;
        height: 14px;
        font-size: 8px;
        top: -6px;
        right: -6px;
    }
    
    .road {
        stroke-width: 6;
    }
    
    .route-line {
        stroke-width: 2;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    /* Scale down animated curves for mobile */
    .curve-1 {
        width: 120px;
        height: 120px;
    }
    
    .curve-2 {
        width: 90px;
        height: 90px;
    }
    
    .curve-3 {
        width: 60px;
        height: 60px;
    }
    
    .curve-4 {
        width: 100px;
        height: 100px;
    }
    
    .curve-5 {
        width: 50px;
        height: 50px;
    }
    
    .hero::before {
        width: 100px !important;
        height: 100px !important;
    }
    
    .hero::after {
        width: 80px !important;
        height: 80px !important;
    }

    .hero-logo {
        justify-content: center;
        padding: 0.75rem 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-logo-img {
        height: 50px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .brand-tagline {
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.125rem;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    /* Hide hero visual images on mobile */
    .hero-visual {
        display: none !important;
    }
    
    .hero-logo-large {
        display: none !important;
    }
    
    .hero-image {
        display: none !important;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* App download buttons stacking */
    .target-content div[style*="margin-top"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
    }
    
    .target-content div[style*="margin-top"] .btn {
        margin-right: 0 !important;
        width: 100%;
        max-width: 280px;
    }

    /* Features Section */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* How It Works & Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .step-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .step-card .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .step-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .step-card p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    /* Target Sections - Mobile Override - Stack all sections with image on top */
    .target-section .target-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* All target sections - image appears first */
    .target-section .target-visual {
        order: -1 !important; /* Image always appears first */
    }
    
    .target-section .target-content {
        order: 1 !important; /* Content always appears second */
    }
    
    .target-section .target-image {
        max-width: 250px;
        width: 80%;
        height: auto;
        margin: 0 auto 1rem auto !important;
    }
    
    
    .target-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .target-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .target-features {
        text-align: left;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .target-features li {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    /* CTA Section */
    .cta h2 {
        font-size: 2rem;
    }

    .cta p {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* Center footer logo and hide text on mobile */
    .footer-logo {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 1rem;
    }
    
    .footer-logo-text {
        display: none !important; /* Hide "Pickup Truckit" text */
    }
    
    .footer-logo-img {
        height: 60px !important;
        width: auto !important;
        margin: 0 auto !important;
    }
    
    .footer-section h4 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .footer-section .footer-links {
        margin-bottom: 1rem;
    }
    
    .footer-section .footer-links li {
        margin-bottom: 0.5rem;
    }

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

    .footer-legal {
        justify-content: center;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-tagline {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* Spacing Adjustments */
    .hero {
        padding: 2.5rem 0;
    }

    .features,
    .how-it-works,
    .target-section,
    .cta {
        padding: 2.5rem 0;
    }

    .container,
    .hero-container,
    .features-container,
    .how-it-works-container,
    .target-container,
    .cta-container {
        padding: 0 1.25rem;
    }
    
    /* Better mobile button spacing */
    .hero-buttons {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .cta-buttons {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    /* Mobile text improvements */
    .hero-content p {
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header p {
        line-height: 1.6;
    }

    /* Video Showcase Mobile Styles - Stack Videos */
    .video-showcase {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 2rem;
        margin: 1.5rem 0;
        padding: 0;
    }

    .video-container {
        padding: 1.5rem;
        max-width: 100%;
        width: 100%;
        margin: 0 1rem;
    }

    .video-container h3 {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }

    .showcase-video {
        border-radius: 0.5rem;
        min-height: 300px; /* Larger when stacked since they have full width */
        margin-bottom: 1rem;
        width: 100%;
    }

    .video-container p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .target-content h2 {
        font-size: 1.75rem;
    }

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

    .feature-card {
        padding: 1rem;
    }

    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

/* Landscape phones and small tablets */
@media (max-width: 991px) and (min-width: 769px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .target-container {
        gap: 3rem;
    }
}

/* Touch device enhancements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 2rem;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-link {
        min-height: 44px;
        min-width: 44px;
    }

    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
        align-items: center;
    }
} 