/* 3D Parts Hub - Responsive CSS */

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .h4 {
        font-size: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .section-desc {
        font-size: 0.95rem;
    }
    
    /* Hide animations on mobile for performance */
    [data-sal] {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Mobile spacing adjustments */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Mobile contact form */
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Mobile team section */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Mobile process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .process-step::after {
        display: none;
    }
    
    /* Mobile gallery adjustments */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Mobile pricing cards */
    .pricing-card {
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    /* Reduce animations on small devices */
    [data-sal-duration] {
        animation-duration: 0.3s !important;
    }
    
    /* Small device spacing */
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section .display-4 {
        font-size: 2.25rem;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    /* Tablet-specific layout adjustments */
    .col-lg-2 {
        flex: 0 0 auto;
        width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Tablet pricing layout */
    .pricing-card {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .card-img-top {
        height: 240px;
    }
    
    /* Desktop enhancements */
    .navbar {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .section-spacing {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-section .display-4 {
        font-size: 3rem;
    }
    
    .card-img-top {
        height: 260px;
    }
    
    /* Enhanced spacing for large screens */
    .section-spacing {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section .display-4 {
        font-size: 3.5rem;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section .lead {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .navbar,
    .btn,
    footer,
    .gallery,
    [data-sal] {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
        margin-bottom: 1rem;
        break-inside: avoid;
    }
    
    .py-5 {
        padding: 1rem 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
    }
    
    .row {
        break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    [data-sal] {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Dark Mode Support (future-proofing) */

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .team-member img:hover {
        transform: none;
    }
}

/* Focus Management for Accessibility */
@media (min-width: 768px) {
    .navbar-toggler {
        display: none;
    }
}

/* Container Query Support (future enhancement) */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card-img-top {
            height: 150px;
        }
    }
}

/* Scroll Behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Safari Specific Fixes */
@supports (-webkit-appearance: none) {
    .form-control {
        -webkit-appearance: none;
    }
    
    .btn {
        -webkit-appearance: none;
    }
}

/* Internet Explorer Fallbacks */
@supports not (display: grid) {
    .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .col-lg-2 {
        flex: 0 0 16.666667%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
    }
    
    .col-lg-4 {
        flex: 0 0 33.333333%;
    }
} 

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