/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }
    
    .feature-card,
    .service-card,
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* No animations on mobile for better performance */
    @media (prefers-reduced-motion: no-preference) {
        [data-sal] {
            transform: none !important;
            opacity: 1 !important;
        }
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.375rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .process-step .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.375rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .service-card img {
        height: 180px;
    }
    
    .case-study-card img {
        height: 180px;
    }
    
    .team-member img {
        width: 115px;
        height: 115px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .service-card img {
        height: 190px;
    }
    
    .case-study-card img {
        height: 190px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Specific Component Responsive Adjustments */

/* Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Hero Section */
@media (max-width: 991.98px) {
    .hero-section .row {
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    padding-top: 175px;
}
    
    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }
}

/* Service Cards Grid */
@media (max-width: 767.98px) {
    .service-card.featured {
        transform: none;
    }
}

/* Pricing Cards */
@media (max-width: 991.98px) {
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
}

/* Team Section */
@media (max-width: 991.98px) {
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Process Steps */
@media (max-width: 991.98px) {
    .process-step {
        margin-bottom: 2rem;
    }
}

/* Gallery */
@media (max-width: 575.98px) {
    #gallery .col-sm-6 {
        margin-bottom: 1rem;
    }
}

/* Contact Section */
@media (max-width: 767.98px) {
    .contact-info {
        margin-bottom: 2rem;
    }
}

/* Footer */
@media (max-width: 767.98px) {
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Additional Pages Responsive */
@media (max-width: 767.98px) {
    .solution-card,
    .process-card,
    .industry-card,
    .metric-card,
    .innovation-card,
    .enterprise-card,
    .security-card,
    .api-card,
    .training-card,
    .metrics-card {
        margin-bottom: 2rem;
    }
}

/* Breadcrumb */
@media (max-width: 767.98px) {
    .breadcrumb-nav {
        text-align: center;
    }
}

/* Typography Responsive Scaling */
@media (max-width: 575.98px) {
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
    
    h5 {
        font-size: 1rem;
    }
}

/* Utility Classes for Responsive Behavior */
@media (max-width: 767.98px) {
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
    
    .mobile-mb-3 {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .contact-form,
    #footer {
        display: none;
    }
    
    .hero-section {
        background: white;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    .container {
        max-width: none;
        width: 100%;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .service-card img,
    .case-study-card img,
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation Adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .faq-card,
    .contact-form {
        border: 2px solid var(--neutral-dark);
    }
}

/* Dark Mode Support (if needed) */

body {
    overflow-x: hidden;
}