/* Mobile-First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Service cards */
    .service-card img {
        height: 150px;
    }
    
    /* Team photos */
    .team-photo img {
        width: 150px;
        height: 150px;
    }
    
    /* Process steps - stack vertically */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Timeline items */
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    /* Contact form */
    .contact-form {
        margin-bottom: 2rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Disable animations on mobile as per requirements */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .team-member:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Conservative spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Ensure text remains readable */
    .lead {
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 200px;
}
    
    .service-card img {
        height: 180px;
    }
    
    .team-photo img {
        width: 175px;
        height: 175px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
    }
    
    .timeline-year {
        width: 70px;
        height: 70px;
    }
    
    /* Disable scroll animations on mobile */
    * {
        animation: none !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 90px;
    }
    
    .service-card img {
        height: 190px;
    }
    
    .team-photo img {
        width: 180px;
        height: 180px;
    }
    
    /* Adjust grid layouts for tablets */
    .col-md-6.col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    .col-md-6.col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding-top: 100px;
    }
    
    /* Full animations and effects enabled */
    .service-card:hover {
        transform: translateY(-8px);
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    .team-member:hover {
        transform: translateY(-10px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for larger screens */
    .hero-section {
        padding-top: 120px;
    }
    
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .contact-form,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    .hero-section {
        background: white !important;
        padding-top: 0 !important;
    }
    
    .bg-light {
        background: white !important;
    }
    
    .text-primary {
        color: black !important;
    }
    
    .shadow,
    .shadow-sm {
        box-shadow: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .review-card {
        border: 2px solid black;
    }
    
    .btn-primary {
        background-color: black;
        border-color: black;
        color: white;
    }
    
    .text-primary {
        color: black !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-section {
        background: var(--light-blue) !important;
    }
}

/* Dark mode support (optional) */

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Ensure proper touch targets on mobile */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
} 