/* ===== UNIFIED HERO SECTION STYLES ===== */
/* Beautiful, clean design for AI, Training, Automation, and Managed Services pages */

/* ===== AI VIRTUAL AGENTS HERO ===== */
.ai-agents-hero-section {
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: #0A2248;
    margin-bottom: 80px;
}

.ai-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.ai-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A2248;
}

.ai-circuit-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ai-circuit-layer::before,
.ai-circuit-layer::after {
    content: '';
    position: absolute;
    animation: shapeFloat 20s ease-in-out infinite;
}

/* AI - Hexagons filled with purple gradient */
.ai-circuit-layer::before {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 5%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(139, 92, 246, 0.2));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-delay: 0s;
}

.ai-circuit-layer::after {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 8%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-delay: -10s;
}

/* Additional AI shapes */
.ai-animated-bg::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(219, 39, 119, 0.15));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob 15s ease-in-out infinite;
}

.ai-animated-bg::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    bottom: 5%;
    right: 30%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: rotate360 25s linear infinite;
}

@keyframes blob {
    0%, 100% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    33% { 
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: rotate(120deg) scale(1.1);
    }
    66% { 
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(240deg) scale(0.9);
    }
}

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-energy-layer::before,
.ai-energy-layer::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: orbFloat 18s ease-in-out infinite;
}

.ai-energy-layer::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    top: -200px;
    left: -200px;
}

.ai-energy-layer::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent);
    bottom: -200px;
    right: -200px;
    animation-delay: -9s;
}

.ai-flow-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.6;
}

/* ===== TRAINING & SUPPORT HERO ===== */
.training-support-hero-section {
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: #0A2248;
}

.training-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.training-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A2248;
}

.training-circuit-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.training-circuit-layer::before,
.training-circuit-layer::after {
    content: '';
    position: absolute;
    animation: shapeFloat 20s ease-in-out infinite;
}

/* Training - Rounded squares filled with orange/yellow gradient */
.training-circuit-layer::before {
    width: 220px;
    height: 220px;
    top: 12%;
    right: 10%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.2));
    border-radius: 40px;
    transform: rotate(15deg);
    animation-delay: 0s;
}

.training-circuit-layer::after {
    width: 160px;
    height: 160px;
    bottom: 20%;
    left: 5%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.15));
    border-radius: 30px;
    transform: rotate(-20deg);
    animation-delay: -8s;
}

/* Additional Training shapes */
.training-animated-bg::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    top: 50%;
    right: 25%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.training-animated-bg::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    bottom: 10%;
    right: 8%;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 170px solid rgba(99, 102, 241, 0.2);
    animation: triangleFloat 18s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.25; }
    50% { transform: scale(1.3); opacity: 0.4; }
}

@keyframes triangleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(10deg); }
    66% { transform: translateY(-15px) rotate(-10deg); }
}

.training-energy-layer::before,
.training-energy-layer::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: orbFloat 18s ease-in-out infinite;
}

.training-energy-layer::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    top: -200px;
    left: -200px;
}

.training-energy-layer::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent);
    bottom: -200px;
    right: -200px;
    animation-delay: -9s;
}

.training-flow-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.6;
}

/* ===== AUTOMATION & ANALYTICS HERO - NEW DESIGN ===== */
.automation-analytics-hero-section {
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #0A2248 0%, #0d2d5e 50%, #0A2248 100%);
}

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

.automation-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Floating Shapes - Only shapes animate, no grid */
.automation-circuit-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Shape 1: Large Blue Circle - Top Left */
.automation-circuit-layer::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.08));
    border-radius: 50%;
    animation: floatDiagonal 25s ease-in-out infinite;
}

/* Shape 2: Medium Purple Hexagon - Top Right */
.automation-circuit-layer::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    top: 15%;
    right: 8%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(147, 51, 234, 0.1));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: rotateFloat 30s linear infinite;
}

/* Shape 3: Small Cyan Square - Middle Left */
.automation-animated-bg::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    top: 40%;
    left: 10%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(8, 145, 178, 0.12));
    border-radius: 20px;
    transform: rotate(25deg);
    animation: scaleRotate 20s ease-in-out infinite;
}

/* Shape 4: Large Orange Circle - Bottom Right */
.automation-animated-bg::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: -80px;
    right: -80px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.15), rgba(249, 115, 22, 0.08));
    border-radius: 50%;
    animation: pulseMove 28s ease-in-out infinite;
}

/* Additional decorative shapes */
.automation-energy-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Shape 5: Small Green Triangle - Bottom Left */
.automation-energy-layer::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    bottom: 20%;
    left: 15%;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(34, 197, 94, 0.15);
    animation: floatUpDown 22s ease-in-out infinite;
}

