
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-animation:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(0deg, transparent 24px, rgba(255, 255, 255, 0.05) 25px, transparent 26px),
            linear-gradient(90deg, transparent 24px, rgba(255, 255, 255, 0.05) 25px, transparent 26px);
    background-size: 25px 25px;
    opacity: 0.4;
}

/* Enhanced hero circuit animations */
.hero-circuit {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.hero-circuit-curved {
    border-radius: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.hero-circuit-zigzag {
    clip-path: polygon(0 0, 20% 100%, 40% 0, 60% 100%, 80% 0, 100% 100%);
    height: 3px;
}

.hero-circuit-branching:after {
    content: '';
    position: absolute;
    width: 70%;
    height: 1px;
    background: inherit;
    top: 10px;
    left: 30%;
    transform: rotate(30deg);
}

.circuit-pulse {
    animation: circuitPulse 4s infinite;
}

.hero-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.node-pulse-fast {
    animation: heroNodePulse 2s infinite;
}

.node-pulse-slow {
    animation: heroNodePulse 4s infinite;
}

.node-blink {
    animation: nodeBlink 3s infinite;
}

.hero-packet {
    position: absolute;
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1));
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 0.7;
}

.hero-packet-horizontal {
    animation: packetHorizontal 6s linear infinite;
}

.hero-packet-vertical {
    animation: packetVertical 7s linear infinite;
}

.hero-packet-diagonal {
    animation: packetDiagonal 8s linear infinite;
}

.hero-packet-curved {
    animation: packetCurved 9s linear infinite;
}

.packet-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.hero-junction {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
    animation: junctionActivate 5s infinite;
}

.hero-cluster {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: clusterPulse 6s infinite;
}

/* Animation keyframes */
@keyframes circuitPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.5; }
}

@keyframes heroNodePulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.8); opacity: 0.8; }
}

@keyframes nodeBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.9; }
}

@keyframes packetHorizontal {
    0% { left: -5%; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { left: 105%; opacity: 0; }
}

@keyframes packetVertical {
    0% { top: -5%; left: 50%; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 105%; left: 50%; opacity: 0; }
}

@keyframes packetDiagonal {
    0% { left: -5%; top: -5%; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { left: 105%; top: 105%; opacity: 0; }
}

@keyframes packetCurved {
    0% { left: 0%; top: 50%; opacity: 0; }
    25% { left: 25%; top: 20%; opacity: 0.8; }
    50% { left: 50%; top: 50%; opacity: 0.8; }
    75% { left: 75%; top: 80%; opacity: 0.8; }
    100% { left: 100%; top: 50%; opacity: 0; }
}

@keyframes junctionActivate {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    10% { transform: scale(2.5); opacity: 0.8; }
    20% { transform: scale(1); opacity: 0.5; }
    30% { transform: scale(1.8); opacity: 0.6; }
    40% { transform: scale(1); opacity: 0.3; }
}

@keyframes clusterPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.6; }
}
@keyframes heroNodePulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.8); opacity: 0.8; }
}

@keyframes heroPacketFlow {
    0% {
        left: -5%;
        top: 10%;
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    45% {
        left: 50%;
        top: 50%;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        left: 105%;
        top: 90%;
        opacity: 0;
    }
}

/* Make text gradient more visible against the background */
.text-gradient {
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Improve the hero-btn-outline style */
.hero-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 12px 36px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-btn-outline:hover {
    color: var(--primary);
    background: white;
    border-color: white;
    transform: translateY(-5px);
}
/* Add these CSS custom property default values */
.tech-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    animation: nodePulse 3s infinite;
    /* Define default value for --delay */
    --delay: 0s;
    animation-delay: var(--delay);
}

/* Define default values for data node transform variables */
.data-node {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.4);
    animation: floatNode 10s linear infinite;
    /* Define default values */
    --x: 100px;
    --y: -100px;
}

/* Add missing keyframe animation for nodePulse */
@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.9; }
}

/* Add missing keyframe animation for blink */
@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
.server-visualization {
    width: 100%;
    height: 380px;
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
}

.server-rack {
    width: 80%;
    height: 85%;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    position: relative; /* Change from absolute to relative */
    margin: 7% auto; /* Replace positioning with margin */
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid rgba(71, 85, 105, 0.5);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4) inset;
    z-index: 2;
}

