/* TrendCast AI - Responsive CSS */

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
        text-align: center;
    }
    
    .hero-decorative-shape {
        display: none;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Cards */
    .service-card .card-img-top {
        height: 150px;
    }
    
    .case-study-card .card-img-top {
        height: 150px;
    }
    
    .blog-card .card-img-top {
        height: 150px;
    }
    
    /* Team Members */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .researcher-photo {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Disable animations on mobile for reduced motion */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .tech-card:hover,
    .industry-card:hover,
    .support-card:hover,
    .research-card:hover,
    .partnership-card:hover,
    .publication-card:hover,
    .roadmap-card:hover,
    .researcher-card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .display-4 {
        font-size: 2.2rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Team Members */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps */
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.75rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Cards */
    .service-card .card-img-top {
        height: 180px;
    }
    
    .case-study-card .card-img-top {
        height: 160px;
    }
    
    .blog-card .card-img-top {
        height: 180px;
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process Steps - Adjust for tablet layout */
    .process-step {
        margin-bottom: 2.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-decorative-shape {
        width: 180px;
        height: 180px;
    }
    
    /* Cards maintain full functionality */
    .service-card .card-img-top {
        height: 200px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-decorative-shape {
        width: 220px;
        height: 220px;
    }
    
    /* Typography */
    h1, .display-4 {
        font-size: 3rem;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Container Max Widths Override */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .hero-decorative-shape {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        page-break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 1rem;
    }
    
    .bg-primary,
    .bg-light,
    .bg-dark {
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .text-muted,
    .text-secondary {
        color: #000 !important;
    }
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
    .hero-decorative-shape {
        display: none;
    }
    
    .card-img-top,
    .team-member img,
    .researcher-photo {
        display: none;
    }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    :focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Dark Mode Support */

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