/* ===================================
   HERO SECTION MOBILE - REDESIGN COMPLETO
   Design moderno e espaçado para mobile
=================================== */

/* Hero Section Mobile - Versão Melhorada */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        min-height: calc(100vh - 80px); /* Subtrai altura do header */
        padding: 4rem 0 6rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: 
            radial-gradient(ellipse at center top, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
            radial-gradient(ellipse at bottom right, rgba(0, 255, 255, 0.05) 0%, transparent 60%),
            var(--primary-dark);
        position: relative;
        overflow: hidden;
    }
    
    /* Efeito de fundo sutil */
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            linear-gradient(135deg, transparent 0%, rgba(0, 212, 255, 0.02) 50%, transparent 100%);
        pointer-events: none;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
        min-height: auto;
        position: relative;
        z-index: 2;
    }
    
    .hero-text {
        width: 100%;
        margin-bottom: 5rem;
    }
    
    .hero-badge {
        display: inline-block;
        background: var(--gradient-primary);
        color: var(--primary-dark);
        padding: 0.8rem 2rem;
        border-radius: 50px;
        font-size: clamp(0.8rem, 2.2vw, 0.9rem);
        font-weight: 700;
        letter-spacing: 1px;
        margin-bottom: 2.5rem;
        text-transform: uppercase;
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
        animation: badgeFloat 3s ease-in-out infinite;
    }
    
    @keyframes badgeFloat {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 7vw, 3.5rem);
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 2rem;
        letter-spacing: -0.02em;
    }
    
    .hero-title .gradient-text {
        display: block;
        margin-top: 0.5rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-description {
        font-size: clamp(1rem, 3vw, 1.2rem);
        color: var(--text-secondary);
        line-height: 1.7;
        margin-bottom: 0;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        font-weight: 400;
    }
    
    /* Stats redesenhadas para mobile */
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .stat-item {
        background: rgba(26, 26, 26, 0.8);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 2rem 1.5rem;
        text-align: center;
        position: relative;
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .stat-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
        transition: left 0.6s ease;
    }
    
    .stat-item:hover::before {
        left: 100%;
    }
    
    .stat-item:nth-child(1) {
        animation: statSlideIn 0.8s ease 0.2s both;
    }
    
    .stat-item:nth-child(2) {
        animation: statSlideIn 0.8s ease 0.4s both;
    }
    
    .stat-item:nth-child(3) {
        animation: statSlideIn 0.8s ease 0.6s both;
    }
    
    @keyframes statSlideIn {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .stat-number {
        display: block;
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        font-weight: 800;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 0.8rem;
        line-height: 1;
        position: relative;
    }
    
    .stat-label {
        color: var(--text-secondary);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        font-weight: 500;
        line-height: 1.4;
        letter-spacing: 0.5px;
    }
    
    /* Versão landscape para mobile */
    @media (orientation: landscape) and (max-height: 600px) {
        .hero-section {
            min-height: auto;
            padding: 2rem 0;
        }
        
        .hero-content {
            min-height: auto;
            padding: 2rem 0;
        }
        
        .hero-stats {
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-top: 2rem;
        }
        
        .stat-item {
            padding: 1.5rem 1rem;
        }
        
        .hero-badge {
            margin-bottom: 1.5rem;
        }
        
        .hero-title {
            margin-bottom: 1.5rem;
        }
    }
}

/* Mobile Extra Small - 480px e menor */
@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 0 3rem 0;
    }
    
    .hero-content {
        padding: 2rem 0;
        min-height: 75vh;
    }
    
    .hero-text {
        margin-bottom: 3rem;
    }
    
    .hero-badge {
        padding: 0.7rem 1.8rem;
        margin-bottom: 2rem;
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 1.8rem;
    }
    
    .hero-description {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
        max-width: 95%;
        line-height: 1.6;
    }
    
    .hero-stats {
        gap: 1.2rem;
        max-width: 350px;
    }
    
    .stat-item {
        padding: 1.8rem 1.2rem;
        border-radius: 18px;
    }
    
    .stat-number {
        font-size: clamp(2.2rem, 9vw, 3rem);
        margin-bottom: 0.6rem;
    }
    
    .stat-label {
        font-size: clamp(0.85rem, 2.8vw, 0.95rem);
    }
}

/* Melhorias para dispositivos muito pequenos */
@media (max-width: 375px) {
    .hero-badge {
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 4vw, 1rem);
        line-height: 1.5;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: clamp(2rem, 10vw, 2.5rem);
    }
}

/* Stats em layout horizontal para tablets pequenos */
@media (min-width: 600px) and (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        max-width: 600px;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
}

/* Dark theme enhancements */
@media (max-width: 768px) {
    .stat-item {
        background: rgba(26, 26, 26, 0.95);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    
    .stat-item:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 12px 40px rgba(0, 212, 255, 0.15),
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        border-color: rgba(0, 212, 255, 0.3);
    }
}

/* Accessibility improvements */
@media (max-width: 768px) {
    .hero-section {
        scroll-margin-top: 80px;
    }
    
    .stat-item {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
    }
    
    .stat-item:focus {
        outline: 2px solid var(--accent-cyan);
        outline-offset: 2px;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
    .hero-badge {
        animation: none;
    }
    
    .stat-item {
        animation: none;
    }
    
    .stat-item::before {
        display: none;
    }
}

/* Loading state */
@media (max-width: 768px) {
    .hero-section.loading .hero-text {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .hero-section.loading .hero-stats {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .hero-section.loaded .hero-text {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.8s ease 0.2s;
    }
    
    .hero-section.loaded .hero-stats {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.8s ease 0.4s;
    }
}