/* InfluMatch - Responsive CSS */
/* Mobile and tablet optimizations */

/* Extra Large Devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-section {
        min-height: 100vh;
    }
}

/* Large Devices (laptops/desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    
    .hero-section {
        min-height: 90vh;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    /* Cards and components */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
    
    /* Process and timeline adjustments */
    .process-step,
    .timeline-item {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Statistics */
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 0 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography - more conservative sizes */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    .navbar-brand {
        font-size: 1.125rem !important;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 70vh;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-section .container {
        padding: 0 1rem;
    }
    
    /* Cards and spacing */
    .feature-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .service-card .card-img-top {
        height: 160px;
    }
    
    .service-card .card-body {
        padding: 1.25rem;
    }
    
    /* Pricing */
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
        border: 2px solid var(--primary-color);
    }
    
    .price-large {
        font-size: 2.5rem;
    }
    
    /* Team layout */
    .team-member {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process and timeline */
    .process-step,
    .timeline-item {
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .year {
        font-size: 1.75rem;
    }
    
    /* Statistics */
    .stat-item {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    /* Gallery grid adjustment */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Forms */
    .contact-form {
        padding: 0 0.5rem;
    }
    
    .contact-form .form-control {
        padding: 0.625rem 0.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* IMPORTANT: No animations when scrolling in mobile resolution */
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* All hover effects disabled on mobile */
    .card:hover,
    .feature-card:hover,
    .service-card:hover,
    .btn:hover,
    .strategy-card:hover,
    .content-strategy:hover,
    .optimization-feature:hover,
    .roi-strategy:hover,
    .enterprise-solution:hover,
    .analytics-feature:hover,
    .protection-feature:hover,
    .partnership-tool:hover {
        transform: none !important;
    }
    
    /* Typography - very conservative */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    /* Body text */
    body {
        font-size: 14px;
    }
    
    /* Hero section - compact */
    .hero-section {
        min-height: 60vh;
        text-align: center;
        padding: 80px 0 2rem;
    }
    
    .hero-section .container {
        padding: 0 1rem;
    }
    
    /* Section spacing */
    section {
        padding: 2rem 0;
    }
    
    /* Navbar adjustments */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Cards - simplified */
    .card {
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .feature-card {
        padding: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .feature-card i {
        font-size: 2rem !important;
    }
    
    /* Service cards */
    .service-card .card-img-top {
        height: 140px;
    }
    
    .service-card .card-body {
        padding: 1rem;
    }
    
    .service-card .price {
        font-size: 1.25rem;
    }
    
    /* Pricing cards */
    .pricing-card {
        margin-bottom: 1rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 1rem;
    }
    
    .price-large {
        font-size: 2rem;
    }
    
    /* Team section - single column */
    .team-member {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .team-member img {
        width: 70px;
        height: 70px;
    }
    
    /* Reviews - single column */
    .review-card {
        margin-bottom: 1rem;
    }
    
    .review-card .card-body {
        padding: 1rem;
    }
    
    /* Process steps - vertical layout */
    .process-step {
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 0.75rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Timeline - simplified */
    .timeline-item {
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 0.75rem;
    }
    
    .year {
        font-size: 1.5rem;
    }
    
    /* Statistics */
    .stat-item {
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Gallery - 2 columns */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    #gallery img {
        margin-bottom: 0.5rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 0;
    }
    
    .contact-form .row .col-md-6 {
        margin-bottom: 0.75rem;
    }
    
    .contact-form .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 14px;
    }
    
    .contact-form textarea {
        min-height: 100px;
    }
    
    /* Buttons */
    .btn {
        font-size: 14px;
        padding: 0.625rem 1.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* FAQ */
    .faq-item {
        margin-bottom: 0.75rem;
    }
    
    .faq-item .card-body {
        padding: 1rem;
    }
    
    .faq-item h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .faq-item p {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    /* Footer */
    footer {
        text-align: center;
        padding: 2rem 0;
    }
    
    footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    footer h5 {
        font-size: 1.125rem;
    }
    
    footer p,
    footer li {
        font-size: 14px;
    }
    
    /* Additional pages styles */
    .strategy-card,
    .content-strategy,
    .optimization-feature,
    .roi-strategy,
    .enterprise-solution,
    .analytics-feature,
    .protection-feature,
    .partnership-tool {
        padding: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .service-item {
        padding: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .feature-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .feature-item i {
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
    
    /* Career items */
    .career-item .card-body {
        padding: 1rem;
        text-align: center;
    }
    
    /* Blog posts */
    .blog-post .card-body {
        padding: 1rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        padding: 80px 0 1rem;
        text-align: center;
    }
    
    .breadcrumb-image {
        height: 20px;
    }
    
    /* Space page */
    #space {
        min-height: 60vh;
        padding: 80px 1rem 2rem;
    }
    
    /* Utility classes for mobile */
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-mb-2 {
        margin-bottom: 1rem !important;
    }
    
    /* Remove margin/padding where needed */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .breadcrumb-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    .breadcrumb-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

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