/* ========================================
   MindFlow Pro - Responsive CSS
   Mobile & Tablet Optimizations
======================================== */

/* Mobile-First Responsive Breakpoints */
/* xs: <576px, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    
    /* Disable animations on mobile per requirements */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Conservative Typography for Mobile */
    h1, .h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    h4, .h4 {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    h5, .h5 {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    h6, .h6 {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Conservative Navbar Brand Size */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Body Text */
    body {
        font-size: 0.9rem;
        line-height: 1.6;
    overflow-x: hidden;
}
    
    .lead {
        font-size: 1rem;
    }
    
    /* Section Padding Reduction */
    section {
        padding: 3rem 0;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section .container {
        text-align: center;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    /* Button Adjustments */
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Card Spacing */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Feature Cards Mobile */
    .feature-card {
        padding: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* Service Cards Mobile */
    .service-card .card-body {
        padding: 1rem;
    }
    
    .price-tag {
        margin-top: 0.5rem;
        padding: 0.75rem;
    }
    
    /* Team Section Mobile */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps Mobile */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Timeline Mobile */
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    /* Contact Form Mobile */
    .contact-form {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .contact-info {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Gallery Mobile */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Footer Mobile */
    #footer {
        text-align: center;
    }
    
    #footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Additional Pages Mobile */
    .strategy-item,
    .application-item,
    .integration-item,
    .practice-item,
    .collaboration-item,
    .export-item,
    .security-item,
    .performance-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Form Controls */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Touch-friendly targets */
    .btn,
    .nav-link,
    .form-control {
        min-height: 44px;
    }
    
    /* Spacing Utilities */
    .mb-mobile-2 {
        margin-bottom: 1rem;
    }
    
    .mt-mobile-2 {
        margin-top: 1rem;
    }
    
    /* Hide desktop-only elements */
    .d-mobile-none {
        display: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    
    /* Disable animations on mobile per requirements */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Typography adjustments */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.625rem;
    }
    
    /* Section spacing */
    section {
        padding: 3.5rem 0;
    }
    
    /* Hero adjustments */
    .hero-section {
        padding: 2.5rem 0;
    }
    
    /* Process steps */
    .process-step .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.125rem;
    }
    
    /* Team images */
    .team-member img {
        width: 90px;
        height: 90px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.75rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    
    /* Typography */
    h1, .h1 {
        font-size: 2.125rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    /* Section spacing */
    section {
        padding: 4rem 0;
    }
    
    /* Hero section */
    .hero-section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1.25rem;
    }
    
    /* Feature cards */
    .feature-card {
        padding: 1.25rem;
    }
    
    /* Team images */
    .team-member img {
        width: 95px;
        height: 95px;
    }
    
    /* Process steps */
    .process-step .step-number {
        width: 58px;
        height: 58px;
        font-size: 1.125rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    
    /* Enable hover effects only on larger screens */
    .card:hover {
        transform: translateY(-2px);
    }
    
    .feature-item:hover {
        transform: translateX(5px);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
    
    .team-member:hover img {
        transform: scale(1.05);
    }
    
    .process-step:hover .step-number {
        transform: scale(1.1);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    
    /* Larger container max-width already handled by Bootstrap */
    
    /* Enhanced spacing for larger screens */
    section {
        padding: 5rem 0;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    /* Enhanced card spacing */
    .card-body {
        padding: 2rem;
    }
    
    .feature-card {
        padding: 1.75rem;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    
    /* Prevent excessive scaling on very large screens */
    .container {
        max-width: 1320px;
    }
    
    /* Conservative scaling */
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    
    /* Reduce vertical spacing in landscape mode */
    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .process-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
}

/* High DPI Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* Ensure crisp rendering on retina displays */
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
    }
    
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Considerations (for future implementation) */

/* Print Responsive Adjustments */
@media print {
    
    /* Ensure proper scaling for print */
    @page {
        margin: 1in;
    }
    
    body {
        font-size: 11pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    h4 { font-size: 12pt; }
    h5 { font-size: 11pt; }
    h6 { font-size: 10pt; }
    
    /* Force page breaks */
    .page-break {
        page-break-after: always;
    }
    
    /* Prevent widows and orphans */
    p, li {
        orphans: 3;
        widows: 3;
    }
}

/* Accessibility Enhancements for Mobile */
@media (max-width: 767.98px) {
    
    /* Larger focus indicators on mobile */
    .btn:focus,
    .form-control:focus,
    a:focus {
        outline: 3px solid var(--primary-blue);
        outline-offset: 3px;
    }
    
    /* Enhanced contrast for mobile readability */
    .text-muted {
        color: #495057 !important;
    }
    
    /* Ensure minimum contrast ratios */
    .card-text {
        color: #212529;
    }
}

/* Motion Preferences Override for Mobile */
@media (max-width: 991.98px) and (prefers-reduced-motion: no-preference) {
    
    /* Still disable animations on mobile regardless of preference */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    .feature-item:hover,
    .team-member:hover img,
    .process-step:hover .step-number,
    #gallery img:hover {
        transform: none;
        box-shadow: initial;
        background: initial;
    }
    
    /* Larger touch targets */
    .navbar-toggler {
        padding: 0.5rem;
        font-size: 1.5rem;
    }
    
    /* Better button spacing for touch */
    .btn + .btn {
        margin-left: 0.75rem;
    }
    
    /* Enhanced form control sizing */
    .form-control {
        padding: 0.75rem 1rem;
        font-size: 16px;
    }
}


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