/* Mobile First Responsive Design */

/* Base Mobile Styles (up to 575px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 2rem 0;
        min-height: 100vh;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Services cards mobile */
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Team section mobile */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps mobile */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Contact form mobile */
    .contact-info-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    footer .text-end {
        text-align: start;
    }
    
    /* Gallery mobile - single column */
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    /* No animations on mobile for performance */
    * {
        animation: none;
        transition: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    /* Mobile navigation */
    .navbar-collapse {
        background: var(--background-light);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--neutral-light);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Small tablets (576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-cta .btn {
        width: auto;
        margin-right: 1rem;
        margin-bottom: 1rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .process-number {
        width: 55px;
        height: 55px;
    }
}

/* Medium tablets (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Services grid adjustment */
    .services-grid .col-md-6:nth-child(odd) {
        padding-right: 0.75rem;
    }
    
    .services-grid .col-md-6:nth-child(even) {
        padding-left: 0.75rem;
    }
}

/* Large tablets and small desktops (992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    /* Adjust team member spacing */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Large desktops (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: var(--container-max-width);
    }
    
    /* Enhanced hover effects for large screens */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    
    .team-member:hover img {
        transform: scale(1.05);
    }
    
    .gallery-item:hover img {
        transform: scale(1.15);
    }
}

/* Extra large screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Larger spacing for extra large screens */
    section {
        padding: 6rem 0;
    }
    
    .hero-section {
        padding: 8rem 0;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: 1rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .contact-form,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
    }
}

/* Dark mode support (if system preference) */

/* Accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
    /* Only apply animations if user hasn't requested reduced motion */
    .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .btn {
        transition: all 0.3s ease;
    }
    
    .form-control {
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--neutral-dark);
    }
    
    .btn-primary {
        background-color: #000080;
        border-color: #000080;
    }
    
    .text-muted {
        color: var(--neutral-dark);
    }
} 

.hero-section h1 {
    padding-top: 100px;
}