/* Environmental Intelligence System Styles */
:root {
    --neon-cyan: #00FFFF;
    --neon-purple: #9D00FF;
    --neon-green: #33ff33;
    --neon-orange: #FF9900;
    --neon-yellow: #FFFF00;
    --neon-blue: #0088FF;
    --neon-red: #FF3333;
}

#env-system {
    position: relative;
    overflow: hidden;
}

.env-system-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.env-system-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 1rem;
    border-left: 2px solid var(--neon-cyan);
}

.env-system-description .highlight-text {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    font-weight: bold;
    margin-bottom: 1rem;
}

.env-system-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
    position: relative;
}

.visualization-header {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--neon-cyan);
    margin-bottom: 10px;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.hub-header {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 5px var(--neon-purple);
}

/* Pip-Boy Styles */
.pip-boy-container {
    position: relative;
    width: 300px;
    height: 350px;
    perspective: 1000px;
}

.central-ai-hub {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pip-boy {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: pip-boy-float 4s ease-in-out infinite;
}

@keyframes pip-boy-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.pip-boy-screen {
    width: 180px;
    height: 140px;
    background-color: #0a2a12;
    border: 8px solid #2a3b2d;
    border-radius: 5px;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.screen-content {
    width: 100%;
    height: 100%;
    padding: 5px;
    font-family: 'Space Mono', monospace;
    color: #33ff33;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    animation: screen-flicker 8s infinite;
}

@keyframes screen-flicker {
    0%, 100% { opacity: 1; }
    98% { opacity: 1; }
    99% { opacity: 0.8; }
}

.screen-header {
    text-align: center;
    border-bottom: 1px solid #33ff33;
    padding-bottom: 3px;
    margin-bottom: 5px;
    font-weight: bold;
}

.screen-data {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
}

.data-row {
    display: ffixed;
    justify-content: space-between;
}

.data-label {
    font-weight: bold;
}

.data-value {
    animation: data-update 3s infinite;
}

@keyframes data-update {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.screen-graph {
    flex-grow: 1;
    margin-top: 5px;
    position: relative;
}

.pip-boy-body {
    width: 240px;
    height: 280px;
    background-color: #3a4a3a;
    border-radius: 20px;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.pip-boy-buttons {
    display: flex;
    gap: 10px;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.button {
    width: 15px;
    height: 15px;
    background-color: #222;
    border-radius: 50%;
    border: 2px solid #444;
}

.processing-animation {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-top-color: var(--neon-purple);
    border-radius: 50%;
    animation: spin 3s linear infinite;
    margin: 10px 0;
    box-shadow: 0 0 10px var(--neon-purple);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sensor Network Styles */
.sensor-network {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.sensor {
    width: 60px;
    height: 60px;
    background-color: rgba(10, 20, 40, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.5);
}

.sensor:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.8);
}

.sensor::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(10, 17, 40, 0.9);
    color: var(--neon-cyan);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.sensor:hover::before {
    opacity: 1;
}

.sensor-icon {
    color: var(--neon-cyan);
    font-size: 1.5rem;
    animation: sensor-pulse 2s infinite;
}

@keyframes sensor-pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.sensor-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    z-index: -1;
}

.sensor-waves::before,
.sensor-waves::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--neon-purple);
    opacity: 0;
    animation: wave-out 3s infinite;
}

.sensor-waves::after {
    animation-delay: 1.5s;
}

@keyframes wave-out {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.sensor[data-type="air"] .sensor-icon { color: #00ffff; }
.sensor[data-type="water"] .sensor-icon { color: #00aaff; }
.sensor[data-type="soil"] .sensor-icon { color: #00ff7f; }
.sensor[data-type="light"] .sensor-icon { color: #ffff00; }
.sensor[data-type="weather"] .sensor-icon { color: #ff9900; }

.hub-display {
    width: auto;
    height: auto;
    border-radius: 50%;
    background-color: rgba(10, 17, 40, 0.8);
    border: 3px solid var(--neon-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.5);
    overflow: hidden;
    position: relative;
}

.visualization-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: calc(100% - 30px);
    flex: 1;
}

.prediction-model {
    grid-column: 1 / 3;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(157, 0, 255, 0.3);
    border-radius: 3px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.prediction-model::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 65%, rgba(157, 0, 255, 0.1) 75%, transparent 85%);
    background-size: 200% 200%;
    animation: shimmer 4s infinite;
    z-index: 0;
}

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

/* Data Visualization Components */
.data-visualizer {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-cyan);
    border-radius: 5px;
    padding: 10px;
    height: 100%;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.data-visualizer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.visualizer-header {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 5px;
}

.visualizer-content {
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--neon-green);
}

/* Temperature visualizer */
.temp-gradient-bar {
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-green), #f55);
    border-radius: 10px;
    position: relative;
    margin-bottom: 20px;
}

.temp-marker {
    position: absolute;
    width: 10px;
    height: 30px;
    background-color: #fff;
    border-radius: 5px;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: left 0.5s ease;
}

.temp-scale {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.temp-readout {
    font-size: 2rem;
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transition: color 0.5s ease;
}

/* Air quality visualizer */
.air-quality-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.air-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.air-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 10s infinite linear;
}

.air-quality-readout {
    z-index: 1;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
}

.air-quality-label {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-bottom: 5px;
}

.air-quality-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    margin-bottom: 5px;
    transition: color 0.5s ease;
}

.air-quality-metric {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Radiation visualizer */
.radiation-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.radiation-symbol {
    font-size: 3rem;
    color: var(--neon-green);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.radiation-pulse {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--neon-green);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s infinite;
}

.radiation-readout {
    text-align: center;
    z-index: 1;
}

.radiation-label {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-bottom: 5px;
}

.radiation-value {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.radiation-status {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transition: color 0.5s ease;
}

/* Humidity visualizer */
.humidity-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.humidity-tank {
    width: 40px;
    height: 100px;
    border: 2px solid var(--neon-cyan);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    margin-right: 15px;
}

.water-level {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(to top, var(--neon-cyan), rgba(0, 255, 255, 0.5));
    transition: height 1s ease;
}

.humidity-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.humidity-readout {
    flex: 1;
    text-align: center;
}

.humidity-label {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-bottom: 5px;
}

.humidity-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.humidity-status {
    font-size: 1.2rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transition: color 0.5s ease;
}

/* Animation for air particles */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Pulse animation for radiation indicator */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
}

/* Technical Specs Styles */
.env-system-specs {
    margin: 3rem 0;
    padding: 1rem;
}

.specs-title {
    text-align: center;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    position: relative;
}

.specs-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.spec-item {
    background-color: rgba(10, 17, 40, 0.5);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    border-left: 3px solid var(--neon-purple);
}

.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(157, 0, 255, 0.3);
}

.spec-icon {
    font-size: 1.5rem;
    color: var(--neon-purple);
    background-color: rgba(157, 0, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.spec-content h4 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.spec-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Data Flow Animation Styles */
.data-flow-animation {
    margin: 3rem 0;
    padding: 1rem;
}

.animation-title {
    text-align: center;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.animation-stage {
    width: 150px;
    background-color: rgba(10, 17, 40, 0.7);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border-top: 3px solid var(--neon-cyan);
}

.animation-stage:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.stage-icon {
    font-size: 1.8rem;
}

/* Environmental Intelligence Network Data Flow Styles */
.sensor-network-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
}

.sensor-node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(10, 17, 40, 0.8);
    border: 2px solid var(--neon-cyan);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.sensor-node:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.sensor-node.collecting {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green);
    animation: pulse-collecting 1s infinite alternate;
}

.sensor-node.transmitting {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
    animation: pulse-transmitting 1s infinite alternate;
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--neon-cyan);
    opacity: 0;
    animation: pulse-animation 2s infinite;
}

/* Enhanced pulse animations for each sensor type */
.temperature .node-pulse {
    border-color: var(--neon-orange);
    animation: pulse-animation-temp 2.2s infinite;
}

.humidity .node-pulse {
    border-color: var(--neon-blue);
    animation: pulse-animation-humidity 2.5s infinite;
}

.air-quality .node-pulse {
    border-color: var(--neon-green);
    animation: pulse-animation-air 1.8s infinite;
}

.radiation .node-pulse {
    border-color: var(--neon-red);
    animation: pulse-animation-radiation 3s infinite;
}

.biological .node-pulse {
    border-color: var(--neon-purple);
    animation: pulse-animation-bio 2.7s infinite;
}

.motion .node-pulse {
    border-color: var(--neon-yellow);
    animation: pulse-animation-motion 1.5s infinite;
}

.node-icon {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 0.2rem;
}

.node-status {
    font-size: 0.6rem;
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
}

.node-data {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(10, 17, 40, 0.8);
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    color: var(--neon-cyan);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sensor-node:hover .node-data,
.sensor-node.collecting .node-data,
.sensor-node.transmitting .node-data {
    opacity: 1;
}

.node-data.updating {
    animation: data-update 0.5s ease;
}

/* Position the sensor nodes */
.sensor-node.temperature {
    top: 50px;
    left: 100px;
}

.sensor-node.humidity {
    top: 150px;
    left: 50px;
}

.sensor-node.air-quality {
    top: 250px;
    left: 100px;
}

.sensor-node.radiation {
    top: 50px;
    right: 100px;
}

.sensor-node.biological {
    top: 150px;
    right: 50px;
}

.sensor-node.motion {
    top: 250px;
    right: 100px;
}

/* Sensor type specific colors */
.sensor-node.temperature .node-icon,
.sensor-node.temperature .node-status {
    color: var(--neon-orange);
}

.sensor-node.humidity .node-icon,
.sensor-node.humidity .node-status {
    color: var(--neon-blue);
}

.sensor-node.air-quality .node-icon,
.sensor-node.air-quality .node-status {
    color: var(--neon-green);
}

.sensor-node.radiation .node-icon,
.sensor-node.radiation .node-status {
    color: var(--neon-yellow);
}

.sensor-node.biological .node-icon,
.sensor-node.biological .node-status {
    color: var(--neon-green);
}

.sensor-node.motion .node-icon,
.sensor-node.motion .node-status {
    color: var(--neon-purple);
}

/* Data paths container and SVG */
.data-paths-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.data-paths {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Transmission path styles */
.transmission-path {
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    opacity: 0.6;
    animation: dash-animation 30s linear infinite;
}

/* Path colors by sensor type */
.temperature-path {
    stroke: var(--neon-orange);
}

.humidity-path {
    stroke: var(--neon-blue);
}

.air-path {
    stroke: var(--neon-green);
}

.radiation-path {
    stroke: var(--neon-yellow);
}

.biological-path {
    stroke: var(--neon-green);
}

.motion-path {
    stroke: var(--neon-purple);
}

/* Data particles */
.data-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.data-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(1px);
    box-shadow: 0 0 8px currentColor;
}

/* Particle colors by sensor type */
.temperature-particle {
    background-color: var(--neon-orange);
    box-shadow: 0 0 8px var(--neon-orange);
}

.humidity-particle {
    background-color: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
}

.air-particle {
    background-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.radiation-particle {
    background-color: var(--neon-yellow);
    box-shadow: 0 0 8px var(--neon-yellow);
}

.biological-particle {
    background-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.motion-particle {
    background-color: var(--neon-purple);
    box-shadow: 0 0 8px var(--neon-purple);
}

/* Central Hub Styles */
.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    z-index: 10;
}

.hub-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(10, 17, 40, 0.9);
    border: 3px solid var(--neon-cyan);
    display: inline;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    animation: hub-pulse 3s infinite alternate;
}

.hub-core.processing {
    border-color: var(--neon-purple);
    box-shadow: 0 0 30px var(--neon-purple);
    animation: hub-processing 1s infinite alternate;
}

.hub-icon {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 0.2rem;
}

.hub-status {
    font-size: 0.6rem;
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    text-align: center;
}

.processing-animation {
    position: flex;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 2px dashed var(--neon-cyan);
    animation: rotate 10s linear infinite;
    opacity: 0.6;
}

.hub-connections {
    position: fixed;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    display: flex;
    justify-content: flex;
    align-items: flex;
}

.connection-indicator {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 0.5;
}

.connection-indicator.active {
    animation: blink 0.5s infinite alternate;
}

/* Position connection indicators around the hub */
.temperature-indicator {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.humidity-indicator {
    top: 25%;
    left: 0;
    transform: translateY(-50%);
}

.air-indicator {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.radiation-indicator {
    top: 0;
    right: 0;
}

.biological-indicator {
    top: 25%;
    right: 0;
    transform: translateY(-50%);
}

.motion-indicator {
    bottom: 0;
    right: 0;
}

/* Data Visualization Panel Styles */
.data-visualization {
    width: 100%;
    margin-top: 2rem;
}

.visualization-screen {
    background-color: rgba(10, 17, 40, 0.8);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.visualization-header {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--neon-cyan);
}

.visualization-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(auto, 1fr));
    gap: 1rem;
}

.data-panel {
    background-color: rgba(10, 17, 40, 0.7);
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    padding: 0.8rem;
    transition: all 0.3s ease;
    min-height: 20px;
    min-width: 250px;
    position: flex;
    overflow: hidden;
}

/* Enhanced panel highlight animation */
.data-panel.receiving-data {
    animation: panel-highlight 1.5s ease;
}

/* Panel type-specific styling */
.data-panel[data-panel-type="temperature"] {
    border-color: var(--neon-orange);
}

.data-panel[data-panel-type="humidity"] {
    border-color: var(--neon-blue);
}

.data-panel[data-panel-type="air"] {
    border-color: var(--neon-green);
}

.data-panel[data-panel-type="radiation"] {
    border-color: var(--neon-red);
}

.data-panel[data-panel-type="biological"] {
    border-color: var(--neon-purple);
}

.data-panel[data-panel-type="motion"] {
    border-color: var(--neon-yellow);
}

/* Add subtle background effect */
.data-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.05), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.panel-header {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.update-time {
    font-size: 0.6rem;
    opacity: 0.7;
    margin-left: 0.5rem;
}

.panel-content {
    height: calc(100% - 25px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panel colors by type */
.temperature-panel {
    border-color: var(--neon-orange);
}

.temperature-panel .panel-header {
    color: var(--neon-orange);
}

.humidity-panel {
    border-color: var(--neon-blue);
}

.humidity-panel .panel-header {
    color: var(--neon-blue);
}

.air-panel {
    border-color: var(--neon-green);
}

.air-panel .panel-header {
    color: var(--neon-green);
}

.radiation-panel {
    border-color: var(--neon-yellow);
}

.radiation-panel .panel-header {
    color: var(--neon-yellow);
}

.biological-panel {
    border-color: var(--neon-green);
}

.biological-panel .panel-header {
    color: var(--neon-green);
}

.motion-panel {
    border-color: var(--neon-purple);
}

.motion-panel .panel-header {
    color: var(--neon-purple);
}

/* Visualizer Components */
/* Temperature Visualizer */
.temp-visualizer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.temp-gauge {
    width: 40px;
    height: 120px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neon-orange);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--neon-orange);
    transition: height 1s ease, background-color 1s ease;
    box-shadow: 0 0 10px var(--neon-orange);
}

.gauge-marker {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    left: 0;
}

.temp-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-orange);
    font-size: 0.9rem;
    white-space: nowrap;
}

.temp-scale {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--neon-orange);
    opacity: 0.7;
}

/* Air Quality Visualizer */
.air-visualizer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.air-indicator {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid var(--neon-green);
    position: relative;
    overflow: hidden;
}

.air-particles {
    width: 100%;
    height: 100%;
    position: relative;
}

.air-particle {
    position: absolute;
    background-color: var(--neon-green);
    border-radius: 50%;
    opacity: 0.7;
    animation: float 3s infinite alternate;
}

.air-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-green);
    font-size: 0.9rem;
    white-space: nowrap;
    text-shadow: 0 0 5px var(--neon-green);
}

