/* NoiseWatch - Responsive CSS */
/* Mobile-first responsive design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Conservative font sizes for mobile */
    :root {
        --h1-size: 2rem;
        --h2-size: 1.75rem;
        --h3-size: 1.5rem;
        --h4-size: 1.25rem;
        --h5-size: 1.125rem;
        --navbar-brand-size: 1.25rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    padding-top: 275px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    /* Cards and components */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .blog-card,
    .faq-card {
        margin-bottom: 1.5rem;
    }
    
    /* Timeline mobile layout */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 0;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item::before {
        left: 12px;
    }
    
    .timeline-item:nth-child(even)::before {
        left: 12px;
    }
    
    /* Process steps mobile */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Team members mobile */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Contact form mobile */
    .contact-form,
    .contact-info {
        margin-bottom: 2rem;
    }
    
    /* Gallery mobile spacing */
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Reduce section padding on mobile */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding: 2rem 0 !important;
    }
    
    /* Form controls mobile */
    .form-control {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.25rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Disable animations on mobile for performance */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .blog-card:hover,
    .casestudy-card:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 275px;
}
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    /* Timeline adjustments */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 0;
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item::before {
        left: 22px;
    }
    
    .timeline-item:nth-child(even)::before {
        left: 22px;
    }
    
    /* Button improvements */
    .btn {
        width: auto;
        display: inline-block;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section tablet */
    .hero-section {
        min-height: 80vh;
    }
    
    /* Services grid tablet */
    .service-card {
        height: 100%;
    }
    
    /* Team layout tablet */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process steps tablet */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    /* Timeline tablet - still single column */
    .timeline::before {
        left: 50px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 0;
        padding-left: 100px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 100px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item::before {
        left: 42px;
    }
    
    .timeline-item:nth-child(even)::before {
        left: 42px;
    }
    
    /* Gallery tablet */
    #gallery img {
        margin-bottom: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Timeline desktop - dual column */
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item {
        width: 50%;
        padding-left: 0;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 2rem;
        text-align: right;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 2rem;
        text-align: left;
    }
    
    .timeline-item::before {
        top: 0;
    }
    
    .timeline-item:nth-child(odd)::before {
        right: -8px;
        left: auto;
    }
    
    .timeline-item:nth-child(even)::before {
        left: -8px;
        right: auto;
    }
    
    /* Hero full layout */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Enhanced hover effects on desktop */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .blog-card:hover,
    .casestudy-card:hover {
        transform: translateY(-8px);
    }
    
    /* Team layout desktop */
    .team-member img {
        width: 150px;
        height: 150px;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Enhanced spacing for large screens */
    .hero-section .container {
        max-width: 1140px;
    }
    
    /* Larger team images */
    .team-member img {
        width: 180px;
        height: 180px;
    }
    
    /* Better gallery layout */
    #gallery .col-lg-4 {
        padding: 0.75rem;
    }
    
    /* Enhanced card layouts */
    .feature-card,
    .service-card,
    .price-card {
        padding: 2.5rem;
    }
    
    /* Process steps enhanced */
    .process-step {
        padding: 2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Extra Extra Large devices (1400px and up) */
@media (min-width: 1400px) {
    /* Container adjustments for very large screens */
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced hero for ultra-wide */
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 275px;
}
    
    .hero-section h2 {
        font-size: 2.25rem;
    }
    
    /* Better spacing for ultra-wide */
    section {
        padding: 6rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp rendering for high DPI */
    .step-number,
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and unnecessary elements */
    .navbar,
    .btn,
    #gallery,
    footer {
        display: none !important;
    }
    
    /* Adjust for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: white;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5 {
        page-break-after: avoid;
    }
    
    /* Remove shadows and animations */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero height in landscape mobile */
    .hero-section {
        min-height: 70vh;
        padding: 1rem 0;
    }
    
    /* Compact navigation */
    .navbar {
        padding: 0.25rem 0;
    }
    
    /* Reduce section padding */
    section {
        padding: 1.5rem 0;
    }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .blog-card:hover,
    .casestudy-card:hover,
    .btn:hover {
        transform: none !important;
    }
    
    /* Disable floating animation */
    .hero-section::before {
        animation: none !important;
    }
}

/* Focus and accessibility improvements */
@media (min-width: 992px) {
    /* Enhanced focus states for desktop */
    .nav-link:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 3px;
    }
    
    .btn:focus {
        box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.5);
    }
}

/* Mobile menu improvements */
@media (max-width: 991.98px) {
    /* Standard Bootstrap mobile menu - no customization */
    .navbar-collapse {
        background-color: white;
        border-top: 1px solid var(--light-gray);
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--light-gray);
    }
} 