/* Responsive Design - Mobile First Approach */

/* Mobile Devices (320px and up) */
@media screen and (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .header-content {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        gap: 0;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .keywords-bar {
        font-size: 0.75rem;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }

    .keywords-bar span {
        display: inline-block;
    }

    /* Hero */
    .hero {
        min-height: 400px;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Sections */
    .section-padding {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Industries */
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* About */
    .lead-text {
        font-size: 1.125rem;
    }

    /* Case Studies */
    .case-study-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-study-title {
        font-size: 1.5rem;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-keywords {
        font-size: 0.7rem;
        gap: 0.25rem;
    }

    /* Service Sections */
    .features-list {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-title {
        font-size: 1.5rem;
    }

    .cta-text {
        font-size: 1rem;
    }
}

/* Tablet Devices (768px and up) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 30px;
    }

    /* Hero */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Industries */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Case Studies */
    .case-study-content {
        grid-template-columns: 1fr;
    }

    .case-study-image {
        max-width: 600px;
        margin: 0 auto;
    }

    /* Contact */
    .contact-wrapper {
        gap: 3rem;
    }
}

/* Desktop Devices (1024px and up) */
@media screen and (min-width: 1024px) {
    /* Enhanced spacing for larger screens */
    .section-padding {
        padding: 5rem 0;
    }

    .hero {
        min-height: 600px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    /* Features grid can show 3 columns on large screens */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Industries can show 3 columns */
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop (1440px and up) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-cta,
    .cta-section,
    .mobile-menu-toggle,
    .keywords-bar {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .section-padding {
        padding: 1rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .footer-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation on Mobile */
@media screen and (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 300px;
    }

    .section-padding {
        padding: 2rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-list a,
    .feature-card,
    .industry-item {
        -webkit-tap-highlight-color: rgba(0, 102, 204, 0.2);
    }

    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-list a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* 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;
    }
}

