/* Responsive CSS for AmbientFlow Template */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    h1 {
        font-size: var(--font-size-2xl);
    }
    
    h2 {
        font-size: var(--font-size-xl);
    }
    
    h3 {
        font-size: var(--font-size-lg);
    }
    
    /* Hero Section */
    #hero {
        padding-top: 60px;
        min-height: 80vh;
    }
    
    #hero h1 {
        font-size: var(--font-size-2xl);
        margin-bottom: 0.88rem;
    }
    
    #hero h2 {
        font-size: var(--font-size-lg);
        margin-bottom: 1rem;
    }
    
    #hero p {
        font-size: var(--font-size-base);
        margin-bottom: 1.69rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: var(--font-size-base);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-collapse {
        background-color: white;
        margin-top: 1rem;
        border-radius: var(--border-radius);
        box-shadow: 0 9px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    /* Section Padding */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .element-card {
        margin-bottom: 1.72rem;
    }
    
    /* Pricing Cards */
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-top: 2rem;
    }
    
    /* Team Members */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 3rem;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 3rem;
        padding-right: 0;
    }
    
    .timeline-content::before {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    /* Contact Form */
    .contact-form .form-control {
        padding: 0.625rem 0.75rem;
    }
    
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: var(--font-size-sm);
        width: 100%;
        margin-bottom: 0.72rem;
    }
    
    /* Additional Page Elements */
    .element-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    #hero h1 {
        font-size: var(--font-size-3xl);
    }
    
    #hero h2 {
        font-size: var(--font-size-xl);
    }
    
    /* Section Padding */
    section {
        padding: 4rem 0;
    }
    
    /* Timeline */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 4rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 4rem;
        padding-right: 0;
    }
    
    /* Pricing Cards */
    .pricing-card.featured {
        transform: scale(1.02);
    }
    
    /* Team Members */
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Buttons */
    .btn {
        width: auto;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    #hero {
        padding-top: 70px;
    }
    
    /* Timeline */
    .timeline-item {
        width: 50%;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 1.5rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 1.5rem;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 1.64rem;
    }
    
    /* Contact Form Grid */
    .contact-form .row .col-md-6 {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }
    
    /* Services Grid */
    .service-card {
        height: 100%;
    }
    
    /* Gallery Grid */
    #gallery .col-md-4 {
        margin-bottom: 1.65rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container Adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Hero Section */
    #hero h1 {
        font-size: var(--font-size-4xl);
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 1rem;
    }
    
    /* Process Steps */
    .process-step {
        padding: 0 0.5rem;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container */
    .container {
        max-width: var(--container-max-width);
    }
    
    /* Hero Section Enhancements */
    #hero {
        min-height: 100vh;
    }
    
    /* Larger Cards for Desktop */
    .feature-card,
    .service-card,
    .pricing-card,
    .info-card {
        padding: 2rem;
    }
    
    /* Enhanced Hover Effects */
    .feature-card:hover,
    .service-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .info-card:hover {
        transform: translateY(-8px);
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced Typography for Large Screens */
    h1 {
        font-size: calc(var(--font-size-4xl) * 1.1);
    }
    
    h2 {
        font-size: calc(var(--font-size-3xl) * 1.1);
    }
    
    /* Enhanced Spacing */
    section {
        padding: 6rem 0;
    }
}

/* Height-based Media Queries */
@media (max-height: 600px) {
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

@media (min-height: 800px) {
    #hero {
        min-height: 100vh;
    }
}

/* Orientation-based Media Queries */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 90vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects for touch devices */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .element-card:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: 0 9px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
    
    .navbar-nav .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimized for Retina displays */
    .navbar-brand,
    h1, h2, h3, h4, h5 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dark Mode Support (System Preference) */

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .element-card,
    .blog-card,
    .btn,
    #gallery img {
        transition: none;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .fade-in-up {
        animation: none;
    }
    
    .loading::after {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-section,
    footer,
    .btn {
        display: none;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5 {
        color: black;
    }
    
    p, li {
        color: black;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .element-card,
    .blog-card {
        box-shadow: none;
        border: 1px solid #b3b3b3;
        page-break-inside: avoid;
    }
}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
    /* Enhanced contrast for accessibility */
    .btn-primary {
        background: #000;
        border-color: #000;
    }
    
    .btn-outline-primary {
        border-color: #000;
        color: #000;
    }
    
    a {
        color: #141ef6;
    }
    
    a:visited {
        color: #6f0c7d;
    }
}

/* Focus Indicators for Keyboard Navigation */
@media (any-hover: none) and (any-pointer: coarse) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus,
    .accordion-button:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
} 