/* FILE: css/components/hero.css */
.hero-section {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.rank-tag {
    font-family: var(--font-tech);
    color: var(--accent-primary);
    font-size: 0.9rem;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--accent-primary);
    text-shadow: 0 0 15px rgba(157, 78, 221, 0.4);
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards 0.2s;
}

/* Glitch Effect */
.glitch-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.9;
    margin-bottom: 30px;
    color: var(--text-main);
    text-transform: uppercase;
    position: relative;
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards 0.4s;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-void);
    opacity: 0.8;
}

.glitch-text::before {
    color: #0ff;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    animation: glitch-1 2.5s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: #f0f;
    z-index: -2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    animation: glitch-2 3s infinite linear alternate-reverse;
}

.outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.hero-section:hover .outline {
    -webkit-text-stroke: 1px var(--accent-primary);
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
}

.hero-mission {
    max-width: 550px;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards 0.6s;
}

/* --- STATS --- */
.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards 0.8s;
    margin-bottom: 40px;
}

.stat {
    font-family: var(--font-tech);
    font-size: 0.9rem;
    color: var(--text-main);
    /* Ensures loose text stays white */
}

/* Label (first span) gets accent/neon color */
.stat span:first-child {
    color: var(--accent-primary);
    font-weight: 700;
    margin-right: 8px;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

/* Value (second span or specific ids) stays white */
.stat span:nth-child(2),
.stat span[id] {
    color: var(--text-main) !important;
    /* Force white */
    text-shadow: none;
    font-weight: 400;
}

/* Hero Contact Bar */
.hero-contact {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards 1s;
}

.hero-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-contact a:hover {
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    box-shadow: var(--glow-subtle);
    transform: translateY(-2px);
}

@keyframes glitch-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 1px);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, -1px);
    }

    100% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(1px, -1px);
    }
}

@keyframes glitch-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, -1px);
    }

    100% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(-2px, 1px);
    }
}
