/**
 * Hero Section UI Enhancement - Complete Overhaul
 * KalviYogi - Premium Black & Gold Theme
 * Version 2.0 - Visual tweaks, Performance, Mobile, New Elements
 */

/* =====================================================
   PERFORMANCE: GPU Hints & Containment
   ===================================================== */
.hero-section {
    contain: layout style;
}

.hero-content,
.hero-stats,
.hero-cta,
.proof-badge,
.stat-item {
    will-change: transform, opacity;
}

/* =====================================================
   1. ANIMATED GRADIENT TEXT - "Learn 10× faster"
   ===================================================== */
.hero-title .gold {
    background: linear-gradient(90deg,
            #d4af37 0%,
            #ffd700 25%,
            #ffec8b 50%,
            #ffd700 75%,
            #d4af37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineGradient 4s ease-in-out infinite;
}

@keyframes shineGradient {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* =====================================================
   2. STAGGERED ENTRANCE ANIMATIONS
   ===================================================== */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    animation: heroFadeInUp 0.6s ease-out 0.1s both;
}

.hero-title {
    animation: heroFadeInUp 0.6s ease-out 0.2s both;
    line-height: 1.3 !important;
}

.hero-title-english {
    display: block;
    font-weight: 700;
    font-size: 0.85em;
    margin-top: 0.25rem;
    color: var(--text-primary);
}

.hero-subheadline {
    animation: heroFadeInUp 0.6s ease-out 0.3s both;
    font-size: 1.15rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.hero-subtitle {
    animation: heroFadeInUp 0.6s ease-out 0.4s both;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    animation: heroFadeInUp 0.6s ease-out 0.5s both;
}

.hero-premium-link {
    animation: heroFadeInUp 0.6s ease-out 0.55s both;
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.hero-premium-link:hover {
    text-decoration: underline;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.hero-premium-micro,
.hero-testimonial {
    animation: heroFadeInUp 0.6s ease-out 0.6s both;
    text-align: center;
    font-size: 14px;
    opacity: 0.85;
    margin-top: 0.75rem;
    color: var(--text-secondary);
}

.hero-testimonial {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.hero-stats {
    animation: heroFadeInUp 0.6s ease-out 0.7s both;
}

.social-proof {
    animation: heroFadeInUp 0.6s ease-out 0.8s both;
}

/* =====================================================
   3. GLASS-MORPHISM STAT CARDS
   ===================================================== */
.hero-stats {
    justify-content: center !important;
}

.stat-item {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow */
.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(212, 175, 55, 0.15);
}

.stat-item:hover::before {
    opacity: 1;
}

/* Icon glow on hover */
.stat-item i {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.stat-item:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

/* =====================================================
   4. ENHANCED CTA BUTTONS
   ===================================================== */
.hero-cta .btn-primary {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Shimmer effect */
.hero-cta .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.6s ease;
}

.hero-cta .btn-primary:hover::after {
    left: 100%;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
}

.hero-cta .btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Outline button enhancement */
.hero-cta .btn-outline {
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.hero-cta .btn-outline:hover {
    transform: translateY(-2px);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.6);
}

/* =====================================================
   5. SCROLL INDICATOR (NEW ELEMENT)
   ===================================================== */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
    animation: scrollBounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.hero-scroll-indicator i {
    font-size: 1rem;
    color: var(--gold);
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* =====================================================
   6. FLOATING AUDIO ICONS (NEW ELEMENT)
   ===================================================== */
.hero-floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(212, 175, 55, 0.15);
    animation: floatIcon 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 25%;
    right: 12%;
    animation-delay: 1.5s;
    font-size: 1.2rem;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 8%;
    animation-delay: 3s;
    font-size: 1.8rem;
}

.floating-icon:nth-child(4) {
    bottom: 20%;
    right: 15%;
    animation-delay: 4.5s;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
        opacity: 0.25;
    }
}

/* =====================================================
   7. PROOF BADGES ENHANCEMENT
   ===================================================== */
.proof-badge {
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.proof-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.proof-badge:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
}

.proof-badge:hover::before {
    opacity: 1;
}

/* Staggered animation for badges */
.social-proof .proof-badge:nth-child(1) {
    animation-delay: 0.8s;
}

.social-proof .proof-badge:nth-child(2) {
    animation-delay: 0.9s;
}

.social-proof .proof-badge:nth-child(3) {
    animation-delay: 1s;
}

/* =====================================================
   8. HERO BADGE (PILL) ENHANCEMENT
   ===================================================== */
.hero-badge {
    cursor: default;
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* Subtle pulse animation */
.hero-badge::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    opacity: 0;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}

/* =====================================================
   9. ACCESSIBILITY - Focus States
   ===================================================== */
.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
}

/* =====================================================
   10. MOBILE RESPONSIVENESS - Tablet (768px)
   ===================================================== */
@media (max-width: 768px) {
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem !important;
    }

    .stat-item {
        flex: unset !important;
        text-align: center;
        padding: 0.875rem 0.75rem;
    }

    .hero-title {
        font-size: 1.875rem !important;
    }

    .hero-cta .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    /* Reduce floating icons on tablet */
    .floating-icon {
        font-size: 1rem;
        opacity: 0.1;
    }

    /* Reduce animation intensity */
    .hero-orbs,
    .hero-particles {
        opacity: 0.5;
    }
}

/* =====================================================
   11. MOBILE RESPONSIVENESS - Small (480px)
   ===================================================== */
@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Fifth stat spans full width */
    .hero-stats .stat-item:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 200px;
        margin: 0 auto;
    }

    .hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        min-height: 52px;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-premium-micro,
    .hero-testimonial {
        font-size: 12px;
    }

    .hero-subheadline {
        font-size: 1rem;
    }

    /* Hide heavy animations on mobile for performance */
    .hero-particles,
    .hero-floating-icons {
        display: none !important;
    }

    .hero-orbs {
        opacity: 0.3;
    }

    /* Reduce animation delays */
    .hero-badge,
    .hero-title,
    .hero-subheadline,
    .hero-subtitle,
    .hero-cta,
    .hero-premium-link,
    .hero-premium-micro,
    .hero-testimonial,
    .hero-stats,
    .social-proof {
        animation-delay: 0s !important;
        animation-duration: 0.4s;
    }

    /* Scroll indicator */
    .hero-scroll-indicator {
        bottom: 1rem;
        font-size: 0.7rem;
    }
}

/* =====================================================
   12. PERFORMANCE: Reduced Motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {

    .hero-title .gold,
    .hero-badge::after,
    .hero-scroll-indicator,
    .floating-icon {
        animation: none !important;
    }

    .hero-badge,
    .hero-title,
    .hero-subheadline,
    .hero-subtitle,
    .hero-cta,
    .hero-premium-link,
    .hero-premium-micro,
    .hero-testimonial,
    .hero-stats,
    .social-proof {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

/* =====================================================
   13. HERO LOCATION TAG
   ===================================================== */
.hero-location {
    animation: heroFadeInUp 0.6s ease-out 0.9s both;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-location i {
    color: var(--gold);
}