/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* No animations on mobile */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 80px;
        min-height: auto;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Cards spacing */
    .feature-card,
    .service-card,
    .pricing-card,
    .team-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card,
    .content-card {
        margin-bottom: 1.5rem;
    }
    
    /* Feature items stack vertically */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon-large {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Pricing cards */
    .pricing-card.featured {
        transform: none;
        margin-top: 0;
    }
    
    /* Team photos smaller on mobile */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Process steps */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Gallery images */
    .gallery-image {
        margin-bottom: 1rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        padding-top: 80px;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Navbar brand smaller */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Section padding reduced */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* No animations on mobile */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    .hero-section {
        padding-top: 90px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .breadcrumb-section {
        padding-top: 90px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 95px;
    }
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
    
    .breadcrumb-section {
        padding-top: 95px;
    }
    
    /* Team grid adjustment */
    .team-card {
        margin-bottom: 2rem;
    }
    
    /* Service cards in 2 columns */
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .pricing-card.featured {
        transform: scale(1.05);
    }
    
    .breadcrumb-section {
        padding-top: 100px;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Larger hero text */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

/* Tablet Portrait and Landscape */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Adjust card layouts for tablets */
    .feature-item {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .feature-icon-large {
        margin-right: 1.5rem;
        margin-bottom: 0;
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    /* Service cards in 2 columns */
    .col-lg-4:nth-child(3n) {
        margin-bottom: 2rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on high DPI displays */
    .feature-icon,
    .feature-icon-large,
    .process-number,
    .info-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    .contact-form,
    #footer {
        display: none;
    }
    
    /* Ensure good contrast for printing */
    body {
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    .feature-card,
    .service-card,
    .pricing-card,
    .team-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card,
    .content-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    /* Adjust hero section for landscape mobile */
    .hero-section {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 2rem;
    }
    
    .hero-section .row {
        min-height: auto;
    }
}

/* Dark Mode Support (if user prefers) */

/* Hover Support Detection */
@media (hover: none) {
    /* 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,
    .blog-card:hover,
    .faq-card:hover,
    .content-card:hover,
    .feature-item:hover,
    .career-card:hover,
    .info-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .gallery-image:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Focus Management for Accessibility */
@media (max-width: 991.98px) {
    /* Ensure touch targets are at least 44px */
    .btn,
    .nav-link,
    .form-control,
    .form-check-input {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control {
        padding: 1rem;
    }
    
    /* Larger touch targets for mobile */
    .navbar-toggler {
        padding: 0.5rem;
        min-height: 44px;
        min-width: 44px;
    }
}

/* Specific Bootstrap Grid Overrides for Better Mobile Experience */
@media (max-width: 767.98px) {
    /* Full width cards on mobile */
    .col-md-6.col-lg-4,
    .col-md-6.col-lg-3,
    .col-lg-4,
    .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Stack team members */
    .col-md-6.col-lg-4.offset-lg-2,
    .col-md-6.col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Center single column content */
    .col-md-12 {
        text-align: center;
    }
}

/* Performance Optimizations */
@media (max-width: 767.98px) {
    /* Reduce complex calculations on mobile */
    .feature-card,
    .service-card,
    .pricing-card,
    .team-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card,
    .content-card {
        will-change: auto;
    }
    
    /* Simplify gradients on mobile for better performance */
    .btn-primary {
        background: var(--primary-color);
    }
    
    .feature-icon,
    .feature-icon-large,
    .process-number,
    .info-icon {
        background: var(--primary-color);
    }
} 

.hero-section h1 {
    padding-top: 100px;
}