/* Responsive CSS - Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.83rem;
    }
    
    h3 {
        font-size: 1.59rem;
    }
    
    /* Hero Section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 80vh;
        padding: var(--spacing-xl) 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.55rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-section h2 {
        font-size: 1.27rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-section p {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.32rem;
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-sm) var(--spacing-md) !important;
        margin: var(--spacing-xs) 0;
    }
    
    /* Cards */
    .feature-card, .service-card, .price-card, .review-card, .case-card, .info-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .service-card img, .case-card img {
        height: 180px;
    }
    
    /* Team Section */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Section */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.34rem;
    }
    
    /* Timeline */
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        width: calc(100% - 40px);
        margin-left: 40px !important;
        margin-right: 0 !important;
    }
    
    .timeline-item::before {
        content: '';
        position: absolute;
        left: -25px;
        top: 20px;
        width: 12px;
        height: 12px;
        background: var(--color-primary);
        border-radius: 50%;
    }
    
    /* Contact Form */
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .contact-info {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }
    
    /* Gallery */
    .gallery-img {
        height: 200px;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Additional Page Items */
    .strategy-item, .content-item, .community-item, .analytics-item, .growth-item,
    .ai-item, .automation-item, .integration-item, .enterprise-item {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: var(--spacing-xl) !important;
        padding-bottom: var(--spacing-xl) !important;
    }
    
    .mb-5 {
        margin-bottom: var(--spacing-lg) !important;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4, .footer .col-lg-2, .footer .col-lg-3 {
        margin-bottom: var(--spacing-lg);
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.79rem;
    }
    
    .hero-section h2 {
        font-size: 1.44rem;
    }
    
    .service-card img, .case-card img {
        height: 190px;
    }
    
    .gallery-img {
        height: 220px;
    }
    
    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: -35px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 1.49rem;
    }
    
    .service-card img, .case-card img {
        height: 200px;
    }
    
    .gallery-img {
        height: 240px;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .timeline-item {
        width: 45%;
    }
    
    .timeline-container::before {
        left: 50%;
    }
    
    .contact-info {
        margin-top: 0;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3.37rem;
    }
    
    .service-card img, .case-card img {
        height: 200px;
    }
    
    .gallery-img {
        height: 250px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3.64rem;
    }
    
    .container {
        max-width: 1200px;
    }
    
    .service-card img, .case-card img {
        height: 220px;
    }
    
    .gallery-img {
        height: 260px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 100vh;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-section h1 {
        font-size: 2.61rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-section h2 {
        font-size: 1.34rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-section p {
        margin-bottom: var(--spacing-md);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .hero-section::before {
        background-size: cover;
    }
    
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Note: As per requirements, we should not create a dark theme for accessibility */
    /* This section is commented out but left for reference */
    /*
    :root {
        --color-white: #0f0f0f;
        --color-black: #ffffff;
        --color-light-gray: #171515;
        --color-dark-gray: #ffffff;
    }
    */
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-card,
    .info-card,
    .team-member img,
    .gallery-img,
    .blog-card,
    .career-card,
    .btn,
    .timeline-item,
    .strategy-item,
    .content-item,
    .community-item,
    .analytics-item,
    .growth-item,
    .ai-item,
    .automation-item,
    .integration-item,
    .enterprise-item {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    
    .hero-section::before {
        animation: none !important;
    }
    
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Print styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .footer,
    .btn,
    .breadcrumb-section {
        display: none !important;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: auto;
        padding: var(--spacing-md) 0;
    }
    
    .hero-section::before {
        display: none;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-card,
    .info-card,
    .career-card,
    .strategy-item,
    .content-item,
    .community-item,
    .analytics-item,
    .growth-item,
    .ai-item,
    .automation-item,
    .integration-item,
    .enterprise-item {
        page-break-inside: avoid;
        border: 1px solid #c1c1c1;
        box-shadow: none;
    }
    
    .gallery-section {
        display: none;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .contact-form {
        border: 1px solid #e1d8d8;
        box-shadow: none;
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #3214f7;
        --color-secondary: #0c7502;
        --color-accent: #ff9800;
        --color-neutral: #000000;
        --color-success: #0b7800;
    }
    
    .btn-primary {
        background: #0618ff;
        border: 2px solid #000000;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-card,
    .info-card,
    .career-card,
    .strategy-item,
    .content-item,
    .community-item,
    .analytics-item,
    .growth-item,
    .ai-item,
    .automation-item,
    .integration-item,
    .enterprise-item {
        border: 2px solid #000000;
    }
}

/* Focus improvements for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .navbar-nav .nav-link:focus,
    .btn:focus,
    .form-control:focus,
    .accordion-button:focus {
        outline: 3px solid var(--color-primary);
        outline-offset: 2px;
    }
}

/* Large text preferences */
@media (prefers-color-scheme: no-preference) and (min-resolution: 1.5dppx) {
    /* Optimize text rendering for high-DPI displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Container adjustments for different screen sizes */
@media (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
}

@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
} 