/* IndieBox Games - Responsive CSS */

/* Mobile-First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.84rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        margin-bottom: 1rem;
    padding-top: 200px;
}
    
    .hero-section .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.67rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Form Elements */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Section Padding */
    section {
        padding: 3rem 0;
    }
    
    /* Gallery Grid */
    .gallery-grid .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact Info */
    .contact-info {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Team Members */
    .team-member {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Footer */
    footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .text-end {
        text-align: center;
    }
    
    /* Remove animations on mobile for better performance */
    .card:hover,
    .btn-primary:hover,
    .img-fluid:hover {
        transform: none;
    }
    
    /* Spacing Adjustments */
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section {
        padding: 4rem 0;
    }
    
    h1, .h1 {
        font-size: 2.34rem;
    }
    
    /* Cards in Services */
    .card-img-top {
        height: 200px;
    }
    
    /* Form Layout */
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Section Padding */
    section {
        padding: 4rem 0;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        padding: 5rem 0;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Cards Grid */
    .card-deck .card {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery-grid img {
        margin-bottom: 1rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container Width Adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Hero Section */
    .hero-section .col-lg-6 {
        padding: 0 1rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container Max Width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced Spacing */
    section {
        padding: 6rem 0;
    }
    
    /* Larger Cards for Better Visual Impact */
    .card-img-top {
        height: 220px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 1rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .card {
        border-width: 0.5px;
    }
    
    .btn {
        border-width: 0.5px;
    }
}

/* Dark Mode Support */

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove transform effects */
    .card:hover,
    .btn:hover,
    .img-fluid:hover {
        transform: none !important;
    }
}

/* Landscape Orientation on Small Devices */
@media (max-width: 767.98px) and (orientation: landscape) {
    /* Adjust hero section for landscape mobile */
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Compact navigation */
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Print Styles for Mobile */
@media print and (max-width: 767.98px) {
    body {
        font-size: 10pt;
    }
    
    h1, h2, h3 {
        font-size: 14pt;
    }
    
    .container {
        width: 100%;
        padding: 0;
    }
}

/* Container Queries Support (Future-proofing) */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card-title {
            font-size: 1rem;
        }
        
        .card-text {
            font-size: 0.91rem;
        }
    }
}