/* 3D Print Pro - Responsive CSS */

/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.78rem;
    }
    
    h3 {
        font-size: 1.33rem;
    }
    
    .navbar-brand {
        font-size: 1.15rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.98rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section .col-lg-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .gallery img {
        margin-bottom: 1rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .display-4 {
        font-size: 2.35rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .container {
        max-width: 540px;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .navbar-collapse {
        text-align: center;
    }
    
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .navbar-nav {
        margin-left: auto;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .hero-section .row {
        align-items: center;
    }
    
    .col-md-6 {
        margin-bottom: 1.59rem;
    }
    
    .gallery .col-md-4 {
        margin-bottom: 1.65rem;
    }
    
    footer .row {
        text-align: left;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .col-lg-6 {
        margin-bottom: 0;
    }
    
    .gallery .row {
        justify-content: center;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .card-img-top {
        height: 250px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.63rem;
    }
    
    .lead {
        font-size: 1.31rem;
    }
    
    .btn {
        padding: 1rem 2rem;
    }
    
    .card-body {
        padding: 2rem;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .card-img-top {
        height: 280px;
    }
}

/* Landscape Phone Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 275px;
}
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1027px) and (orientation: portrait) {
    .hero-section {
        min-height: 70vh;
    }
    
    .col-md-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .card {
        margin-bottom: 1.65rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    section {
        padding: 1rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        border-width: 0.5px;
    }
    
    .navbar {
        border-bottom: 0.5px solid var(--border-color);
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 49px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
}

/* Retina Display Optimizations */
@media only screen and (-webkit-min-device-pixel-ratio: 2) {
    .hero-section::before {
        background-size: 50px 50px;
    }
}

/* Focus Improvements for Accessibility */
@media (any-hover: hover) {
    .btn:hover {
        transform: translateY(-2px);
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
}

/* Container Fluid Breakpoints */
@media (max-width: 1400px) {
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Grid System Responsive Adjustments */
@media (max-width: 991.98px) {
    .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .col-lg-8 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .col-md-6 {
        margin-bottom: 1.68rem;
    }
    
    .col-md-4 {
        margin-bottom: 1.73rem;
    }
}

/* Navigation Responsive Improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg-white);
        padding: 1rem;
        margin-top: 0.71rem;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-item {
        text-align: center;
        margin: 0.25rem 0;
    }
}

/* Form Responsive Adjustments */
@media (max-width: 767.98px) {
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Gallery Responsive Grid */
@media (max-width: 991.98px) {
    .gallery .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .gallery .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
} 