.air-quality-level {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--neon-green);
}

/* Radiation Visualizer */
.radiation-visualizer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radiation-indicator {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radiation-pulse {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--neon-yellow);
    animation: radiation-pulse 1.5s infinite alternate;
    box-shadow: 0 0 15px var(--neon-yellow);
}

.radiation-value {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-yellow);
    font-size: 0.9rem;
    white-space: nowrap;
    text-shadow: 0 0 5px var(--neon-yellow);
    z-index: 2;
}

.radiation-scale {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--neon-yellow);
}

/* Humidity Visualizer */
.humidity-visualizer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.humidity-indicator {
    width: 80px;
    height: 120px;
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.humidity-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 136, 255, 0.2);
    transition: height 1s ease;
}

.humidity-wave {
    position: absolute;
    width: 200%;
    height: 20px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0.5;
    border-radius: 50%;
    animation: wave 3s linear infinite;
    transform-origin: 50% 50%;
}

.humidity-wave:nth-child(2) {
    animation-delay: 0.5s;
}

.humidity-wave:nth-child(3) {
    animation-delay: 1s;
}

.humidity-value {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    font-size: 0.9rem;
    white-space: nowrap;
    text-shadow: 0 0 5px var(--neon-blue);
}

.humidity-level {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--neon-blue);
    white-space: nowrap;
}

