/* Responsive CSS for PhotoRestore AI - Bootstrap 5 Compliant */

/* Mobile-First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    .display-4 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section .container {
        text-align: center;
    }
    
    /* No animations on mobile as per requirements */
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    
    /* Button Adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Card Spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Section Padding */
    section {
        padding: 2rem 0;
    }
    
    /* Navigation Mobile */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Team Member Photos */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps Mobile */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Contact Form Mobile */
    .contact-form-bg {
        padding: 1.5rem;
    }
    
    /* Gallery Mobile */
    .gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Footer Mobile */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Disable hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .service-card:hover {
        transform: none;
        border-color: transparent;
    }
    
    .career-card:hover {
        border-color: var(--light-blue);
        box-shadow: none;
    }
    
    /* FAQ Mobile */
    .faq-card {
        margin-bottom: 1rem;
    }
    
    /* Blog Mobile */
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    /* Pricing Mobile */
    .pricing-featured::before {
        font-size: 0.75rem;
        padding: 3px 15px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 85vh;
    }
    
    /* Typography */
    .display-4 {
        font-size: 2.25rem;
    }
    
    /* Team Layout */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process Steps */
    .process-step::after {
        display: none;
    }
    
    /* Gallery Grid */
    .gallery .col-sm-6 {
        margin-bottom: 1rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
    }
    
    /* Services Grid */
    .service-card {
        height: 100%;
    }
    
    /* Team Layout Tablet */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps Tablet */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Pricing Tablet */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    /* Blog Tablet */
    .blog-card {
        height: 100%;
    }
    
    /* Footer Tablet */
    footer .row > div {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section Desktop */
    .hero-section {
        min-height: 95vh;
    }
    
    /* Container Max Width Adjustment */
    .container {
        max-width: 960px;
    }
    
    /* Team Grid Desktop */
    .team-member {
        margin-bottom: 1rem;
    }
    
    /* Services Desktop */
    .service-card {
        height: 100%;
    }
    
    /* Process Desktop */
    .process-step {
        margin-bottom: 1rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section Large Desktop */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Container Large */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced Typography for Large Screens */
    .display-4 {
        font-size: 2.75rem;
    }
    
    /* Team Grid Large */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Enhanced Card Spacing */
    .card {
        margin-bottom: 2rem;
    }
    
    /* Process Steps Large */
    .process-number {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    /* Disable parallax and animations in landscape mobile */
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp borders and shadows */
    .card {
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .btn {
        border-width: 1px;
    }
}

/* Dark Mode Support (if user has dark mode preference) */

/* Print Styles */
@media print {
    /* Hide unnecessary elements for printing */
    .navbar,
    .btn,
    footer,
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    /* Ensure images are appropriately sized for print */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions for users with motion sensitivity */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable hover effects that involve movement */
    .card:hover,
    .service-card:hover,
    .career-card:hover,
    .team-member:hover img,
    .gallery a:hover img {
        transform: none;
    }
    
    /* Keep functional color changes but remove movement */
    .card:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    /* Enhance contrast for accessibility */
    .card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        border-width: 2px;
    }
    
    .btn-outline-primary {
        border-width: 2px;
    }
    
    /* Ensure text contrast meets AA standards */
    p, .card-text {
        color: var(--text-dark);
    }
}

/* Focus Styles for Keyboard Navigation */
@media (any-hover: none) and (any-pointer: coarse) {
    /* Touch device optimizations */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.75rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .form-check-input {
        min-width: 20px;
        min-height: 20px;
    }
}

/* Custom Breakpoints for Specific Content */
@media (min-width: 480px) and (max-width: 767.98px) {
    /* Custom breakpoint for better service card layout */
    .services .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1400px) {
    /* Extra large screens */
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing for very large screens */
    section {
        padding: 5rem 0;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
}

/* Specific Mobile Navigation Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 0.5rem;
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Form Responsive Adjustments */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .contact-form .col-12 {
        margin-bottom: 1rem;
    }
}

/* Gallery Responsive Grid */
@media (max-width: 575.98px) {
    .gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Team Member Responsive Layout */
@media (max-width: 991.98px) {
    .team-member {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .team .row {
        justify-content: space-between;
    }
}


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