/* Responsive Styles for Mutual Cargo Website */

/* Large screens (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* Medium screens (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Small screens (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-list {
        margin: 1.5rem 0;
    }
    
    .feature-item {
        font-size: 1rem;
    }
    
    /* Chat widget responsive */
    .chat-widget {
        width: 300px;
        height: 400px;
        bottom: 10px;
        right: 10px;
    }
    
    /* Footer responsive */
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    .footer .row > div:last-child {
        margin-bottom: 0;
    }
}

/* Extra small screens (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Chat widget for mobile */
    .chat-widget {
        width: calc(100vw - 20px);
        height: 350px;
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    /* Navigation adjustments */
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .chat-widget,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black !important;
    }
    
    .service-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .footer {
        background: none !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #0000ff;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
    
    .service-card,
    .stat-item,
    .chat-widget {
        border: 2px solid var(--border-color) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card:hover,
    .btn:hover,
    .social-links a:hover {
        transform: none !important;
    }
}