/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin: 0;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        text-align: center;
    padding-top: 200px;
}
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cards */
    .feature-card, .service-card, .price-card, .review-card, .case-study-card, 
    .info-card, .faq-card, .blog-card, .team-member, .career-card,
    .tip-card, .winner-card, .category-card, .criteria-card, .story-card,
    .equipment-card, .software-card, .prep-card, .guideline-card, .calendar-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Service Cards */
    .service-card img, .case-study-card img, .blog-card img {
        height: 150px;
    }
    
    /* Team Members */
    .team-member img {
        width: 60px;
        height: 60px;
    }
    
    .team-member h5 {
        font-size: 0.95rem;
    }
    
    .team-member p {
        font-size: 0.85rem;
    }
    
    /* Process Steps */
    .process-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Gallery */
    .gallery .col-6 {
        margin-bottom: 0.5rem;
    }
    
    /* Buttons */
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* No animations on mobile to respect reduced motion */
    .feature-card:hover, .service-card:hover, .info-card:hover,
    .tip-card:hover, .winner-card:hover, .category-card:hover, .criteria-card:hover, .story-card:hover,
    .equipment-card:hover, .software-card:hover, .prep-card:hover, .guideline-card:hover, .calendar-card:hover {
        transform: none;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .service-card img, .case-study-card img, .blog-card img {
        height: 180px;
    }
    
    .team-member img {
        width: 70px;
        height: 70px;
    }
    
    .process-step .step-number {
        width: 45px;
        height: 45px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content {
        padding: 2rem;
    padding-top: 200px;
}
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .service-card img, .case-study-card img, .blog-card img {
        height: 200px;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Grid adjustments for tablets */
    .row .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .row .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-content {
        padding: 3rem;
    padding-top: 200px;
}
    
    .container {
        max-width: 960px;
    }
    
    .service-card img, .case-study-card img, .blog-card img {
        height: 220px;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content {
        padding: 4rem;
    padding-top: 200px;
}
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .service-card img, .case-study-card img, .blog-card img {
        height: 240px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 1rem;
    padding-top: 200px;
}
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card img, .case-study-card img, .blog-card img,
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar, .breadcrumb-section, footer, .btn, .contact-form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    .hero-section, .py-5 {
        padding: 1rem 0;
    }
    
    .feature-card, .service-card, .price-card, .review-card, .case-study-card, 
    .info-card, .faq-card, .blog-card, .team-member, .career-card,
    .tip-card, .winner-card, .category-card, .criteria-card, .story-card,
    .equipment-card, .software-card, .prep-card, .guideline-card, .calendar-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations for users who prefer reduced motion */
    *, *::before, *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    .shape-blob-1, .shape-blob-2 {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card, .service-card, .price-card, .review-card, .case-study-card, 
    .info-card, .faq-card, .blog-card, .team-member, .career-card,
    .tip-card, .winner-card, .category-card, .criteria-card, .story-card,
    .equipment-card, .software-card, .prep-card, .guideline-card, .calendar-card {
        border: 2px solid currentColor;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Dark mode support (if user prefers dark color scheme) */