/* EcoGallery - Responsive Styles */
/* Mobile-First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    .display-5 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem 0;
    padding-top: 150px;
}
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    /* Section Spacing */
    section {
        padding: 2rem 0;
    }
    
    /* Cards and Components */
    .service-card,
    .feature-card,
    .pricing-card,
    .team-card,
    .review-card,
    .blog-card,
    .faq-card,
    .career-card,
    .info-card,
    .case-study-card {
        margin-bottom: 1rem;
    }
    
    /* Pricing Cards */
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .pricing-card.bg-success {
        transform: none;
        scale: 1;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Timeline */
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    .timeline-content {
        margin-bottom: 1rem;
    }
    
    /* Gallery */
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Disable hover effects and animations on mobile */
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-content {
        text-align: center;
    padding-top: 150px;
}
    
    section {
        padding: 2.5rem 0;
    }
    
    .pricing-card.bg-success {
        transform: scale(1.02);
    }
    
    /* Disable animations on small devices */
    .service-card:hover,
    .feature-card:hover,
    .pricing-card:hover,
    .team-card:hover,
    .review-card:hover,
    .gallery-item:hover,
    .blog-card:hover,
    .faq-card:hover,
    .career-card:hover,
    .info-card:hover,
    .case-study-card:hover,
    .feature-item:hover {
        transform: none;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-5 {
        font-size: 2.25rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    padding-top: 150px;
}
    
    .pricing-card.bg-success {
        transform: scale(1.03);
    }
    
    /* Reduce hover effects on tablets */
    .service-card:hover,
    .gallery-item:hover {
        transform: translateY(-2px);
    }
    
    .gallery-item:hover img {
        transform: scale(1.05);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .display-5 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .hero-content {
        padding: 2rem 0;
    padding-top: 150px;
}
    
    .pricing-card.bg-success {
        transform: scale(1.05);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .display-5 {
        font-size: 2.75rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero-content {
        padding: 2.5rem 0;
    padding-top: 150px;
}
    
    .container {
        max-width: 1200px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1rem 0;
    padding-top: 150px;
}
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card img,
    .blog-card img,
    .case-study-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .navbar,
    #footer,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    .service-card,
    .feature-card,
    .pricing-card,
    .team-card,
    .review-card,
    .blog-card,
    .faq-card {
        page-break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 1rem;
    }
}

/* Accessibility - 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;
    }
}

/* Dark Mode Support */

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .service-card:hover,
    .feature-card:hover,
    .pricing-card:hover,
    .team-card:hover,
    .review-card:hover,
    .gallery-item:hover,
    .blog-card:hover,
    .faq-card:hover,
    .career-card:hover,
    .info-card:hover,
    .case-study-card:hover,
    .feature-item:hover {
        transform: none;
    }
}

/* Container Queries Support (Future-proofing) */
@container (max-width: 400px) {
    .pricing-card {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
} 

body {
    overflow-x: hidden;
}