/* 
====================================================================
INDEX.CSS - HOMEPAGE STYLES
====================================================================
*/

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, 
        rgba(10, 10, 30, 0.7) 0%, 
        rgba(5, 5, 15, 0.85) 50%, 
        rgba(0, 0, 5, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 var(--space-lg);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-2xl);
    position: relative;
    background: linear-gradient(45deg, 
        var(--white) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 25px rgba(255, 255, 255, 0.5),
        0 0 50px rgba(255, 255, 255, 0.3),
        0 0 75px rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-title {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
}

.hero-title.animate-in {
    animation: heroTitleReveal 15s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

@keyframes heroTitleReveal {
    0% {
        text-shadow: 
            0 0 50px rgba(255, 255, 255, 0.8),
            0 0 100px rgba(255, 255, 255, 0.6),
            0 0 150px rgba(255, 255, 255, 0.4);
    }
    50% {
        text-shadow: 
            0 0 75px rgba(255, 255, 255, 0.9),
            0 0 125px rgba(255, 255, 255, 0.7),
            0 0 200px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 
            0 0 25px rgba(255, 255, 255, 0.5),
            0 0 50px rgba(255, 255, 255, 0.3),
            0 0 75px rgba(255, 255, 255, 0.1);
    }
}

/* ===== MAIN CONTENT GRID ===== */
.grid {
    display: grid;
    gap: var(--space-2xl);
}

.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.stat-card {
    background: var(--gray-900);
    border: 2px solid var(--gray-800);
    border-radius: 12px;
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.8s;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--white);
    box-shadow: var(--shadow-glow);
    background: var(--gray-800);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.feature-item {
    background: var(--gray-900);
    border: 2px solid var(--gray-700);
    border-radius: 16px;
    padding: var(--space-2xl);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--white), transparent, var(--white));
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.feature-item:hover {
    transform: translateY(-6px);
    border-color: var(--white);
    box-shadow: var(--shadow-magnetic);
    background: var(--gray-800);
}

.feature-item:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    margin-bottom: var(--space-lg);
    transition: all 0.3s ease;
    will-change: auto;
    transform: none !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon svg {
    color: var(--white);
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
}

.feature-item:hover .feature-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) !important;
}

.feature-item:hover .feature-icon svg {
    color: var(--white);
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== TYPOGRAPHY UTILITIES ===== */
.text-4xl {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.text-xl {
    font-size: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-secondary {
    color: var(--gray-600);
}

.mb-2 {
    margin-bottom: var(--space-xs);
}

.mb-4 {
    margin-bottom: var(--space-md);
}

.mb-6 {
    margin-bottom: var(--space-lg);
}

.mb-8 {
    margin-bottom: var(--space-xl);
}

.mb-16 {
    margin-bottom: var(--space-4xl);
}

/* ===== BACKGROUND UTILITIES ===== */
.bg-gray-50 {
    background-color: var(--gray-900);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 90vh;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: var(--space-md);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: var(--space-md);
    }
    
    .stat-card {
        padding: var(--space-md);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .feature-item {
        padding: var(--space-xl);
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 var(--space-sm);
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }
    
    .stat-card {
        padding: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .feature-item {
        padding: var(--space-lg);
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.hero,
.stat-card,
.feature-item {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.stat-card,
.feature-item {
    opacity: 0;
    transform: translateY(30px);
    animation: scrollReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes scrollReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}