/* Responsive CSS for Template 257 - Smart Air Quality Monitors */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #hero h1 {
        font-size: 3.5rem;
    }
    
    #hero .lead {
        font-size: 1.5rem;
    }
    
    .card-img-top {
        height: 220px;
    }
}

/* Large Devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    #hero h1 {
        font-size: 3rem;
    }
    
    .card-img-top {
        height: 200px;
    }
}

/* Medium Devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero .lead {
        font-size: 1.25rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Team section adjustments */
    #team .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Services grid adjustments */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Pricing cards */
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Small Devices (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 70vh;
        padding: 4rem 0;
    }
    
    #hero h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    #hero h2 {
        font-size: 1.25rem;
    }
    
    #hero .lead {
        font-size: 1.1rem;
    }
    
    /* Remove hero shapes on smaller screens */
    .hero-shapes {
        display: none;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 160px;
    }
    
    .card-body {
        padding: 1.25rem;
    overflow-x: hidden;
}
    
    /* Team section */
    #team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Services section */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Features section */
    #features .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Pricing section */
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* FAQ section */
    #faq .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact form */
    #contacts .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        margin-bottom: 2rem;
    }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* NO ANIMATIONS ON MOBILE */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Header */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    #hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    #hero h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    #hero .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Remove hero shapes completely */
    .hero-shapes {
        display: none;
    }
    
    /* Section spacing */
    section {
        padding: 2.5rem 0;
    }
    
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Typography adjustments */
    h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 140px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Team section */
    #team .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #team img {
        width: 80px;
        height: 80px;
    }
    
    /* Services section */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    #services .card-img-top {
        height: 120px;
    }
    
    /* Features section */
    #features .col-md-6 {
        margin-bottom: 2rem;
    }
    
    #features .d-flex {
        text-align: left;
    }
    
    #features .fas {
        font-size: 1.5rem;
        margin-right: 1rem;
        margin-top: 0.25rem;
    }
    
    /* Pricing section */
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    #priceplan .display-4 {
        font-size: 2rem;
    }
    
    /* Reviews section */
    #reviews .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* FAQ section */
    #faq .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    #faq .card {
        border-left-width: 2px;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #gallery img {
        border-radius: 0.5rem;
    }
    
    /* Contact section */
    #contacts .col-md-6 {
        margin-bottom: 1rem;
    }
    
    #contacts .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #contacts .fas {
        font-size: 1.5rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    textarea.form-control {
        min-height: 100px;
    }
    
    /* Footer adjustments */
    #footer {
        padding: 2rem 0;
    }
    
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #footer h5,
    #footer h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    #footer p,
    #footer li {
        font-size: 0.9rem;
    }
    
    #footer .col-md-6 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Breadcrumb adjustments */
    .breadcrumb-section {
        padding: 0.75rem 0;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
    
    /* Additional page sections */
    #add_page_1_sec_1 .col-lg-4,
    #add_page_1_sec_2 .col-lg-4,
    #add_page_1_sec_3 .col-lg-4,
    #add_page_1_sec_4 .col-lg-4,
    #add_page_1_sec_5 .col-md-6,
    #add_page_2_sec_1 .col-lg-4,
    #add_page_2_sec_2 .col-lg-4,
    #add_page_2_sec_3 .col-md-6,
    #add_page_2_sec_4 .col-lg-4,
    #add_page_2_sec_5 .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Icon adjustments for additional pages */
    .fas.fa-3x {
        font-size: 2rem !important;
    }
    
    .fas.fa-2x {
        font-size: 1.5rem !important;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 767px) and (orientation: landscape) {
    #hero {
        min-height: 50vh;
        padding: 2rem 0;
    }
    
    #hero h1 {
        font-size: 1.75rem;
    }
    
    #hero .lead {
        font-size: 0.95rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    #team img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .card,
    .btn,
    .form-control,
    .navbar-nav .nav-link,
    #team img,
    #gallery img {
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
    
    #team img:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* Print styles for mobile */
@media print {
    .container {
        max-width: 100% !important;
    }
    
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    #hero {
        min-height: auto !important;
        padding: 1rem 0 !important;
    }
    
    .py-5 {
        padding: 1rem 0 !important;
    }
}

/* Dark mode support (if user prefers dark color scheme) */

/* Focus improvements for keyboard navigation */
@media (max-width: 767px) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus,
    .navbar-toggler:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .card:focus-within {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
} 