/* =================================
   AURORA WAVE ANIMATED BACKGROUNDS
   GVOGS Professional Staffing
   
   Features:
   - Magical aurora shimmer effects
   - Sparkling particle animations
   - Multi-colored wave gradients
   - Stable background that never fades
   - Compatible with all hero sections
================================= */

/* ========================================
   AURORA WAVE HERO SECTIONS - UNIVERSAL
   ======================================== */
.hero-section,
.page-header,
.services-hero,
.hero-animated-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* AURORA WAVE BACKGROUND - Stable base */
    background-color: #1e3c72 !important; /* Deep blue fallback */
    background-image: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    background-attachment: fixed;
    padding-top: 80px; /* Account for navbar */
}

/* Specific overrides for page headers */
.page-header {
    min-height: 60vh; /* Smaller height for page headers */
    padding-top: 120px;
    padding-bottom: 4rem;
}

/* ========================================
   AURORA WAVE ANIMATIONS - PRIMARY LAYER
   ======================================== */
.hero-section::before,
.page-header::before,
.services-hero::before,
.hero-animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(64, 224, 208, 0.3) 25%, 
            rgba(255, 105, 180, 0.3) 50%, 
            rgba(255, 215, 0, 0.3) 75%, 
            transparent 100%
        );
    animation: auroraWave 8s ease-in-out infinite;
    filter: blur(2px);
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   AURORA WAVE ANIMATIONS - SECONDARY LAYER
   ======================================== */
.hero-section::after,
.page-header::after,
.services-hero::after,
.hero-animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            transparent 0%, 
            rgba(75, 0, 130, 0.2) 25%, 
            rgba(0, 191, 255, 0.2) 50%, 
            rgba(50, 205, 50, 0.2) 75%, 
            transparent 100%
        );
    animation: auroraWave 8s ease-in-out infinite;
    animation-delay: -2s;
    filter: blur(1px);
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   HERO CONTENT CONTAINERS - ALWAYS VISIBLE
   ======================================== */
.hero-content,
.hero-section .container,
.page-header .container,
.services-hero .container,
.hero-animated-bg .container {
    position: relative;
    z-index: 10; /* Always on top */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid layout for hero content */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ========================================
   HERO TEXT - GUARANTEED VISIBILITY
   ======================================== */
.hero-section h1,
.page-header h1,
.services-hero h1,
.hero-animated-bg h1,
.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff !important; /* Force white text */
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important; /* Strong shadow for readability */
    position: relative;
    z-index: 15;
}

.hero-section p,
.page-header p,
.services-hero p,
.hero-animated-bg p,
.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.98) !important; /* Near-white for visibility */
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    position: relative;
    z-index: 15;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1rem;
    opacity: 0.8;
    position: relative;
    z-index: 15;
}

.breadcrumbs a {
    color: #ffffff !important;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.breadcrumbs span {
    color: rgba(255, 255, 255, 0.7) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   HERO ACTIONS & STATS
   ======================================== */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 15;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 15;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   HERO VISUAL ELEMENTS
   ======================================== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.professional-illustration {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    position: relative;
    z-index: 12;
}

.professional-illustration:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.illustration-icon {
    font-size: 4rem;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.illustration-text span {
    display: block;
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ========================================
   FLOATING ELEMENTS - STABLE VISIBILITY
   ======================================== */
.floating-person,
.floating-elements .floating-person,
.hero-section .floating-person,
.page-header .floating-person,
.services-hero .floating-person {
    position: absolute;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 2rem;
    animation: stableFloat 6s ease-in-out infinite;
    z-index: 3;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Specific person variations with aurora colors */
.floating-person.person-1,
.person-1 { 
    top: 20%;
    left: 10%;
    color: rgba(255, 215, 0, 0.8) !important; /* Golden */
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation-delay: 0s;
}

.floating-person.person-2,
.person-2 { 
    top: 60%;
    right: 15%;
    color: rgba(64, 224, 208, 0.8) !important; /* Turquoise */
    text-shadow: 0 0 15px rgba(64, 224, 208, 0.6);
    animation-delay: -2s;
}

.floating-person.person-3,
.person-3 { 
    top: 80%;
    left: 20%;
    color: rgba(255, 105, 180, 0.8) !important; /* Hot pink */
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.6);
    animation-delay: -4s;
}

.floating-person.person-4,
.person-4 { 
    top: 30%;
    right: 10%;
    color: rgba(50, 205, 50, 0.8) !important; /* Lime green */
    text-shadow: 0 0 15px rgba(50, 205, 50, 0.6);
    animation-delay: -1s;
}

/* FontAwesome icons inside floating elements */
.floating-person i,
.floating-elements i {
    color: inherit;
    text-shadow: inherit;
}

/* ========================================
   BACKGROUND SHAPES - AURORA THEMED
   ======================================== */
.shape,
.background-shapes .shape,
.hero-section .shape,
.page-header .shape,
.services-hero .shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50%;
    animation: auroraShapePulse 6s ease-in-out infinite;
    z-index: 1;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Specific shape variations with aurora colors */
.shape.shape-1,
.shape-1 { 
    width: 200px;
    height: 200px;
    top: 10%;
    right: 20%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05)) !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    animation-delay: 0s;
}

.shape.shape-2,
.shape-2 { 
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.15), rgba(64, 224, 208, 0.05)) !important;
    box-shadow: 0 0 30px rgba(64, 224, 208, 0.3);
    animation-delay: -2s;
}

