/* ===== POWER PLATFORM HERO SECTION - AMAZING ANIMATED BACKGROUND ===== */

.power-platform-hero-section {
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

/* ===== POWER PLATFORM ANIMATED BACKGROUND - REDESIGNED ===== */
.power-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Static Color Base - Clean Professional Background */
.power-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A2248;
}

/* Geometric Shapes Layer - Floating circles and polygons */
.power-circuit-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.power-circuit-layer::before,
.power-circuit-layer::after {
    content: '';
    position: absolute;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: shapeFloat 20s ease-in-out infinite;
}

.power-circuit-layer::before {
    width: 400px;
    height: 400px;
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.power-circuit-layer::after {
    width: 300px;
    height: 300px;
    bottom: -10%;
    left: -5%;
    animation-delay: -10s;
}

@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); }
}

/* Glowing Orbs Layer - Soft ambient light effects */
.power-energy-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.power-energy-layer::before,
.power-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;
}

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

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

@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; }
}

/* Beautiful Grid Layer */
.power-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;
}

.power-flow-layer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: lightRaySlide 10s ease-in-out infinite;
    transform: translateY(-50%);
}

.power-flow-layer::after {
    content: '';
    position: absolute;
    top: 30%;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: lightRaySlide 12s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes lightRaySlide {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ===== HERO CONTENT ===== */
.power-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;
}

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

/* Breadcrumb */
.hero-breadcrumb {
    margin-bottom: 20px;
}

.hero-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-breadcrumb .breadcrumb-item a:hover {
    color: #00bcf2;
}

.hero-breadcrumb .breadcrumb-item.active {
    color: white;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(116, 39, 116, 0.3), rgba(90, 45, 145, 0.3));
    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);
    animation: badgeGlow 3s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% { box-shadow: 0 0 20px rgba(116, 39, 116, 0.3); }
    100% { box-shadow: 0 0 30px rgba(90, 45, 145, 0.5); }
}

.hero-badge i {
    animation: boltSpin 2s ease-in-out infinite;
}

@keyframes boltSpin {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1);
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(116, 39, 116, 0.2); }
    100% { text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 120, 212, 0.4); }
}

.text-gradient {
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #f1f5f9 20%, 
        #e2e8f0 40%, 
        #cbd5e1 60%, 
        #94a3b8 80%, 
        #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
    display: inline-block;
    text-shadow: none;
}

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

.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);
    animation: subtitleFade 6s ease-in-out infinite alternate;
}

@keyframes subtitleFade {
    0% { opacity: 0.9; }
    100% { opacity: 1; }
}

.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;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-cta-group .btn-primary {
    background: linear-gradient(135deg, #742774, #5A2D91);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(116, 39, 116, 0.4);
    animation: powerButtonPulse 3s ease-in-out infinite;
}

@keyframes powerButtonPulse {
    0%, 100% { box-shadow: 0 5px 15px rgba(116, 39, 116, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(116, 39, 116, 0.7); }
}

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

.hero-cta-group .btn-secondary {
    background: transparent;
    color: #00bcf2;
    border: 2px solid #00bcf2;
    box-shadow: 0 0 10px rgba(0, 188, 242, 0.3);
}

.hero-cta-group .btn-secondary:hover {
    background: #00bcf2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 188, 242, 0.5);
}

.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: powerImageFloat 10s ease-in-out infinite;
}

@keyframes powerImageFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(1deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    75% { transform: translateY(-25px) rotate(-1deg); }
}

.hero-main-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(116, 39, 116, 0.3);
    animation: powerImageShadow 5s ease-in-out infinite alternate;
}

@keyframes powerImageShadow {
    0% { 
        box-shadow: 
            0 20px 50px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(116, 39, 116, 0.3);
    }
    100% { 
        box-shadow: 
            0 25px 60px rgba(0, 0, 0, 0.4),
            0 0 50px rgba(0, 120, 212, 0.5);
    }
}

/* Add power circuit overlay */
.hero-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: 
        radial-gradient(circle at 20% 20%, rgba(116, 39, 116, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(0, 120, 212, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 60% 40%, rgba(90, 45, 145, 0.1) 0%, transparent 20%);
    border-radius: 25px;
    animation: powerOverlay 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes powerOverlay {
    0%, 100% { opacity: 0.6; transform: rotate(0deg); }
    33% { opacity: 1; transform: rotate(3deg); }
    66% { opacity: 0.8; transform: rotate(-2deg); }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .power-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

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

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

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

    .hero-cta-group {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .power-platform-hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .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;
    }

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