/* Responsive Design - Mobile First Approach */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 6rem 0;
    padding-top: 150px;
}
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .hero-content {
        padding: 5rem 0;
    padding-top: 150px;
}
    
    .feature-card {
        padding: 2.5rem;
    }
    
    .service-card .service-content {
        padding: 2rem;
    }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) {
    .hero-section .row {
        min-height: 100vh;
    }
    
    .timeline {
        padding-left: 3rem;
    }
    
    .timeline-item {
        margin-left: 3rem;
    }
    
    .timeline-item::before {
        left: -4rem;
    }
}

/* Small Devices (768px and up) */
@media (min-width: 768px) {
    .navbar-nav {
        align-items: center;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .hero-buttons .btn {
        margin: 0 0.5rem;
    }
    
    .contact-item {
        margin-bottom: 2rem;
    }
}

/* Extra Small Devices (up to 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        background: white;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 70px;
    }
    
    .hero-content {
        padding: 2rem 0;
        text-align: center;
    padding-top: 150px;
}
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .feature-card, .service-card, .price-card, .team-card, 
    .review-card, .case-study-card, .blog-card, .faq-card,
    .info-card, .contact-info {
        margin-bottom: 1.5rem;
    }
    
    .feature-card, .service-card .service-content, .price-card .price-body,
    .team-card, .review-card, .case-study-content, .blog-content,
    .faq-card, .info-card, .contact-info {
        padding: 1.5rem;
    }
    
    .feature-icon, .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Price Cards */
    .price-card.featured {
        transform: none;
        border-width: 2px;
    }
    
    .price-card.featured:hover {
        transform: translateY(-3px);
    }
    
    .price {
        font-size: 2rem;
    }
    
    /* Feature Items */
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .feature-item .feature-icon {
        margin: 0 auto;
    }
    
    /* Process Steps */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 0.75rem;
    }
    
    .timeline-item {
        margin-left: 1.5rem;
        padding: 1rem;
    }
    
    .timeline-item::before {
        left: -2.25rem;
        width: 10px;
        height: 10px;
        top: 1rem;
    }
    
    /* Team Images */
    .team-image img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact Form */
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-icon {
        margin: 0 auto 1rem;
    }
    
    /* Gallery */
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer .row {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    #site-copyright {
        text-align: center !important;
    }
    
    footer .text-end {
        text-align: center !important;
    }
}

/* Small Devices (576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .hero-content {
        padding: 3rem 0;
    padding-top: 150px;
}
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
    
    section {
        padding: 4rem 0;
    }
    
    /* Two columns for some cards on small tablets */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    .timeline-item {
        padding: 1.25rem;
    }
}

/* Medium Devices (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 4rem 0;
    padding-top: 150px;
}
    
    section {
        padding: 5rem 0;
    }
    
    .feature-card, .service-card .service-content, 
    .team-card, .review-card {
        padding: 1.75rem;
    }
    
    /* Adjust grid spacing */
    .row.g-4 > * {
        margin-bottom: 1.5rem;
    }
}

/* Hover Effects - Disabled on Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover, .service-card:hover, .price-card:hover,
    .team-card:hover, .review-card:hover, .case-study-card:hover,
    .blog-card:hover, .faq-card:hover, .info-card:hover,
    .feature-item:hover, .process-step:hover, .career-card:hover,
    .gallery-item:hover, .insight-card:hover, .resource-card:hover,
    .analysis-card:hover, .education-card:hover, .metric-card:hover,
    .policy-card:hover, .terms-card:hover, .cookie-card:hover,
    .disclaimer-card:hover, .compliance-card:hover {
        transform: none;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
        box-shadow: none;
    }
    
    .price-card.featured:hover {
        transform: scale(1.05);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --primary-light: #333333;
        --primary-dark: #000000;
        --secondary-color: #000000;
        --secondary-light: #f0f0f0;
        --secondary-dark: #000000;
        --text-primary: #000000;
        --text-secondary: #333333;
        --neutral-color: #ffffff;
        --neutral-dark: #000000;
    }
    
    .feature-card, .service-card, .price-card, .team-card,
    .review-card, .case-study-card, .blog-card, .faq-card,
    .info-card, .contact-info {
        border: 2px solid #000000;
    }
    
    .btn-primary, .btn-outline-primary {
        border: 2px solid #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .feature-card, .service-card, .price-card, .team-card,
    .review-card, .case-study-card, .blog-card, .faq-card,
    .info-card, .feature-item, .process-step, .career-card,
    .gallery-item, .insight-card, .resource-card, .analysis-card,
    .education-card, .metric-card, .policy-card, .terms-card,
    .cookie-card, .disclaimer-card, .compliance-card {
        transition: none;
    }
    
    .btn, .form-control, .nav-link {
        transition: none;
    }
    
    .hero-image::before {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .navbar, .breadcrumb-section, footer, .btn {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .feature-card, .service-card, .price-card, .team-card,
    .review-card, .case-study-card, .blog-card, .faq-card,
    .info-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding-top: 60px;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    padding-top: 150px;
}
    
    section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Very Large Screens (1600px and up) */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    .hero-content {
        padding: 8rem 0;
    padding-top: 150px;
}
    
    section {
        padding: 6rem 0;
    }
    
    .feature-card, .service-card .service-content {
        padding: 3rem;
    }
}

/* Ultra Wide Screens (2000px and up) */
@media (min-width: 2000px) {
    .container {
        max-width: 1600px;
    }
    
    body {
        font-size: 1.1rem;
    overflow-x: hidden;
}
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3.2rem;
    }
    
    .feature-icon, .info-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

/* Dark Mode Support (if system preference is dark) */

/* Focus States for Accessibility */
@media (min-width: 768px) {
    .btn:focus, .form-control:focus, .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .navbar-nav {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover, .nav-link.active {
        background: var(--primary-color);
        color: white !important;
    }
} 