/* Responsive CSS for NoiseShield Template */
/* Mobile First Approach */

/* Base styles for mobile devices (up to 576px) */
@media (max-width: 575.98px) {
    :root {
        --font-size-base: 0.9rem;
        --font-size-lg: 1rem;
        --font-size-xl: 1.1rem;
        --font-size-2xl: 1.3rem;
        --font-size-3xl: 1.6rem;
        --font-size-4xl: 1.8rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header Mobile Styles */
    #header {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: var(--font-size-base);
    }
    
    /* navbar-collapse styles moved to main.css to avoid duplication */
    
    /* Hero Section */
    .hero-section {
        padding: var(--spacing-2xl) 0;
    }
    
    #hero-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-md);
    }
    
    #hero-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-buttons {
        text-align: center;
        margin-top: var(--spacing-lg);
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    /* Services Section */
    .service-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .service-image {
        height: 150px;
        margin-bottom: var(--spacing-md);
    }
    
    .service-card h4 {
        font-size: var(--font-size-lg);
    }
    
    .service-card .price {
        font-size: var(--font-size-lg);
    }
    
    /* Team Section */
    .team-image {
        width: 120px;
        height: 120px;
        margin-bottom: var(--spacing-md);
    }
    
    .team-member {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    /* Contact Section */
    .contact-form,
    .contact-info {
        margin-bottom: var(--spacing-lg);
    }
    
    .contact-form .btn-primary {
        width: 100%;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    /* Gallery */
    .gallery-section img {
        height: 200px;
        margin-bottom: var(--spacing-lg);
    }
    
    /* Additional Pages */
    .ai-features,
    .enterprise-benefits {
        gap: var(--spacing-md);
    }
    
    .algorithm-card,
    .deployment-card,
    .spec-card,
    .support-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .metrics {
        gap: var(--spacing-md);
    }
    
    .metric-number {
        font-size: var(--font-size-2xl);
    }
    
    .security-features {
        gap: var(--spacing-sm);
    }
    
    .innovation-card img,
    .integration-card img {
        height: 120px;
    }
    
    .solution-item img {
        height: 150px;
    }
    
    .tech-features {
        gap: var(--spacing-sm);
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        padding: var(--spacing-sm) 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-buttons .btn {
        width: auto;
        margin-right: var(--spacing-md);
    }
    
    .service-card {
        padding: var(--spacing-xl);
    }
    
    .team-member {
        padding: var(--spacing-xl);
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-md);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: var(--spacing-2xl) 0;
    }
    
    #hero-title {
        font-size: var(--font-size-4xl);
    }
    
    #hero-description {
        font-size: var(--font-size-lg);
    }
    
    .service-card {
        height: auto;
    }
    
    .testimonial-card {
        height: auto;
    }
    
    .team-member {
        height: auto;
    }
    
    .gallery-section img {
        height: 220px;
    }
    
    .contact-form {
        margin-bottom: var(--spacing-lg);
    }
    
    .metrics {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .algorithm-card,
    .deployment-card {
        height: auto;
    }
    
    .spec-card {
        height: auto;
    }
    
    .innovation-card img,
    .integration-card img {
        height: 140px;
    }
    
    .solution-item img {
        height: 180px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .service-card {
        height: 350px;
    }
    
    .testimonial-card {
        height: 200px;
    }
    
    .team-member {
        height: 300px;
    }
    
    .gallery-section img {
        height: 240px;
    }
    
    .metrics {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .algorithm-card,
    .deployment-card {
        height: 250px;
    }
    
    .spec-card {
        height: 200px;
    }
    
    .support-card {
        height: auto;
    }
    
    .innovation-card img,
    .integration-card img {
        height: 150px;
    }
    
    .solution-item img {
        height: 200px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .service-card {
        height: 400px;
    }
    
    .testimonial-card {
        height: 220px;
    }
    
    .team-member {
        height: 350px;
    }
    
    .gallery-section img {
        height: 250px;
    }
    
    .metrics {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .algorithm-card,
    .deployment-card {
        height: 280px;
    }
    
    .spec-card {
        height: 220px;
    }
    
    .innovation-card img,
    .integration-card img {
        height: 150px;
    }
    
    .solution-item img {
        height: 200px;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .service-card {
        height: 420px;
    }
    
    .testimonial-card {
        height: 240px;
    }
    
    .team-member {
        height: 380px;
    }
    
    .gallery-section img {
        height: 280px;
    }
    
    .algorithm-card,
    .deployment-card {
        height: 300px;
    }
    
    .spec-card {
        height: 240px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 70vh;
    }
    
    #hero-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-sm);
    }
    
    #hero-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-buttons {
        margin-top: var(--spacing-md);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg img,
    .service-image,
    .team-image,
    .gallery-section img,
    .innovation-card img,
    .integration-card img,
    .solution-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .footer-section,
    .breadcrumb-nav {
        display: none;
    }
    
    .hero-section,
    .about-section,
    .services-section,
    .testimonials-section,
    .gallery-section,
    .faq-section,
    .team-section,
    .contact-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .service-card,
    .testimonial-card,
    .team-member {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/* Dark mode support (system preference) */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-buttons .btn,
    .service-card,
    .testimonial-card,
    .team-member,
    .gallery-section img,
    .algorithm-card,
    .deployment-card,
    .spec-card,
    .support-card,
    .innovation-card,
    .integration-card,
    .solution-item,
    .feature-card {
        transition: none;
    }
    
    .hero-buttons .btn:hover,
    .service-card:hover,
    .team-member:hover,
    .gallery-section img:hover,
    .algorithm-card:hover,
    .deployment-card:hover,
    .spec-card:hover,
    .support-card:hover,
    .innovation-card:hover,
    .integration-card:hover,
    .solution-item:hover,
    .feature-card:hover {
        transform: none;
    }
}

/* Focus states for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus,
    .accordion-button:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Custom scrollbar for webkit browsers */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--bg-secondary);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }
}

/* Aspect ratio utilities for images */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* Responsive typography utilities */
.text-responsive {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.text-responsive-lg {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

.text-responsive-xl {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

/* Responsive spacing utilities */
.spacing-responsive {
    margin: clamp(1rem, 3vw, 2rem);
}

.spacing-responsive-lg {
    margin: clamp(1.5rem, 4vw, 3rem);
}

.padding-responsive {
    padding: clamp(1rem, 3vw, 2rem);
}

.padding-responsive-lg {
    padding: clamp(1.5rem, 4vw, 3rem);
}

/* Container max-width adjustments */
@media (min-width: 1200px) {
    .container-narrow {
        max-width: 960px;
    }
}

@media (min-width: 1400px) {
    .container-wide {
        max-width: 1600px;
    }
}

/* Responsive grid adjustments */
.row-gap-responsive {
    row-gap: clamp(1rem, 3vw, 2rem);
}

.col-gap-responsive {
    column-gap: clamp(1rem, 3vw, 2rem);
}

/* Responsive image sizing */
.img-responsive {
    max-width: 100%;
    height: auto;
}

.img-responsive-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-responsive-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive flexbox utilities */
.flex-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 2rem);
}

.flex-responsive-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}

/* Responsive grid layouts */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.grid-responsive-lg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}

/* Responsive visibility utilities */
.visible-mobile {
    display: block;
}

.visible-tablet {
    display: none;
}

.visible-desktop {
    display: none;
}

@media (min-width: 768px) {
    .visible-mobile {
        display: none;
    }
    
    .visible-tablet {
        display: block;
    }
    
    .visible-desktop {
        display: none;
    }
}

@media (min-width: 992px) {
    .visible-mobile {
        display: none;
    }
    
    .visible-tablet {
        display: none;
    }
    
    .visible-desktop {
        display: block;
    }
} 

.hero-content {
    padding-top: 175px;
}