/* Responsive Styles for EcoStage Design Template */

/* Mobile First Approach - Base Mobile Styles */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    /* NO SCROLL ANIMATIONS ON MOBILE */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    
    /* Card Adjustments */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .card-img-top {
        height: 150px;
    }
    
    /* Team Member Images */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps */
    .process-step .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .contact-info .card-body {
        padding: 2rem 1.5rem;
    }
    
    /* Footer Adjustments */
    footer .container .row {
        text-align: center;
    }
    
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Button Adjustments */
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Grid Adjustments */
    .col-lg-2-4 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Spacing Adjustments */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Gallery Grid */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Navigation Spacing */
    .navbar .container {
        padding: 0 1rem;
    }
    
    /* Service Cards */
    .service-card .card-body {
        padding: 1.5rem;
    }
    
    /* Blog Grid */
    .blog-card img {
        height: 150px;
    }
    
    /* FAQ Cards */
    #faq .card {
        margin-bottom: 1rem;
    }
    
    /* Timeline Adjustments */
    .timeline-item {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Space Page */
    #space {
        margin-top: 70px;
        min-height: calc(100vh - 150px);
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 1.875rem;
    }
    
    /* Hero Section */
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    /* Grid Adjustments */
    .col-lg-2-4 {
        width: 50%;
    }
    
    /* Cards */
    .card-img-top {
        height: 175px;
    }
    
    /* Team Images */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* NO SCROLL ANIMATIONS ON MOBILE */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 1.95rem;
    }
    
    /* Grid Adjustments */
    .col-lg-2-4 {
        width: 33.333%;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 185px;
    }
    
    /* Team Images */
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Process Steps */
    .process-step .step-icon {
        width: 55px;
        height: 55px;
    }
    
    /* NO SCROLL ANIMATIONS ON MOBILE/TABLET */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Enable animations for desktop */
    [data-sal] {
        animation: unset;
        transform: unset;
        opacity: unset;
        transition: unset;
    }
    
    /* Grid Helper */
    .col-lg-2-4 {
        width: 20%;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team Images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Process Steps */
    .process-step .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Contact Form Layout */
    .contact-info .card-body {
        padding: 3rem;
    }
    
    /* Blog Grid */
    .blog-card img {
        height: 180px;
    }
    
    /* Service Cards */
    .service-card .card-body {
        padding: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Typography fine-tuning */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    /* Hero Section */
    .hero-section .display-4 {
        font-size: 2.25rem;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Cards */
    .feature-card {
        padding: 2.5rem 1.5rem;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    /* Blog Images */
    .blog-card img {
        height: 200px;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Typography */
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    /* Large spacing */
    .py-6 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 90vh;
        padding: 1rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    /* NO SCROLL ANIMATIONS IN LANDSCAPE MOBILE */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    /* Hide non-essential elements */
    .navbar,
    footer,
    .btn,
    .hero-decoration {
        display: none;
    }
    
    /* Adjust typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    /* Ensure content fits on page */
    .container {
        width: auto;
        margin: 0;
        padding: 0;
    }
    
    /* Remove background colors */
    * {
        background: white !important;
        color: black !important;
    }
    
    /* Adjust card styles for print */
    .card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* Accessibility - Reduced Motion */
@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;
    }
    
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* Dark Mode Support (if needed) */

/* Custom Breakpoint for very small devices */
@media (max-width: 320px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-section .display-4 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Hover States for Touch Devices */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .gallery img:hover {
        transform: none;
    }
}


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