/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .innovation-content {
        gap: var(--spacing-lg);
    }
    
    .contact-content {
        gap: var(--spacing-lg);
    }
}

/* Tablet */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 var(--spacing-md);
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--spacing-xl);
        gap: var(--spacing-lg);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-cta {
        display: none;
    }
    
    /* Hero */
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .africa-continent {
        width: 600px;
        height: 600px;
    }
    
    /* Sections */
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-md);
    }
    
    .products-showcase {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .product-card.featured {
        grid-column: span 1;
        display: block;
    }
    
    .innovation-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .innovation-text .section-header {
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-sm);
    }
    
    /* Typography */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Hero */
    .hero {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .africa-continent {
        width: 400px;
        height: 400px;
    }
    
    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card,
    .about-card,
    .product-card {
        padding: var(--spacing-md);
    }
    
    .pipeline-items {
        gap: var(--spacing-sm);
    }
    
    .pipeline-item {
        padding: var(--spacing-sm);
    }
    
    .innovation-graphic {
        width: 250px;
        height: 250px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

/* Mobile Medium */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .nav-container {
        height: 70px;
        padding: 0 var(--spacing-sm);
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
        padding-top: var(--spacing-lg);
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .primary-button,
    .secondary-button {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .africa-continent {
        width: 300px;
        height: 300px;
    }
    
    /* Sections */
    .section-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .about-card h3,
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .product-visual {
        height: 200px;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .product-stats {
        justify-content: space-around;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .pipeline-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .pipeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .innovation-graphic {
        width: 200px;
        height: 200px;
    }
    
    .brain-neurons {
        width: 150px;
        height: 150px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-logo-img {
        width: 32px;
        height: 32px;
    }
    
    .footer-logo-text {
        font-size: 1rem;
    }
}

/* Mobile Small */
@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .africa-continent {
        width: 250px;
        height: 250px;
    }
    
    .hero-cta {
        gap: var(--spacing-sm);
    }
    
    .primary-button,
    .secondary-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .about-card,
    .service-card,
    .product-card {
        padding: var(--spacing-sm);
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .innovation-graphic {
        width: 150px;
        height: 150px;
    }
    
    .brain-neurons {
        width: 100px;
        height: 100px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: var(--spacing-md) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-cta {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .primary-button,
    .secondary-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .africa-continent {
        width: 300px;
        height: 300px;
    }
}

/* Print styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .navbar,
    .hamburger,
    .scroll-indicator,
    .contact-form,
    .social-links {
        display: none;
    }
    
    .hero-background,
    .africa-continent,
    .neural-network,
    .ai-particles {
        display: none;
    }
    
    .section-title,
    .hero-title {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }
    
    .gradient-text,
    .ai-highlight {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }
    
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .about-grid,
    .services-grid,
    .products-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 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;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme as default */
}

/* Light mode override (if needed) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme for consistency */
}

/* Hover support */
@media (hover: hover) {
    .about-card:hover,
    .service-card:hover,
    .product-card:hover {
        transform: translateY(-10px);
    }
    
    .pipeline-item:hover {
        transform: translateX(10px);
    }
}

/* No hover support (touch devices) */
@media (hover: none) {
    .about-card:hover,
    .service-card:hover,
    .product-card:hover {
        transform: none;
    }
    
    .pipeline-item:hover {
        transform: none;
    }
    
    .primary-button:hover,
    .secondary-button:hover,
    .cta-button:hover {
        transform: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-background,
    .africa-continent,
    .neural-network,
    .ai-particles,
    .scroll-line,
    .morphing-shape,
    .ai-brain {
        animation: none;
    }
    
    .animate-on-scroll,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale,
    .stagger-animation {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --bg-primary: #000000;
        --bg-secondary: #000000;
        --primary-color: #ffffff;
        --border-color: #ffffff;
    }
    
    .about-card,
    .service-card,
    .product-card {
        border: 2px solid white;
        background: black;
    }
    
    .primary-button,
    .secondary-button,
    .cta-button {
        border: 2px solid white;
        background: black;
        color: white;
    }
}