/* EcoTech Accessories - Responsive CSS */

/* Mobile First Approach */
/* Base styles are for mobile, then we enhance for larger screens */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Navigation */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        padding: 80px 0 2rem;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Decorative shapes - hide on mobile for performance */
    .hero-shapes {
        display: none;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    section h2 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    section h3 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Feature cards - stack vertically */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .feature-card i {
        font-size: 2rem !important;
    }
    
    /* Team members - smaller images */
    .team-member {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Contact form */
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery - 2 columns on mobile */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* No animations on mobile for performance and accessibility */
    @media (prefers-reduced-motion: no-preference) {
        .card:hover,
        .feature-card:hover,
        .btn-success:hover,
        #gallery img:hover {
            transform: none;
        }
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Gallery - 3 columns on small tablets */
    #gallery .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-nav .nav-link {
        margin: 0 0.3rem;
    }
    
    .hero-section {
        padding-top: 120px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    /* Re-enable decorative shapes */
    .hero-shapes {
        display: block;
    }
    
    .shape-1 {
        width: 120px;
        height: 120px;
    }
    
    .shape-2 {
        width: 80px;
        height: 80px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        margin: 0 0.4rem;
    }
    
    .hero-section h1 {
        font-size: 2.4rem;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    section h2 {
        font-size: 2.1rem;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .step-number {
        width: 58px;
        height: 58px;
        font-size: 1.45rem;
    }
    
    .shape-1 {
        width: 140px;
        height: 140px;
    }
    
    .shape-2 {
        width: 90px;
        height: 90px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    section h2 {
        font-size: 2.2rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Full size decorative shapes */
    .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-2 {
        width: 100px;
        height: 100px;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        margin-bottom: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images and text for retina displays */
    .service-card .card-img-top,
    .team-member img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and decorative elements */
    .navbar,
    .hero-shapes,
    #gallery,
    footer {
        display: none !important;
    }
    
    /* Optimize colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    /* Ensure readable font sizes */
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/* Dark mode support (respects user's system preference) */

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover effects that use transform */
    .card:hover,
    .feature-card:hover,
    .btn-success:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid currentColor;
    }
    
    .btn-success {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border: 2px solid currentColor;
    }
}

/* Focus management for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    /* Enhanced focus indicators */
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 3px solid rgba(127, 176, 105, 0.5);
        outline-offset: 2px;
    }
}

/* Container queries for modern browsers */
@supports (container-type: inline-size) {
    .service-card {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .service-card .card-body {
            padding: 1rem;
        }
        
        .service-card h5 {
            font-size: 1rem;
        }
    }
} 