/* ===== Responsive Styles ===== */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .stat-card h3 {
        font-size: 3rem;
    }
    
    .industry-content {
        padding-right: 2rem;
    }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991.98px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    /* Hero Section */
    .hero-slider-section {
        min-height: 700px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    /* Mega Menu */
    .mega-menu-content {
        max-height: 400px;
        overflow-y: auto;
    }
    
    /* Stats */
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2.5rem;
    }
    
    /* Industry Solutions */
    .industry-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .industry-visual {
        order: -1;
        margin-bottom: 3rem;
    }
    
    /* Footer */
    .footer-offices {
        margin-top: 2rem;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767.98px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Hero Section */
    .hero-slider-section {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Stats */
    .stats-counter-section .row > div {
        margin-bottom: 1.5rem;
    }
    
    .stat-card:last-child {
        margin-bottom: 0;
    }
    
    /* Services */
    .services-showcase-section .row > div {
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 2rem;
    }
    
    /* News Ticker */
    .ticker-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .ticker-item {
        flex: 0 0 100%;
    }
    
    /* CTA Section */
    .cta-card {
        padding: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-section .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Footer */
    .footer-newsletter .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .footer-newsletter .col-lg-6:last-child {
        margin-bottom: 0;
    }
    
    .footer-bottom-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Extra Small Devices (Less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Padding Adjustments */
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Hero Section */
    .hero-slider-section {
        min-height: 500px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Navigation */
    .navbar-brand {
        padding: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
    }
    
    /* Mega Menu */
    .mega-menu-content .row > div {
        margin-bottom: 2rem;
    }
    
    .mega-menu-content .row > div:last-child {
        margin-bottom: 0;
    }
    
    /* Cards */
    .service-card,
    .testimonial-card,
    .blog-card {
        padding: 1.25rem;
    }
    
    /* Industry Tabs */
    .industry-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Blogs */
    .blog-list .blog-card.list-item {
        flex-direction: column;
    }
    
    .blog-list .blog-image-sm {
        flex: 0 0 200px;
        width: 100%;
        height: 200px;
    }
    
    /* Footer */
    .footer-main {
        padding: 3rem 0;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget h5:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links li a:hover {
        padding-left: 0;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Height Based Media Queries */
@media (max-height: 700px) {
    .hero-slider-section {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .announcement-bar,
    .navbar,
    .hero-slider-section .swiper-button-next,
    .hero-slider-section .swiper-button-prev,
    .scroll-down,
    .footer-social,
    .back-to-top,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1a202c;
        --dark: #f7fafc;
        --gray: #cbd5e0;
        --gray-light: #a0aec0;
        --white: #2d3748;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        background-color: #2d3748;
        color: #cbd5e0;
    }
    
    .service-card .service-title,
    .testimonial-card .author-info h5,
    .blog-card .blog-title {
        color: #f7fafc;
    }
    
    .service-card .service-description,
    .testimonial-card .testimonial-text,
    .blog-card .blog-excerpt {
        color: #a0aec0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #000080;
        --secondary: #ff4500;
    }
    
    body {
        color: #000;
        background-color: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loading-screen,
    .scroll-down,
    .ticker-track,
    .ticker-content {
        animation: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .stat-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .hover-lift:hover,
    .hover-scale:hover,
    .hover-rotate:hover {
        transform: none;
    }
    
    .mega-menu-content ul li a:hover {
        padding-left: 0;
    }
    
    .footer-links li a:hover {
        padding-left: 0;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider-section {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}