/* ===== AMAZING ANIMATED BACKGROUNDS FOR ALL HERO SECTIONS ===== */

/* Field Service Hero - Network & Mobile Theme */
.field-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.field-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 25%, #40916C 50%, #52B788 75%, #1B4332 100%);
    background-size: 400% 400%;
    animation: fieldGradientShift 16s ease infinite;
}

@keyframes fieldGradientShift {
    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%; }
}

.field-network-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(82, 183, 136, 0.15) 2px, transparent 3px),
        radial-gradient(circle at 75% 75%, rgba(45, 106, 79, 0.12) 2px, transparent 3px),
        radial-gradient(circle at 50% 30%, rgba(64, 145, 108, 0.1) 2px, transparent 3px),
        radial-gradient(circle at 30% 70%, rgba(27, 67, 50, 0.08) 2px, transparent 3px);
    background-size: 100px 100px, 150px 150px, 120px 120px, 80px 80px;
    animation: networkPulse 14s ease-in-out infinite;
}

@keyframes networkPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.field-mobile-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 45%, rgba(82, 183, 136, 0.1) 48%, rgba(82, 183, 136, 0.2) 50%, rgba(82, 183, 136, 0.1) 52%, transparent 55%),
        linear-gradient(-45deg, transparent 40%, rgba(45, 106, 79, 0.08) 47%, rgba(45, 106, 79, 0.15) 50%, rgba(45, 106, 79, 0.08) 53%, transparent 60%);
    background-size: 300% 300%, 250% 250%;
    animation: mobileFlow 18s linear infinite, mobileFlow2 22s linear infinite reverse;
}

@keyframes mobileFlow {
    0% { background-position: -100% -100%, 200% 200%; }
    100% { background-position: 200% 200%, -100% -100%; }
}

@keyframes mobileFlow2 {
    0% { background-position: 200% 0%, -100% 100%; }
    100% { background-position: -100% 200%, 200% -100%; }
}

.field-iot-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(82, 183, 136, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(64, 145, 108, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 60% 20%, rgba(45, 106, 79, 0.08) 0%, transparent 40%);
    animation: iotPulse 12s ease-in-out infinite;
}

@keyframes iotPulse {
    0%, 100% { opacity: 0.6; transform: rotate(0deg); }
    50% { opacity: 1; transform: rotate(2deg); }
}

/* Project Operations Hero - Project Management Theme */
.project-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.project-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7209B7 0%, #560BAD 25%, #480CA8 50%, #3A0CA3 75%, #7209B7 100%);
    background-size: 400% 400%;
    animation: projectGradientShift 17s ease infinite;
}

@keyframes projectGradientShift {
    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%; }
}

.project-timeline-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 48%, rgba(114, 9, 183, 0.2) 49%, rgba(114, 9, 183, 0.2) 51%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(86, 11, 173, 0.15) 49%, rgba(86, 11, 173, 0.15) 51%, transparent 52%);
    background-size: 150px 150px, 200px 200px;
    animation: timelineFlow 20s linear infinite, timelineFlow2 25s linear infinite reverse;
}

@keyframes timelineFlow {
    0% { background-position: 0% 0%, 0% 0%; }
    100% { background-position: 100% 100%, 0% 0%; }
}

@keyframes timelineFlow2 {
    0% { background-position: 0% 0%, 0% 0%; }
    100% { background-position: 0% 0%, 100% 100%; }
}

.project-gantt-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(114, 9, 183, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(72, 12, 168, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(58, 12, 163, 0.06) 0%, transparent 30%);
    animation: ganttPulse 15s ease-in-out infinite;
}

@keyframes ganttPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.project-resource-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(114, 9, 183, 0.05) 45%, rgba(114, 9, 183, 0.1) 50%, rgba(114, 9, 183, 0.05) 55%, transparent 60%),
        linear-gradient(-45deg, transparent 35%, rgba(86, 11, 173, 0.04) 42%, rgba(86, 11, 173, 0.08) 50%, rgba(86, 11, 173, 0.04) 58%, transparent 65%);
    background-size: 400% 400%, 350% 350%;
    animation: resourceFlow 19s linear infinite, resourceFlow2 23s linear infinite reverse;
}

@keyframes resourceFlow {
    0% { background-position: -100% -100%, 200% 200%; }
    100% { background-position: 200% 200%, -100% -100%; }
}

@keyframes resourceFlow2 {
    0% { background-position: 200% 0%, -100% 100%; }
    100% { background-position: -100% 200%, 200% -100%; }
}

