/* Mobile-first responsive design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--gray-200);
    }
    
    /* Hero section */
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-image-container {
        margin-top: 2rem;
    }
    
    /* Disable animations on mobile for better performance */
    .floating-element {
        display: none;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    /* Cards */
    .service-card img,
    .blog-card img,
    .case-study-card img {
        height: 150px;
    }
    
    /* Team photos */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Timeline adjustments */
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-content,
    .roadmap-content {
        margin-left: 1rem;
        padding: 1rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Gallery */
    #gallery img {
        height: 200px;
    }
    
    /* Footer */
    #footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Pricing cards */
    .popular-badge {
        font-size: 0.75rem;
        padding: 2px 12px;
    }
    
    /* Metric values */
    .metric-value {
        font-size: 2rem;
    }
    
    /* Remove hover effects on mobile */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .trend-card:hover,
    .industry-card:hover,
    .guide-card:hover,
    .challenge-card:hover,
    .metric-card:hover,
    .resource-card:hover,
    .tech-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .team-card:hover .team-photo {
        transform: none;
        border-color: var(--gray-200);
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery a:hover {
        transform: none;
    }
    
    #gallery a:hover img {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 85vh;
    }
    
    /* Cards */
    .service-card img,
    .blog-card img,
    .case-study-card img {
        height: 180px;
    }
    
    /* Team photos */
    .team-photo {
        width: 130px;
        height: 130px;
    }
    
    /* Gallery */
    #gallery img {
        height: 220px;
    }
    
    /* Reduce animations on smaller devices */
    @media (prefers-reduced-motion: no-preference) {
        .floating-element {
            animation-duration: 8s;
        }
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero adjustments */
    #hero {
        min-height: 90vh;
    }
    
    /* Cards */
    .service-card img,
    .blog-card img {
        height: 190px;
    }
    
    .case-study-card img {
        height: 160px;
    }
    
    /* Team photos */
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    /* Gallery */
    #gallery img {
        height: 240px;
    }
    
    /* Timeline adjustments */
    .timeline-content,
    .roadmap-content {
        margin-left: 1.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Standard styling - most styles are already optimized for this range */
    
    /* Gallery */
    #gallery img {
        height: 250px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for larger screens */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Larger hero text */
    .display-4 {
        font-size: 3rem;
    }
    
    /* Gallery */
    #gallery img {
        height: 280px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-image-container {
        margin-top: 1rem;
    }
    
    /* Reduce padding for landscape mobile */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp borders and shadows */
    .btn, .form-control, .card {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar, .btn, #footer, .floating-element {
        display: none !important;
    }
    
    /* Ensure proper page breaks */
    .section {
        page-break-inside: avoid;
    }
    
    /* Adjust colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    .card, .feature-card, .service-card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable 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 floating elements */
    .floating-element {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --gray-700: #000000;
        --gray-600: #333333;
    }
    
    .btn-outline-primary {
        border-width: 2px;
    }
    
    .card, .feature-card, .service-card {
        border: 2px solid var(--gray-700);
    }
}

/* Dark mode support */

/* Container adjustments for different breakpoints */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Utility classes for responsive design */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
}

/* Responsive spacing utilities */
@media (max-width: 767.98px) {
    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }
    
    .mt-mobile-3 {
        margin-top: 1rem !important;
    }
    
    .p-mobile-2 {
        padding: 0.5rem !important;
    }
}

/* Responsive text alignment */
@media (max-width: 767.98px) {
    .text-md-start {
        text-align: center !important;
    }
    
    .text-md-end {
        text-align: center !important;
    }
} 