/* Mobile UI/UX Optimizations */

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    
    /* Hero Section Mobile Optimizations */
    .hero {
        min-height: 100vh;
        padding: 1rem;
        text-align: center;
        overflow: hidden;
    }
    
    .hero-content {
        padding: 2rem 1rem;
        max-width: 100%;
        animation: none; /* Disable floating animation on mobile for performance */
    }
    
    /* Mobile Typography Optimizations */
    .hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        letter-spacing: 0.01em;
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Mobile-Specific Line Spacing */
    .hero h1 br {
        margin-bottom: 0.3rem;
    }
    
    /* CEO Slogan Mobile Optimization */
    .ceo-slogan {
        margin: 2rem 0;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .slogan-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .gold-pulse {
        font-size: 1.25rem;
        margin-top: 0.5rem;
    }
    
    /* Mobile Button Optimizations */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 12px;
        min-height: 48px; /* Touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* Mobile Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .stat-item {
        padding: 1rem;
        border-radius: 12px;
        text-align: center;
    }
    
    .stat-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    /* Mobile Hero Stats */
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .stat-card {
        padding: 1.5rem;
        border-radius: 15px;
        text-align: center;
        width: 100%;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
        line-height: 1.4;
    }
}

/* Touch-Specific Optimizations */
@media (hover: none) and (pointer: coarse) {
    
    /* Disable particle canvas on touch devices for performance */
    #particle-canvas {
        display: none !important;
    }
    
    /* Touch-Friendly Hover Effects */
    .hero h1 span:hover,
    .hero h1 .highlight:hover {
        transform: none;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    }
    
    /* Touch-Optimized Gold Pulse */
    .gold-pulse:hover {
        transform: none;
        animation-duration: 1.5s;
    }
    
    /* Touch-Friendly Button States */
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Disable complex animations on touch devices */
    .hero-content {
        animation: none !important;
    }
    
    .typewriter-line {
        animation-duration: 0.5s; /* Faster on mobile */
    }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    
    .hero {
        padding: 0.5rem;
    }
    
    .hero-content {
        padding: 1.5rem 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .ceo-slogan {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .slogan-text {
        font-size: 0.9rem;
    }
    
    .gold-pulse {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .hero-stats {
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Large Mobile Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }
    
    .stat-card {
        flex: 1;
    }
}

/* Tablet Portrait (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    
    .hero h1 {
        font-size: 2.25rem !important;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        width: auto;
        min-width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

/* Mobile Navigation Enhancements */
@media (max-width: 768px) {
    
    .navbar {
        padding: 1rem;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-logo img {
        height: 35px;
    }
    
    .nav-logo span {
        font-size: 1rem;
    }
    
    .hamburger {
        width: 30px;
        height: 30px;
    }
    
    .hamburger span {
        height: 3px;
        border-radius: 2px;
    }
    
    .mobile-menu {
        top: 70px;
        padding: 2rem 1rem;
        border-radius: 0 0 20px 20px;
    }
    
    .mobile-menu a {
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 10px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Performance Optimizations for Mobile */
@media (max-width: 768px) {
    
    /* Reduce animation complexity */
    .highlight {
        animation-duration: 4s; /* Slower animation for better performance */
    }
    
    .gold-pulse {
        animation-duration: 3s;
    }
    
    /* Optimize transforms for mobile */
    .hero h1,
    .ceo-slogan,
    .hero-buttons,
    .stats-grid,
    .hero-stats {
        will-change: auto; /* Let browser optimize */
        transform: translateZ(0); /* Hardware acceleration */
    }
    
    /* Reduce motion for better performance */
    .typewriter-line {
        animation-duration: 0.3s;
    }
}

/* Accessibility Improvements for Mobile */
@media (max-width: 768px) {
    
    /* Larger touch targets */
    .stat-item,
    .stat-card {
        min-height: 48px;
        cursor: pointer;
    }
    
    /* Better contrast for mobile screens */
    .hero h1 {
        text-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.9),
            0 0 20px rgba(16, 185, 129, 0.4);
    }
    
    /* Improved readability */
    .slogan-text,
    .stat-text,
    .stat-label {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    }
}

/* Mobile-Specific Interactions */
@media (max-width: 768px) {
    
    /* Touch feedback for interactive elements */
    .stat-card:active,
    .stat-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Mobile-friendly gold pulse interaction */
    .gold-pulse:active {
        transform: scale(1.05);
        transition: transform 0.1s ease;
    }
    
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

/* Dark Mode Support for Mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    
    .hero {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    }
    
    .ceo-slogan {
        background: rgba(15, 23, 42, 0.8);
        border: 1px solid rgba(16, 185, 129, 0.3);
    }
    
    .stat-card,
    .stat-item {
        background: rgba(15, 23, 42, 0.7);
        border: 1px solid rgba(16, 185, 129, 0.2);
    }
}

/* Reduced Motion Preferences for Mobile */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    
    .typewriter-line {
        animation: none !important;
        border-right: none !important;
    }
    
    .hero-content {
        animation: none !important;
    }
    
    .gold-pulse {
        animation: none !important;
    }
    
    .highlight {
        animation: none !important;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

