/* ===================================
   Recipe Customization Engine - Responsive CSS
   ===================================*/

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.86rem; }
    h3 { font-size: 1.64rem; }
    h4 { font-size: 1.37rem; }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        padding: 4rem 0 2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 225px;
}
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card,
    .team-card,
    .blog-card,
    .price-card,
    .tech-card,
    .algorithm-card,
    .data-card,
    .model-card,
    .innovation-card,
    .process-card,
    .ingredient-card,
    .technique-card,
    .cuisine-card,
    .info-card,
    .career-card {
        padding: 1rem;
        margin-bottom: 1.59rem;
    }
    
    /* Service Cards */
    .service-card img {
        height: 150px;
    }
    
    /* Team Photos */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps */
    .process-step {
        padding-top: 3rem;
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Timeline */
    .timeline-container::before {
        left: 15px;
    }
    
    .timeline-item {
        width: calc(100% - 40px);
        left: 30px !important;
        text-align: left !important;
        margin-bottom: 1.60rem;
    }
    
    .timeline-item::before {
        content: '';
        position: absolute;
        left: -25px;
        top: 20px;
        width: 12px;
        height: 12px;
        background: var(--primary-color);
        border-radius: 50%;
        border: 3px solid var(--white);
    }
    
    /* Gallery */
    .gallery-img {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* FAQ */
    .accordion-button {
        padding: 1rem;
        font-size: 0.97rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.58rem;
    padding-top: 225px;
}
    
    /* Cards */
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card,
    .team-card,
    .blog-card,
    .price-card,
    .tech-card,
    .algorithm-card,
    .data-card,
    .model-card,
    .innovation-card,
    .process-card,
    .ingredient-card,
    .technique-card,
    .cuisine-card,
    .info-card,
    .career-card {
        padding: 1.5rem;
    }
    
    /* Service Cards */
    .service-card img {
        height: 180px;
    }
    
    /* Gallery */
    .gallery-img {
        height: 180px;
    }
    
    /* Timeline */
    .timeline-item {
        width: calc(100% - 60px);
        left: 45px !important;
    }
    
    .timeline-container::before {
        left: 25px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-brand {
        font-size: 1.27rem;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 225px;
}
    
    /* Process Steps */
    .process-step {
        padding-top: 4rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.22rem;
    }
    
    /* Timeline */
    .timeline-item {
        width: 45%;
        padding: 1.5rem;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: right;
    }
    
    .timeline-item:nth-child(even) {
        left: 55%;
        text-align: left;
    }
    
    .timeline-container::before {
        left: 50%;
    }
    
    /* Gallery */
    .gallery-img {
        height: 200px;
    }
    
    /* Price Cards */
    .price-card.featured {
        transform: scale(1.02);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 3.60rem;
    padding-top: 225px;
}
    
    /* Cards */
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card,
    .team-card,
    .blog-card,
    .price-card,
    .tech-card,
    .algorithm-card,
    .data-card,
    .model-card,
    .innovation-card,
    .process-card,
    .ingredient-card,
    .technique-card,
    .cuisine-card,
    .info-card,
    .career-card {
        padding: 2rem;
    }
    
    /* Service Cards */
    .service-card img {
        height: 220px;
    }
    
    /* Gallery */
    .gallery-img {
        height: 220px;
    }
    
    /* Timeline */
    .timeline-item {
        width: 45%;
        padding: 2rem;
    }
    
    /* Price Cards */
    .price-card.featured {
        transform: scale(1.05);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 4rem;
    padding-top: 225px;
}
    
    /* Cards */
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card,
    .team-card,
    .blog-card,
    .price-card,
    .tech-card,
    .algorithm-card,
    .data-card,
    .model-card,
    .innovation-card,
    .process-card,
    .ingredient-card,
    .technique-card,
    .cuisine-card,
    .info-card,
    .career-card {
        padding: 2.5rem;
    }
    
    /* Service Cards */
    .service-card img {
        height: 240px;
    }
    
    /* Gallery */
    .gallery-img {
        height: 240px;
    }
    
    /* Timeline */
    .timeline-item {
        width: 45%;
        padding: 2.5rem;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 4.54rem;
    padding-top: 225px;
}
    
    /* Service Cards */
    .service-card img {
        height: 260px;
    }
    
    /* Gallery */
    .gallery-img {
        height: 260px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.72rem;
    padding-top: 225px;
}
    
    .hero-section p {
        font-size: 1.04rem;
    }
}

/* Print styles */
@media print {
    /* Reset responsive styles for print */
    * {
        font-size: 12pt !important;
        line-height: 1.4 !important;
    }
    
    h1 { font-size: 18pt !important; }
    h2 { font-size: 16pt !important; }
    h3 { font-size: 14pt !important; }
    h4 { font-size: 12pt !important; }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .row {
        margin: 0 !important;
    }
    
    .col-lg-4,
    .col-md-6,
    .col-sm-12 {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-section,
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card,
    .team-card,
    .blog-card,
    .price-card,
    .tech-card,
    .algorithm-card,
    .data-card,
    .model-card,
    .innovation-card,
    .process-card,
    .ingredient-card,
    .technique-card,
    .cuisine-card,
    .info-card,
    .career-card {
        background: transparent !important;
        border: 1px solid #000 !important;
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        page-break-inside: avoid;
    }
    
    .gallery-img {
        display: none;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        text-align: left !important;
    }
    
    .timeline-container::before {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #1400ff;
        --secondary-color: #117200;
        --accent-color: #ffa809;
        --info-color: #0091ff;
        --success-color: #ff0024;
        --gray: #000000;
        --dark-gray: #000000;
    }
    
    .hero-section,
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card,
    .team-card,
    .blog-card,
    .price-card,
    .tech-card,
    .algorithm-card,
    .data-card,
    .model-card,
    .innovation-card,
    .process-card,
    .ingredient-card,
    .technique-card,
    .cuisine-card,
    .info-card,
    .career-card {
        border: 2px solid #000000;
    }
    
    .btn {
        border: 2px solid #000000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .team-card:hover,
    .blog-card:hover,
    .price-card:hover,
    .tech-card:hover,
    .algorithm-card:hover,
    .data-card:hover,
    .model-card:hover,
    .innovation-card:hover,
    .process-card:hover,
    .ingredient-card:hover,
    .technique-card:hover,
    .cuisine-card:hover,
    .info-card:hover,
    .career-card:hover {
        transform: none !important;
    }
    
    .gallery-img:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
}

/* Dark mode support */