/* ============================================
   HERO - FULL ANIMATIONS (FIXED)
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(120% 120% at 55% 0%, #1E3A8A 0%, #0F172A 45%, #090D16 100%);
    overflow: hidden;
    padding-block: 90px 60px;
}

/* ============================================
   SPARKLES BACKGROUND
============================================ */
.hero-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFB703;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255,183,3,0.4);
    animation: sparkleFloat 8s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 30%; right: 15%; animation-delay: 1.5s; width: 6px; height: 6px; }
.sparkle:nth-child(3) { top: 60%; left: 10%; animation-delay: 3s; }
.sparkle:nth-child(4) { top: 80%; right: 25%; animation-delay: 0.5s; width: 3px; height: 3px; }
.sparkle:nth-child(5) { top: 45%; left: 45%; animation-delay: 2s; width: 5px; height: 5px; background: #FF2A00; box-shadow: 0 0 10px 3px rgba(255,42,0,0.5); }
.sparkle:nth-child(6) { top: 15%; right: 40%; animation-delay: 4s; width: 3px; height: 3px; }
.sparkle:nth-child(7) { top: 70%; left: 35%; animation-delay: 1s; width: 5px; height: 5px; background: #FDE047; }
.sparkle:nth-child(8) { top: 50%; right: 5%; animation-delay: 2.5s; }

@keyframes sparkleFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 1; 
    }
    25% { 
        transform: translate(-20px, -30px) scale(1.5); 
        opacity: 0.8; 
    }
    50% { 
        transform: translate(20px, -50px) scale(0.8); 
        opacity: 1; 
    }
    75% { 
        transform: translate(-10px, -20px) scale(1.3); 
        opacity: 0.9; 
    }
}

/* ============================================
   FLOATING ICONS
============================================ */
.floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.float-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatIcon 6s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(15deg) scale(1.1); }
}

/* ============================================
   AMBIENT GLOW
============================================ */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255,42,0,.18) 0%, transparent 55%),
        radial-gradient(circle at 75% 30%, rgba(255,183,3,.14) 0%, transparent 55%),
        radial-gradient(circle at 60% 80%, rgba(37,99,235,.12) 0%, transparent 55%),
        radial-gradient(circle at 20% 70%, rgba(255,183,3,.06) 0%, transparent 40%);
    filter: blur(60px);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes heroGlow {
    0%   { opacity: .6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* ============================================
   CONTAINER
============================================ */
.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

/* ============================================
   CONTENT
============================================ */
.hero-content {
    text-align: left;
}

/* ============================================
   SUBTITLE - NO TYPING (FIXED)
============================================ */
.hero-subtitle {
    display: inline-block;
    background: rgba(255,183,3,.12);
    border: 1px solid rgba(255,183,3,.38);
    backdrop-filter: blur(10px);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: var(--pill);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    max-width: fit-content;
    animation: none !important;
    width: auto !important;
}

.hero-subtitle::after {
    display: none;
}

/* ============================================
   HEADING - Staggered Animation
============================================ */
.hero-content h1 span {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-content h1 span:nth-child(1) { animation-delay: 0.2s; }
.hero-content h1 span:nth-child(2) { animation-delay: 0.5s; }
.hero-content h1 span:nth-child(3) { animation-delay: 0.8s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero-content h1 span {
    display: block;
    background: linear-gradient(135deg, #FDE047 0%, #FFB703 45%, #FF2A00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h1 span:nth-child(1) { 
    -webkit-text-fill-color: #ffffff; 
    background: none; 
}
.hero-content h1 span:nth-child(2) { 
    opacity: .85; 
}
.hero-content h1 span:nth-child(3) {
    background: var(--grad-flame);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 12px rgba(255,183,3,.4));
}

.hero-content > p {
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s ease 1.2s forwards;
}

/* ============================================
   BUTTONS
============================================ */
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 1.5s forwards;
}

.hero-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-flame);
    color: var(--navy) !important;
    font-weight: 800;
    font-size: 1rem;
    padding: 15px 34px;
    border-radius: var(--pill);
    box-shadow: 0 10px 28px rgba(255,183,3,.38);
    transition: transform var(--ease), box-shadow var(--ease);
    position: relative;
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 10px 28px rgba(255,183,3,.38); 
    }
    50% { 
        box-shadow: 0 10px 40px rgba(255,183,3,.7), 0 0 60px rgba(255,183,3,.2); 
    }
}

