/**
 * Enhanced Hero Section Styling System
 * Complex animations and hero effects
 * Version: 1.1.0 - Optimized & Secured
 * CSP-Safe: No inline styles, external resources validated
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
    --hero-bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1e3a8a 75%, #1a1a2e 100%);
    --hero-title-gradient: linear-gradient(135deg, #ffffff, #e2e8f0, #cbd5e1, #94a3b8);
    --hero-btn-primary-bg: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --hero-btn-primary-hover: linear-gradient(135deg, #4f7dc9, #9d6bff);
    --hero-btn-secondary-bg: rgba(255, 255, 255, 0.1);
    --hero-btn-secondary-hover: rgba(255, 255, 255, 0.2);
    --hero-feature-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --hero-floating-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    --hero-text-primary: #f1f5f9;
    --hero-text-secondary: #cbd5e1;
    --hero-text-muted: #94a3b8;
    --hero-border-color: rgba(255, 255, 255, 0.3);
    --hero-border-hover: rgba(255, 255, 255, 0.5);
    --hero-transition: 0.3s ease;
    --hero-animation-gradient: 15s;
    --hero-animation-float: 20s;
    --hero-animation-text: 6s;
    --hero-focus-outline: 2px solid #3b82f6;
    --hero-focus-offset: 2px;
}

/* ============================================
   ENHANCED HERO SECTION
   ============================================ */

.enhanced-hero {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1e3a8a 75%, #1a1a2e 100%); /* fallback */
    background: var(--hero-bg-gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite; /* fallback */
    animation: gradientShift var(--hero-animation-gradient) ease infinite;
    contain: layout style;
    will-change: background-position;
}

/* SECURITY: Block injected inline styles */
.enhanced-hero[style*="background"],
.enhanced-hero[style*="animation"] {
    animation: gradientShift var(--hero-animation-gradient) ease infinite !important;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.enhanced-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.10) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite; /* fallback */
    animation: heroFloat var(--hero-animation-float) ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

@keyframes heroFloat {
    0%, 100% { 
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translate3d(20px, -20px, 0) scale(1.05);
        opacity: 0.8;
    }
}

/* ============================================
   HERO CONTENT
   ============================================ */

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #e2e8f0, #cbd5e1, #94a3b8); /* fallback */
    background: var(--hero-title-gradient);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTextShine 6s ease-in-out infinite; /* fallback */
    animation: heroTextShine var(--hero-animation-text) ease-in-out infinite;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

@keyframes heroTextShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #cbd5e1; /* fallback */
    color: var(--hero-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ============================================
   HERO CTA BUTTONS
   ============================================ */

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease; /* fallback */
    transition: all var(--hero-transition);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    backface-visibility: hidden;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6); /* fallback */
    background: var(--hero-btn-primary-bg);
    color: white;
    border: 2px solid transparent;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1); /* fallback */
    background: var(--hero-btn-secondary-bg);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3); /* fallback */
    border: 2px solid var(--hero-border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-btn:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.hero-btn:focus-visible {
    outline: 2px solid #3b82f6; /* fallback */
    outline: var(--hero-focus-outline);
    outline-offset: 2px; /* fallback */
    outline-offset: var(--hero-focus-offset);
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, #4f7dc9, #9d6bff); /* fallback */
    background: var(--hero-btn-primary-hover);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2); /* fallback */
    background: var(--hero-btn-secondary-hover);
    border-color: rgba(255, 255, 255, 0.5); /* fallback */
    border-color: var(--hero-border-hover);
}

/* ============================================
   HERO FEATURES
   ============================================ */

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.hero-feature {
    text-align: center;
    max-width: 200px;
}

.hero-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); /* fallback */
    background: var(--hero-feature-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
    pointer-events: none;
}

.hero-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9; /* fallback */
    color: var(--hero-text-primary);
    margin-bottom: 0.5rem;
}

.hero-feature-desc {
    font-size: 0.9rem;
    color: #94a3b8; /* fallback */
    color: var(--hero-text-muted);
    line-height: 1.5;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    animation: scrollBounce 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scrollBounce {
    0%, 100% { transform: translate3d(-50%, 0, 0); }
    50% { transform: translate3d(-50%, 10px, 0); }
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.scroll-arrow {
    font-size: 1.5rem;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */

.hero-floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3)); /* fallback */
    background: var(--hero-floating-bg);
    border-radius: 50px;
    padding: 1rem;
    backdrop-filter:
