/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: var(--bg-secondary);
        color: var(--primary-color);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Enhanced mobile animations */
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .data-flow-animation {
        width: 250px;
        height: 250px;
    }

    .data-node {
        width: 16px;
        height: 16px;
    }

    /* Mobile stats optimization */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Mobile solutions grid */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .solution-card {
        padding: 2rem;
        margin: 0 0.5rem;
        min-height: auto;
    }

    .solution-card:hover {
        transform: translateY(-4px);
    }

    .card-header h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .card-accent {
        width: 50px;
        height: 2px;
    }

    .solution-card:hover .card-accent {
        width: 70px;
    }

    .solution-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .solution-highlights {
        gap: 0.5rem;
    }

    .highlight-item {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }

    /* Mobile technology section */
    .tech-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #techChart {
        width: 100%;
        max-width: 350px;
        height: auto;
    }

    /* Mobile industries grid */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .industry-item {
        padding: 1.5rem;
    }

    .industry-icon {
        width: 60px;
        height: 60px;
    }

    .industry-icon i {
        font-size: 1.5rem;
    }

    /* Mobile about section */
    .about-content {
        padding: 0 1rem;
    }

    .about-text h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .about-text h3 {
        font-size: 1.3rem;
        margin: 2rem 0 1.5rem 0;
    }

    .about-text p {
        font-size: 1rem;
    }

    .core-values-card {
        padding: 2rem;
        margin-top: 1.5rem;
    }

    .core-value-item {
        margin-bottom: 1.5rem;
    }

    .core-value-item h4 {
        font-size: 1.2rem;
    }

    .core-value-item p {
        font-size: 0.95rem;
    }

    /* Mobile contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    /* Mobile footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Enhanced mobile touch interactions */
    .solution-card:active,
    .industry-item:active {
        transform: scale(0.98);
    }

    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.95);
    }

    /* Mobile scrollbar */
    ::-webkit-scrollbar {
        width: 4px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-content {
        gap: 3rem;
    }

    .about-content {
        gap: 3rem;
    }

    .contact-content {
        gap: 3rem;
    }
}

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

/* Dark mode support (if user prefers) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --border-color: #334155;
    }

    .navbar {
        background: rgba(15, 23, 42, 0.95);
        border-bottom-color: var(--border-color);
    }

    .solution-card,
    .industry-item,
    .contact-form,
    .contact-item,
    .stat-item {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }

    #techChart {
        background: var(--bg-secondary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .data-node,
    .team-member {
        animation: none;
    }

    .hero-content h1 {
        animation: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }

    .hero {
        background: white !important;
        color: black !important;
    }

    .gradient-text {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }

    .solution-card,
    .industry-item,
    .stat-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .section-header h2 {
        color: black !important;
    }

    .section-header p {
        color: #333 !important;
    }
}
