/* PhotoRestore AI - Responsive CSS */

/* Mobile First Approach - Base styles are for mobile */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container-sm {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .hero-shapes {
        display: block;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container-md {
        max-width: 720px;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    /* Service Cards */
    .service-card .card-img-top {
        height: 220px;
    }
    
    /* Contact Form */
    .contact-form {
        padding-right: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container-lg {
        max-width: 960px;
    }
    
    /* Typography */
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.75rem;
    }
    
    /* Hero Section */
    .hero-shapes {
        width: 120px;
        height: 120px;
    }
    
    .hero-shapes::before {
        width: 100px;
        height: 100px;
        top: -60px;
        left: -60px;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 2.5rem;
    }
    
    /* Service Cards */
    .service-card .card-img-top {
        height: 240px;
    }
    
    /* Team Members */
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    /* Process Steps */
    .step-number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    /* Pricing Cards */
    .pricing-card {
        padding: 1rem;
    }
    
    .price-amount {
        font-size: 3.5rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        padding: 0.5rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        padding: 0 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container-xl {
        max-width: 1140px;
    }
    
    /* Hero Section */
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .hero-shapes {
        width: 150px;
        height: 150px;
    }
    
    .hero-shapes::before {
        width: 120px;
        height: 120px;
        top: -70px;
        left: -70px;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 3rem;
    }
    
    /* Service Cards */
    .service-card .card-img-top {
        height: 260px;
    }
    
    /* Team Members */
    .team-member img {
        width: 160px;
        height: 160px;
    }
    
    /* Process Steps */
    .process-step {
        padding: 1rem;
    }
    
    .step-number {
        width: 90px;
        height: 90px;
        font-size: 2.25rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding-right: 3rem;
    }
    
    /* Additional spacing */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1320px;
    }
    
    /* Hero Section */
    .hero-shapes {
        width: 180px;
        height: 180px;
    }
    
    .hero-shapes::before {
        width: 140px;
        height: 140px;
        top: -80px;
        left: -80px;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 3.5rem;
    }
    
    /* Service Cards */
    .service-card .card-img-top {
        height: 280px;
    }
}

/* Mobile Specific Styles (up to 767px) */
@media (max-width: 767px) {
    /* Disable animations on mobile as per requirements */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-shapes {
        display: none;
    }
    
    /* Cards */
    .feature-card, .service-card, .pricing-card, .review-card, .case-study-card {
        margin-bottom: 1.5rem;
        transform: none !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Service Cards */
    .service-card .card-img-top {
        height: 180px;
    }
    
    .service-card .price {
        font-size: 1.75rem;
    }
    
    /* Team Members */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Pricing */
    .price-amount {
        font-size: 2.5rem;
    }
    
    /* Gallery */
    #gallery .col-6 {
        padding: 0.25rem;
    }
    
    #gallery img {
        border-radius: 4px;
        transform: none !important;
    }
    
    /* Contact Form */
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .contact-form .form-control {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Buttons */
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        transform: none !important;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        padding-top: 70px;
        padding-bottom: 1rem;
    }
    
    .breadcrumb-icon {
        height: 20px;
    }
    
    /* Additional Page Items */
    .tech-item, .category-item, .quality-item, .capability-item,
    .support-item, .innovation-item, .application-item, .training-item,
    .network-item, .roadmap-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .tech-item h5, .category-item h5, .quality-item h5, .capability-item h5,
    .support-item h5, .innovation-item h5, .application-item h5, .training-item h5,
    .network-item h5, .roadmap-item h5 {
        font-size: 1rem;
    }
    
    .tech-item p, .category-item p, .quality-item p, .capability-item p,
    .support-item p, .innovation-item p, .application-item p, .training-item p,
    .network-item p, .roadmap-item p {
        font-size: 0.875rem;
    }
    
    .quality-item i, .support-item i, .training-item i, .roadmap-item i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Tablet Specific Styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* Team Grid - 3 columns on tablet */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Service Grid - 2 columns on tablet */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Process Steps - better spacing */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Gallery - 3 columns on tablet */
    #gallery .col-md-4 {
        padding: 0.5rem;
    }
    
    /* FAQ - 1 column on tablet */
    .faq-card {
        margin-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .breadcrumb-section, #footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card, .feature-card, .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        text-decoration: none;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images and icons on high DPI displays */
    img, .navbar-brand, .step-number {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Phone Orientation */
@media (max-width: 767px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
}

/* Accessibility - Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-shapes, .hero-shapes::before {
        animation: none;
    }
}

/* Dark Mode Support */