/* ============================================
   INDEX.CSS — Home Page Styles
   ============================================ */

/* === BACKGROUND EFFECTS === */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 15% 15%, rgba(212, 168, 83, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 85%, rgba(62, 184, 168, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 168, 83, 0.03) 0%, transparent 60%);
    animation: gradientDrift 25s ease-in-out infinite;
}

@keyframes gradientDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(2%, -1.5%) rotate(0.5deg) scale(1.02); }
    50% { transform: translate(-1%, 2%) rotate(-0.3deg) scale(0.98); }
    75% { transform: translate(-1.5%, -1%) rotate(0.2deg) scale(1.01); }
}

/* Floating Particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleRise linear infinite;
    box-shadow: 0 0 6px var(--accent-gold);
}

.particle:nth-child(1) { left: 8%; animation-duration: 20s; animation-delay: 0s; }
.particle:nth-child(2) { left: 18%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(3) { left: 28%; animation-duration: 22s; animation-delay: 4s; }
.particle:nth-child(4) { left: 42%; animation-duration: 19s; animation-delay: 1s; }
.particle:nth-child(5) { left: 58%; animation-duration: 21s; animation-delay: 3s; }
.particle:nth-child(6) { left: 72%; animation-duration: 17s; animation-delay: 5s; }
.particle:nth-child(7) { left: 85%; animation-duration: 23s; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 92%; animation-duration: 20s; animation-delay: 0.5s; }

@keyframes particleRise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
        transform: translateY(95vh) scale(0.5);
    }
    95% {
        opacity: 0.7;
        transform: translateY(-5vh) scale(1);
    }
    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + var(--space-12)) var(--space-12) var(--space-16);
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-20);
    align-items: center;
    width: 100%;
}

/* Hero Text */
.hero-text {
    opacity: 0;
    animation: heroReveal 1s var(--ease-out) 0.2s forwards;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-8);
}

.hero-label::before {
    content: '';
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold));
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 9vw, 6.5rem);
    font-weight: 500;
    line-height: 1.02;
    margin-bottom: var(--space-8);
    letter-spacing: -0.025em;
}

.hero-title .highlight {
    display: block;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-teal) 50%, var(--accent-gold-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s linear infinite;
}

@keyframes textShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-10);
    max-width: 560px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-16);
    margin-bottom: var(--space-12);
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border-muted);
    border-bottom: 1px solid var(--border-muted);
}

.stat {
    position: relative;
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    opacity: 0;
    animation: heroReveal 1s var(--ease-out) 0.4s forwards;
}

.hero-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-teal), var(--accent-gold));
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--accent-teal-muted);
    border: 1px solid rgba(62, 184, 168, 0.3);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--accent-teal);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px var(--accent-teal);
}

.hero-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
}

.hero-card > p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-8);
    font-size: var(--text-base);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tech-tag {
    background: var(--bg-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-muted);
    transition: all var(--duration-base) ease;
}

.tech-tag:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero {
        padding: calc(var(--nav-height) + var(--space-8)) var(--space-8) var(--space-12);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .hero-stats {
        gap: var(--space-10);
    }
    
    .hero-photo {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: calc(var(--nav-height) + var(--space-6)) var(--space-6) var(--space-10);
        min-height: auto;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-8);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .stat-value {
        font-size: var(--text-4xl);
    }
    
    .hero-card {
        padding: var(--space-8);
    }
    
    .hero-photo {
        aspect-ratio: 1/1;
    }
}
