/* Mobile-First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    :root {
        --h1-size: 2rem;
        --h2-size: 1.75rem;
        --h3-size: 1.25rem;
        --h4-size: 1.125rem;
        --navbar-brand-size: 1.125rem;
    }
    
    /* No animations on mobile for performance */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Header adjustments */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: var(--navbar-brand-size);
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 2rem 0;
        min-height: 100vh;
        background: var(--light-sky);
    }
    
    .hero-section::before {
        display: none;
    }
    
    .hero-section .container .row {
        text-align: center;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    /* Section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Cards and components */
    .feature-card, .service-card, .price-card {
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Team member images */
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    /* Process steps mobile layout */
    .process-step {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    #footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Gallery mobile */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* FAQ mobile */
    .faq-card {
        margin-bottom: 1rem;
    }
    
    /* Additional pages mobile */
    .tech-card, .platform-feature, .qa-process, .innovation-area,
    .research-card, .climate-study, .urban-study, .collaboration-area {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb-nav {
        padding-top: 80px;
        text-align: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Reduce animations on small devices */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .feature-card {
        padding: 1.75rem;
    }
    
    .team-member img {
        width: 175px;
        height: 175px;
    }
    
    .contact-form {
        padding: 1.75rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    /* Gallery tablet layout */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Team layout for tablet */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process steps tablet */
    .process-step {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations on desktop */
    .hero-section .container .row {
        align-items: center;
    }
    
    /* Hover effects enabled */
    .feature-card:hover,
    .service-card:hover,
    .case-study-card:hover {
        transform: translateY(-5px);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
    
    /* Gallery hover effects */
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 5rem 0;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
    
    /* Larger feature cards */
    .feature-card {
        padding: 2.5rem;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Even more spacing for ultra-wide */
    .hero-section {
        padding: 8rem 0;
    }
    
    section {
        padding: 6rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows for high DPI */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .faq-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .feature-card:hover,
    .service-card:hover,
    .case-study-card:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .breadcrumb-nav {
        display: none;
    }
    
    .hero-section {
        background: white;
        color: black;
    }
    
    .hero-section::before {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    .feature-card,
    .service-card,
    .review-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #006400;
        --primary-blue: #000080;
        --dark-green: #000000;
        --dark-blue: #000000;
    }
    
    .feature-card,
    .service-card,
    .price-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .feature-card,
    .service-card,
    .case-study-card,
    .btn-primary,
    #gallery img {
        transition: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .case-study-card:hover,
    .btn-primary:hover,
    #gallery img:hover {
        transform: none;
    }
}

/* Dark mode support */

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid #e9ecef;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
} 

body {
    overflow-x: hidden;
}

.hero-section h1 {
    padding-top: 175px;
}