/* ==========================================================================
   Responsive Styles - Mobile & Tablet Optimizations
   ========================================================================== */

/* Extra Large Devices (Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .section-padding {
        padding: 6rem 0;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .display-4 {
        font-size: 2.75rem;
    }
    
    .hero-section {
        min-height: 90vh;
    }
    
    .timeline-item {
        width: 50%;
    }
    
    .team-card img {
        width: 100px;
        height: 100px;
    }
    
    .pricing-card.featured {
        transform: scale(1.03);
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography Adjustments */
    .display-4 {
        font-size: 2.25rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Cards */
    .card-img-top,
    .service-card .card-img-top {
        height: 160px;
    }
    
    .card-body,
    .feature-card .card-body,
    .service-card .card-body {
        padding: 1.5rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 4rem !important;
        padding-right: 0 !important;
    }
    
    .timeline-content::before {
        left: -20px !important;
        border-right-color: var(--white) !important;
        border-left-color: transparent !important;
    }
    
    /* Team Grid */
    .team-card {
        margin-bottom: 2rem;
    }
    
    .team-card img {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps */
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        font-size: 1rem;
    }
    
    /* Pricing Cards */
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured::before {
        top: 0.5rem;
        right: -1.5rem;
        padding: 0.25rem 1.5rem;
        font-size: 0.75rem;
    }
    
    /* Forms */
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery */
    .gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.125rem; }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    /* Navigation */
    .navbar-collapse {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: var(--border-radius);
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin: 0.25rem;
        padding: 0.5rem 1.5rem;
    }
    
    /* Sections */
    .py-5 {
        padding: 3rem 0 !important;
    }
    
    /* Cards and Features */
    .feature-card,
    .industry-card,
    .enterprise-feature,
    .security-feature,
    .innovation-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .card-img-top,
    .service-card .card-img-top {
        height: 140px;
    }
    
    /* Tech Features */
    .tech-feature,
    .integration-feature {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .tech-feature .feature-icon,
    .integration-feature .feature-icon {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    /* Timeline */
    .timeline {
        padding: 1rem 0;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        padding-left: 3rem !important;
        margin: 1.5rem 0;
    }
    
    /* Team */
    .team-card {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .team-card img {
        width: 70px;
        height: 70px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    /* Mobile App Image */
    .mobile-features {
        text-align: center;
        padding: 1rem;
    }
    
    .mobile-features .feature-list .feature-item {
        margin-bottom: 1rem;
        text-align: left;
    }
    
    /* Contact Info */
    .contact-info {
        margin-bottom: 2rem;
    }
    
    /* Gallery Grid */
    .gallery .col-lg-3,
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Blog Grid */
    .blog-card {
        margin-bottom: 2rem;
    }
    
    /* FAQ */
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Base font size adjustment */
    html {
        font-size: 14px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h1 { font-size: 1.375rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.9rem; }
    h6 { font-size: 0.85rem; }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-desc {
        font-size: 0.9rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 0.95rem !important;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.125rem 0;
        font-size: 0.9rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 50vh;
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Sections */
    .py-5 {
        padding: 2.5rem 0 !important;
    }
    
    /* Cards */
    .card,
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .blog-card,
    .case-study-card,
    .career-card,
    .standards-card,
    .content-card,
    .analytics-card,
    .info-card {
        margin-bottom: 1.5rem;
    }
    
    .card-body,
    .feature-card .card-body,
    .service-card .card-body {
        padding: 1rem;
    }
    
    .card-img-top,
    .service-card .card-img-top {
        height: 120px;
    }
    
    /* Feature Grid */
    .feature-card,
    .industry-card,
    .enterprise-feature,
    .security-feature,
    .innovation-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-card i,
    .industry-card i,
    .enterprise-feature i,
    .security-feature i,
    .innovation-card i {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Tech Features */
    .tech-feature,
    .integration-feature {
        display: block !important;
        text-align: center !important;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .tech-feature .feature-icon,
    .integration-feature .feature-icon {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
    
    .tech-feature .feature-icon i,
    .integration-feature .feature-icon i {
        font-size: 2rem !important;
    }
    
    /* Timeline */
    .timeline {
        padding: 1rem 0;
    }
    
    .timeline::before {
        left: 0.5rem;
        width: 1px;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 2rem !important;
        padding-right: 0 !important;
        margin: 1rem 0;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content::before {
        left: -15px !important;
        border-right-color: var(--white) !important;
        border-left-color: transparent !important;
        border-width: 8px;
    }
    
    /* Team */
    .team-card {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .team-card img {
        width: 60px;
        height: 60px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }
    
    .step-number {
        font-size: 0.875rem;
    }
    
    /* Pricing Cards */
    .pricing-card.featured {
        transform: none;
        margin-bottom: 1.5rem;
    }
    
    .pricing-card.featured::before {
        top: 0.25rem;
        right: -1rem;
        padding: 0.125rem 1rem;
        font-size: 0.7rem;
    }
    
    .pricing-card .card-header {
        padding: 1rem;
    }
    
    .pricing-card .card-body {
        padding: 1rem;
    }
    
    /* Forms */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Contact Info */
    .contact-info {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .contact-info i {
        font-size: 2rem !important;
    }
    
    /* Gallery */
    .gallery .col-lg-3,
    .gallery .col-md-4,
    .gallery .col-sm-6 {
        margin-bottom: 0.75rem;
    }
    
    /* Blog Grid */
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-card .card-img-top {
        height: 140px;
    }
    
    .blog-card .card-body {
        padding: 1rem;
    }
    
    /* FAQ */
    .accordion-button {
        padding: 0.75rem;
        font-size: 0.85rem;
        text-align: left;
    }
    
    .accordion-body {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0 !important;
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    footer h5 {
        font-size: 1rem;
    }
    
    footer p,
    footer li {
        font-size: 0.85rem;
    }
    
    /* Mobile App Features */
    .mobile-features {
        padding: 1rem;
        text-align: center;
    }
    
    .feature-list .feature-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        text-align: left;
    }
    
    .feature-list .feature-item i {
        font-size: 1.25rem !important;
    }
    
    /* Scroll to top button */
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    /* Utility classes for mobile */
    .text-center-mobile {
        text-align: center !important;
    }
    
    .mb-mobile-1 { margin-bottom: 0.5rem !important; }
    .mb-mobile-2 { margin-bottom: 1rem !important; }
    .mb-mobile-3 { margin-bottom: 1.5rem !important; }
    
    .px-mobile-2 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .py-mobile-2 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
}

/* Landscape Orientation Adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
    }
    
    .navbar-collapse {
        max-height: 50vh;
        overflow-y: auto;
    }
}

/* High DPI Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .service-card .card-img-top,
    .blog-card .card-img-top {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support (if enabled) */
