/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile for better performance */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    padding-top: 150px;
}
    
    .shape-blob-1,
    .shape-blob-2 {
        display: none;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .leader-card .card-img-top {
        height: 150px;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .milestone-year {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    .getting-started-card .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Reduce padding on mobile */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .feature-card,
    .feature-item,
    .service-overview-card,
    .coverage-card,
    .story-milestone,
    .award-card {
        padding: 1rem 0.5rem;
    }
    
    .getting-started-card {
        padding: 1rem 0.5rem;
    }
    
    .process-step {
        padding: 1rem 0.5rem;
    }
    
    /* Contact form adjustments */
    .contact-form .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    .btn-primary {
        padding: 0.5rem 1.5rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .leader-card .card-img-top {
        height: 180px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    .display-5 {
        font-size: 1.85rem;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-right: 2rem;
    padding-top: 150px;
}
    
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .leader-card .card-img-top {
        height: 200px;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-content {
        padding-right: 3rem;
    padding-top: 150px;
}
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-content {
        padding-right: 4rem;
    padding-top: 150px;
}
    
    .container {
        max-width: 1140px;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Height-specific adjustments */
@media (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
}

/* Print Styles */
@media print {
    * {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
    }
    
    .navbar,
    .breadcrumb-nav,
    #footer {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        background: white !important;
    }
    
    .shape-blob-1,
    .shape-blob-2 {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    a {
        text-decoration: underline !important;
    }
    
    .btn {
        border: 1px solid #333 !important;
        background: white !important;
        color: #333 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --primary-light: #4d94ff;
        --primary-dark: #003d7a;
        --text-primary: #000000;
        --text-secondary: #333333;
        --neutral-light: #f0f0f0;
        --neutral-dark: #1a1a1a;
    }
    
    .card {
        border: 2px solid var(--text-primary) !important;
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark) !important;
    }
}

/* Dark Mode Support */

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    *:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Hover Effects Only for Non-Touch Devices */
@media (hover: hover) and (pointer: fine) {
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .pricing-card:hover,
    .tech-card:hover,
    .quality-card:hover,
    .values-card:hover,
    .leader-card:hover,
    .impact-card:hover,
    .faq-card:hover {
        transform: translateY(-3px);
    }
    
    .feature-item:hover,
    .service-overview-card:hover,
    .coverage-card:hover,
    .award-card:hover {
        transform: translateY(-3px);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .form-control {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .pricing-card:hover,
    .tech-card:hover,
    .quality-card:hover,
    .values-card:hover,
    .leader-card:hover,
    .impact-card:hover,
    .faq-card:hover,
    .feature-item:hover,
    .service-overview-card:hover,
    .coverage-card:hover,
    .award-card:hover,
    .btn-primary:hover,
    #gallery img:hover {
        transform: none;
    }
} 

body {
    overflow-x: hidden;
}