.shape.shape-3,
.shape-3 { 
    width: 120px;
    height: 120px;
    top: 50%;
    left: 5%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.15), rgba(255, 105, 180, 0.05)) !important;
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
    animation-delay: -4s;
}

.shape.shape-4,
.shape-4 { 
    width: 180px;
    height: 180px;
    top: 75%;
    right: 25%;
    background: radial-gradient(circle, rgba(50, 205, 50, 0.15), rgba(50, 205, 50, 0.05)) !important;
    box-shadow: 0 0 30px rgba(50, 205, 50, 0.3);
    animation-delay: -1s;
}

.shape.shape-5,
.shape-5 { 
    width: 100px;
    height: 100px;
    top: 15%;
    left: 30%;
    background: radial-gradient(circle, rgba(75, 0, 130, 0.15), rgba(75, 0, 130, 0.05)) !important;
    box-shadow: 0 0 30px rgba(75, 0, 130, 0.3);
    animation-delay: -3s;
}

.shape.shape-6,
.shape-6 { 
    width: 140px;
    height: 140px;
    bottom: 40%;
    right: 5%;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.15), rgba(0, 191, 255, 0.05)) !important;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.3);
    animation-delay: -5s;
}

/* ========================================
   SPARKLE EFFECTS FOR AURORA WAVES
   ======================================== */
.aurora-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.aurora-sparkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: sparkleWave 4s linear infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.aurora-sparkle:nth-child(odd) {
    animation-delay: -1s;
    background: rgba(255, 215, 0, 0.9);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.aurora-sparkle:nth-child(even) {
    animation-delay: -2s;
    background: rgba(64, 224, 208, 0.9);
    box-shadow: 0 0 8px rgba(64, 224, 208, 0.6);
}

.aurora-sparkle:nth-child(3n) {
    animation-delay: -3s;
    background: rgba(255, 105, 180, 0.9);
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.6);
}

/* ========================================
   AURORA ANIMATIONS - NEVER FADE
   ======================================== */
@keyframes auroraWave {
    0%, 100% {
        transform: translateX(-100%) skewX(20deg);
        opacity: 0.6; /* Never fully invisible */
    }
    50% {
        transform: translateX(100%) skewX(-20deg);
        opacity: 1; /* Maximum visibility */
    }
}

@keyframes sparkleWave {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    25% {
        opacity: 0.8;
        transform: scale(1) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1) rotate(270deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

@keyframes stableFloat {
    0%, 100% { 
        transform: translateY(0px); 
        opacity: 0.8; /* Increased for aurora theme */
    }
    50% { 
        transform: translateY(-20px); 
        opacity: 1; /* Maximum visibility */
    }
}

@keyframes auroraShapePulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.2; /* Minimum opacity - always visible */
    }
    33% {
        transform: scale(1.05) rotate(120deg);
        opacity: 0.35;
    }
    66% {
        transform: scale(1.1) rotate(240deg);
        opacity: 0.3;
    }
}

/* ========================================
   BUTTON STYLES FOR HERO
   ======================================== */
.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    z-index: 20;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

.hero-actions .btn-outline {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff;
    color: #ffffff !important;
}

.hero-actions .btn-lg {
    padding: 1.25rem 2rem;
    font-size: 1rem;
}

/* ========================================
   ANIMATED BACKGROUND CONTAINERS
   ======================================== */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-elements,
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* ========================================
   UNIVERSAL TEXT OVERRIDE - FORCE WHITE TEXT
   ======================================== */
.hero-section *,
.page-header *,
.services-hero *,
.hero-animated-bg * {
    color: inherit;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p,
.hero-section span,
.page-header h1,
.page-header h2, 
.page-header h3,
.page-header p,
.page-header span,
.services-hero h1,
.services-hero h2,
.services-hero h3,
.services-hero p,
.services-hero span,
.hero-animated-bg h1,
.hero-animated-bg h2,
.hero-animated-bg h3,
.hero-animated-bg p,
.hero-animated-bg span,
.hero-description,
.stat-number,
.stat-label,
.illustration-text span {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

/* ========================================
   MOBILE RESPONSIVE - ALL HERO TYPES
   ======================================== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-section h1,
    .page-header h1,
    .services-hero h1,
    .hero-animated-bg h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p,
    .page-header p,
    .services-hero p,
    .hero-animated-bg p {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .floating-person {
        font-size: 1.5rem;
        opacity: 0.6 !important;
    }
}

@media (max-width: 480px) {
    .hero-section h1,
    .page-header h1,
    .services-hero h1,
    .hero-animated-bg h1 {
        font-size: 2rem;
    }
    
    .hero-section p,
    .page-header p,
    .services-hero p,
    .hero-animated-bg p {
        font-size: 1rem;
    }
    
    .floating-person {
        font-size: 1.2rem;
        opacity: 0.5 !important;
    }
    
    .shape {
        opacity: 0.1 !important;
    }
}

/* ========================================
   EMERGENCY FALLBACKS 
   ======================================== */
.hero-section.fallback,
.page-header.fallback,
.services-hero.fallback {
    background: #1e3c72 !important; /* Aurora base color */
}

/* ========================================
   ACCESSIBILITY - REDUCE MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .aurora-sparkle,
    .floating-person,
    .shape {
        animation: none;
    }
    
    .hero-section::before,
    .hero-section::after,
    .page-header::before,
    .page-header::after,
    .services-hero::before,
    .services-hero::after,
    .hero-animated-bg::before,
    .hero-animated-bg::after {
        animation: none;
        opacity: 0.3;
    }
}