.server-unit {
    height: 13%;
    background: linear-gradient(90deg, #1e293b, #334155);
    margin: 5px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
    border: 1px solid #475569;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.server-unit:hover {
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.server-unit.active {
    background: linear-gradient(90deg, #334155, #2563eb);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.5); }
    50% { box-shadow: 0 0 15px rgba(37, 99, 235, 0.8); }
    100% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.5); }
}

.server-leds {
    display: flex;
    gap: 5px;
}

.led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 5px;
}

.led.green {
    background-color: #10b981;
    box-shadow: 0 0 5px #10b981;
}

.led.amber {
    background-color: #f59e0b;
    box-shadow: 0 0 5px #f59e0b;
}

.led.red {
    background-color: #ef4444;
    box-shadow: 0 0 5px #ef4444;
}

.blink-slow {
    animation: blink 3s infinite;
}

.blink-medium {
    animation: blink 1.5s infinite;
}

.blink-fast {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.server-details {
    margin-left: 12px;
    font-family: monospace;
    font-size: 10px;
}

.server-name {
    font-weight: bold;
    color: #94a3b8;
}

.server-status {
    font-size: 8px;
    color: #64748b;
}

.server-unit.active .server-status {
    color: #93c5fd;
}

.server-slots {
    position: absolute;
    right: 15px;
    display: flex;
    gap: 10px;
}

.slot {
    width: 25px;
    height: 10px;
    background-color: #1f2937;
    border-radius: 2px;
}

.slot.active {
    background-color: #2563eb;
    box-shadow: 0 0 5px #3b82f6;
}

/* Circuit board background */
.circuit-board {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
            radial-gradient(#3b82f620 2px, transparent 2px),
            linear-gradient(to right, #3b82f610 1px, transparent 1px),
            linear-gradient(to bottom, #3b82f610 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 20px 20px;
    opacity: 0.2;
    z-index: 1;
}

/* Status monitor */
.status-monitor {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 120px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 6px;
    padding: 8px;
    border: 1px solid #475569;
    z-index: 3;
}

.monitor-header {
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
    font-weight: bold;
    margin-bottom: 6px;
    font-family: monospace;
}

.monitor-metrics {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 5px;
}

.metric-label {
    font-size: 8px;
    color: #cbd5e1;
    width: 25px;
    font-family: monospace;
}

.metric-bar {
    height: 6px;
    background: #334155;
    border-radius: 3px;
    flex-grow: 1;
    overflow: hidden;
}

.metric-value {
    height: 100%;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    border-radius: 3px;
    animation: pulse-metric 2s infinite;
}

@keyframes pulse-metric {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Connection lines with improved styling */
.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.5), rgba(37, 99, 235, 0.1));
    z-index: 1;
}

.line-1 {
    width: 70%;
    top: 20%;
    left: 15%;
    transform: rotate(5deg);
}

.line-2 {
    width: 60%;
    top: 40%;
    left: 20%;
    transform: rotate(-8deg);
}

.line-3 {
    width: 80%;
    top: 60%;
    left: 10%;
    transform: rotate(3deg);
}

.line-4 {
    width: 50%;
    top: 75%;
    left: 25%;
    transform: rotate(-5deg);
}

.line-5 {
    width: 40%;
    top: 85%;
    left: 30%;
    transform: rotate(6deg);
}

/* Enhanced data packets */
.data-packet {
    position: absolute;
    width: 15px;
    height: 4px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.8), rgba(37, 99, 235, 0.2));
    border-radius: 5px;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.5));
    z-index: 3;
}

/* Network nodes with labels */
.network-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}

