/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    :root {
        --font-size-h1: 1.8rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.3rem;
        --section-padding: 2rem 0;
    }
    
    /* Navbar brand smaller on mobile */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    /* Card adjustments */
    .service-card .card-body,
    .pricing-card .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Team member images smaller */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps and timeline adjustments */
    .step-number, .timeline-year {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Contact form adjustments */
    .contact-form .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    /* Gallery grid adjustment */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Reduce padding on mobile */
    .feature-card, .feature-item,
    .info-item, .technique-item,
    .equipment-item, .storage-item {
        padding: 1rem;
    }
    
    /* Button adjustments */
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments */
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.6rem;
        --font-size-h3: 1.4rem;
    }
    
    /* Team member images */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    .hero-section {
        padding-top: 90px;
    }
    
    /* Team layout adjustment */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Services grid - 2 columns on tablet */
    #services .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Process and timeline - 3 columns */
    .process-step, .timeline-item {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero section full height */
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    /* Team section - all 5 members in one row */
    #team .row {
        justify-content: center;
    }
    
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Process steps - all 5 in one row */
    #process .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Timeline - all 5 in one row */
    #timeline .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustment */
    .container {
        max-width: 1140px;
    }
    
    /* Larger padding for sections */
    section {
        padding: 5rem 0;
    }
    
    /* Hero content spacing */
    .hero-section .col-lg-6:first-child {
        padding-right: 3rem;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Even more spacing for very large screens */
    section {
        padding: 6rem 0;
    }
}

/* Height-based media queries for better mobile experience */
@media (max-height: 600px) and (max-width: 991.98px) {
    /* Reduce hero section height on short mobile screens */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    /* Reduce section padding */
    section {
        padding: 1.5rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-width: 991.98px) {
    /* Adjust hero section for landscape mobile */
    .hero-section {
        padding: 1.5rem 0;
    }
    
    /* Smaller step numbers in landscape */
    .step-number, .timeline-year {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar, .btn, .contact-form,
    #gallery, .lightbox-overlay {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    /* Ensure good contrast */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-primary:hover {
        background: #fff;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    /* Disable 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;
    }
    
    /* Remove hover effects that use transforms */
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Focus management for accessibility */
@media (any-hover: none) {
    /* Touch devices - remove hover effects */
    .card:hover,
    .feature-item:hover,
    .contact-item:hover {
        transform: none;
        background-color: inherit;
    }
}

/* Dark mode support (if user prefers) */

.hero-section h1 {
    padding-top: 175px;
}