/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* No animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero h2 {
        font-size: 1.2rem;
    }
    
    #hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Services grid */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team members */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Pricing cards */
    .pricing-card .card-header h2 {
        font-size: 2rem;
    }
    
    /* Contact form */
    .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Hero section spacing */
    #hero {
        padding-top: 100px;
        min-height: 90vh;
    }
    
    /* Section padding */
    section {
        padding: 60px 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* No animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    #hero h1 {
        font-size: 2.2rem;
    }
    
    #hero h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    #hero {
        padding-top: 100px;
        min-height: 85vh;
    }
    
    section {
        padding: 70px 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    #hero h1 {
        font-size: 2.3rem;
    }
    
    #hero h2 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.1rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    /* Services grid adjustments */
    #services .col-md-6:nth-child(odd) {
        padding-right: 15px;
    }
    
    #services .col-md-6:nth-child(even) {
        padding-left: 15px;
    }
    
    /* Team grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Features grid */
    .feature-box {
        margin-bottom: 2rem;
    }
    
    #hero {
        min-height: 80vh;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #hero h1 {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2.15rem;
    }
    
    /* Services grid spacing */
    #services .col-lg-4 {
        padding: 0 15px;
        margin-bottom: 2rem;
    }
    
    /* Team layout */
    .team-member {
        margin-bottom: 1.5rem;
    }
    
    /* Process steps layout */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    #hero {
        min-height: 100vh;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Services grid optimal spacing */
    #services .col-lg-4 {
        padding: 0 20px;
    }
    
    /* Team optimal layout */
    .team-member {
        margin-bottom: 1rem;
    }
    
    /* Enhanced hero section */
    #hero {
        min-height: 100vh;
    }
    
    /* Optimal section spacing */
    section {
        padding: 100px 0;
    }
}

/* Ultra Wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    #hero h1 {
        font-size: 2.8rem;
    }
    
    #hero h2 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .section-subtitle {
        font-size: 1.3rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .feature-box, .info-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar, .btn, .form-control, #gallery {
        display: none;
    }
    
    /* Optimize text for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    /* Remove backgrounds and shadows */
    .card, .feature-box, .info-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    /* Ensure proper page breaks */
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Remove 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 rely on motion */
    .card:hover, .feature-box:hover, .info-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --text-dark: #000000;
        --text-light: #333333;
        --bg-white: #ffffff;
        --bg-light: #f0f0f0;
    }
    
    .card, .feature-box, .info-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Focus indicators for keyboard navigation */
@media (any-hover: none) {
    .btn:focus, .form-control:focus, .nav-link:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Specific mobile navigation adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg-white);
        border-radius: 8px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 6px;
        text-align: center;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--bg-light);
    }
} 