/* Responsive CSS - Additional Mobile and Tablet Optimizations */

/* Mobile First Approach */
@media (max-width: 575.98px) {
    /* Extra Small Devices */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.80rem;
        line-height: 1.3;
    padding-top: 150px;
}
    
    .hero-section h2 {
        font-size: 1.36rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 1.78rem;
    }
    
    h3 {
        font-size: 1.29rem;
    }
    
    /* Cards on mobile */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .blog-card,
    .content-card,
    .info-card,
    .case-study-card,
    .career-card {
        padding: 1.5rem;
        margin-bottom: 1.70rem;
    }
    
    /* Service cards stack properly */
    .service-card img {
        height: 150px;
    }
    
    /* Team member images smaller on mobile */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Process steps stack vertically */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.38rem;
    }
    
    /* Navigation adjustments */
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
    
    /* Footer improvements */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery improvements */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 150px;
}
    
    .hero-section h2 {
        font-size: 1.50rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Team layout adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process steps with better spacing */
    .process-step {
        margin-bottom: 3rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.37rem;
    padding-top: 150px;
}
    
    section {
        padding: 70px 0;
    }
    
    /* Adjust card padding for tablets */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .blog-card,
    .content-card,
    .info-card,
    .case-study-card,
    .career-card {
        padding: 1.75rem;
    }
    
    /* Service grid improvements */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team layout for tablets */
    .team-member {
        margin-bottom: 2.57rem;
    }
    
    /* Blog card improvements */
    .blog-card {
        margin-bottom: 2rem;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        margin-bottom: 2.68rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    /* Pricing cards layout */
    .pricing-card.featured {
        transform: scale(1.03);
    }
    
    /* Services layout optimization */
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced hover effects for larger screens */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .blog-card:hover,
    .content-card:hover,
    .info-card:hover,
    .case-study-card:hover,
    .career-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15);
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 150px;
}
    
    .hero-section h2 {
        font-size: 1.89rem;
    }
    
    h2 {
        font-size: 2.58rem;
    }
    
    /* Larger cards for ultra-wide screens */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .blog-card,
    .content-card,
    .info-card,
    .case-study-card,
    .career-card {
        padding: 2.5rem;
    }
}

/* Landscape Phone Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0;
    }
    
    section {
        padding: 30px 0;
    }
    
    .navbar-collapse {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    #gallery {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .hero-section {
        background: none;
        color: black;
        padding: 20px 0;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #d4caca;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhanced image quality for retina displays */
    .service-card img,
    .blog-card img,
    .team-member img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects for touch devices */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .blog-card:hover,
    .content-card:hover,
    .info-card:hover,
    .case-study-card:hover,
    .career-card:hover {
        transform: none;
        box-shadow: 0 6px 6px rgba(0, 0, 0, 0.05);
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover underlines on navigation */
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* Accessibility: Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .blog-card,
    .content-card,
    .info-card,
    .case-study-card,
    .career-card,
    .btn,
    .nav-link,
    #gallery img {
        transition: none;
    }
    
    .hero-section::before {
        animation: none;
    }
}

/* Dark Mode Support (if user prefers dark color scheme) */