/* Shape 6: Medium Pink Diamond - Center Right */
.automation-energy-layer::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(219, 39, 119, 0.1));
    transform: rotate(45deg);
    border-radius: 15px;
    animation: diamondSpin 35s linear infinite;
}

/* No grid layer - removed */
.automation-flow-layer {
    display: none;
}

/* Animations for new shapes */
@keyframes floatDiagonal {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 40px) scale(1.1); }
}

@keyframes rotateFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes scaleRotate {
    0%, 100% { transform: rotate(25deg) scale(1); }
    50% { transform: rotate(205deg) scale(1.2); }
}

@keyframes pulseMove {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    50% { transform: translate(-30px, -30px) scale(1.15); opacity: 0.22; }
}

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

@keyframes diamondSpin {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

/* ===== MANAGED SERVICES HERO ===== */
.managed-services-hero-section {
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: #0A2248;
}

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

.managed-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A2248;
}

.managed-circuit-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.managed-circuit-layer::before,
.managed-circuit-layer::after {
    content: '';
    position: absolute;
    animation: shapeFloat 20s ease-in-out infinite;
}

/* Managed - Pentagons and parallelograms filled with teal/emerald gradient */
.managed-circuit-layer::before {
    width: 190px;
    height: 190px;
    top: 15%;
    right: 8%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.3), rgba(13, 148, 136, 0.2));
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation-delay: 0s;
}

.managed-circuit-layer::after {
    width: 160px;
    height: 140px;
    bottom: 22%;
    left: 12%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15));
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    transform: skewX(-10deg);
    animation-delay: -7s;
}

/* Additional Managed shapes */
.managed-animated-bg::before {
    content: '';
    position: absolute;
    width: 135px;
    height: 135px;
    top: 48%;
    right: 28%;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.25), rgba(249, 115, 22, 0.15));
    clip-path: circle(50% at 50% 50%);
    animation: ringPulse 10s ease-in-out infinite;
    box-shadow: inset 0 0 20px rgba(251, 146, 60, 0.3);
}

.managed-animated-bg::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    bottom: 12%;
    right: 15%;
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-top: 160px solid rgba(168, 85, 247, 0.2);
    animation: triangleFlip 16s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        box-shadow: inset 0 0 20px rgba(251, 146, 60, 0.3);
    }
    50% { 
        transform: scale(1.2) rotate(180deg); 
        box-shadow: inset 0 0 40px rgba(251, 146, 60, 0.5);
    }
}

@keyframes triangleFlip {
    0%, 100% { transform: rotateY(0deg) rotateZ(0deg); }
    33% { transform: rotateY(180deg) rotateZ(120deg); }
    66% { transform: rotateY(360deg) rotateZ(240deg); }
}

.managed-energy-layer::before,
.managed-energy-layer::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: orbFloat 18s ease-in-out infinite;
}

.managed-energy-layer::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    top: -200px;
    left: -200px;
}

.managed-energy-layer::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent);
    bottom: -200px;
    right: -200px;
    animation-delay: -9s;
}

.managed-flow-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.6;
}

/* ===== SHARED ANIMATIONS ===== */
@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -40px) rotate(90deg) scale(1.1); }
    50% { transform: translate(-20px, -20px) rotate(180deg) scale(0.9); }
    75% { transform: translate(-40px, 30px) rotate(270deg) scale(1.05); }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    33% { transform: translate(50px, -60px) scale(1.2); opacity: 0.6; }
    66% { transform: translate(-40px, 40px) scale(0.9); opacity: 0.3; }
}

/* ===== SHARED HERO CONTENT STYLES ===== */
.ai-hero-content,
.training-hero-content,
.automation-hero-content,
.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;
}

.hero-left-content {
    flex: 1;
    max-width: 550px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-badge .service-icon-svg {
    width: 24px;
    height: 24px;
}

.hero-main-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(135deg, #00bcf2, #0078d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
}

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

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1200px) {
    .ai-hero-content,
    .training-hero-content,
    .automation-hero-content,
    .managed-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-left-content {
        max-width: 100%;
    }

    .hero-main-title {
        font-size: 3rem;
    }

    .hero-visual {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .ai-agents-hero-section,
    .training-support-hero-section,
    .automation-analytics-hero-section .automation-main-content,
    .managed-services-hero-section .hero-content-wrapper {
        padding: 60px 1rem;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-main-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-visual {
        max-width: 90%;
    }
}

@media (max-width: 575px) {
    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .hero-main-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* ===== AI CAPABILITIES SECTION SPACING ===== */
.ai-capabilities-section {
    margin-top: 60px;
    padding-top: 40px;
}

@media (max-width: 768px) {
    .ai-capabilities-section {
        margin-top: 40px;
        padding-top: 30px;
    }
}
