/* ===========================================
   MindFlow - Responsive Styles
   Mobile & Tablet Optimizations
   =========================================== */

/* Large screens and up */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .shape-blob-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-blob-2 {
        width: 250px;
        height: 250px;
    }
}

/* Desktop and large tablets */
@media (max-width: 1199.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding-top: 100px;
        min-height: 90vh;
    }
}

/* Tablets and medium screens */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-buttons {
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .shape-blob-1,
    .shape-blob-2 {
        display: none;
    }
    
    .feature-item {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .feature-item .feature-icon {
        margin-bottom: 1rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::before {
        left: 0.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -0.25rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .member-photo img {
        width: 120px;
        height: 120px;
    }
}

/* Small tablets and large phones */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-buttons .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .service-image {
        width: 60px;
        height: 60px;
    }
    
    .price-display {
        padding: 1rem;
    }
    
    .pricing-card .h1 {
        font-size: 2rem;
    }
    
    .member-photo img {
        width: 100px;
        height: 100px;
    }
    
    .step-number .badge {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .timeline {
        padding-left: 0.5rem;
    }
    
    .timeline-item {
        padding-left: 1rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .metric-card {
        padding: 1.5rem 0.5rem;
    }
    
    .metric-number .display-4 {
        font-size: 2rem;
    }
    
    /* Remove hover effects on mobile */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .collaboration-card:hover,
    .analytics-card:hover,
    .solution-card:hover,
    .training-card:hover,
    .migration-card:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    .feature-item:hover {
        transform: none;
        background-color: transparent;
    }
    
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none;
    }
    
    .team-member:hover,
    .process-step:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .contact-info:hover,
    .metric-card:hover {
        transform: none;
    }
    
    .integration-item:hover,
    .security-item:hover,
    .custom-dev-item:hover {
        transform: none;
        background-color: transparent;
        border-color: inherit;
        box-shadow: none;
    }
    
    #gallery img:hover {
        transform: none;
        box-shadow: inherit;
    }
}

/* Mobile phones */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .h2 {
        font-size: 1.25rem;
    }
    
    .h4, .h5 {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1.25rem;
    overflow-x: hidden;
}
    
    .service-image {
        width: 50px;
        height: 50px;
    }
    
    .price-display {
        padding: 0.75rem;
        margin: 0.5rem 0;
    }
    
    .pricing-card .h1 {
        font-size: 1.75rem;
    }
    
    .member-photo img {
        width: 80px;
        height: 80px;
    }
    
    .step-number .badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 0.75rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section .col-lg-4,
    .footer-section .col-lg-2,
    .footer-section .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .metric-card {
        padding: 1rem 0.25rem;
    }
    
    .metric-number .display-4 {
        font-size: 1.5rem;
    }
    
    .row.align-items-center.text-center {
        text-align: center;
    }
    
    .col-md-6.text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    /* Process steps responsive layout */
    .col-lg-2.col-md-4.col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-lg-2.col-md-4.col-6:nth-child(odd) {
        padding-right: 0.5rem;
    }
    
    .col-lg-2.col-md-4.col-6:nth-child(even) {
        padding-left: 0.5rem;
    }
}

/* Extra small phones */
@media (max-width: 374.98px) {
    .display-4 {
        font-size: 1.25rem;
    }
    
    .h2 {
        font-size: 1.125rem;
    }
    
    .btn {
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .service-image {
        width: 40px;
        height: 40px;
    }
    
    .pricing-card .h1 {
        font-size: 1.5rem;
    }
    
    .member-photo img {
        width: 70px;
        height: 70px;
    }
    
    .step-number .badge {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .metric-number .display-4 {
        font-size: 1.25rem;
    }
    
    .contact-form {
        padding: 0.75rem;
    }
    
    /* Full width on extra small screens */
    .col-lg-2.col-md-4.col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 !important;
        margin-bottom: 1rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 0 40px;
        min-height: auto;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Print styles */
@media print {
    .hero-decoration,
    .shape-blob-1,
    .shape-blob-2,
    .navbar,
    .btn,
    .fixed-top {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 2rem;
        background: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --secondary-color: #008080;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
    
    .btn-primary {
        border: 2px solid;
    }
    
    .btn-outline-primary {
        border: 2px solid;
    }
    
    .card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .shape-blob-1,
    .shape-blob-2 {
        animation: none;
    }
    
    .sal-animate {
        transition: none !important;
    }
} 

.hero-section h1 {
    padding-top: 200px;
}