/* Biological Visualizer */
.bio-visualizer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-indicator {
    width: 100px;
    height: 100px;
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.bio-cells {
    width: 100%;
    height: 100%;
    position: relative;
}

.bio-cell {
    position: absolute;
    background-color: rgba(51, 255, 51, 0.3);
    border: 1px solid var(--neon-green);
    border-radius: 50%;
    animation: cell-pulse 3s infinite alternate;
}

.bio-value {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-green);
    font-size: 0.9rem;
    white-space: nowrap;
}

.bio-status {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--neon-green);
    white-space: nowrap;
}

/* Motion Visualizer */
.motion-visualizer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motion-indicator {
    width: 100px;
    height: 100px;
    border: 1px solid var(--neon-purple);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.motion-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 2px;
}

.motion-cell {
    background-color: rgba(157, 0, 255, 0.1);
    border: 1px solid rgba(157, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.motion-cell.active {
    background-color: var(--neon-purple);
    box-shadow: 0 0 5px var(--neon-purple);
    animation: cell-blink 1s infinite alternate;
}

.motion-value {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-purple);
    font-size: 0.9rem;
    white-space: nowrap;
}

.motion-status {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--neon-purple);
    white-space: nowrap;
}

/* Prediction Model */
.prediction-model {
    grid-column: span 2;
    background-color: rgba(10, 17, 40, 0.7);
    border: 1px solid var(--neon-purple);
    border-radius: 6px;
    padding: 0.8rem;
}

