/* Hero Section */
.hero {
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Neural Network Background Container */
.neural-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Neural Canvas */
.neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: all;
}

/* Central Orange Glow */
.central-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 113, 7, 0.15) 0%,
        rgba(255, 113, 7, 0.08) 30%,
        rgba(255, 113, 7, 0.03) 60%,
        transparent 100%
    );
    border-radius: 50%;
    animation: centralPulse 4s ease-in-out infinite alternate;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.hero h1 {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span:not(.highlight) {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #e0e0e0 10%,
        #cccccc 20%,
        #b3b3b3 30%,
        #999999 40%,
        #808080 50%,
        #999999 60%,
        #b3b3b3 70%,
        #cccccc 80%,
        #e0e0e0 90%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .highlight {
    color: #FF7107;
    font-style: italic;
    text-shadow: 0 0 20px rgba(255, 113, 7, 0.3);
}

/* Dynamic Word Animation */
.dynamic-word {
    display: inline-block;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.dynamic-word.word-exit {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

.dynamic-word.word-enter {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    animation: wordFadeIn 0.3s ease-out forwards;
}

.hero .tagline {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

/* Animations */
@keyframes centralPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes wordFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Optimizations Only */
@media (max-width: 768px) {
    /* GPU acceleration for mobile */
    .neural-canvas {
        transform: translateZ(0);
        will-change: transform;
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .central-glow {
        width: 400px;
        height: 300px;
        /* Simplify animation on mobile */
        animation: none;
        opacity: 0.9;
        transform: translate(-50%, -50%);
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .hero .tagline {
        font-size: 20px;
    }
    
    /* Disable hover effects on touch devices */
    @media (hover: none) and (pointer: coarse) {
        .dynamic-word {
            transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
        }
        
        .dynamic-word.word-exit,
        .dynamic-word.word-enter {
            animation-duration: 0.2s;
        }
    }
}

/* Very small mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
        padding: 0 20px;
    }
    
    .hero .tagline {
        font-size: 18px;
        padding: 0 20px;
    }
    
    .central-glow {
        width: 90vw;
        height: 50vh;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .central-glow,
    .dynamic-word {
        animation: none !important;
        transition: none !important;
    }
    
    .central-glow {
        opacity: 0.9;
    }
}