/* ==========================================================================
   ADVANCED HERO SECTION WITH PARTICLE EFFECTS
   ========================================================================== */

/* Advanced Hero Container */
.hero-advanced {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(0, 242, 169, 0.1) 0%, transparent 50%);
}

/* Particle System */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(even) {
    background: var(--accent-tertiary);
    animation-duration: 20s;
    animation-delay: -5s;
}

.particle:nth-child(3n) {
    background: #FFB86C;
    animation-duration: 25s;
    animation-delay: -10s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Geometric Background Elements */
.hero-geometry {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.geometric-shape {
    position: absolute;
    border: 1px solid rgba(0, 242, 169, 0.2);
    border-radius: 50%;
    animation: geometricFloat 20s ease-in-out infinite;
}

.geometric-shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.geometric-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    border-radius: 20%;
}

.geometric-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: -10s;
    border-radius: 0;
    transform: rotate(45deg);
}

.geometric-shape:nth-child(4) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: -15s;
    border-radius: 30%;
}

@keyframes geometricFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-40px) rotate(270deg);
        opacity: 0.6;
    }
}

/* Advanced Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: var(--space-2xl);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
    backdrop-filter: blur(20px);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 1s ease-out;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, 
        var(--text-primary) 0%, 
        var(--accent-primary) 30%, 
        var(--accent-tertiary) 60%, 
        var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-stat {
    text-align: center;
    padding: var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hero-stat::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    animation: statRotate 8s linear infinite;
}

.hero-stat:hover::before {
    opacity: 0.1;
}

.hero-stat:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-accent);
}

@keyframes statRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 2;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Advanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease-out 1s both;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--accent-primary);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: currentColor;
    border-radius: 1px;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* 3D Holographic Effect */
.hero-hologram {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    perspective: 1000px;
    animation: fadeInRight 1s ease-out 0.8s both;
}

.hologram-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: hologramRotate 20s linear infinite;
}

.hologram-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 242, 169, 0.1), 
        rgba(76, 205, 196, 0.1));
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.hologram-face:nth-child(1) { transform: rotateY(0deg) translateZ(100px); }
.hologram-face:nth-child(2) { transform: rotateY(90deg) translateZ(100px); }
.hologram-face:nth-child(3) { transform: rotateY(180deg) translateZ(100px); }
.hologram-face:nth-child(4) { transform: rotateY(270deg) translateZ(100px); }

@keyframes hologramRotate {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(90deg) rotateX(10deg); }
    50% { transform: rotateY(180deg) rotateX(0deg); }
    75% { transform: rotateY(270deg) rotateX(-10deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}

/* Matrix Rain Effect */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.matrix-column {
    position: absolute;
    top: -100%;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1;
    animation: matrixFall linear infinite;
}

@keyframes matrixFall {
    0% {
        top: -100%;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-hologram {
        width: 300px;
        height: 300px;
        right: 5%;
    }
}

@media (max-width: 768px) {
    .hero-hologram {
        display: none;
    }
    
    .hero-content {
        padding: var(--space-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .geometric-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}

/* Performance Optimizations */
.hero-advanced * {
    will-change: auto;
}

.hero-title,
.hero-subtitle,
.hero-actions,
.hero-stats {
    will-change: transform, opacity;
}

.hologram-container {
    will-change: transform;
}
