/* ===========================================
   Responsive Design
   =========================================== */

/* Large Desktops */
@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Desktops */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        order: 3;
        width: 100%;
        margin-top: var(--space-md);
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .quick-contact-content {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .quick-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        align-items: flex-start;
    }
    
    .timeline-year {
        flex: 0 0 80px;
        margin-left: 0;
        margin-right: var(--space-lg);
    }
    
    .timeline-content {
        flex: 1;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .logo-link {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .logo {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.95rem;
    }
    
    .slide-actions {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-links-bottom {
        justify-content: center;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--charcoal-dark);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        padding-right: var(--space-xl);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        transition: right 0.5s ease;
        overflow-y: auto;
    }
    
    body[dir="ltr"] .nav-list {
        right: auto;
        left: -100%;
        padding-right: 0;
        padding-left: var(--space-xl);
    }
    
    .nav-list.active {
        right: 0;
    }
    
    body[dir="ltr"] .nav-list.active {
        left: 0;
    }
    
    .nav-link {
        padding: var(--space-md) 0;
        font-size: 1.1rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: var(--space-sm);
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-icon {
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
    
    .quick-btn {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.85rem;
    }
    
    .lang-btn {
        min-width: 60px;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .back-to-top {
        left: var(--space-lg);
        bottom: var(--space-lg);
        width: 45px;
        height: 45px;
    }
    
    body[dir="ltr"] .back-to-top {
        left: auto;
        right: var(--space-lg);
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .stat-item {
        width: 100%;
    }
    
    .footer-links-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .contact-info {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Print Styles */
@media print {
    .preloader,
    .quick-contact-bar,
    .mobile-menu-btn,
    .slider-controls,
    .scroll-down,
    .back-to-top,
    .footer-social,
    .newsletter-form {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .header {
        position: static;
        background: white !important;
        border-bottom: 2px solid #000;
    }
    
    .logo {
        filter: brightness(0) !important;
    }
    
    .section-padding {
        padding: 1rem 0 !important;
    }
    
    .btn {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: none !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
}