.hero-primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px rgba(255,183,3,.55);
}

.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 15px 28px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--pill);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transition: all var(--ease);
}

.hero-secondary-btn:hover {
    border-color: var(--gold);
    background: rgba(255,183,3,0.1);
    transform: translateY(-3px);
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.hero-secondary-btn:hover .btn-arrow {
    transform: translateX(6px);
}

/* ============================================
   STATS COUNTERS
============================================ */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    animation: fadeUp 0.8s ease 1.8s forwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    color: #94A3B8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    color: rgba(255,255,255,0.1);
    font-size: 1.2rem;
}

/* ============================================
   HERO IMAGE + RING
============================================ */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    overflow: visible;
    padding: 20px;
}

.hero-ring {
    position: absolute;
    width: 380px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: rotateRing 20s linear infinite;
    pointer-events: none;
}

.hero-ring span {
    position: absolute;
    font-size: 1.4rem;
    color: rgba(255,183,3,0.4);
    animation: ringPulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255,183,3,0.2);
}

.hero-ring span:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.hero-ring span:nth-child(2) { top: 14.6%; right: 14.6%; animation-delay: 0.25s; }
.hero-ring span:nth-child(3) { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 0.5s; }
.hero-ring span:nth-child(4) { bottom: 14.6%; right: 14.6%; animation-delay: 0.75s; }
.hero-ring span:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 1s; }
.hero-ring span:nth-child(6) { bottom: 14.6%; left: 14.6%; animation-delay: 1.25s; }
.hero-ring span:nth-child(7) { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 1.5s; }
.hero-ring span:nth-child(8) { top: 14.6%; left: 14.6%; animation-delay: 1.75s; }

@keyframes rotateRing {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ringPulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.9; 
        transform: scale(1.3); 
    }
}

.hero-logo {
    width: 100%;
    max-width: 420px;
    max-height: 280px;
    object-fit: contain;
    display: block;
    filter:
        drop-shadow(0 0 40px rgba(255,183,3,.32))
        drop-shadow(0 0 80px rgba(255,42,0,.18));
    animation: heroFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(2deg); }
}

/* ============================================
   SCROLL INDICATOR
============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 3;
    animation: bounceDown 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,183,3,0.5), transparent);
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   RESPONSIVE - TABLET
============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-content { order: 2; text-align: center; }
    .hero-image { order: 1; }
    .hero-buttons { justify-content: center; }
    .hero-content > p { margin-inline: auto; }
    .hero-stats { justify-content: center; }
    
    .hero-logo {
        max-width: 280px;
        max-height: 186px;
    }
    
    .hero-ring {
        width: 300px;
        height: 300px;
    }
    .hero-ring span { font-size: 1.1rem; }
    
    .floating-icons { display: none; }
    .scroll-indicator { display: none; }
}

/* ============================================
   RESPONSIVE - MOBILE
============================================ */
@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding-block: 80px 40px;
    }
    
    .hero-logo {
        max-width: 200px;
        max-height: 140px;
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
    
    .hero-content > p {
        font-size: 0.85rem;
        max-width: 300px;
    }
    
    .hero-primary-btn {
        font-size: 0.85rem;
        padding: 12px 24px;
    }
    
    .hero-secondary-btn {
        font-size: 0.8rem;
        padding: 12px 20px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .stat-divider { display: none; }
    
    /* ✅ Ring visible & rotating on mobile */
    .hero-ring {
        width: 220px;
        height: 220px;
    }
    .hero-ring span { 
        font-size: 0.9rem; 
        display: block !important;
    }
    
    .sparkle { display: none; }
    .hero-subtitle { font-size: 0.6rem; padding: 4px 12px; }
}

/* ============================================
   RESPONSIVE - SMALL PHONES
============================================ */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-ring {
        width: 160px;
        height: 160px;
    }
    .hero-ring span { 
        font-size: 0.7rem; 
    }
}

/* ============================================
   DARK MODE SUPPORT
============================================ */
@media (prefers-color-scheme: dark) {
    .hero {
        background: radial-gradient(120% 120% at 55% 0%, #0F172A 0%, #090D16 45%, #04060A 100%);
    }
}