/* Responsive CSS for Plant Disease Detection App */

/* Mobile First Approach */
@media (max-width: 575.98px) {
    /* Typography */
    :root {
        --fs-3xl: 1.75rem;
        --fs-2xl: 1.5rem;
        --fs-xl: 1.25rem;
        --fs-lg: 1.125rem;
    }
    
    /* Spacing */
    .section {
        padding: var(--space-xl) 0;
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh;
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--fs-2xl);
        margin-bottom: var(--space-sm);
    }
    
    .hero-subtitle {
        font-size: var(--fs-lg);
        margin-bottom: var(--space-md);
    }
    
    .hero-desc {
        font-size: var(--fs-base);
        margin-bottom: var(--space-lg);
    }
    
    /* Cards */
    .service-card,
    .price-card,
    .team-member,
    .review-card {
        padding: var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    /* Contact Form */
    .contact-form {
        padding: var(--space-md);
    }
    
    /* Gallery */
    .gallery-item img {
        height: 200px;
    }
    
    /* Shapes - Hide on mobile */
    .shape {
        display: none;
    }
    
    /* FAQ */
    .faq-question,
    .faq-answer {
        padding: var(--space-md);
    }
    
    /* Footer */
    .footer {
        padding: var(--space-xl) 0 var(--space-md);
        text-align: center;
    }
}

/* Small tablets */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: var(--fs-2xl);
    }
    
    .service-card,
    .price-card,
    .team-member {
        margin-bottom: var(--space-lg);
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    /* Shapes - Smaller on tablets */
    .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-3 {
        width: 80px;
        height: 80px;
    }
}

/* Medium tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: var(--fs-3xl);
    }
    
    .gallery-item img {
        height: 240px;
    }
    
    /* Two columns for services */
    .service-card {
        margin-bottom: var(--space-lg);
    }
}

/* Large tablets and small desktops */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .gallery-item img {
        height: 260px;
    }
    
    /* Three columns for services */
    .service-card {
        margin-bottom: var(--space-lg);
    }
}

/* Extra large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: var(--fs-3xl);
    }
    
    .gallery-item img {
        height: 280px;
    }
    
    /* Full shape animations */
    .shape-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-2 {
        width: 180px;
        height: 180px;
    }
    
    .shape-3 {
        width: 120px;
        height: 120px;
    }
}

/* Landscape mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: var(--fs-xl);
    }
    
    .hero-subtitle {
        font-size: var(--fs-md);
    }
    
    .section {
        padding: var(--space-lg) 0;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .gallery-item img,
    .team-member img,
    .service-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .contact-form,
    .btn {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        background: none;
    }
    
    .section {
        padding: var(--space-sm) 0;
    }
    
    .service-card,
    .price-card,
    .team-member,
    .review-card {
        box-shadow: none;
        border: 1px solid var(--light-gray);
        break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .shape {
        animation: none;
    }
    
    .animate-fade-in {
        opacity: 1;
        transform: none;
    }
    
    * {
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card,
    .price-card,
    .team-member,
    .review-card,
    .faq-item {
        border: 2px solid var(--dark-gray);
    }
    
    .btn-primary {
        border: 2px solid var(--dark-green);
    }
    
    .form-control {
        border: 2px solid var(--dark-gray);
    }
}

/* Dark mode support (if needed in future) */

/* Container responsive adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Navigation responsive */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        padding-top: var(--space-sm);
    }
    
    .navbar-nav .nav-link {
        padding: var(--space-sm) var(--space-md) !important;
    }
}

/* Form responsive */
@media (max-width: 575.98px) {
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-primary {
        width: 100%;
    }
}

/* Grid responsive adjustments */
@media (max-width: 767.98px) {
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-md-4,
    .col-md-6,
    .col-lg-4,
    .col-lg-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Team section responsive */
@media (max-width: 575.98px) {
    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* Services responsive */
@media (max-width: 575.98px) {
    .service-card img {
        width: 60px;
        height: 60px;
    }
}

/* Price responsive */
@media (max-width: 575.98px) {
    .price-card .price {
        font-size: var(--fs-2xl);
    }
}

/* Review cards responsive */
@media (max-width: 575.98px) {
    .review-card::before {
        font-size: 40px;
        top: -5px;
        left: 15px;
    }
} 