/* Managed Services Hero - Cloud Services Theme */
.managed-services-hero-section {
    min-height: 70vh;
    height: 70vh;
    position: relative;
    background: #0A1F44;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.managed-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.managed-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    text-align: left;
    height: 100%;
    padding: 80px 20px;
}

.managed-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A1F44 0%, #1e3a8a 25%, #3b82f6 50%, #1d4ed8 75%, #0A1F44 100%);
    background-size: 400% 400%;
    animation: managedGradientShift 19s ease infinite;
}

@keyframes managedGradientShift {
    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%; }
}

.managed-cloud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(29, 78, 216, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 60% 40%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 70%, rgba(30, 58, 138, 0.08) 0%, transparent 35%);
    animation: cloudDrift 16s ease-in-out infinite;
}

@keyframes cloudDrift {
    0%, 100% { opacity: 0.6; transform: translateX(0px) translateY(0px); }
    25% { opacity: 0.8; transform: translateX(10px) translateY(-5px); }
    50% { opacity: 1; transform: translateX(-5px) translateY(8px); }
    75% { opacity: 0.7; transform: translateX(-8px) translateY(-3px); }
}

.managed-server-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 47%, rgba(59, 130, 246, 0.1) 49%, rgba(59, 130, 246, 0.1) 51%, transparent 53%),
        linear-gradient(45deg, transparent 47%, rgba(37, 99, 235, 0.08) 49%, rgba(37, 99, 235, 0.08) 51%, transparent 53%);
    background-size: 120px 120px, 180px 180px;
    animation: serverPulse 13s ease-in-out infinite;
}

@keyframes serverPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.managed-data-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, transparent 45%, rgba(29, 78, 216, 0.06) 48%, rgba(29, 78, 216, 0.12) 50%, rgba(29, 78, 216, 0.06) 52%, transparent 55%),
        linear-gradient(-135deg, transparent 40%, rgba(30, 58, 138, 0.05) 47%, rgba(30, 58, 138, 0.1) 50%, rgba(30, 58, 138, 0.05) 53%, transparent 60%);
    background-size: 350% 350%, 300% 300%;
    animation: dataStream 21s linear infinite, dataStream2 26s linear infinite reverse;
}

@keyframes dataStream {
    0% { background-position: -100% -100%, 200% 200%; }
    100% { background-position: 200% 200%, -100% -100%; }
}

@keyframes dataStream2 {
    0% { background-position: 200% 0%, -100% 100%; }
    100% { background-position: -100% 200%, 200% -100%; }
}

/* Training & Support Hero - Learning Theme */
.training-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.training-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 25%, #FFD23F 50%, #06FFA5 75%, #FF6B35 100%);
    background-size: 400% 400%;
    animation: trainingGradientShift 14s ease infinite;
}

@keyframes trainingGradientShift {
    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%; }
}

.training-knowledge-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 107, 53, 0.12) 2px, transparent 3px),
        radial-gradient(circle at 70% 70%, rgba(247, 147, 30, 0.1) 2px, transparent 3px),
        radial-gradient(circle at 50% 20%, rgba(255, 210, 63, 0.08) 2px, transparent 3px),
        radial-gradient(circle at 20% 80%, rgba(6, 255, 165, 0.06) 2px, transparent 3px);
    background-size: 90px 90px, 120px 120px, 100px 100px, 80px 80px;
    animation: knowledgeFlow 18s ease-in-out infinite;
}

@keyframes knowledgeFlow {
    0%, 100% { opacity: 0.6; transform: rotate(0deg); }
    50% { opacity: 1; transform: rotate(1deg); }
}

.training-learning-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(60deg, transparent 40%, rgba(255, 107, 53, 0.08) 45%, rgba(255, 107, 53, 0.15) 50%, rgba(255, 107, 53, 0.08) 55%, transparent 60%),
        linear-gradient(-60deg, transparent 35%, rgba(6, 255, 165, 0.06) 42%, rgba(6, 255, 165, 0.12) 50%, rgba(6, 255, 165, 0.06) 58%, transparent 65%);
    background-size: 300% 300%, 250% 250%;
    animation: learningFlow 15s linear infinite, learningFlow2 20s linear infinite reverse;
}

@keyframes learningFlow {
    0% { background-position: -100% -100%, 200% 200%; }
    100% { background-position: 200% 200%, -100% -100%; }
}