.node-label {
    position: absolute;
    font-size: 8px;
    color: #94a3b8;
    font-family: monospace;
    white-space: nowrap;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.node-1 {
    top: 20%;
    left: 15%;
    animation: nodePulse 2s infinite;
}

.node-2 {
    top: 40%;
    right: 25%;
    animation: nodePulse 2.5s infinite;
    animation-delay: 0.5s;
}

.node-3 {
    bottom: 30%;
    left: 25%;
    animation: nodePulse 3s infinite;
    animation-delay: 1s;
}

.node-4 {
    bottom: 20%;
    right: 15%;
    animation: nodePulse 2.2s infinite;
    animation-delay: 1.5s;
}

@keyframes nodePulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Add the flow animations from your current code */
/* plus two new packet animations */
.packet-9 {
    animation: flow9 3.5s infinite;
    animation-delay: 0.8s;
}

.packet-10 {
    animation: flow10 4s infinite;
    animation-delay: 1.7s;
}

@keyframes flow9 {
    0% { left: 15%; bottom: 20%; opacity: 0; width: 5px; }
    20% { left: 30%; bottom: 30%; opacity: 1; width: 12px; }
    40% { left: 45%; bottom: 35%; opacity: 1; width: 15px; }
    60% { left: 60%; bottom: 30%; opacity: 1; width: 12px; }
    80% { left: 75%; bottom: 25%; opacity: 1; width: 8px; }
    100% { left: 85%; bottom: 20%; opacity: 0; width: 5px; }
}

@keyframes flow10 {
    0% { right: 15%; top: 70%; opacity: 0; width: 5px; }
    20% { right: 30%; top: 65%; opacity: 1; width: 10px; }
    40% { right: 45%; top: 60%; opacity: 1; width: 15px; }
    60% { right: 60%; top: 65%; opacity: 1; width: 12px; }
    80% { right: 75%; top: 70%; opacity: 1; width: 8px; }
    100% { right: 85%; top: 75%; opacity: 0; width: 5px; }
}


.about-section, .services-section, .contact-section {
    position: relative;
    overflow: hidden;
}

.tech-bg-elements, .services-bg, .contact-bg-elements {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}



/* Hero Background Animation Elements */
.hero-circuit {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 1px;
    z-index: 1;
}

.hero-circuit-straight {
    height: 1px;
}

.hero-circuit-curved {
    height: 1px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
}

.hero-circuit-zigzag {
    height: 3px;
    background-image: linear-gradient(45deg, transparent 33%, rgba(255, 255, 255, 0.15) 33%, rgba(255, 255, 255, 0.15) 66%, transparent 66%);
    background-size: 10px 100%;
}

.hero-circuit-branching::before,
.hero-circuit-branching::after {
    content: '';
    position: absolute;
    height: 1px;
    width: 50%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    top: 0;
    transform-origin: left;
}

.hero-circuit-branching::before {
    transform: rotate(30deg);
}

.hero-circuit-branching::after {
    transform: rotate(-30deg);
}

.circuit-pulse {
    animation: pulseLine 3s infinite;
}

.hero-node {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.node-pulse-fast {
    animation: pulseNode 2s infinite;
}

.node-pulse-slow {
    animation: pulseNode 4s infinite;
}

.node-blink {
    animation: blinkNode 3s infinite;
}

.hero-packet {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    border-radius: 4px;
    z-index: 3;
}

.hero-packet-horizontal {
    animation: flowHorizontal 5s linear infinite;
}

.hero-packet-vertical {
    animation: flowVertical 5s linear infinite;
    width: 2px !important;
    height: 10px !important;
}

.hero-packet-diagonal {
    animation: flowDiagonal 5s linear infinite;
}

.hero-packet-curved {
    animation: flowCurved 5s linear infinite;
}

.packet-glow {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.hero-junction {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    animation: pulseJunction 4s infinite;
    z-index: 2;
}

.hero-cluster {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulseCluster 6s infinite;
    z-index: 1;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: 20px 20px;
    z-index: 0;
}

/* Animations for hero elements */
@keyframes pulseLine {
    0% { opacity: 0.05; }
    50% { opacity: 0.2; }
    100% { opacity: 0.05; }
}

@keyframes pulseNode {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.3; }
}

@keyframes blinkNode {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.6; }
}

@keyframes flowHorizontal {
    0% { left: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes flowVertical {
    0% { top: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes flowDiagonal {
    0% { top: 0; left: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; left: 100%; opacity: 0; }
}

@keyframes flowCurved {
    0% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(200px) translateY(100px) rotate(180deg); opacity: 0; }
}

@keyframes pulseJunction {
    0% { transform: scale(1); box-shadow: 0 0 5px rgba(255, 255, 255, 0.4); }
    50% { transform: scale(1.5); box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 5px rgba(255, 255, 255, 0.4); }
}

@keyframes pulseCluster {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.8); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.2; }
}
