/* ==========================================================================
   Responsive CSS - Mobile-First Approach
   ========================================================================== */

/* Mobile Animations Disabled */
@media (max-width: 768px) {
    /* Disable animations on mobile as specified */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem;
    }
    
    .service-card .card-body {
        padding: 1.5rem;
    }
    
    .pricing-card .price {
        font-size: 2rem;
    }
    
    /* Team Photos */
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Contact Form */
    .contact-form .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0;
    }
    
    /* Spacing Adjustments */
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Adjustments */
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    /* Grid Adjustments */
    .row > [class*="col-"] {
        margin-bottom: 1rem;
    }
    
    /* Team Layout */
    .team-photo {
        width: 90px;
        height: 90px;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    /* Services Grid */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team Grid */
    .team-photo {
        width: 110px;
        height: 110px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container Adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 3rem;
    }
    
    /* Services Layout */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team Section */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container Adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section Full Size */
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1.15rem;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
    }
    
    /* Reduce vertical spacing in landscape */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

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

/* Print Styles */
@media print {
    /* Hide non-essential elements */
    .navbar,
    .footer,
    .btn,
    .breadcrumb-nav {
        display: none;
    }
    
    /* Ensure proper colors for print */
    body {
        background: white;
        color: black;
    }
    
    /* Adjust spacing for print */
    .py-5 {
        padding: 1rem 0;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable hover transforms */
    .card:hover,
    .btn:hover,
    .team-member:hover .team-photo,
    .strategy-item:hover,
    .content-method:hover,
    .future-strategy:hover {
        transform: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    /* Enhance contrast for better accessibility */
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-primary:hover {
        background-color: #333;
        border-color: #333;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .navbar-nav .nav-link {
        color: #000;
    }
    
    .navbar-nav .nav-link:hover {
        color: #333;
        background-color: #f0f0f0;
    }
}

/* Dark Mode Support */

/* Touch Device Optimizations */
@media (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .form-control {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover {
        transform: none;
    }
}

/* Flexible Grid Adjustments */
@media (max-width: 991.98px) {
    /* Stack columns earlier on smaller screens */
    .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Full width on mobile */
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* Performance Optimizations for Mobile */
@media (max-width: 767.98px) {
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Reduce box shadows on mobile for better performance */
    .card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .card:hover {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Container Breakpoint Adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Gallery Responsive Adjustments */
@media (max-width: 767.98px) {
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    #gallery img {
        width: 100%;
        height: auto;
    }
}

/* Form Responsive Improvements */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .contact-info .contact-item {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
}

/* Navigation Responsive Fixes */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background-color: rgba(248, 249, 250, 0.95);
        border-radius: 10px;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
}

/* Text Readability on Small Screens */
@media (max-width: 575.98px) {
    body {
        font-size: 15px;
        line-height: 1.5;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
} 
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
