/* Mobile screens - disable Sal.js animations */
@media (max-width: 767.98px) {
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* =================================
   EcoWave Boards - Responsive CSS
   ================================= */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.8rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .feature-card,
    .service-card,
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-form .row {
        margin-bottom: 1rem;
    }
    
    .gallery-section .col-6 {
        margin-bottom: 0.5rem;
    }
    
    .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    .container-sm {
        max-width: 540px;
    }
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .process-section .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    .container-md {
        max-width: 720px;
    }
    
    .service-card {
        height: auto;
        min-height: 400px;
    }
    
    .pricing-card {
        height: auto;
        min-height: 450px;
    }
    
    .team-section .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .contact-section .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    .faq-section .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        padding: 5rem 0;
    }
    
    .container-lg {
        max-width: 960px;
    }
    
    .service-card {
        min-height: 420px;
    }
    
    .pricing-card {
        min-height: 480px;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .process-step .step-number {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        padding: 6rem 0;
    }
    
    .container-xl {
        max-width: 1140px;
    }
    
    .service-card {
        min-height: 440px;
    }
    
    .pricing-card {
        min-height: 500px;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .process-step .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto !important;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-size: 200px 200px;
    }
    
    .breadcrumb-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-nav,
    .footer {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .hero-section {
        background: none !important;
        padding: 1rem 0;
    }
    
    .btn,
    .contact-section {
        display: none !important;
    }
    
    * {
        box-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    .card,
    .feature-card,
    .service-card,
    .pricing-card {
        border: 2px solid var(--primary-ocean);
    }
    
    .btn-primary {
        border: 2px solid var(--dark-ocean);
    }
    
    .navbar {
        border-bottom: 2px solid var(--primary-ocean);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    #space {
        animation: none;
        background: var(--primary-blue);
    }
    
    .card:hover,
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .btn:hover {
        transform: none;
    }
    
    .gallery-section img:hover {
        transform: none;
    }
}

/* Dark mode support */

/* Specific breakpoint adjustments for complex layouts */

/* Services grid optimization */
@media (min-width: 768px) and (max-width: 991.98px) {
    .services-section .row .col-lg-4:nth-child(3n+1) {
        clear: left;
    }
}

/* Team member layout optimization */
@media (min-width: 992px) {
    .team-section .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Process steps mobile layout */
@media (max-width: 767.98px) {
    .process-section .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    .process-section .col-lg-2:last-child {
        margin-bottom: 0;
    }
}

/* Timeline mobile optimization */
@media (max-width: 767.98px) {
    .timeline-section .col-lg-2 {
        margin-bottom: 2rem;
        padding: 0 2rem;
    }
}

/* FAQ responsive layout */
@media (max-width: 991.98px) {
    .faq-section .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Gallery responsive adjustments */
@media (max-width: 575.98px) {
    .gallery-section .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery-section .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Contact form responsive improvements */
@media (max-width: 767.98px) {
    .contact-section .col-lg-8 {
        order: 2;
    }
    
    .contact-section .col-lg-4 {
        order: 1;
        margin-bottom: 2rem;
    }
}

/* Navigation improvements for small screens */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--light-cream);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
}

/* Hero section image responsive behavior */
@media (max-width: 767.98px) {
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        text-align: center;
        padding-top: 2rem;
    }
}

/* Additional page specific responsive adjustments */
@media (max-width: 767.98px) {
    .initiative-card,
    .research-card,
    .community-card,
    .partner-card,
    .global-card,
    .tech-card,
    .vision-card {
        margin-bottom: 1.5rem;
    }
}

/* Ensure proper spacing on all devices */
@media (max-width: 991.98px) {
    .mb-4 {
        margin-bottom: 2rem !important;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 767.98px) {
    .hero-section::before {
        display: none;
    }
    
    .card,
    .feature-card,
    .service-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
} 