/* Responsive Styles */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 1.27rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .feature-card,
    .service-card,
    .pricing-card {
        margin-bottom: 1.63rem;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before {
        left: -45px;
        right: auto;
    }
    
    .process-step {
        padding: 1rem 0.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.37rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.62rem;
    padding-top: 250px;
}
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 80px;
        margin-right: 0;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.85rem;
    padding-top: 250px;
}
    
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 55%;
        margin-right: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 55%;
        margin-left: 0;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .nav-link {
        margin: 0 0.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 250px;
}
    
    .container {
        max-width: 960px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3.57rem;
    padding-top: 250px;
}
    
    .container {
        max-width: 1140px;
    }
}

/* XXL Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.68rem;
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 0.92rem;
        margin-bottom: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('../CLO_images/hero-bg@2x.webp');
    }
}

/* Dark Mode Support */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .timeline-content,
    .feature-card,
    .service-card,
    .team-member,
    .review-card,
    .blog-card {
        transition: none;
    }
    
    .animate-fadeInUp,
    .animate-fadeInLeft,
    .animate-fadeInRight {
        animation: none;
    }
}

/* Print Optimizations */
@media print {
    @page {
        margin: 1in;
    }
    
    .hero-section,
    .bg-primary,
    .bg-light {
        background: white;
        color: black;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin: 0;
        page-break-inside: avoid;
    }
    
    .feature-card,
    .service-card,
    .pricing-card {
        page-break-inside: avoid;
        border: 1px solid black;
        margin-bottom: 1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .team-member:hover {
        transform: none;
    }
    
    .feature-card:active,
    .service-card:active,
    .team-member:active {
        transform: scale(0.95);
    }
}

/* Container Queries Support */
@supports (container-type: inline-size) {
    .service-card {
        container-type: inline-size;
    }
    
    @container (max-width: 250px) {
        .service-card .card-img-top {
            height: 150px;
        }
        
        .service-card h4 {
            font-size: 1rem;
        }
    }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
    .btn:focus:not(:focus-visible),
    .nav-link:focus:not(:focus-visible),
    .form-control:focus:not(:focus-visible) {
        box-shadow: none;
        outline: none;
    }
    
    .btn:focus-visible,
    .nav-link:focus-visible,
    .form-control:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Aspect Ratio Support */
@supports (aspect-ratio: 16 / 9) {
    .service-card .card-img-top {
        aspect-ratio: 16 / 9;
        height: auto;
    }
    
    .blog-card img {
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

/* Scroll Snap */
@supports (scroll-snap-type: x mandatory) {
    .gallery-container {
        scroll-snap-type: x mandatory;
        overflow-x: auto;
    }
    
    .gallery-item {
        scroll-snap-align: start;
    }
}

/* Custom Scrollbar for Touch Devices */
@media (hover: none) {
    ::-webkit-scrollbar {
        width: 0;
        background: transparent;
    }
}

/* Additional Page Responsive Styles */
@media (max-width: 575.98px) {
    .step-card,
    .platform-card,
    .doc-card,
    .practice-card,
    .support-card,
    .innovation-card {
        margin-bottom: 1.72rem;
        padding: 1.5rem;
    }
    
    .step-card .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .metric-card h3 {
        font-size: 1.35rem;
    }
    
    .breadcrumb-nav {
        padding: 1rem 0;
    }
    
    .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 1.02rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .step-card .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.16rem;
    }
}

/* Touch Device Optimizations for Additional Pages */
@media (hover: none) and (pointer: coarse) {
    .step-card,
    .platform-card,
    .doc-card,
    .practice-card,
    .support-card,
    .innovation-card {
        min-height: 44px;
    }
    
    .step-card:hover,
    .platform-card:hover,
    .doc-card:hover,
    .practice-card:hover,
    .support-card:hover,
    .innovation-card:hover {
        transform: none;
    }
    
    .step-card:active,
    .platform-card:active,
    .doc-card:active,
    .practice-card:active,
    .support-card:active,
    .innovation-card:active {
        transform: scale(0.95);
    }
} 