/* Mobile-first responsive design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    .display-4 {
        font-size: 1.75rem;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Hide decorative shapes on mobile for performance */
    .hero-shapes {
        display: none;
    }
    
    /* Section padding adjustments */
    section,
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Service cards mobile layout */
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Team member images */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    /* Footer mobile */
    #footer .text-center {
        text-align: left;
    }
    
    /* Pricing cards mobile */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    /* Feature items mobile */
    .feature-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Additional pages mobile adjustments */
    .mission-item,
    .value-card,
    .tech-card,
    .industry-card,
    .process-step,
    .metric-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .history-item {
        padding: 0.75rem 0;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
    }
    
    .feature-detail {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .support-item {
        padding: 0.75rem 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography fine-tuning */
    .display-4 {
        font-size: 2rem;
    }
    
    h1, .h1 {
        font-size: 2.25rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        min-height: 85vh;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Service cards */
    .service-card .card-img-top {
        height: 190px;
    }
    
    /* Team member spacing */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Additional pages adjustments */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .metric-card {
        margin-bottom: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    .hero-section {
        min-height: 90vh;
    }
    
    /* Service cards tablet layout */
    .service-card .card-img-top {
        height: 200px;
    }
    
    /* Gallery grid adjustments */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Team members tablet layout */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Pricing cards tablet */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    /* Feature items tablet */
    .feature-item {
        margin-bottom: 1.5rem;
    }
    
    /* Additional pages tablet adjustments */
    .industry-card,
    .tech-card {
        margin-bottom: 2rem;
    }
    
    .process-step {
        margin-bottom: 3rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full hero height on desktop */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Service cards desktop layout */
    .service-card .card-img-top {
        height: 220px;
    }
    
    /* Team layout desktop */
    .team-member {
        margin-bottom: 0;
    }
    
    /* Large screen optimizations */
    .container {
        max-width: var(--container-max-width);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full viewport hero on large screens */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Larger spacing for big screens */
    section,
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    /* Service cards large screen */
    .service-card .card-img-top {
        height: 240px;
    }
    
    /* Increased container width for XL screens */
    .container {
        max-width: 1320px;
    }
    
    /* Typography scaling for large screens */
    .display-4 {
        font-size: 2.5rem;
    }
    
    h1, .h1 {
        font-size: 2.75rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
}

/* Navbar responsive behavior */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg-white);
        padding: 1rem;
        border-radius: var(--border-radius-md);
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Print responsive adjustments */
@media print {
    .col-lg-6,
    .col-lg-4,
    .col-lg-3,
    .col-md-6,
    .col-md-4 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section,
    .py-5 {
        padding: 1.5rem 0;
    }
}

/* Reduced motion queries for mobile */
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    .card:hover,
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .faq-card:hover,
    .mission-item:hover,
    .value-card:hover,
    .process-step:hover,
    .metric-card:hover {
        transform: none;
    }
}

/* Mobile-specific utility classes */
@media (max-width: 575.98px) {
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
    
    .mobile-no-margin {
        margin: 0;
    }
    
    .mobile-small-padding {
        padding: 0.5rem;
    }
}

/* Tablet-specific utility classes */
@media (min-width: 768px) and (max-width: 991.98px) {
    .tablet-center {
        text-align: center;
    }
    
    .tablet-spacing {
        margin-bottom: 2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high DPI displays */
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        border-radius: 50%;
        background-size: cover;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    section,
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Dark mode support (if needed in future) */

/* Container responsive behavior */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: var(--container-max-width);
    }
} 

body {
    overflow-x: hidden;
}

.hero-section h1 {
    padding-top: 250px;
}