/* ========================================
   Responsive Design - Mobile First Approach
======================================== */

/* Base styles are mobile-first (already defined in main.css) */

/* ========================================
   Extra Small Devices (phones, less than 576px)
======================================== */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 70px;
        text-align: center;
    }
    
    .hero-buttons {
        margin-top: var(--spacing-md);
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 var(--spacing-sm) 0;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .review-card,
    .case-card,
    .blog-card,
    .faq-card,
    .price-card,
    .team-card,
    .career-card,
    .info-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    /* Process steps */
    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Team images */
    .team-image img {
        width: 120px;
        height: 120px;
    }
    
    /* Contact form */
    .contact-form {
        padding: var(--spacing-md);
    }
    
    /* Price cards */
    .price-card.featured {
        transform: none;
        margin-bottom: var(--spacing-md);
    }
    
    /* Service images */
    .service-image {
        height: 150px;
    }
    
    /* Blog images */
    .blog-image {
        height: 150px;
    }
    
    /* Case study images */
    .case-image {
        height: 150px;
    }
    
    /* Section padding */
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .py-5 {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    
    /* Hero shapes - hide on mobile */
    .hero-shapes {
        display: none;
    }
    
    /* Gallery spacing */
    #gallery .col-lg-4 {
        margin-bottom: var(--spacing-sm);
    }
    
    /* Footer */
    #footer .row > div {
        margin-bottom: var(--spacing-md);
    }
    
    /* Disable animations on mobile for better performance */
    .methodology-card:hover,
    .industry-card:hover,
    .format-card:hover,
    .assessment-card:hover,
    .support-card:hover,
    .enterprise-card:hover,
    .implementation-card:hover,
    .tech-card:hover,
    .metrics-card:hover,
    .benefit-card:hover,
    .feature-card:hover,
    .service-card:hover,
    .case-card:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
}

/* ========================================
   Small Devices (landscape phones, 576px and up)
======================================== */
@media (min-width: 576px) {
    /* Container adjustments */
    .container {
        max-width: 540px;
    }
    
    /* Hero buttons */
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin-right: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    /* Cards in grid */
    .row.g-4 > [class*="col-"] {
        margin-bottom: var(--spacing-md);
    }
}

/* ========================================
   Medium Devices (tablets, 768px and up)
======================================== */
@media (min-width: 768px) {
    /* Container adjustments */
    .container {
        max-width: 720px;
    }
    
    /* Hero section */
    .hero-section {
        text-align: left;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .review-card,
    .case-card,
    .blog-card,
    .faq-card,
    .price-card,
    .team-card,
    .career-card,
    .info-card {
        padding: var(--spacing-lg);
    }
    
    /* Process steps */
    .process-number {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    /* Team images */
    .team-image img {
        width: 140px;
        height: 140px;
    }
    
    /* Service and blog images */
    .service-image,
    .blog-image {
        height: 180px;
    }
    
    /* Case study images */
    .case-image {
        height: 180px;
    }
    
    /* Enable some hover effects */
    .feature-card:hover,
    .service-card:hover,
    .case-card:hover,
    .blog-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }
}

/* ========================================
   Large Devices (desktops, 992px and up)
======================================== */
@media (min-width: 992px) {
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 80px;
    }
    
    /* Process steps */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Team images */
    .team-image img {
        width: 150px;
        height: 150px;
    }
    
    /* Service and blog images */
    .service-image,
    .blog-image {
        height: 200px;
    }
    
    /* Case study images */
    .case-image {
        height: 200px;
    }
    
    /* Price card featured effect */
    .price-card.featured {
        transform: scale(1.05);
    }
    
    /* Full hover effects */
    .feature-card:hover,
    .service-card:hover,
    .case-card:hover,
    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
    
    .methodology-card:hover,
    .industry-card:hover,
    .format-card:hover,
    .assessment-card:hover,
    .support-card:hover,
    .enterprise-card:hover,
    .implementation-card:hover,
    .tech-card:hover,
    .metrics-card:hover,
    .benefit-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }
    
    /* Hero shapes */
    .hero-shapes {
        display: block;
    }
    
    /* Feature items layout */
    .feature-item {
        display: flex;
        align-items: flex-start;
    }
    
    .feature-item .feature-icon {
        margin-right: var(--spacing-md);
        margin-bottom: 0;
    }
}

/* ========================================
   Extra Large Devices (large desktops, 1200px and up)
======================================== */
@media (min-width: 1200px) {
    /* Container adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Increase section padding */
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .py-5 {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }
    
    /* Enhanced spacing */
    .hero-section {
        padding-top: 100px;
    }
}

/* ========================================
   Extra Extra Large Devices (1400px and up)
======================================== */
@media (min-width: 1400px) {
    /* Container adjustments */
    .container {
        max-width: 1320px;
    }
}

/* ========================================
   Landscape Orientation Adjustments
======================================== */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero section height on landscape phones */
    .hero-section {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    /* Reduce vertical spacing */
    .py-5 {
        padding-top: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }
}

/* ========================================
   High DPI / Retina Display Support
======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Adjust for high DPI displays */
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        opacity: 0.08;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    /* Hide non-essential elements */
    .navbar,
    .hero-shapes,
    .btn,
    #footer {
        display: none;
    }
    
    /* Adjust colors for print */
    body {
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    /* Remove shadows and effects */
    .feature-card,
    .service-card,
    .review-card,
    .case-card,
    .blog-card,
    .faq-card,
    .price-card,
    .team-card,
    .career-card,
    .info-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ========================================
   Accessibility Improvements
======================================== */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove transform effects */
    .feature-card:hover,
    .service-card:hover,
    .case-card:hover,
    .blog-card:hover,
    .methodology-card:hover,
    .industry-card:hover,
    .format-card:hover,
    .assessment-card:hover,
    .support-card:hover,
    .enterprise-card:hover,
    .implementation-card:hover,
    .tech-card:hover,
    .metrics-card:hover,
    .benefit-card:hover,
    .btn:hover {
        transform: none;
    }
}

/* ========================================
   Focus Indicators for Accessibility
======================================== */
button:focus,
.btn:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   Custom Grid Adjustments (Bootstrap Compatible)
======================================== */
@media (max-width: 575.98px) {
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .row.g-4 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
}

@media (min-width: 768px) {
    .row.g-4 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
}

/* ========================================
   Additional Mobile Optimizations
======================================== */
@media (max-width: 767.98px) {
    /* Optimize touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Improve form usability on mobile */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Stack navigation items */
    .navbar-nav {
        text-align: center;
        padding: var(--spacing-sm) 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    /* Improve table responsiveness if any */
    table {
        font-size: 14px;
    }
    
    /* Adjust modal sizing if any */
    .modal-dialog {
        margin: 10px;
    }
}

/* ========================================
   Tablet Specific Adjustments
======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Optimize for tablet view */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Adjust card sizing for tablets */
    .service-card,
    .blog-card,
    .case-card {
        height: 100%;
    }
    
    /* Optimize feature items for tablet */
    .feature-item {
        padding: var(--spacing-md);
    }
} 

.hero-section h1 {
    padding-top: 150px;
}