/* Responsive Design - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    
    /* Disable all animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Typography adjustments */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    padding-top: 250px;
}
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .hero-shape {
        display: none;
    }
    
    /* Sections padding */
    section {
        padding: 3rem 0;
    }
    
    /* Cards adjustments */
    .feature-card,
    .service-card,
    .pricing-card,
    .team-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .blog-card,
    .faq-card {
        margin-bottom: 1.5rem;
        transform: none !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Feature icon size */
    .feature-icon,
    .info-icon,
    .process-icon {
        width: 60px;
        height: 60px;
    }
    
    /* Process timeline mobile */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    .process-step h5 {
        font-size: 1rem;
    }
    
    .process-step p {
        font-size: 0.85rem;
    }
    
    /* Timeline mobile */
    .timeline-container::before {
        display: none;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding: 0 !important;
        margin-bottom: 2rem;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .timeline-date {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    /* Team images mobile */
    .team-image {
        width: 120px;
        height: 120px;
    }
    
    /* Service images mobile */
    .service-image,
    .case-study-image,
    .blog-image {
        height: 150px;
    }
    
    /* Gallery mobile */
    .gallery-image {
        height: 200px;
    }
    
    /* Contact form mobile */
    .contact-form-wrapper {
        padding: 2rem 1rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Pricing mobile */
    .pricing-card.featured {
        transform: none !important;
        margin-bottom: 2rem;
    }
    
    .pricing-price .price {
        font-size: 2rem;
    }
    
    /* Button mobile */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Footer mobile */
    footer {
        padding: 2rem 0 1rem;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb-nav {
        margin-top: 65px;
        padding: 0.5rem 0;
    }
    
    .breadcrumb-image {
        height: 20px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    
    /* Typography */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 80vh;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Timeline */
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding: 0 !important;
    }
    
    .timeline-container::before {
        display: none;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .team-card {
        margin-bottom: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    
    /* Typography */
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 90vh;
    }
    
    /* Timeline tablet */
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding: 0 !important;
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-content::before {
        left: -40px;
    }
    
    /* Service grid */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team grid */
    .team-image {
        width: 140px;
        height: 140px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    
    /* Typography */
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Timeline desktop */
    .timeline-container::before {
        left: 50%;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 2rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 2rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before {
        right: -2rem;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Typography */
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    /* Hero full desktop */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Spacing adjustments */
    section {
        padding: 6rem 0;
    }
    
    /* Timeline full desktop */
    .timeline-item:nth-child(odd) {
        padding-right: 3rem;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 3rem;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    
    /* Container adjustments */
    .container {
        max-width: 1320px;
    }
    
    /* Typography scaling */
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content .lead {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 3.25rem;
    }
    
    .section-subtitle {
        font-size: 1.4rem;
    }
    
    .section-description {
        font-size: 1.2rem;
    }
}

/* Print styles */
@media print {
    
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    .navbar,
    .hero-buttons,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .hero-section {
        min-height: auto;
        page-break-after: always;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .service-card,
    .feature-card,
    .review-card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* Ensure crisp rendering on retina displays */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Adjust thin borders for retina */
    .feature-card,
    .service-card,
    .pricing-card,
    .team-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .blog-card,
    .faq-card {
        border-width: 0.5px;
    }
}

/* Reduced motion preferences */
@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 transform effects */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .team-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .process-step:hover,
    .btn:hover {
        transform: none !important;
    }
    
    /* Remove image scaling effects */
    .service-card:hover .service-image img,
    .case-study-card:hover .case-study-image img,
    .blog-card:hover .blog-image img,
    .gallery-image:hover {
        transform: none !important;
    }
}

/* Dark mode support */

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    
    /* Reduce hero height on landscape mobile */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Smaller navigation */
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 0.875rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.875rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
        padding: 0.875rem 1rem;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .team-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    
    /* Increase contrast for better accessibility */
    :root {
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .team-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .blog-card,
    .faq-card {
        border: 2px solid var(--text-color);
    }
    
    .btn {
        border-width: 2px;
    }
} 