/* Responsive CSS for EcoGlass Studio */
/* Mobile-first responsive design following Bootstrap 5 breakpoints */

/* Mobile (up to 575px) */
@media (max-width: 575.98px) {
    /* Disable all scroll animations on mobile */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 100px 0 50px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.92rem;
        margin-bottom: 0.99rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.24rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin: 0 auto 1.5rem;
    }
    
    /* Navbar Mobile */
    .navbar-brand {
        font-size: 1.20rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        text-align: center;
    }
    
    /* Section Padding Mobile */
    section {
        padding: 40px 0;
    }
    
    /* Cards Mobile */
    .card {
        margin-bottom: 1.69rem;
    }
    
    /* Services Mobile */
    #services .card-img-top {
        height: 150px;
    }
    
    /* Team Photos Mobile */
    .rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Gallery Mobile */
    #gallery .col-6 {
        margin-bottom: 1rem;
    }
    
    /* Contact Form Mobile */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Footer Mobile */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .hero-section h1 {
        font-size: 1.68rem;
    padding-top: 200px;
}
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 1.03rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Tablet Portrait (576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.24rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.35rem;
    }
    
    /* Services Grid Tablet */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team Grid Tablet */
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Tablet Landscape (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2.42rem;
    padding-top: 200px;
}
    
    /* Features Grid Tablet Landscape */
    #f6e09dtures .col-md-6 {
        margin-bottom: 1.74rem;
    }
    
    /* Price Plan Tablet Landscape */
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Small Desktop (992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.51rem;
    padding-top: 200px;
}
    
    /* Container adjustments for small desktop */
    .container {
        max-width: 960px;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 2.62rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.53rem;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 80px 0;
    }
    
    /* Gallery enhanced for large screens */
    #gallery .col-lg-3 {
        padding: 0.25rem;
    }
}

/* Ultra-wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        padding: 150px 0 100px;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 1.91rem;
        margin-bottom: 0.59rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.21rem;
        margin-bottom: 0.88rem;
    }
    
    section {
        padding: 30px 0;
    }
}

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

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    [data-sal] {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
    /* Disable all CSS transforms and transitions */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable Sal.js animations */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
