/* GPU Rendering Farm - Responsive CSS */

/* ===== MOBILE FIRST APPROACH ===== */
/* Base styles are mobile-first, then enhanced for larger screens */

/* ===== EXTRA SMALL DEVICES (phones, 576px and down) ===== */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.88rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.62rem;
        line-height: 1.4;
    }
    
    h3 {
        font-size: 1.30rem;
        line-height: 1.4;
    }
    
    h4 {
        font-size: 1.18rem;
        line-height: 1.5;
    }
    
    h5 {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    p {
        font-size: 0.97rem;
        line-height: 1.6;
    }
    
    /* Hero section mobile adjustments */
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.35rem;
        margin-bottom: 0.96rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.64rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: 60vh;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.27rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Spacing adjustments */
    section {
        padding: 2rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1.02rem;
        width: 100%;
        margin-bottom: 0.74rem;
    }
    
    .btn-group .btn {
        width: auto;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .contact-form {
        padding: 1rem;
        margin-bottom: 1.64rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    /* Team member adjustments */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .team-member {
        margin-bottom: 1.74rem;
    }
    
    /* Process step adjustments */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .gallery img {
        height: 200px;
    }
    
    /* Footer adjustments */
    footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Services adjustments */
    .services-item .card-img-top {
        height: 150px;
    }
    
    /* Feature item adjustments */
    .feature-item {
        padding: 1rem;
        margin-bottom: 1.73rem;
    }
    
    .feature-item i {
        font-size: 2rem;
    }
    
    /* Step card adjustments */
    .step-card {
        padding: 1rem;
    }
    
    .step-card .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Feature box adjustments */
    .feature-box {
        padding: 1rem;
    }
    
    .feature-box i {
        font-size: 2rem;
    }
}

/* ===== SMALL DEVICES (landscape phones, 576px and up) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.89rem;
    }
    
    h3 {
        font-size: 1.53rem;
    }
    
    /* Hero section adjustments */
    .hero-section h1 {
        font-size: 2.33rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.59rem;
    }
    
    .hero-section {
        padding: 3rem 0;
        min-height: 70vh;
    }
    
    /* Spacing adjustments */
    section {
        padding: 2.5rem 0;
    }
    
    /* Button adjustments */
    .btn {
        width: auto;
        display: inline-block;
    }
    
    /* Gallery adjustments */
    .gallery img {
        height: 220px;
    }
    
    /* Services adjustments */
    .services-item .card-img-top {
        height: 180px;
    }
    
    /* Team member adjustments */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process step adjustments */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.30rem;
    }
}

/* ===== MEDIUM DEVICES (tablets, 768px and up) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section adjustments */
    .hero-section {
        padding: 3rem 0;
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.59rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.53rem;
    }
    
    /* Spacing adjustments */
    section {
        padding: 3rem 0;
    }
    
    /* Gallery adjustments */
    .gallery img {
        height: 240px;
    }
    
    /* Services adjustments */
    .services-item .card-img-top {
        height: 200px;
    }
    
    /* Card grid adjustments */
    .col-md-6 .card {
        height: 100%;
    }
    
    /* Process step grid */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Feature item grid */
    .feature-item {
        margin-bottom: 2rem;
    }
    
    /* Team member grid */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* ===== LARGE DEVICES (desktops, 992px and up) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero section adjustments */
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.85rem;
    padding-top: 200px;
}
    
    /* Gallery adjustments */
    .gallery img {
        height: 250px;
    }
    
    /* Services grid optimization */
    .services-item {
        margin-bottom: 2rem;
    }
    
    /* Feature grid optimization */
    .feature-item {
        margin-bottom: 2rem;
    }
}

/* ===== EXTRA LARGE DEVICES (large desktops, 1200px and up) ===== */
@media (min-width: 1200px) {
    /* Hero section full desktop */
    .hero-section {
        padding: 5rem 0;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 200px;
}
    
    /* Container max width */
    .container {
        max-width: 1140px;
    }
    
    /* Gallery full desktop */
    .gallery img {
        height: 280px;
    }
    
    /* Services full desktop */
    .services-item .card-img-top {
        height: 220px;
    }
}

/* ===== ORIENTATION SPECIFIC STYLES ===== */
@media screen and (orientation: landscape) and (max-height: 600px) {
    /* Landscape phone adjustments */
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly button sizing */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Touch-friendly nav links */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .navbar-toggler {
        padding: 0.5rem;
        font-size: 1.36rem;
    }
    
    /* Form improvements for touch */
    .form-control {
        min-height: 44px;
    }
    
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    /* Optimize for retina displays */
    .navbar-brand {
        font-weight: 600;
    }
    
    .card {
        border-width: 0.5px;
    }
    
    .btn {
        border-width: 1px;
    }
}

/* ===== PRINT RESPONSIVE STYLES ===== */
@media print {
    /* Mobile-friendly print styles */
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    
    .row {
        margin: 0;
    }
    
    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-md-4,
    .col-md-6,
    .col-sm-6 {
        width: 100%;
        float: none;
    }
    
    .hero-section {
        background: none;
        color: black;
        padding: 1rem 0;
    }
    
    .card {
        border: 1px solid #c8c8c8;
        box-shadow: none;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    .gallery,
    .breadcrumb-section {
        display: none;
    }
}

/* ===== ACCESSIBILITY RESPONSIVE IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    /* Reduce motion for all screen sizes */
    .card,
    .btn,
    .gallery img,
    .hero-section,
    * {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* ===== DARK MODE RESPONSIVE SUPPORT ===== */

/* ===== CONTAINER QUERY FALLBACKS ===== */
/* For browsers that don't support container queries */
.services-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== FLEXIBLE GRID SYSTEM ENHANCEMENTS ===== */
/* Enhanced responsive behavior for custom components */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-grid > * {
    flex: 1;
    min-width: 280px;
}

@media (max-width: 575.98px) {
    .feature-grid > * {
        min-width: 100%;
    }
}

/* ===== RESPONSIVE UTILITIES ===== */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
}

/* Responsive text alignment */
@media (max-width: 575.98px) {
    .text-center-mobile {
        text-align: center;
    }
    
    .text-left-mobile {
        text-align: left;
    }
}

/* Responsive margin/padding utilities */
@media (max-width: 575.98px) {
    .p-mobile-2 {
        padding: 0.5rem;
    }
    
    .m-mobile-2 {
        margin: 0.5rem;
    }
    
    .mb-mobile-3 {
        margin-bottom: 1rem;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* Optimize animations for mobile performance */
@media (max-width: 767.98px) {
    .card {
        will-change: auto;
    }
    
    .btn {
        will-change: auto;
    }
    
    /* Reduce complexity on mobile */
    .hero-section {
        background-attachment: scroll;
    }
} 