/* Mobile-Specific Enhancements */

/* Better Touch Targets */
@media (max-width: 768px) {
    button, .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }
    
    /* Prevent Mobile Zoom on Input Focus */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Smooth Scrolling for Mobile */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide Scrollbar on Mobile */
    body::-webkit-scrollbar {
        display: none;
    }
    
    /* Mobile Menu Overlay */
    .nav-menu.active {
        animation: slideInFromLeft 0.3s ease-out;
    }
    
    @keyframes slideInFromLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Card Tap Feedback */
    .feature-card:active,
    .module-card:active,
    .team-card:active,
    .partner-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Button Tap Feedback */
    .btn:active {
        transform: scale(0.97);
    }
    
    /* Optimize Images for Mobile */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Mobile-Friendly Spacing */
    .hero-buttons .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        font-weight: 500;
    }
    
    /* Compact Section Spacing */
    section + section {
        margin-top: 0;
    }
    
    /* Mobile-Optimized Typography */
    h1, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Better Card Shadows on Mobile */
    .feature-card,
    .module-card,
    .team-card,
    .partner-card {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    /* Mobile Video Performance */
    .hero-video {
        transform: scale(1.1);
        object-fit: cover;
    }
    
    /* Reduce Motion on Request */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Landscape Mode on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 4rem 0 2rem;
    }
    
    .hero-logo {
        height: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    /* 2-Column Layout for Tablets */
    .problem-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
