/* Enhanced Background Animations for Global Solutions Industries */

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(0, 68, 204, 0.05) 0%, transparent 50%);
}

/* Floating Orbs - More noticeable */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: float 15s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    top: -200px;
    right: -100px;
    animation-duration: 20s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    bottom: -100px;
    left: -50px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--secondary-color);
    top: 30%;
    left: 15%;
    animation-delay: -10s;
    animation-duration: 18s;
}

/* Glowing Grid Lines - More contrast */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(51, 136, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 136, 255, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
    animation: grid-move 40s linear infinite;
}

/* Floating Particles (Neural/Data feel) */
.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse-particle 4s infinite ease-in-out;
}

.p1 { width: 4px; height: 4px; top: 20%; left: 10%; animation-delay: 0s; }
.p2 { width: 6px; height: 6px; top: 40%; left: 80%; animation-delay: 1s; }
.p3 { width: 3px; height: 3px; top: 70%; left: 30%; animation-delay: 2s; }
.p4 { width: 5px; height: 5px; top: 15%; left: 60%; animation-delay: 0.5s; }
.p5 { width: 4px; height: 4px; top: 85%; left: 75%; animation-delay: 1.5s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 60px) scale(1.2); }
    100% { transform: translate(-20px, 20px) scale(1); }
}

@keyframes grid-move {
    from { background-position: 0 0; }
    to { background-position: 120px 120px; }
}

@keyframes pulse-particle {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(2.5); opacity: 0.7; box-shadow: 0 0 10px var(--accent-color); }
}

/* Scanline Effect */
.scanline {
    position: absolute;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(51, 136, 255, 0.05) 50%, 
        transparent 100%);
    top: -100px;
    left: 0;
    animation: scan-move 10s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scan-move {
    0% { top: -100px; }
    100% { top: 100%; }
}

/* Engineering Section - Realistic Animated Blueprint */
.realistic-bp {
    background-color: #001a4d;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-wall {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: bp-draw-real 12s ease-in-out infinite;
}

.bp-wall.thick {
    stroke-width: 5;
}

.bp-internal {
    fill: none;
    stroke: rgba(255,255,255,0.6);
    stroke-width: 1;
    stroke-dasharray: 5, 3;
}

.bp-door {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 1;
    opacity: 0.7;
}

.bp-window {
    fill: rgba(51, 136, 255, 0.3);
    stroke: #fff;
    stroke-width: 0.5;
}

.bp-anno {
    fill: #fff;
    font-size: 8px;
    font-family: 'Courier New', Courier, monospace;
    opacity: 0.4;
}

@keyframes bp-draw-real {
    0% { stroke-dashoffset: 1200; }
    40%, 100% { stroke-dashoffset: 0; }
}

/* Task Markers with Info */
.bp-task {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    animation: bp-pop-real 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.t1 { animation-delay: 2s; }
.t2 { animation-delay: 5s; }
.t3 { animation-delay: 8s; }

.bp-info {
    display: flex;
    flex-direction: column;
    background: rgba(5, 15, 40, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.bp-id {
    font-size: 0.6rem;
    color: var(--accent-color);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.bp-label {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

@keyframes bp-pop-real {
    to { opacity: 1; transform: translateY(-5px); }
}

.blueprint-scanner {
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    animation: bp-scan-real 6s infinite linear;
    pointer-events: none;
}

@keyframes bp-scan-real {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Informatics Section - Realistic Animated Lab */
.realistic-lab {
    background-color: #0a0f1d;
    background-image: 
        radial-gradient(rgba(0, 136, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 136, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-svg {
    width: 95%;
    height: 95%;
}

.led {
    animation: led-blink-real 1.5s infinite alternate;
}

@keyframes led-blink-real {
    0% { opacity: 1; filter: brightness(1.8) drop-shadow(0 0 3px currentColor); }
    100% { opacity: 0.4; filter: brightness(1); }
}

.l-fast { animation-duration: 0.3s !important; }
.l-med { animation-duration: 0.7s !important; }
.l-slow { animation-duration: 1.5s !important; }

/* Script Terminal Animation - Fast Execution */
.script-line {
    opacity: 0;
    animation: script-flow 4s infinite;
}

.l1 { animation-delay: 0.2s; }
.l2 { animation-delay: 1.2s; }
.l3 { animation-delay: 2.2s; }
.l4 { animation-delay: 3.2s; }

@keyframes script-flow {
    0%, 2% { opacity: 0; transform: translateX(-10px); }
    5%, 90% { opacity: 0.9; transform: translateX(0); }
    95%, 100% { opacity: 0; transform: translateX(10px); }
}

.screen-glow {
    animation: scr-glow-real 5s infinite alternate ease-in-out;
}

@keyframes scr-glow-real {
    0% { fill: #000a1a; }
    100% { fill: #001a33; }
}

.code-lines {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: code-type-real 6s steps(40) infinite;
}

.code-lines.alt {
    animation-delay: 3s;
}

@keyframes code-type-real {
    0% { stroke-dashoffset: 150; }
    40%, 100% { stroke-dashoffset: 0; }
}

.steam {
    stroke: #fff;
    stroke-width: 1;
    stroke-dasharray: 12;
    stroke-dashoffset: 12;
    opacity: 0.4;
    animation: steam-anim 3s infinite linear;
}

@keyframes steam-anim {
    0% { stroke-dashoffset: 12; opacity: 0.4; transform: translateY(0); }
    100% { stroke-dashoffset: -24; opacity: 0; transform: translateY(-10px); }
}

.dev-head {
    animation: dev-bob-real 5s infinite ease-in-out;
}

@keyframes dev-bob-real {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-3px) rotate(1deg); }
}

.lab-scanner {
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 136, 255, 0.05), transparent);
    animation: lab-scan-real 8s infinite linear;
    pointer-events: none;
}

@keyframes lab-scan-real {
    0% { left: -100%; }
    100% { left: 200%; }
}
