/* ========== MOBILE NAVIGATION ========== */
@media (max-width: 1023px) {
    .header {
        height: var(--header-height-mobile);
    }
    
    main {
        padding-top: var(--header-height-mobile);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        background-color: var(--white);
        padding: calc(var(--header-height-mobile) + var(--space-6)) var(--space-6) var(--space-6);
        gap: 0;
        overflow-y: auto;
        transition: right var(--transition-normal);
        z-index: var(--z-fixed);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: var(--space-4) 0;
        border-bottom: 1px solid var(--light-gray);
        font-size: var(--text-base);
    }
    
    /* Mobile Dropdown */
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }
    
    .has-dropdown.open .nav-dropdown {
        max-height: 500px;
    }
    
    .nav-dropdown li a {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }
    
    .nav-right {
        gap: var(--space-3);
    }
    
    .lang-toggle {
        order: -1;
    }
    
    /* Compact header CTA on small screens */
    .nav-cta.btn {
        display: inline-flex;
        padding: 0.35rem 0.65rem;
        font-size: var(--text-xs);
        line-height: 1.2;
        border-width: 1px;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .nav-cta.btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 35px;
    }
    
    .lang-toggle button {
        padding: var(--space-1) var(--space-2);
        font-size: var(--text-xs);
    }
}

/* ========== FOOTER RESPONSIVE ========== */
@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    .footer-about {
        grid-column: span 2;
        padding-right: 0;
    }
}

@media (max-width: 639px) {
    .footer-main {
        padding: var(--space-12) 0 var(--space-8);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .footer-col h4::after {
        width: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ========== HOME PAGE RESPONSIVE ========== */
@media (max-width: 1023px) {
    .hero-content h1 {
        font-size: var(--text-4xl);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-16);
    }
    
    .hero-content h1 {
        font-size: var(--text-3xl);
    }
    
    .hero-content p {
        font-size: var(--text-base);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .stat-number {
        font-size: var(--text-4xl);
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-content h2 {
        font-size: var(--text-2xl);
    }
    
    .clients-slider {
        gap: var(--space-6);
    }
    
    .client-logo img {
        height: 40px;
    }
}

/* ========== INNER PAGES RESPONSIVE ========== */
@media (max-width: 1023px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-page-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .dept-cards {
        grid-template-columns: 1fr;
    }
    
    .projects-page-grid .project-card[id] {
        scroll-margin-top: calc(var(--header-height-mobile) + var(--space-4));
    }
    
    .certs-grid {
        grid-template-columns: 1fr;
    }
    
    .reg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    .service-categories {
        flex-direction: column;
    }
    
    .service-cat-btn {
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .project-filters {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 80px;
    }
    
    .reg-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== ABOUT PAGE RESPONSIVE ========== */
@media (max-width: 1023px) {
    .about-grid,
    .eureka-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .mvv-grid,
    .leaders-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-year {
        left: 20px;
    }
    
    .eureka-companies {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: var(--space-4);
    }
}

@media (max-width: 639px) {
    .page-hero h1 {
        font-size: var(--text-3xl);
    }
    
    .leader-image {
        height: 250px;
    }
}

@media (max-width: 640px) {
    .equipment-download-banner {
        flex-direction: column;
        text-align: center;
    }
}
