/* Lightning Logistics VTC - Responsive Styles */

/* Mobile-first approach with enhanced responsive design */

/* Extra small devices (phones, 375px and up) */
@media (min-width: 375px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* Small devices (phones, 576px and up) */
@media (min-width: 576px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-title {
        font-size: 5.5rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 6rem;
    }
}

/* Ultra wide screens */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 7rem;
    }
}

/* Mobile-specific optimizations */
@media (max-width: 767px) {
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 4rem 0;
        min-height: 100vh;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Features section */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
    
    /* Team section */
    .team-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .team-avatar {
        width: 5rem;
        height: 5rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Spacing */
    .section-padding {
        padding: 4rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    /* Images */
    .responsive-img {
        width: 100%;
        height: auto;
    }
}

/* Tablet-specific optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-link {
        padding: 1rem;
        margin: 0.25rem 0;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Remove hover effects that don't work on touch */
    .hover\:scale-105:hover {
        transform: none;
    }
    
    .hover\:shadow-lg:hover {
        box-shadow: none;
    }
    
    /* Add touch-friendly interactions */
    .touch-highlight {
        -webkit-tap-highlight-color: rgba(6, 182, 212, 0.3);
    }
}

/* Landscape phone optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode responsive adjustments */
@media (prefers-color-scheme: dark) {
    @media (max-width: 767px) {
        .mobile-menu {
            background-color: rgba(15, 23, 42, 0.98);
            backdrop-filter: blur(20px);
        }
    }
}

/* Print responsive styles */
@media print {
    .hero-section {
        min-height: auto;
        page-break-after: always;
    }
    
    .feature-grid,
    .team-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Container responsive utilities */
.container-responsive {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 576px) {
    .container-responsive {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .container-responsive {
        padding: 0 2rem;
    }
}

@media (min-width: 992px) {
    .container-responsive {
        padding: 0 2.5rem;
    }
}

/* Responsive text utilities */
.text-responsive-xs { font-size: 0.75rem; }
.text-responsive-sm { font-size: 0.875rem; }
.text-responsive-base { font-size: 1rem; }
.text-responsive-lg { font-size: 1.125rem; }
.text-responsive-xl { font-size: 1.25rem; }

@media (min-width: 768px) {
    .text-responsive-xs { font-size: 0.875rem; }
    .text-responsive-sm { font-size: 1rem; }
    .text-responsive-base { font-size: 1.125rem; }
    .text-responsive-lg { font-size: 1.25rem; }
    .text-responsive-xl { font-size: 1.5rem; }
}

/* Responsive spacing utilities */
.spacing-responsive-y {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .spacing-responsive-y {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .spacing-responsive-y {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Animation performance on mobile */
@media (max-width: 767px) {
    * {
        animation-duration: 0.3s !important;
    }
    
    .animate-float {
        animation: none !important;
    }
    
    .animate-glow {
        animation: none !important;
    }
}

/* Accessibility - Focus visible for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .focus-visible:focus {
        outline: 2px solid #06B6D4;
        outline-offset: 2px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid;
    }
    
    .btn {
        border: 2px solid;
    }
    
    .gradient-text {
        background: none !important;
        color: #06B6D4 !important;
    }
}