/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1, .h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    h4, .h4 {
        font-size: 1.125rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding-top: 80px;
        min-height: auto;
    }
    
    .hero-section .container-fluid {
        min-height: auto;
    }
    
    .hero-content {
        padding: 1rem 0;
        text-align: center;
    padding-top: 275px;
}
    
    /* Remove hero background decoration on mobile */
    .hero-section::before {
        display: none;
    }
    
    /* Section padding adjustments */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Team member images */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps layout */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Timeline year boxes */
    .timeline-year {
        font-size: 0.875rem;
        min-width: 70px;
        padding: 0.5rem;
    }
    
    /* Contact form adjustments */
    .contact-form .form-control {
        padding: 0.625rem 0.875rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Price display */
    .price-display {
        font-size: 1.5rem;
    }
    
    /* Disable hover effects on mobile */
    .card:hover,
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .faq-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .team-member:hover img {
        transform: none;
    }
    
    .process-step:hover .step-number {
        transform: none;
        background-color: var(--primary-color);
    }
    
    /* Gallery adjustments */
    .gallery img {
        margin-bottom: 1rem;
    }
    
    .gallery img:hover {
        transform: none;
    }
    
    /* Footer adjustments */
    #footer .row {
        text-align: center;
    }
    
    #footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 2.25rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    /* Hero adjustments */
    .hero-section {
        padding-top: 90px;
    }
    
    /* Section spacing */
    section {
        padding: 4rem 0;
    }
    
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Team images */
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Reduce mobile hover effects */
    .card:hover,
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover {
        transform: translateY(-2px);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 95px;
    }
    
    /* Cards in grid */
    .service-card,
    .pricing-card {
        height: 100%;
    }
    
    /* Team member spacing */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Timeline items */
    .timeline-item {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full hover effects enabled */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
    
    /* Team member grid alignment */
    .team-member {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
    }
    
    /* Process and timeline alignment */
    .process-step,
    .timeline-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: 100%;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Hero section enhancements */
    .hero-section::before {
        right: -5%;
        width: 40%;
    }
    
    /* Typography enhancements */
    .display-4 {
        font-size: 3rem;
    }
    
    /* Enhanced spacing */
    .hero-content {
        padding: 3rem 0;
    padding-top: 275px;
}
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced hero */
    .hero-section::before {
        right: 0;
        width: 35%;
    }
    
    /* Larger typography for ultra-wide */
    h1, .h1 {
        font-size: 3rem;
    }
    
    h2, .h2 {
        font-size: 2.25rem;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        padding: 1rem 0;
    padding-top: 275px;
}
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support (respects user preference) */

/* Print Styles Enhancement */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    #footer,
    .breadcrumb-section {
        display: none !important;
    }
    
    /* Optimize layout for print */
    .hero-section {
        padding-top: 0;
        background: none !important;
    }
    
    .hero-section::before {
        display: none;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card,
    .feature-card,
    .service-card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    /* Ensure readability */
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    .text-white {
        color: #000 !important;
    }
    
    .bg-dark {
        background-color: #fff !important;
    }
}

/* Accessibility Enhancements */
@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 transform effects */
    .card:hover,
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .team-member:hover img,
    .process-step:hover .step-number {
        transform: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    /* Enhance contrast for accessibility */
    .btn-primary {
        background-color: #0000ff;
        border-color: #0000ff;
    }
    
    .text-primary {
        color: #0000ff !important;
    }
    
    .card,
    .feature-card {
        border: 2px solid #000 !important;
    }
} 