/* ===== RESPONSIVE DESIGN - MOBILE FIRST ===== */

/* ===== MOBILE STYLES (Default) ===== */
@media (max-width: 767.98px) {
    /* Typography adjustments */
    :root {
        --font-size-h1: 1.75rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.375rem;
        --font-size-h4: 1.25rem;
        --section-padding: 2rem 0;
        --card-padding: 1rem;
    }

    /* Hero section */
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    /* Navbar */
    .navbar-brand {
        font-size: 1.125rem !important;
    }

    .navbar-collapse {
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }

    /* Cards */
    .feature-card, .service-card, .review-card, 
    .case-study-card, .blog-card, .pricing-card,
    .career-card, .info-card, .element-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    /* Service cards spacing */
    .service-card .price {
        font-size: 1.25rem;
        margin-top: 0.75rem;
    }

    /* Pricing cards */
    .pricing-card.featured {
        transform: none;
        margin-bottom: 1rem;
    }

    .price-large {
        font-size: 1.5rem;
        margin: 0.75rem 0;
    }

    /* Process steps */
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.5rem;
        width: 10px;
        height: 10px;
    }

    /* Team members */
    .team-member img {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    /* Gallery */
    #gallery img {
        height: 200px;
        margin-bottom: 0.5rem;
    }

    /* Contact form */
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }

    .contact-info {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    /* Footer adjustments */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }

    footer .text-md-end {
        text-align: center !important;
    }

    /* FAQ accordion */
    .accordion-item {
        margin-bottom: 0.5rem;
    }

    /* Blog grid */
    #blog_grid .col-lg-4 {
        margin-bottom: 1.5rem;
    }

    /* Space div */
    #space {
        min-height: 40vh;
        padding: 1rem;
    }

    /* Breadcrumb */
    .breadcrumb-image {
        max-height: 30px;
    }
}

/* ===== TABLET STYLES ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography adjustments */
    :root {
        --font-size-h1: 1.875rem;
        --font-size-h2: 1.625rem;
        --section-padding: 3rem 0;
    }

    /* Hero section */
    .hero-section {
        padding-top: 90px;
    }

    /* Cards in rows */
    .service-card, .feature-card, .review-card,
    .case-study-card, .blog-card, .info-card {
        margin-bottom: 1.5rem;
    }

    /* Team members layout */
    .team-member {
        margin-bottom: 2rem;
    }

    /* Gallery images */
    #gallery img {
        height: 250px;
    }

    /* Process steps */
    .process-step {
        margin-bottom: 1.5rem;
    }

    /* Footer columns */
    footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 992px) {
    /* Hero section enhancements */
    .hero-section {
        min-height: 100vh;
    }

    /* Team members in row */
    .team-member {
        margin-bottom: 0;
    }

    /* Gallery hover effects enhancement */
    #gallery img:hover {
        transform: scale(1.08);
    }

    /* Cards hover effects */
    .feature-card:hover, .service-card:hover, .review-card:hover,
    .case-study-card:hover, .blog-card:hover, .element-card:hover {
        transform: translateY(-8px);
    }

    /* Contact form layout */
    .contact-form {
        padding: 2rem;
        background: white;
        border-radius: var(--border-radius);
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    }
}

/* ===== LARGE DESKTOP STYLES ===== */
@media (min-width: 1200px) {
    /* Container adjustments */
    .container {
        max-width: 1140px;
    }

    /* Larger spacing for large screens */
    :root {
        --section-padding: 5rem 0;
        --card-padding: 2rem;
    }

    /* Enhanced hero section */
    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section h2 {
        font-size: 1.875rem;
    }
}

/* ===== EXTRA LARGE SCREENS ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    /* Maximum font sizes for very large screens */
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* ===== LANDSCAPE ORIENTATION ADJUSTMENTS ===== */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero section height on landscape mobile */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    /* Adjust navbar */
    .navbar {
        padding: 0.25rem 0;
    }

    /* Reduce section padding */
    section {
        padding: 1.5rem 0;
    }
}

/* ===== HIGH DPI SCREENS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows for retina displays */
    .feature-card, .service-card, .review-card,
    .case-study-card, .blog-card, .pricing-card,
    .career-card, .info-card, .element-card {
        border-width: 0.5px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    /* Hide navigation and interactive elements */
    .navbar, footer, .btn, .contact-form,
    #gallery, .breadcrumb-nav {
        display: none !important;
    }

    /* Adjust colors for print */
    body {
        color: black !important;
        background: white !important;
    }

    /* Remove shadows and transitions */
    * {
        box-shadow: none !important;
        transition: none !important;
        animation: none !important;
    }

    /* Optimize spacing for print */
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0000ff;
        --primary-green: #008000;
        --primary-purple: #800080;
        --primary-orange: #ff4500;
        --primary-teal: #008080;
        --neutral-dark: #000000;
    }

    .feature-card, .service-card, .review-card,
    .case-study-card, .blog-card, .pricing-card,
    .career-card, .info-card, .element-card {
        border: 2px solid black;
    }
}

/* Dark mode preference */

/* ===== FOCUS MANAGEMENT ===== */
@media (any-hover: none) {
    /* Touch device optimizations */
    .feature-card:hover, .service-card:hover, .review-card:hover,
    .case-study-card:hover, .blog-card:hover, .element-card:hover {
        transform: none;
    }

    /* Larger touch targets */
    .btn, .nav-link, a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== CONTAINER QUERIES (Progressive Enhancement) ===== */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }

    @container (max-width: 300px) {
        .feature-card, .service-card {
            padding: 0.75rem;
        }
        
        .feature-card h4, .service-card h4 {
            font-size: 1rem;
        }
    }
} 