@keyframes learningFlow2 {
    0% { background-position: 200% 0%, -100% 100%; }
    100% { background-position: -100% 200%, 200% -100%; }
}

.training-support-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 25% 40%, rgba(247, 147, 30, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 75% 60%, rgba(255, 210, 63, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(6, 255, 165, 0.06) 0%, transparent 35%);
    animation: supportPulse 11s ease-in-out infinite;
}

@keyframes supportPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Business Applications Hero - Enterprise Theme */
.business-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.business-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 25%, #60A5FA 50%, #93C5FD 75%, #1E3A8A 100%);
    background-size: 400% 400%;
    animation: businessGradientShift 16s ease infinite;
}

@keyframes businessGradientShift {
    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%; }
}

/* Automation & Analytics Hero - Data Theme */
.automation-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.automation-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A1F44 0%, #1e40af 25%, #3b82f6 50%, #60a5fa 75%, #0A1F44 100%);
    background-size: 400% 400%;
    animation: automationGradientShift 15s ease infinite;
}

@keyframes automationGradientShift {
    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%; }
}

.automation-data-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(37, 99, 235, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 30%, rgba(29, 78, 216, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(30, 58, 138, 0.08) 0%, transparent 35%);
    animation: dataVisualization 18s ease-in-out infinite;
}

@keyframes dataVisualization {
    0%, 100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.05) rotate(2deg); }
}

.automation-flow-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 48%, rgba(96, 165, 250, 0.1) 50%, transparent 52%),
        linear-gradient(45deg, transparent 48%, rgba(59, 130, 246, 0.08) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(37, 99, 235, 0.06) 50%, transparent 52%);
    background-size: 100px 100px, 150px 150px, 120px 120px;
    animation: workflowFlow 14s linear infinite;
}

@keyframes workflowFlow {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 1000px 1000px, -500px 500px, 800px -800px; }
}

.automation-analytics-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, transparent 40%, rgba(29, 78, 216, 0.08) 47%, rgba(29, 78, 216, 0.15) 50%, rgba(29, 78, 216, 0.08) 53%, transparent 60%),
        linear-gradient(-135deg, transparent 45%, rgba(37, 99, 235, 0.06) 48%, rgba(37, 99, 235, 0.12) 50%, rgba(37, 99, 235, 0.06) 52%, transparent 55%);
    background-size: 300% 300%, 250% 250%;
    animation: analyticsInsights 20s ease-in-out infinite, analyticsInsights2 25s ease-in-out infinite reverse;
}

@keyframes analyticsInsights {
    0%, 100% { background-position: 0% 0%, 100% 100%; }
    50% { background-position: 100% 100%, 0% 0%; }
}

@keyframes analyticsInsights2 {
    0%, 100% { opacity: 0.6; transform: translateX(0px); }
    50% { opacity: 0.9; transform: translateX(10px); }
}

/* Automation Analytics Hero - Workflow Theme */
.automation-analytics-hero-section {
    min-height: 70vh;
    height: 70vh;
    position: relative;
    background: #0A1F44;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.automation-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.automation-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    text-align: left;
    height: 100%;
    padding: 80px 20px;
}

/* Applications Development Hero - Code Theme */
.development-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.development-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #065F46 0%, #059669 25%, #10B981 50%, #6EE7B7 75%, #065F46 100%);
    background-size: 400% 400%;
    animation: developmentGradientShift 17s ease infinite;
}

@keyframes developmentGradientShift {
    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%; }
}

/* Universal Hero Content Styling */
.hero-left-content {
    flex: 1;
    max-width: 550px;
}

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.hero-cta-group .btn-primary,
.hero-cta-group .btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-cta-group .btn-primary {
    background: linear-gradient(135deg, #0078d4, #00bcf2);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 120, 212, 0.4);
}

.hero-cta-group .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 120, 212, 0.8);
}

.hero-cta-group .btn-secondary {
    background: transparent;
    color: #00bcf2;
    border: 2px solid #00bcf2;
}

.hero-cta-group .btn-secondary:hover {
    background: #00bcf2;
    color: white;
    transform: translateY(-3px);
}

.hero-right-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
    animation: imageFloat 8s ease-in-out infinite;
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.hero-main-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-main-title {
        font-size: 3rem;
    }
    .hero-visual {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-cta-group {
        flex-direction: column;
        gap: 10px;
    }
    .hero-cta-group .btn-primary,
    .hero-cta-group .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