.model-header {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-purple);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.model-visualization {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.model-status, .model-accuracy, .model-prediction {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    font-size: 0.8rem;
}

.model-accuracy {
    color: var(--neon-green);
}

.model-prediction {
    color: var(--neon-yellow);
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Animations */
@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Custom pulse animations for each sensor type */
@keyframes pulse-animation-temp {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes pulse-animation-humidity {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    75% {
        transform: scale(1.4);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse-animation-air {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    40% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes pulse-animation-radiation {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    30% {
        transform: scale(1.3);
        opacity: 0.5;
    }
    60% {
        transform: scale(1.4);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

@keyframes pulse-animation-bio {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes pulse-animation-motion {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    30% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    70% {
        transform: scale(1.4);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse-collecting {
    0% {
        box-shadow: 0 0 10px var(--neon-green);
    }
    100% {
        box-shadow: 0 0 20px var(--neon-green);
    }
}

@keyframes pulse-transmitting {
    0% {
        box-shadow: 0 0 10px var(--neon-purple);
    }
    100% {
        box-shadow: 0 0 20px var(--neon-purple);
    }
}

@keyframes data-update {
    0% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

@keyframes dash-animation {
    to {
        stroke-dashoffset: 1000;
    }
}

@keyframes hub-pulse {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
}

@keyframes hub-processing {
    0% {
        box-shadow: 0 0 15px var(--neon-purple);
    }
    100% {
        box-shadow: 0 0 30px var(--neon-purple);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

@keyframes panel-highlight {
    0% {
        box-shadow: none;
    }
    50% {
        box-shadow: 0 0 15px currentColor;
    }
    100% {
        box-shadow: none;
    }
}

@keyframes radiation-pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

@keyframes wave {
    0% {
        transform: translateX(-50%) scaleY(0.5);
    }
    50% {
        transform: translateX(-50%) scaleY(1);
    }
    100% {
        transform: translateX(-50%) scaleY(0.5);
    }
}

@keyframes cell-pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

@keyframes cell-blink {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.stage-title {
    color: var(--neon-cyan);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stage-description {
    font-size: 0.8rem;
    opacity: 0.8;
}

.animation-arrow {
    color: var(--neon-purple);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    animation: arrow-pulse 2s infinite;
}

@keyframes arrow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.animation-stage[data-stage="1"] { animation: stage-highlight 10s infinite 0s; }
.animation-stage[data-stage="2"] { animation: stage-highlight 10s infinite 2s; }
.animation-stage[data-stage="3"] { animation: stage-highlight 10s infinite 4s; }
.animation-stage[data-stage="4"] { animation: stage-highlight 10s infinite 6s; }
.animation-stage[data-stage="5"] { animation: stage-highlight 10s infinite 8s; }

@keyframes stage-highlight {
    0%, 15%, 100% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.3); }
    5%, 10% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.8); }
}

/* Responsive styles for Environmental Intelligence System */
@media (min-width: 768px) {
    .env-system-container {
        flex-direction: row;
        align-items: center;
    }
    
    .env-system-description {
        flex: 1;
    }
    
    .env-system-visual {
        flex: 1;
    }
    
    .animation-container {
        flex-wrap: nowrap;
    }
}

@media (max-width: 767px) {
    .animation-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .animation-container {
        flex-direction: column;
    }
    
    .pip-boy-container {
        width: 250px;
        height: 300px;
    }
    
    .sensor-network {
        margin-top: 3rem;
    }
}
