/* Mobile Navigation */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: #f8fafc;
        margin: 8px 0;
        border-radius: 4px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item.mobile-open .dropdown-menu {
        max-height: 200px;
    }

    .dropdown-item {
        margin: 0;
        border-radius: 0;
        padding: 10px 20px;
        font-size: 14px;
    }

    .dropdown-item:hover {
        transform: none;
        background-color: #e2e8f0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu.active .nav-link {
        color: #4b5563;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span {
        background-color: #4b5563;
    }

    .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);
    }

    .nav-logo-img {
        height: 40px;
        width: 168px;
        max-width: 100%;
    }

    .nav-logo a {
        height: 40px;
        width: 168px;
    }

    .nav-menu.active .nav-link {
        color: #4b5563 !important;
    }
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 16px;
    }

    .hero-left,
    .hero-right {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 12px;
    }

    .hero-video {
        height: 250px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Page Hero Responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 50px 0 30px;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .page-subtitle {
        font-size: 1.125rem;
    }
}

/* Typography Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding: 30px 0;
    }

    .container {
        padding: 0 8px;
    }
}

/* Cards Grid Responsive */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card {
        padding: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
}

/* About Page Responsive */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .timeline {
        padding: 8px 0;
    }

    .timeline::before {
        left: 24px;
        width: 3px;
    }

    .timeline-progress-line {
        left: 24px;
        width: 3px;
    }


        margin-bottom: 16px;

        transform: none !important;
        position: absolute;
    /* Reset alternating layout for mobile */
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        order: 2;
        margin-top: 8px;
        max-width: 100%;
    }

    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        order: 1;
        margin: 0;
        font-size: 0.875rem;
        padding: 8px 16px;
        position: absolute;
        left: -120px;
        top: 20px;
    }

    /* Client logos slider responsive */
    .client-logos-slider {
        padding: 12px 0;
    }

    .logo-item {
        width: 150px;
        height: 75px;
        margin-right: 12px;
    }

    .logo-item img {
        max-width: 120px;
        max-height: 60px;
    }

    .logos-track {
        width: calc(150px * 12 + 12px * 12);
    }

    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 6 - 12px * 6));
        }
    }
    }

    .timeline-content {
        margin-top: 8px;
        padding: 10px;
    }
    
    .interactive-testimonial-card {
        height: auto;
    }
    
    .testimonial-compact {
        height: auto;
        padding: 12px;
    }
    
    .compact-logo {
        width: 120px;
        height: 90px;
    }
    
    .expanded-logo {
        width: 80px;
        height: 60px;
    }
    
    .testimonial-expanded {
        padding: 12px;
        height: auto;
    }
    
    .testimonial-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .testimonial-author h4 {
        font-size: 1.1rem;
    }
    
    .author-name {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .author-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .author-location {
        font-size: 0.85rem;
    }
}

/* Articles Responsive */
@media (max-width: 768px) {
    .article-card.featured {
        grid-column: span 1;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .customer-logo-large {
        width: 140px;
        height: 105px;
        padding: 10px;
    }
    
    .testimonial-logo {
        margin-bottom: 16px;
        padding: 12px 0;
    }

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

    .categories-grid {
        display: none;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }
}

/* Contact Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form,
    .contact-info-section {
        padding: 12px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .social-link-large {
        display: block;
        margin-right: 0;
        margin-bottom: 6px;
        text-align: center;
    }
    
    .customer-logo-large {
        width: 120px;
        height: 90px;
        padding: 8px;
    }
    
    .testimonial-logo {
        margin-bottom: 12px;
        padding: 8px 0;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 24px 0 12px;
    }

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

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

/* Case Study Responsive */
@media (max-width: 768px) {
    .case-study-results {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .case-study-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Service Cards Responsive */
@media (max-width: 768px) {
    .service-card {
        text-align: left;
    }

    .card-header {
        text-align: center;
        margin-bottom: 20px;
    }
}

/* CTA Section Responsive */
@media (max-width: 768px) {
    .cta-section {
        padding: 24px 12px;
        margin: 16px 0;
    }

    .cta-section h2 {
        font-size: 1.875rem;
    }
}

/* Category Filters Responsive */
@media (max-width: 768px) {
    .category-filters {
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
        scrollbar-color: #228aa8 #f3f4f6;
    }
    
    .category-filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .category-filters::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 2px;
    }
    
    .category-filters::-webkit-scrollbar-thumb {
        background: #228aa8;
        border-radius: 2px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .interactive-testimonial-card {
        height: auto;
    }
    
    .testimonial-compact {
        height: auto;
        padding: 10px;
    }
    
    .compact-logo {
        width: 100px;
        height: 75px;
    }
    
    .expanded-logo {
        width: 70px;
        height: 52px;
    }
    
    .testimonial-expanded {
        padding: 10px;
        height: auto;
    }
    
    .testimonial-text blockquote {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .testimonial-author h4 {
        font-size: 1.05rem;
    }
    
    .author-name {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }
    
    .author-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .author-location {
        font-size: 0.8rem;
    }
    
    .hover-text {
        font-size: 0.75rem;
    }
    
    .expand-icon {
        width: 28px;
        height: 28px;
    }
    
    .expand-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Article Page Responsive */
@media (max-width: 768px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .article-image img {
        height: 250px;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body .lead {
        font-size: 1.125rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
        margin-top: 16px;
    }
    
    .article-body h3 {
        font-size: 1.25rem;
        margin-top: 12px;
    }
    
    .success-metrics {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    .metric h4 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Feature Tags Responsive */
@media (max-width: 480px) {
    .card-features {
        justify-content: center;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    .container {
        padding: 0 6px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 1.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card {
        padding: 10px;
    }

    .section {
        padding: 24px 0;
    }

    .nav-container {
        padding: 0 6px;
    }

    /* World Map Responsive */
    .world-map {
        height: 300px;
        margin-top: 16px;
    }
}