/* ==========================================================================
   BiasCheck AI - Responsive CSS
   Mobile-First Responsive Design
   ========================================================================== */

/* Mobile First - Base styles for mobile devices */
/* Default styles already defined in main.css are mobile-first */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    /* Typography adjustments */
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    
    /* Hero section */
    #hero {
        min-height: 70vh;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    /* Typography */
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    
    /* Navigation */
    .navbar-nav {
        gap: 1rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 80vh;
    }
    
    #hero-buttons {
        justify-content: flex-start;
    }
    
    /* Services grid */
    #services .row {
        --bs-gutter-x: 2rem;
    }
    
    /* Team cards */
    #team .card-img-top {
        width: 180px;
        height: 180px;
    }
    
    /* Gallery grid */
    #gallery .row {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
    
    /* Contact form */
    #contact-form {
        padding: 3rem;
    }
    
    /* Footer columns */
    #footer .row {
        --bs-gutter-x: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    /* Typography */
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.75rem; }
    
    /* Sections */
    section {
        padding: 6rem 0;
    }
    
    /* Hero section */
    #hero {
        min-height: 100vh;
    }
    
    /* Services */
    #services .card {
        min-height: 400px;
    }
    
    #services .card-img-top {
        height: 200px;
        object-fit: cover;
    }
    
    /* About section stats */
    #about-stats .col-4 {
        padding: 1rem;
    }
    
    /* Team section */
    #team .card-img-top {
        width: 200px;
        height: 200px;
    }
    
    /* Gallery hover effects */
    #gallery img {
        border-radius: 1rem;
    }
    
    /* Reviews cards */
    #reviews .card {
        min-height: 250px;
    }
    
    /* FAQ cards */
    #faq .card {
        min-height: 150px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Typography */
    h1 { font-size: 4rem; }
    
    /* Hero decorations */
    #hero-decoration {
        display: block;
    }
    
    /* Services layout */
    #services .row {
        --bs-gutter-x: 3rem;
    }
    
    /* Gallery enhanced spacing */
    #gallery .row {
        --bs-gutter-x: 2rem;
        --bs-gutter-y: 2rem;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing for very large screens */
    section {
        padding: 8rem 0;
    }
    
    /* Hero section enhanced */
    #hero .display-4 {
        font-size: 4.5rem;
    }
    
    #hero .lead {
        font-size: 1.5rem;
    }
}

/* Mobile-specific styles (small screens only) */
@media (max-width: 575.98px) {
    /* Typography for mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .display-4 {
        font-size: 2.5rem !important;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Hero section */
    #hero {
        min-height: 90vh;
        text-align: center;
    }
    
    #hero .row {
        flex-direction: column-reverse;
    }
    
    #hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    #hero-buttons .btn {
        width: 100%;
    }
    
    /* Services */
    #services .card {
        margin-bottom: 1.5rem;
    }
    
    #services .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* About section */
    #about .row {
        flex-direction: column;
        text-align: center;
    }
    
    #about-stats {
        margin-top: 2rem;
    }
    
    /* Team section */
    #team .card-img-top {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Reviews */
    #reviews .card {
        margin-bottom: 1.5rem;
    }
    
    /* FAQ */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Contact form */
    #contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    #contact .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4,
    #footer .col-lg-2 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #footer .d-flex {
        justify-content: center;
    }
    
    /* Breadcrumb */
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
    
    /* Space theme adjustments for mobile */
    .space-theme #hero {
        background-attachment: scroll;
    }
    
    /* All animations disabled globally for better performance */
    .card:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
}

/* Tablet portrait specific styles */
@media (min-width: 576px) and (max-width: 991.98px) {
    /* Hero section adjustments */
    #hero .col-lg-6:first-child {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Services grid for tablets */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* About section for tablets */
    #about .row {
        flex-direction: column;
        text-align: center;
    }
    
    #about .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Team layout for tablets */
    #team .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Gallery for tablets */
    #gallery .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* High DPI (Retina) displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhance image quality for retina displays */
    .card-img-top,
    #hero-image,
    #about-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape phone orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    /* Reduce hero height for landscape phones */
    #hero {
        min-height: 70vh;
    }
    
    /* Adjust section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Navigation adjustments */
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Print media queries */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #footer,
    .breadcrumb,
    #hero-buttons {
        display: none !important;
    }
    
    /* Adjust typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    /* Ensure proper page breaks */
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    /* Simplify layout for print */
    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .row {
        margin: 0;
    }
    
    .col-lg-6,
    .col-md-6,
    .col-lg-4 {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Global animation disable - Applied to all scenarios */
/* This applies globally, not just for reduced motion preference */
*,
*::before,
*::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
    animation-delay: 0ms !important;
    scroll-behavior: auto !important;
    transform: none !important;
}

/* Remove all transform effects globally */
.card:hover,
.btn:hover,
#gallery img:hover,
*:hover {
    transform: none !important;
}

/* Reduced motion preferences - Enhanced global disable */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0ms !important;
        scroll-behavior: auto !important;
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --text-primary: #000000;
        --text-secondary: #000000;
        --border-light: #000000;
        --bg-light: #ffffff;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid var(--border-light);
    }
} 