/* Responsive Design - Mobile First Approach */

/* Base Mobile Styles (up to 575px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: var(--font-size-3xl);
        line-height: 1.2;
    }
    
    h2 {
        font-size: var(--font-size-2xl);
        line-height: 1.3;
    }
    
    h3 {
        font-size: var(--font-size-xl);
    }
    
    h4 {
        font-size: var(--font-size-lg);
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    /* Hero section */
    .hero-section {
        min-height: 100vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-section .container {
        text-align: center;
    }
    
    /* Card adjustments */
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .review-card,
    .case-study-card,
    .career-card,
    .blog-card,
    .element-card,
    .info-card {
        margin-bottom: var(--spacing-lg);
        padding: var(--spacing-md);
    }
    
    /* Contact form */
    .contact-form {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm);
    }
    
    /* Timeline adjustments */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-sm);
    }
    
    .timeline-item::before {
        left: 20px;
        transform: none;
    }
    
    /* Process steps */
    .process-step {
        padding: var(--spacing-md);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: var(--spacing-md);
    }
    
    /* Footer adjustments */
    footer .col-md-4 {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-base);
        width: 100%;
    }
    
    /* Featured price card scaling */
    .price-card.featured {
        transform: none;
        margin: var(--spacing-sm) 0;
    }
    
    .price-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* Breadcrumb adjustments */
    .breadcrumb-section {
        padding-top: 80px;
        text-align: center;
    }
    
    /* Service list adjustments */
    .service-card ul {
        font-size: var(--font-size-sm);
    }
    
    /* Team photo adjustments */
    .team-photo {
        width: 100px;
        height: 100px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    .hero-section {
        min-height: 90vh;
    }
    
    /* Card grid adjustments */
    .service-card,
    .feature-card,
    .review-card {
        height: auto;
        min-height: 300px;
    }
    
    /* Timeline improvements */
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: var(--spacing-sm);
    }
    
    /* Contact form improvements */
    .contact-form {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Gallery grid */
    #gallery img {
        margin-bottom: var(--spacing-md);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography scaling */
    h1 {
        font-size: var(--font-size-4xl);
    }
    
    h2 {
        font-size: var(--font-size-3xl);
    }
    
    /* Hero section improvements */
    .hero-section {
        min-height: 80vh;
    }
    
    /* Card improvements */
    .service-card,
    .price-card,
    .case-study-card,
    .blog-card {
        height: 100%;
        min-height: 400px;
    }
    
    .feature-card,
    .element-card,
    .info-card {
        min-height: 250px;
    }
    
    .review-card {
        min-height: 200px;
    }
    
    /* Team section improvements */
    .team-member {
        min-height: 280px;
    }
    
    .team-photo {
        width: 110px;
        height: 110px;
    }
    
    /* Timeline improvements */
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 52%;
        padding-right: var(--spacing-xl);
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 52%;
        padding-left: var(--spacing-xl);
    }
    
    /* Process steps grid */
    .process-step {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Contact form */
    .contact-form {
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* FAQ accordion */
    .accordion-item {
        margin-bottom: var(--spacing-sm);
        border-radius: var(--border-radius-md);
        overflow: hidden;
    }
    
    /* Gallery improvements */
    #gallery .col-md-4 {
        padding: var(--spacing-xs);
    }
    
    /* Footer layout */
    footer .col-md-4:first-child {
        text-align: left;
    }
    
    footer .col-md-4:last-child {
        text-align: right;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero section */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Card height standardization */
    .service-card {
        min-height: 450px;
    }
    
    .feature-card,
    .element-card,
    .info-card {
        min-height: 280px;
    }
    
    .review-card {
        min-height: 220px;
    }
    
    .case-study-card,
    .blog-card {
        min-height: 380px;
    }
    
    .team-member {
        min-height: 300px;
    }
    
    .career-card {
        min-height: 250px;
    }
    
    /* Price card featured scaling */
    .price-card.featured {
        transform: scale(1.03);
    }
    
    .price-card.featured:hover {
        transform: scale(1.03) translateY(-5px);
    }
    
    /* Process steps enhancements */
    .process-step {
        position: relative;
    }
    
    .process-step:not(:last-child)::after {
        content: 'â†’';
        position: absolute;
        right: -15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: var(--font-size-2xl);
        color: var(--primary-blue);
        z-index: 1;
    }
    
    /* Timeline enhancements */
    .timeline-content {
        max-width: 400px;
    }
    
    /* Contact info layout */
    .contact-form {
        max-width: 700px;
        margin: 0 auto;
    }
    
    /* Gallery hover effects */
    #gallery img {
        transition: all 0.3s ease;
    }
    
    #gallery img:hover {
        transform: scale(1.05);
        box-shadow: var(--shadow-xl);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section full height */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Card optimal heights */
    .service-card {
        min-height: 480px;
    }
    
    .feature-card,
    .element-card,
    .info-card {
        min-height: 300px;
    }
    
    .review-card {
        min-height: 240px;
    }
    
    .case-study-card,
    .blog-card {
        min-height: 400px;
    }
    
    .team-member {
        min-height: 320px;
    }
    
    .career-card {
        min-height: 280px;
    }
    
    .price-card {
        min-height: 450px;
    }
    
    /* Enhanced hover effects */
    .service-card:hover,
    .case-study-card:hover,
    .blog-card:hover {
        transform: translateY(-10px);
    }
    
    /* Timeline optimal layout */
    .timeline-content {
        max-width: 450px;
    }
    
    /* Process steps with enhanced connector */
    .process-step:not(:last-child)::after {
        right: -20px;
        font-size: var(--font-size-3xl);
    }
    
    /* Contact form optimal size */
    .contact-form {
        max-width: 800px;
        padding: var(--spacing-xl) var(--spacing-xl);
    }
    
    /* Gallery optimal spacing */
    #gallery .col-md-4 {
        padding: var(--spacing-sm);
    }
    
    /* Team photo larger size */
    .team-photo {
        width: 130px;
        height: 130px;
    }
    
    /* Enhanced feature icons */
    .feature-icon {
        font-size: 3rem;
    }
    
    /* Step numbers larger */
    .step-number {
        width: 70px;
        height: 70px;
        font-size: var(--font-size-2xl);
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Spacing adjustments for ultra-wide */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Enhanced card heights */
    .service-card {
        min-height: 500px;
    }
    
    .feature-card,
    .element-card,
    .info-card {
        min-height: 320px;
    }
    
    /* Larger contact form */
    .contact-form {
        max-width: 900px;
    }
    
    /* Enhanced timeline */
    .timeline-content {
        max-width: 500px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .navbar {
        padding: var(--spacing-xs) 0;
    }
    
    body {
        padding-top: 60px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-image,
    .case-image,
    .blog-image,
    .team-photo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support (if user prefers) */

/* Reduced data usage */
@media (prefers-reduced-data: reduce) {
    .hero-section::before {
        background-image: none;
    }
    
    .service-image,
    .case-image,
    .blog-image,
    #gallery img {
        filter: grayscale(1);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-member:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .blog-card:hover,
    .element-card:hover,
    .info-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .btn-primary:hover {
        transform: none;
        background: var(--gradient-primary);
    }
    
    #gallery img:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .form-check-input {
        width: 20px;
        height: 20px;
    }
}

/* Custom grid helpers for responsive design */
@media (min-width: 992px) {
    .row-cols-lg-5 > * {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Accessibility improvements for smaller screens */
@media (max-width: 767.98px) {
    /* Larger text for better readability */
    .small, small {
        font-size: var(--font-size-sm);
    }
    
    /* Better spacing for touch */
    .accordion-button {
        padding: var(--spacing-md);
        font-size: var(--font-size-lg);
    }
    
    /* Larger form elements */
    .form-control {
        font-size: var(--font-size-lg);
        padding: var(--spacing-md);
    }
    
    .form-check-label {
        font-size: var(--font-size-lg);
        padding-left: var(--spacing-sm);
    }
} 

.hero-section h1 {
    padding-top: 225px;
}