/* Responsive CSS - Mobile & Tablet Optimizations */

/* Mobile First Approach */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    
    /* Disable all animations on mobile */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography Adjustments */
    h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    h4, h5, h6 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Navigation Adjustments */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid #f4faff;
    }
    
    /* Layout Adjustments */
    .section-padding {
        padding: 2rem 0;
    }
    
    .min-vh-100 {
        padding-top: 4rem;
        min-height: auto;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 3rem 0 2rem;
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    .hero-section img {
        max-width: 280px;
    }
    
    /* Cards Mobile Optimization */
    .card-body {
        padding: 1.5rem;
    }
    
    .feature-card, .service-card, .pricing-card,
    .case-study-card, .career-card, .info-card,
    .blog-card, .tech-card, .research-card,
    .voice-card, .spec-card, .innovation-card,
    .solution-card, .expertise-card, .workflow-card,
    .integration-card, .metric-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    /* Service Cards Mobile */
    .service-card img {
        height: 150px;
    }
    
    .service-card h4 {
        padding: 1rem 1rem 0.5rem;
        font-size: 1.1rem;
    }
    
    .service-card p {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
    
    .service-card ul {
        padding: 0 1rem;
        font-size: 0.85rem;
    }
    
    .service-card .price {
        padding: 0.75rem 1rem;
        font-size: 1.2rem;
    }
    
    /* Pricing Cards Mobile */
    .pricing-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none !important;
        margin-bottom: 1.5rem;
    }
    
    .pricing-card .price {
        font-size: 1.6rem;
    }
    
    /* Team Members Mobile */
    .team-member {
        margin-bottom: 1.5rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .team-member h5 {
        font-size: 0.9rem;
    }
    
    .team-member p {
        font-size: 0.8rem;
    }
    
    /* Process Steps Mobile */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .process-step h5 {
        font-size: 0.95rem;
    }
    
    /* Contact Form Mobile */
    .form-control {
        padding: 0.65rem 0.85rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .contact-item i {
        margin-right: 0.75rem;
        margin-top: 0.25rem;
    }
    
    /* Footer Mobile */
    footer {
        padding: 2rem 0 !important;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    footer p, footer a {
        font-size: 0.9rem;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb-section {
        padding: 5rem 0 1rem;
    }
    
    .breadcrumb-section img {
        max-width: 200px;
    }
    
    /* Gallery Mobile */
    .gallery .col-lg-3,
    .gallery .col-md-4,
    .gallery .col-6 {
        margin-bottom: 1rem;
    }
    
    /* Space Page Mobile */
    #space {
        min-height: 50vh;
        margin-top: 70px;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Layout */
    .section-padding {
        padding: 2.5rem 0;
    }
    
    .hero-section {
        padding: 3.5rem 0 2.5rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1.75rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    /* Team Members */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact Form */
    .btn-primary {
        width: auto;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    /* Layout */
    .section-padding {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    /* Pricing Cards */
    .pricing-card.featured {
        transform: scale(1.02);
    }
    
    /* Team Members */
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    
    /* Fine-tune for desktop */
    .hero-section {
        padding: 4.5rem 0 3.5rem;
    }
    
    .section-padding {
        padding: 3.5rem 0;
    }
    
    .pricing-card.featured {
        transform: scale(1.03);
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    
    /* Full desktop experience */
    .hero-section {
        padding: 5rem 0 4rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* Optimize for high-resolution displays */
    .hero-section::before {
        background-size: cover;
    }
    
    .card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
}

/* Print Styles */
@media print {
    
    /* Hide non-essential elements for printing */
    .navbar,
    .breadcrumb-section,
    #space,
    footer {
        display: none !important;
    }
    
    /* Optimize typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .section-padding {
        padding: 1rem 0;
    }
    
    /* Ensure cards don't break across pages */
    .card,
    .feature-card,
    .service-card,
    .pricing-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (max-width: 767.98px) {
    
    /* Increase touch targets for mobile */
    .nav-link,
    .btn,
    .form-control,
    .card {
        min-height: 44px;
    }
    
    /* Improve focus indicators */
    .nav-link:focus,
    .btn:focus,
    .form-control:focus {
        outline: 2px solid var(--primary-blue);
        outline-offset: 2px;
    }
    
    /* Better spacing for form elements */
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .form-check-label {
        padding-left: 0.5rem;
        line-height: 1.25rem;
    }
}

/* Dark Mode Considerations (if needed in future) */

/* Landscape Mobile Specific */
@media screen and (max-height: 480px) and (orientation: landscape) {
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .min-vh-100 {
        min-height: auto;
    }
    
    .section-padding {
        padding: 1.5rem 0;
    }
    
    #space {
        min-height: 40vh;
    }
} 

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