/* EcoTech Recycling - Responsive CSS */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 200px;
}
    
    .hero-section p {
        font-size: 1.17rem;
    }
}

/* Large Devices (993px and up) */
@media (min-width: 992px) {
    .timeline-item {
        width: 45%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: auto;
        margin-right: 2rem;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 2rem;
        margin-right: auto;
    }
    
    .process-step .step-number::after {
        display: block;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .services .card-img-top {
        height: 250px;
    }
    
    .contact-info {
        margin-top: 0;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
    .hero-section h1 {
        font-size: 2.85rem;
    padding-top: 200px;
}
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1.27rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.59rem;
        margin-bottom: 0.91rem;
    }
    
    .hero-section p {
        font-size: 1.07rem;
        margin-bottom: 1.62rem;
    }
    
    .navbar-brand {
        font-size: 1.11rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Stack timeline vertically on mobile */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        margin-left: 60px;
        margin-right: 0;
        width: auto;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 60px;
        margin-right: 0;
    }
    
    .timeline-item::before {
        left: -38px;
    }
    
    .timeline-item:nth-child(even)::before {
        left: -38px;
    }
    
    /* Process steps stack vertically */
    .step-number::after {
        display: none;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Team images smaller on mobile */
    #team img {
        width: 80px;
        height: 80px;
    }
    
    /* Services cards full width */
    .services .card {
        margin-bottom: 1.61rem;
    }
    
    .services .card-img-top {
        height: 200px;
    }
    
    /* Contact form adjustments */
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    /* Footer stacking */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .text-end {
        text-align: center;
    }
    
    /* Section padding reduction */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Card body padding */
    .card-body {
        padding: 1.25rem;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* FAQ cards */
    #faq .card {
        margin-bottom: 1rem;
    }
    
    /* Blog grid */
    #blog_grid .col-lg-4 {
        margin-bottom: 1.55rem;
    }
}

/* Very Small Devices (up to 400px) */
@media (max-width: 399.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section h1 {
        font-size: 1.80rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.31rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.98rem;
    }
    
    h2 {
        font-size: 1.89rem;
    }
    
    h3 {
        font-size: 1.34rem;
    }
    
    h4 {
        font-size: 1.16rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    .py-5 {
        padding-top: 1.59rem;
        padding-bottom: 1.58rem;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .py-5 {
        padding-top: 1.70rem;
        padding-bottom: 1.65rem;
    }
}

/* Print Media Adjustments */
@media print {
    .hero-section {
        min-height: auto;
        background: none;
        color: black;
    }
    
    .card {
        border: 1px solid #b4b4b4;
        box-shadow: none;
        break-inside: avoid;
    }
    
    .timeline::before,
    .timeline-item::before {
        display: none;
    }
    
    .step-number::after {
        display: none;
    }
    
    .contact-info {
        box-shadow: none;
        border: 1px solid #d0d0d0;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .text-primary {
        color: black;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
    
    .timeline-item {
        border: 1px solid #000;
    }
}

/* Dark Mode Support */

/* Focus Management for Keyboard Navigation */
@media (max-width: 767.98px) {
    .navbar-toggler:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .form-control:focus,
    .form-check-input:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Hover Effects Disabled on Touch Devices */
@media (hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
        box-shadow: none;
    }
    
    #gallery img:hover,
    #team img:hover {
        transform: none;
    }
} 