/* Hero Section */
.hero {
  position: relative;
  background-image: 
    linear-gradient(rgba(10, 10, 46, 0.75), rgba(10, 10, 46, 0.85)),
    url('/assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-1);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(var(--color-accent-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--color-accent-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.15) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.hero-particles::before {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.hero-particles::after {
    bottom: 20%;
    right: 15%;
    animation-delay: 7s;
    background: radial-gradient(circle, rgba(var(--color-secondary-accent-rgb), 0.12) 0%, transparent 70%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: var(--z-10);
    text-align: center;
    max-width: 800px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: -0.03em;
    margin: 0;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.78);
    max-width: 600px;
    margin: 0;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-4);
}

.hero-badges {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-2);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--text-sm);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-text {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--color-accent) 0%, transparent 100%);
    position: relative;
}

.scroll-arrow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

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

/* Stats Bar */
.stats-bar {
    background-color: var(--color-primary);
    padding: var(--space-12) 0;
    position: relative;
    z-index: var(--z-10);
}

[data-theme="light"] .stats-bar {
    background-color: var(--bg-body-alt);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-accent);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: var(--text-base);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.05) 0%, rgba(var(--color-secondary-accent-rgb), 0.03) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-learning-paths {
    padding-bottom: var(--space-24);
    overflow: visible;
}

.feature-grid,
.learning-path-grid {
    align-items: stretch;
    overflow: visible;
}

.learning-path-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.text-muted {
    color: var(--text-tertiary);
}

/* Card Meta */
.card-meta {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--text-5xl);
    }
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        padding-bottom: var(--space-16);
    }
    .hero-title {
        font-size: var(--text-4xl);
    }
    .hero-subtitle {
        font-size: var(--text-base);
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .hero-scroll-indicator {
        display: none;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    .stat-number {
        font-size: var(--text-3xl);
    }
    .stat-label {
        font-size: var(--text-sm);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-grid,
    .hero-particles::before,
    .hero-particles::after,
    .hero-scroll-indicator {
        animation: none;
    }
}
