/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, <576px) */
@media (max-width: 575.98px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.9rem;
    }
    
    /* Typography */
    :root {
        --font-size-h1: 1.8rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.3rem;
        --font-size-h4: 1.1rem;
        --font-size-base: 14px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Process Timeline */
    .process-timeline {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-step {
        min-width: auto;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Team Members */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Contact Form */
    .contact-form .form-control {
        padding: 0.6rem;
        font-size: 14px;
    }
    
    /* Swiper Pagination */
    .testimonial-swiper {
        padding-bottom: 40px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    /* Footer */
    footer .text-end {
        text-align: start !important;
    }
    
    /* Breadcrumbs */
    .breadcrumb-nav {
        margin-top: 70px;
        padding: 0.5rem 0;
    }
    
    /* Pricing */
    .price-card.featured {
        transform: none;
        margin-bottom: 1rem;
    }
    
    .price-tag {
        font-size: 1.3rem;
    }
    
    /* Space Section */
    #space {
        margin-top: 70px;
        min-height: calc(100vh - 140px);
        padding: 2rem 0;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Blog Grid */
    #blog_grid .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Career Cards */
    .career-card {
        margin-bottom: 1rem;
    }
    
    /* Case Study Cards */
    .case-study-card {
        margin-bottom: 1rem;
    }
    
    /* Core Info Items */
    .core-info-item {
        margin-bottom: 1.5rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    body {
        padding-top: 75px;
    }
    
    /* Typography */
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.6rem;
        --font-size-h3: 1.35rem;
        --font-size-h4: 1.15rem;
        --font-size-base: 15px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 85vh;
    }
    
    /* Process Timeline */
    .process-timeline {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .process-step {
        flex: 0 0 45%;
        margin-bottom: 2rem;
    }
    
    /* Team Layout */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Breadcrumbs */
    .breadcrumb-nav {
        margin-top: 75px;
    }
    
    /* Space Section */
    #space {
        margin-top: 75px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Process Timeline */
    .process-timeline {
        justify-content: space-around;
    }
    
    .process-step {
        flex: 0 0 30%;
        margin-bottom: 2rem;
    }
    
    /* Services Grid */
    .services-grid .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Contact Form */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Swiper Disable Autoplay and Effects for Mobile (<768px) */
    .swiper {
        --swiper-navigation-size: 30px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Process Timeline */
    .process-step {
        flex: 1;
        margin-bottom: 0;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Contact Layout */
    .contact-info {
        margin-top: 0;
    }
    
    /* Team Layout */
    .team-member {
        margin-bottom: 3rem;
    }
    
    /* Hover Effects (only on larger screens) */
    .card:hover {
        transform: translateY(-8px);
    }
    
    .team-member img:hover {
        transform: scale(1.15);
    }
    
    .case-study-card:hover {
        transform: translateY(-8px);
    }
    
    .blog-card:hover {
        transform: translateY(-5px);
    }
    
    /* Enhanced animations for desktop */
    .btn-primary:hover {
        transform: translateY(-3px);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 6rem 0;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    /* Typography adjustments for large screens */
    :root {
        --font-size-h1: 2.5rem;
        --font-size-h2: 2rem;
        --font-size-h3: 1.6rem;
        --font-size-h4: 1.3rem;
        --font-size-base: 17px;
    }
    
    /* Enhanced card heights */
    .card-img-top {
        height: 250px;
    }
    
    /* Team member images */
    .team-member img {
        width: 180px;
        height: 180px;
    }
    
    /* Process steps */
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    /* Enhanced testimonial cards */
    .testimonial-card {
        padding: 2.5rem;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Even more generous spacing */
    section {
        padding: 8rem 0;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.3rem 0;
    }
    
    body {
        padding-top: 60px;
    }
    
    .breadcrumb-nav {
        margin-top: 60px;
        padding: 0.5rem 0;
    }
    
    #space {
        margin-top: 60px;
        min-height: calc(100vh - 120px);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .step-number,
    .team-member img,
    .navbar-brand {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Swiper Responsive Settings */
@media (max-width: 767.98px) {
    /* Disable autoplay and effects on mobile as required */
    .swiper[data-autoplay] {
        --swiper-autoplay-delay: 999999999;
    }
    
    .swiper .swiper-slide {
        transition: none !important;
    }
    
    .testimonial-swiper .swiper-pagination {
        bottom: 10px;
    }
}

/* Print Media Queries */
@media print {
    /* Responsive adjustments for printing */
    .container {
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .row {
        margin: 0 !important;
    }
    
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-lg-4,
    .col-lg-6 {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-section {
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    section {
        padding: 2rem 0 !important;
        break-inside: avoid;
    }
    
    .card,
    .testimonial-card,
    .case-study-card,
    .blog-card {
        break-inside: avoid;
        margin-bottom: 1rem !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #1A365D;
        --primary-green: #22543D;
        --primary-brown: #5D2701;
        --primary-gray: #2D3748;
        --light-gray: #E2E8F0;
        --dark-gray: #1A202C;
    }
    
    .card,
    .testimonial-card,
    .contact-info,
    .career-card,
    .case-study-card,
    .blog-card {
        border: 2px solid var(--dark-gray) !important;
    }
}

/* Dark Theme Override (not implemented but structure ready) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles intentionally excluded as per requirements */
}

/* Focus Visible for Better Accessibility */
@media (any-hover: hover) {
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible,
    a:focus-visible {
        outline: 3px solid var(--primary-green);
        outline-offset: 2px;
    }
} 