/* ===== RESPONSIVE STYLES ===== */

/* Disable scroll animations on mobile devices */
@media (max-width: 767.98px) {
    /* Remove sal.js animations */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Remove fade-in animations */
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Remove other transform animations */
    .card:hover {
        transform: none !important;
        box-shadow: var(--shadow) !important;
    }
    
    .card:hover .card-img-top {
        transform: none !important;
    }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 80px;
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Process Steps */
    .process-step,
    .timeline-year {
        width: 60px;
        height: 60px;
    }
    
    .process-step .h4,
    .timeline-year .small {
        font-size: 0.875rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    /* Sections */
    section {
        padding: 3.5rem 0;
    }
    
    /* Process Steps */
    .process-step,
    .timeline-year {
        width: 70px;
        height: 70px;
    }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.375rem;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    /* Team Grid */
    .team-section .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Services Grid */
    .services-section .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
    /* Container adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.625rem;
    }
    
    /* Enhanced hover effects for larger screens */
    .card:hover {
        transform: translateY(-8px);
    }
    
    .btn:hover {
        transform: translateY(-3px);
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-section h1 {
        font-size: 1.875rem;
        margin-bottom: 0.75rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhanced shadows for retina displays */
    .card {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    }
    
    .navbar {
        box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    footer,
    .btn,
    .card:hover {
        display: none !important;
    }
    
    .container {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p, ul, ol {
        page-break-inside: avoid;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    /* Remove all transitions and animations */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Static transforms */
    .card:hover,
    .btn:hover {
        transform: none !important;
    }
}

@media (prefers-contrast: high) {
    /* Enhanced contrast for accessibility */
    :root {
        --primary-blue: #0056b3;
        --primary-green: #007056;
        --primary-purple: #6f42c1;
        --primary-orange: #d63384;
        --primary-pink: #dc3545;
    }
    
    .btn-primary {
        border: 2px solid var(--dark-blue);
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* ===== DARK MODE SUPPORT ===== */

/* ===== SPECIFIC COMPONENT RESPONSIVE BEHAVIOR ===== */

/* Team Section */
@media (max-width: 991.98px) {
    .team-section .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .team-section .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Process Section */
@media (max-width: 767.98px) {
    .process-section .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .process-section .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Services Grid Responsive */
@media (max-width: 991.98px) {
    .services-section .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* FAQ Section */
@media (max-width: 767.98px) {
    .faq-section .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

/* Gallery Responsive */
@media (max-width: 991.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Contact Form Responsive */
@media (max-width: 991.98px) {
    .contact-section .col-lg-8,
    .contact-section .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Blog Grid Responsive */
@media (max-width: 991.98px) {
    .blog-section .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Pricing Cards Responsive */
@media (max-width: 767.98px) {
    .pricing-section .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* ===== CONTAINER QUERIES (Future Enhancement) ===== */
/* Note: Container queries are not widely supported yet */
/* This would be for component-level responsive behavior */

/* ===== FLEXIBLE GRID ENHANCEMENTS ===== */
@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1320px;
    }
    
    /* Enhanced spacing for ultra-wide screens */
    section {
        padding: 6rem 0;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
} 