/* Responsive CSS for Smart Recycling Bin Manufacturing Template */

/* Mobile First Approach */

/* Extra Large Devices (xl) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    .hero-section {
        padding: 0 2rem;
    }
}

/* Large Devices (lg) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section {
        padding: 0 1.5rem;
    }
}

/* Medium Devices (md) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .process-step::after {
        display: none;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .team-card img {
        width: 120px;
        height: 120px;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Small Devices (sm) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    /* Typography for Mobile */
    .navbar-brand {
        font-size: 1.3rem !important;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* NO ANIMATIONS ON MOBILE */
    .sal-animate {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
    
    .gallery-item:hover img {
        transform: none !important;
    }
    
    /* Mobile Layout */
    .hero-section {
        min-height: 70vh;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .team-card {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .team-card img {
        width: 100px;
        height: 100px;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-item::before {
        width: 12px;
        height: 12px;
    }
    
    .timeline-item::after {
        left: 5px;
    }
    
    /* Mobile Navigation */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Mobile Services Grid */
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Mobile Gallery */
    .gallery-item {
        margin-bottom: 0.5rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    /* Mobile Form */
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Extra Small Devices (xs) */
@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Extra small typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    /* Extra small layout */
    .hero-section {
        min-height: 60vh;
        padding: 1.5rem 0.5rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .service-card .card-img-top {
        height: 150px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .team-card img {
        width: 80px;
        height: 80px;
    }
    
    .process-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Footer mobile adjustments */
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Portrait Tablets */
@media (max-width: 991.98px) and (orientation: portrait) {
    .hero-section {
        min-height: 75vh;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* Landscape Phones */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 90vh;
    }
    
    .navbar-nav {
        flex-direction: row;
        justify-content: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    
    .btn {
        border-width: 1px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3 {
        color: #000;
        page-break-after: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #c1c1c1;
    }
    
    .section {
        padding: 1rem 0;
    }
} 

.hero-section h1 {
    padding-top: 250px;
}