/* Responsive Styles for Chaudhury Infrastructure */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Medium screens (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Tablet screens (768px to 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--spacing-xl) 0;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-xl);
        width: 100%;
        text-align: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-cta {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--gray-100);
        margin-top: var(--spacing-md);
    }
    
    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Sections */
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
    
    /* Projects Grid */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }
    
    /* Testimonials */
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
}

/* Small tablets and large phones (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Sections */
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .project-image {
        height: 200px;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile phones (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-brand .logo {
        height: 35px;
    }
    
    .main-content {
        margin-top: 70px;
    }
    
    /* Hero */
    .hero {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: var(--spacing-md);
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: var(--spacing-md);
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    /* Project Cards */
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: var(--spacing-md);
    }
    
    .project-title {
        font-size: 1.125rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: var(--spacing-md);
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        gap: var(--spacing-lg);
    }
    
    .contact-item {
        font-size: 0.875rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
}

/* Extra small devices (up to 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .project-image {
        height: 160px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .btn,
    .hero-buttons,
    .cta-buttons {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-md) 0;
        background: none !important;
        color: var(--gray-900) !important;
    }
    
    .hero-title,
    .section-title {
        color: var(--gray-900) !important;
    }
    
    section {
        padding: var(--spacing-md) 0;
        break-inside: avoid;
    }
    
    .service-card,
    .project-card,
    .testimonial-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #0066CC;
        --accent-color: #FF6600;
        --gray-600: #333333;
        --gray-700: #000000;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .service-card,
    .project-card,
    .testimonial-card {
        border: 2px solid var(--gray-300);
    }
}

/* 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;
    }
    
    .spinner {
        animation: none;
    }
}
