/* Professional Municipal & Smart City Theme */

/* CSS Custom Properties - Municipal Professional Colors */
:root {
    /* Primary Municipal Colors */
    --municipal-blue: #1E3A8A;
    --municipal-light-blue: #3B82F6;
    --municipal-navy: #1E40AF;
    --municipal-cyan: #0891B2;
    --municipal-teal: #0D9488;
    
    /* Government & Trust Colors */
    --trust-blue: #1D4ED8;
    --authority-navy: #1E3A8A;
    --official-blue: #2563EB;
    --civic-cyan: #06B6D4;
    --public-teal: #14B8A6;
    
    /* Gradient Combinations */
    --primary-gradient: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 50%, #06B6D4 100%);
    --hero-gradient: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 25%, #2563EB 50%, #3B82F6 75%, #06B6D4 100%);
    --card-gradient: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    --municipal-gradient: linear-gradient(135deg, #1E3A8A 0%, #0891B2 100%);
    --success-gradient: linear-gradient(135deg, #047857 0%, #059669 100%);
    --accent-gradient: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    
    /* Professional Text Colors */
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-light: #A0AEC0;
    --text-white: #FFFFFF;
    
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-municipal: #EFF6FF;
    --bg-light-blue: #DBEAFE;
    
    /* Professional Shadows */
    --shadow-municipal: 0 10px 25px rgba(30, 58, 138, 0.15);
    --shadow-card: 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 15px 30px rgba(30, 58, 138, 0.2);
    --shadow-strong: 0 20px 40px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 4px 12px rgba(100, 116, 139, 0.1);
    
    /* Professional Borders */
    --border-light: rgba(226, 232, 240, 0.8);
    --border-municipal: rgba(30, 58, 138, 0.2);
    --border-accent: rgba(59, 130, 246, 0.3);
    
    /* Animation Variables */
    --animation-speed: 0.4s;
    --animation-curve: cubic-bezier(0.4, 0, 0.2, 1);
    --hover-scale: 1.02;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Professional Animations */
@keyframes municipalPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(30, 58, 138, 0);
    }
}

@keyframes smartCityOrbit {
    0% { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes dataFlow {
    0% { 
        transform: translateX(-100px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: translateX(300px);
        opacity: 0;
    }
}

@keyframes buildingGrow {
    0% { 
        transform: scaleY(0);
        transform-origin: bottom;
    }
    100% { 
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

@keyframes networkPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

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

@keyframes slideInFromLeft {
    0% { 
        transform: translateX(-100px);
        opacity: 0;
    }
    100% { 
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% { 
        transform: translateX(100px);
        opacity: 0;
    }
    100% { 
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleInBounce {
    0% { 
        transform: scale(0);
        opacity: 0;
    }
    50% { 
        transform: scale(1.1);
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Professional Navigation */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--municipal-blue);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.1);
    transition: all var(--animation-speed) var(--animation-curve);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
    border-bottom-color: var(--municipal-light-blue);
    padding: 0.8rem 0;
    backdrop-filter: blur(20px);
}

/* Bootstrap navbar override */
.navbar-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
}

.navbar-light.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
}

/* Force override any bootstrap dark styles */
.navbar-dark {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
}

.navbar-dark.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--animation-speed) var(--animation-curve);
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: transform var(--animation-speed) var(--animation-curve);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all var(--animation-speed) var(--animation-curve);
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--municipal-gradient);
    transition: all var(--animation-speed) var(--animation-curve);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--municipal-blue) !important;
    background: var(--bg-municipal);
}

/* Hero Section - Smart City Visualization */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #BFDBFE 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.smart-city-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* District Security AI & IoT Animation */
.district-security-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Smart District Map */
.smart-district-map {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 550px;
    height: 450px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 2px solid var(--municipal-blue);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2);
    overflow: hidden;
    animation: mapFloat 8s ease-in-out infinite;
}

@keyframes mapFloat {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-52%) scale(1.02); }
}

.district-grid {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}

/* Security Zones */
.security-zone {
    position: relative;
    border-radius: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(30, 58, 138, 0.2);
    backdrop-filter: blur(5px);
    animation: zoneGlow 4s ease-in-out infinite;
}

.residential { animation-delay: 0s; }
.commercial { animation-delay: 1s; }
.park { animation-delay: 2s; }
.roads { animation-delay: 3s; }

@keyframes zoneGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(30, 58, 138, 0.2); }
    50% { box-shadow: 0 0 20px rgba(30, 58, 138, 0.4); }
}

.zone-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--municipal-blue);
    margin-bottom: 10px;
    text-align: center;
    background: rgba(30, 58, 138, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
}

/* Security Cameras */
.security-cameras {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 5px;
}

.camera {
    width: 18px;
    height: 18px;
    background: var(--municipal-gradient);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6rem;
    position: relative;
    animation: cameraActive 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.cam-1 { animation-delay: 0s; }
.cam-2 { animation-delay: 0.5s; }
.cam-3 { animation-delay: 1s; }
.cam-4 { animation-delay: 1.5s; }
.cam-5 { animation-delay: 2s; }

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

.camera-field {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid rgba(59, 130, 246, 0.2);
    animation: cameraFieldScan 3s ease-in-out infinite;
}

@keyframes cameraFieldScan {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scaleX(1.2); }
}

/* IoT Sensors */
.iot-sensors {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 8px;
}

.sensor {
    width: 16px;
    height: 16px;
    background: var(--success-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.5rem;
    animation: sensorPulse 2.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.motion-sensor { animation-delay: 0s; }
.air-sensor { animation-delay: 1.2s; }

@keyframes sensorPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.2); box-shadow: 0 0 15px rgba(16, 185, 129, 0.7); }
}

/* Crowd Monitoring */
.crowd-monitoring {
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.crowd-indicator {
    display: flex;
    align-items: center;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 10px;
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
    color: #EA580C;
    animation: crowdUpdate 3s ease-in-out infinite;
}

.crowd-indicator i {
    margin-right: 0.3rem;
    font-size: 0.6rem;
}

.crowd-count {
    font-weight: 600;
    margin-left: 0.2rem;
}

@keyframes crowdUpdate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Playground Safety */
.playground-safety {
    position: absolute;
    bottom: 5px;
    left: 5px;
}

.safety-indicator {
    display: flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
    color: #059669;
    animation: safetyCheck 2s ease-in-out infinite;
}

.safety-indicator.active {
    background: rgba(16, 185, 129, 0.15);
}

.safety-indicator i {
    margin-right: 0.3rem;
    font-size: 0.6rem;
}

@keyframes safetyCheck {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Traffic Monitoring */
.traffic-monitoring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.traffic-cam {
    width: 20px;
    height: 20px;
    background: var(--municipal-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    animation: trafficScan 2s ease-in-out infinite;
}

.vehicle-count {
    display: flex;
    align-items: center;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 8px;
    padding: 0.2rem 0.3rem;
    font-size: 0.6rem;
    color: var(--municipal-blue);
    font-weight: 600;
}

.vehicle-count i {
    margin-right: 0.2rem;
}

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

/* AI Control Center */
.ai-control-center {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
}

.control-hub {
    background: linear-gradient(135deg, var(--municipal-gradient));
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
    animation: controlCenterPulse 3s ease-in-out infinite;
}

@keyframes controlCenterPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 15px 35px rgba(30, 58, 138, 0.5); }
}

.hub-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    animation: shieldRotate 4s linear infinite;
}

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

.hub-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.processing-status {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    gap: 6px;
}

.status-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    animation: statusBlink 1.5s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Data Network Lines */
.data-network {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.network-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--municipal-light-blue), transparent);
    animation: dataTransmission 3s linear infinite;
}

.line-1 {
    top: 25%;
    left: 20%;
    width: 120px;
    transform: rotate(30deg);
    animation-delay: 0s;
}

.line-2 {
    top: 35%;
    right: 25%;
    width: 100px;
    transform: rotate(-45deg);
    animation-delay: 0.5s;
}

.line-3 {
    bottom: 35%;
    left: 25%;
    width: 110px;
    transform: rotate(60deg);
    animation-delay: 1s;
}

.line-4 {
    bottom: 25%;
    right: 20%;
    width: 90px;
    transform: rotate(-30deg);
    animation-delay: 1.5s;
}

.line-5 {
    top: 50%;
    left: 10%;
    width: 80px;
    transform: rotate(90deg);
    animation-delay: 2s;
}

.line-6 {
    top: 50%;
    right: 10%;
    width: 85px;
    transform: rotate(-90deg);
    animation-delay: 2.5s;
}

@keyframes dataTransmission {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0); }
}

/* Threat Detection Alerts */
.threat-alerts {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-popup {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(5px);
    animation: alertPulse 2s ease-in-out infinite;
    min-width: 150px;
}

.alert-1 {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    animation-delay: 0s;
}

.alert-2 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    animation-delay: 3s;
}

.alert-popup i {
    margin-right: 6px;
    font-size: 0.8rem;
}

@keyframes alertPulse {
    0%, 90%, 100% { opacity: 0; transform: translateX(30px); }
    10%, 80% { opacity: 1; transform: translateX(0); }
}

/* IoT Status Panel */
.iot-status-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.device-status {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--municipal-blue);
    backdrop-filter: blur(5px);
    animation: deviceStatusUpdate 4s ease-in-out infinite;
}

.device-status:nth-child(1) { animation-delay: 0s; }
.device-status:nth-child(2) { animation-delay: 1.3s; }
.device-status:nth-child(3) { animation-delay: 2.6s; }

.device-status i {
    margin-right: 6px;
    color: var(--municipal-light-blue);
}

@keyframes deviceStatusUpdate {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1); }
    50% { transform: scale(1.03); box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2); }
}

/* Floating Security Elements */
.floating-security-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.security-element {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(30, 58, 138, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--municipal-blue);
    font-size: 0.9rem;
    animation: securityFloat 6s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.sec-1 { 
    top: 15%; 
    left: 8%; 
    animation-delay: 0s; 
    animation-duration: 6s;
}

.sec-2 { 
    top: 25%; 
    left: 85%; 
    animation-delay: 1.2s; 
    animation-duration: 7s;
}

.sec-3 { 
    bottom: 30%; 
    left: 5%; 
    animation-delay: 2.4s; 
    animation-duration: 8s;
}

.sec-4 { 
    bottom: 15%; 
    left: 90%; 
    animation-delay: 3.6s; 
    animation-duration: 5s;
}

.sec-5 { 
    top: 60%; 
    left: 3%; 
    animation-delay: 4.8s; 
    animation-duration: 9s;
}

@keyframes securityFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.6; 
    }
    25% { 
        transform: translateY(-15px) translateX(10px) rotate(90deg); 
        opacity: 0.8; 
    }
    50% { 
        transform: translateY(-8px) translateX(-10px) rotate(180deg); 
        opacity: 1; 
    }
    75% { 
        transform: translateY(12px) translateX(5px) rotate(270deg); 
        opacity: 0.8; 
    }
}

.neural-connections {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.synapse {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--municipal-light-blue);
    border-radius: 50%;
    animation: synapseTravel 3s linear infinite;
}

.s1 { top: 0; left: 50%; animation-delay: 0s; }
.s2 { top: 25%; right: 0; animation-delay: 0.6s; }
.s3 { bottom: 0; left: 50%; animation-delay: 1.2s; }
.s4 { top: 25%; left: 0; animation-delay: 1.8s; }
.s5 { top: 75%; right: 25%; animation-delay: 2.4s; }

@keyframes synapseTravel {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}

/* Municipal Services */
.municipal-services {
    position: absolute;
    width: 100%;
    height: 100%;
}

.service-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: serviceFloat 4s ease-in-out infinite;
}

.camera-service { top: 15%; left: 15%; animation-delay: 0s; }
.drone-service { top: 15%; right: 15%; animation-delay: 0.8s; }
.park-service { bottom: 30%; left: 10%; animation-delay: 1.6s; }
.road-service { bottom: 30%; right: 10%; animation-delay: 2.4s; }
.air-service { top: 70%; left: 50%; transform: translateX(-50%); animation-delay: 3.2s; }

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

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--municipal-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.service-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--municipal-light-blue);
    border-radius: 15px;
    animation: servicePulse 2s ease-in-out infinite;
}

@keyframes servicePulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.service-node span {
    font-size: 0.7rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* Data Analytics Stream */
.data-analytics {
    position: absolute;
    width: 100%;
    height: 100%;
}

.data-stream {
    position: absolute;
    width: 2px;
    height: 100px;
}

.stream-1 { top: 20%; left: 30%; transform: rotate(45deg); }
.stream-2 { top: 40%; right: 25%; transform: rotate(-30deg); }
.stream-3 { bottom: 25%; left: 60%; transform: rotate(60deg); }

.data-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--civic-cyan);
    border-radius: 50%;
    animation: dataStream 2s linear infinite;
}

.data-particle:nth-child(1) { animation-delay: 0s; }
.data-particle:nth-child(2) { animation-delay: 0.7s; }
.data-particle:nth-child(3) { animation-delay: 1.4s; }

@keyframes dataStream {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100px); opacity: 0; }
}

/* Processing Indicators */
.processing-indicators {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.indicator {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(30, 58, 138, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Particle Background */
.particle-background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--municipal-light-blue);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
    opacity: 0.6;
}

.p1 { top: 10%; left: 5%; animation-delay: 0s; animation-duration: 8s; }
.p2 { top: 20%; left: 80%; animation-delay: 1s; animation-duration: 10s; }
.p3 { top: 60%; left: 10%; animation-delay: 2s; animation-duration: 12s; }
.p4 { top: 80%; left: 70%; animation-delay: 3s; animation-duration: 9s; }
.p5 { top: 30%; left: 40%; animation-delay: 4s; animation-duration: 11s; }
.p6 { top: 70%; left: 60%; animation-delay: 5s; animation-duration: 7s; }
.p7 { top: 50%; left: 20%; animation-delay: 6s; animation-duration: 13s; }
.p8 { top: 90%; left: 90%; animation-delay: 7s; animation-duration: 6s; }

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

/* Network Connections */
.network-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.network-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--municipal-light-blue);
    border-radius: 50%;
    animation: networkPulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.node-1 { top: 20%; left: 15%; animation-delay: 0s; }
.node-2 { top: 30%; right: 20%; animation-delay: 0.5s; }
.node-3 { bottom: 40%; left: 25%; animation-delay: 1s; }
.node-4 { top: 50%; left: 50%; animation-delay: 1.5s; }
.node-5 { bottom: 25%; right: 35%; animation-delay: 2s; }

/* Data Flow Lines */
.data-connections {
    position: absolute;
    width: 100%;
    height: 100%;
}

.data-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--municipal-light-blue), transparent);
    animation: dataFlow 4s linear infinite;
}

.line-1 {
    top: 25%;
    width: 200px;
    left: 10%;
    animation-delay: 0s;
}

.line-2 {
    top: 45%;
    width: 150px;
    right: 15%;
    animation-delay: 1s;
}

.line-3 {
    bottom: 35%;
    width: 180px;
    left: 30%;
    animation-delay: 2s;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--municipal-light-blue);
    opacity: 0.2;
    animation: floatUpDown 4s ease-in-out infinite;
}

.float-1 { top: 15%; left: 10%; animation-delay: 0s; }
.float-2 { top: 25%; right: 15%; animation-delay: 1s; }
.float-3 { bottom: 30%; left: 20%; animation-delay: 2s; }
.float-4 { bottom: 20%; right: 25%; animation-delay: 3s; }

/* Orbiting Smart City Elements */
.smart-orbit {
    position: absolute;
    top: 50%;
    right: 20%;
    width: 240px;
    height: 240px;
    transform: translate(50%, -50%);
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: var(--municipal-gradient);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: municipalPulse 3s ease-in-out infinite;
    box-shadow: var(--shadow-municipal);
}

.orbit-element {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: var(--card-gradient);
    border: 2px solid var(--municipal-light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--municipal-blue);
    font-size: 0.9rem;
    box-shadow: var(--shadow-card);
    animation: smartCityOrbit 15s linear infinite;
}

.orbit-element:nth-child(2) { animation-delay: -3.75s; }
.orbit-element:nth-child(3) { animation-delay: -7.5s; }
.orbit-element:nth-child(4) { animation-delay: -11.25s; }

/* Hero Content */
.hero-content {
    z-index: 2;
    position: relative;
    animation: slideInFromLeft 1s var(--animation-curve);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInFromLeft 1s var(--animation-curve) 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    animation: slideInFromLeft 1s var(--animation-curve) 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInFromLeft 1s var(--animation-curve) 0.6s both;
}

/* Municipal Professional Buttons */
.btn-municipal {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all var(--animation-speed) var(--animation-curve);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-municipal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-municipal:hover::before {
    left: 100%;
}

.btn-primary-municipal {
    background: var(--municipal-gradient);
    color: white;
    box-shadow: var(--shadow-municipal);
}

.btn-primary-municipal:hover {
    transform: translateY(-3px) scale(var(--hover-scale));
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-outline-municipal {
    background: transparent;
    color: var(--municipal-blue);
    border: 2px solid var(--municipal-blue);
    box-shadow: var(--shadow-soft);
}

.btn-outline-municipal:hover {
    background: var(--municipal-blue);
    color: white;
    transform: translateY(-3px) scale(var(--hover-scale));
    box-shadow: var(--shadow-municipal);
}

/* Professional Cards */
.municipal-card {
    background: var(--card-gradient);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: all var(--animation-speed) var(--animation-curve);
    position: relative;
    overflow: hidden;
}

.municipal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--municipal-gradient);
    transform: scaleX(0);
    transition: transform var(--animation-speed) var(--animation-curve);
}

.municipal-card:hover::before {
    transform: scaleX(1);
}

.municipal-card:hover {
    transform: translateY(-8px) scale(var(--hover-scale));
    box-shadow: var(--shadow-strong);
    border-color: var(--border-municipal);
}

/* Section Styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--municipal-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Features Section */
.features-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--municipal-gradient);
    opacity: 0.3;
}

.feature-card {
    background: var(--card-gradient);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all var(--animation-speed) var(--animation-curve);
    height: 100%;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--animation-speed);
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(var(--hover-scale));
    box-shadow: var(--shadow-strong);
    border-color: var(--border-municipal);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--municipal-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-municipal);
    animation: scaleInBounce 1s var(--animation-curve);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: var(--bg-municipal);
    padding: 3rem 0;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-gradient);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all var(--animation-speed) var(--animation-curve);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.stat-item:hover {
    transform: translateY(-5px) scale(var(--hover-scale));
    box-shadow: var(--shadow-strong);
    border-color: var(--border-municipal);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--municipal-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    animation: municipalPulse 3s ease-in-out infinite;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Footer */
.footer-section {
    background: var(--municipal-gradient);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-brand img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    transition: transform var(--animation-speed) var(--animation-curve);
}

.footer-brand:hover img {
    transform: scale(1.05);
}

.footer-brand h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 300px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--animation-speed) ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width var(--animation-speed) ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 100%;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    line-height: 38px;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 0.5rem;
    transition: all var(--animation-speed) ease;
    text-decoration: none;
}

.social-links a:hover {
    background: white;
    color: var(--municipal-blue);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 35px;
    }
    
    .footer-brand img {
        height: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .smart-district-map {
        width: 380px;
        height: 320px;
        right: 2%;
    }
    
    .district-grid {
        padding: 15px;
        gap: 10px;
    }
    
    .zone-label {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .camera {
        width: 15px;
        height: 15px;
        font-size: 0.5rem;
    }
    
    .sensor {
        width: 14px;
        height: 14px;
        font-size: 0.45rem;
    }
    
    .brain-core {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .service-node span {
        font-size: 0.6rem;
    }
    
    .btn-municipal {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 30px;
    }
    
    .footer-brand img {
        height: 35px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card,
    .municipal-card {
        padding: 1.5rem;
    }
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --municipal-blue: #000080;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-light: #666666;
    }
}

/* AI Neural Network City Brain Animation Styles */

/* Main Container */
.neural-city-brain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    perspective: 1200px;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

/* Central AI Brain Core */
.ai-brain-core {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 20;
}

.brain-sphere {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: 50%;
    animation: brainFloating 8s ease-in-out infinite;
}

@keyframes brainFloating {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-15px) rotateY(180deg); }
}

.cortex-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cortex-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.layer-1 {
    border: 2px solid rgba(59, 130, 246, 0.3);
    animation: cortexPulse 6s ease-in-out infinite;
}

.layer-2 {
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: 2px solid rgba(139, 92, 246, 0.4);
    animation: cortexPulse 6s ease-in-out infinite;
    animation-delay: 2s;
}

.layer-3 {
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border: 2px solid rgba(6, 182, 212, 0.5);
    animation: cortexPulse 6s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes cortexPulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
        box-shadow: 0 0 20px currentColor;
    }
}

.neural-pattern {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #06B6D4;
    border-radius: 50%;
    animation: neuralActivity 4s ease-in-out infinite;
}

.pattern-1 { top: 20%; left: 30%; animation-delay: 0s; }
.pattern-2 { top: 40%; left: 70%; animation-delay: 0.5s; }
.pattern-3 { top: 70%; left: 40%; animation-delay: 1s; }
.pattern-4 { top: 60%; left: 20%; animation-delay: 1.5s; }
.pattern-5 { top: 30%; left: 80%; animation-delay: 2s; }
.pattern-6 { top: 80%; left: 60%; animation-delay: 2.5s; }
.pattern-7 { top: 50%; left: 15%; animation-delay: 3s; }
.pattern-8 { top: 25%; left: 50%; animation-delay: 3.5s; }

@keyframes neuralActivity {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(1); 
        background: #06B6D4;
    }
    50% { 
        opacity: 1; 
        transform: scale(2); 
        background: #8B5CF6;
        box-shadow: 0 0 10px currentColor;
    }
}

.brain-core-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    z-index: 3;
    animation: brainCorePulse 5s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
}

@keyframes brainCorePulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg); 
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.15) rotate(360deg); 
        box-shadow: 0 0 60px rgba(139, 92, 246, 1);
    }
}

.ai-pulse-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
}

.pulse-ring {
    position: absolute;
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    animation: aiPulseExpand 4s ease-out infinite;
}

.ring-1 {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.ring-2 {
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    animation-delay: 1.3s;
}

.ring-3 {
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    animation-delay: 2.6s;
}

@keyframes aiPulseExpand {
    0% { 
        transform: scale(0.8); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.4; 
    }
    100% { 
        transform: scale(1.8); 
        opacity: 0; 
    }
}

.brain-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.brain-title {
    color: var(--municipal-blue);
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.processing-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.process-bar {
    width: 80px;
    height: 8px;
    background: rgba(30, 58, 138, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.process-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #06B6D4, #3B82F6, #8B5CF6);
    border-radius: 4px;
    animation: processingAnimation 3s ease-in-out infinite;
}

@keyframes processingAnimation {
    0% { width: 20%; }
    50% { width: 100%; }
    100% { width: 20%; }
}

.process-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--municipal-blue);
    animation: textBlink 2s ease-in-out infinite;
}

@keyframes textBlink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Neural Network Web */
.neural-network {
    position: absolute;
    top: 20%;
    left: 15%;
    width: 60%;
    height: 60%;
    z-index: 15;
}

.neural-nodes {
    position: relative;
    width: 100%;
    height: 100%;
}

.neuron-cluster {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-layer {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.hidden-layer {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.output-layer {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.neuron {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--municipal-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--municipal-blue);
    animation: neuronPulse 4s ease-in-out infinite;
    box-shadow: var(--shadow-municipal);
    cursor: pointer;
}

.neuron[data-type="camera"] { animation-delay: 0s; }
.neuron[data-type="sensor"] { animation-delay: 0.5s; }
.neuron[data-type="drone"] { animation-delay: 1s; }
.neuron[data-type="traffic"] { animation-delay: 1.5s; }

.process-1 { animation-delay: 2s; }
.process-2 { animation-delay: 2.5s; }
.process-3 { animation-delay: 3s; }

.output-1 { animation-delay: 3.5s; }
.output-2 { animation-delay: 4s; }

@keyframes neuronPulse {
    0%, 100% { 
        transform: scale(1); 
        border-color: var(--municipal-blue);
        box-shadow: var(--shadow-municipal);
    }
    50% { 
        transform: scale(1.1); 
        border-color: #8B5CF6;
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
    }
}

.neuron-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-radius: 50%;
    opacity: 0;
    animation: neuronGlow 3s ease-in-out infinite;
}

@keyframes neuronGlow {
    0%, 100% { 
        opacity: 0; 
        transform: scale(1);
        border-color: transparent;
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.2);
        border-color: #06B6D4;
        box-shadow: 0 0 20px #06B6D4;
    }
}

.neural-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.synapse-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, var(--municipal-blue), #8B5CF6, #06B6D4);
    border-radius: 2px;
    opacity: 0.6;
    animation: synapseFlow 5s ease-in-out infinite;
}

.connection-1 {
    top: 40%;
    left: 8%;
    width: 180px;
    transform: rotate(8deg);
    animation-delay: 0s;
}

.connection-2 {
    top: 50%;
    left: 8%;
    width: 170px;
    transform: rotate(-2deg);
    animation-delay: 0.6s;
}

.connection-3 {
    top: 60%;
    left: 8%;
    width: 185px;
    transform: rotate(-8deg);
    animation-delay: 1.2s;
}

.connection-4 {
    top: 70%;
    left: 8%;
    width: 175px;
    transform: rotate(-15deg);
    animation-delay: 1.8s;
}

.connection-5 {
    top: 42%;
    left: 40%;
    width: 120px;
    transform: rotate(5deg);
    animation-delay: 2.4s;
}

.connection-6 {
    top: 58%;
    left: 40%;
    width: 115px;
    transform: rotate(-5deg);
    animation-delay: 3s;
}

.connection-7 {
    top: 45%;
    left: 65%;
    width: 140px;
    transform: rotate(8deg);
    animation-delay: 3.6s;
}

.connection-8 {
    top: 55%;
    left: 65%;
    width: 135px;
    transform: rotate(-8deg);
    animation-delay: 4.2s;
}

@keyframes synapseFlow {
    0%, 100% { 
        opacity: 0.3; 
        box-shadow: none;
    }
    50% { 
        opacity: 0.9; 
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    }
}

.signal-pulse {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #06B6D4, #3B82F6);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: signalTravel 4s linear infinite;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.8);
}

.pulse-1 { animation-delay: 0s; }
.pulse-2 { animation-delay: 0.5s; }
.pulse-3 { animation-delay: 1s; }
.pulse-4 { animation-delay: 1.5s; }
.pulse-5 { animation-delay: 2s; }
.pulse-6 { animation-delay: 2.5s; }
.pulse-7 { animation-delay: 3s; }
.pulse-8 { animation-delay: 3.5s; }

@keyframes signalTravel {
    0% { 
        left: -6px; 
        opacity: 0; 
        transform: translateY(-50%) scale(0.5);
    }
    10% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1);
    }
    90% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1);
    }
    100% { 
        left: calc(100% + 6px); 
        opacity: 0; 
        transform: translateY(-50%) scale(0.5);
    }
}

/* Smart City Intelligence Visualization */
.city-intelligence {
    position: absolute;
    bottom: 15%;
    left: 20%;
    width: 55%;
    height: 35%;
    z-index: 12;
}

.intelligent-zones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 25px;
    width: 100%;
    height: 100%;
}

.smart-zone {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--municipal-blue);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-municipal);
    animation: zoneFloat 6s ease-in-out infinite;
}

.zone-security { animation-delay: 0s; }
.zone-surveillance { animation-delay: 1.5s; }
.zone-environment { animation-delay: 3s; }
.zone-traffic { animation-delay: 4.5s; }

@keyframes zoneFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

.zone-visual {
    position: relative;
    width: 100%;
    height: 60px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
}

/* Security Zone Styles */
.zone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    width: 100%;
    height: 100%;
    padding: 5px;
}

.grid-cell {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 2px;
    animation: cellScan 4s ease-in-out infinite;
}

.cell-1 { animation-delay: 0s; }
.cell-2 { animation-delay: 1s; }
.cell-3 { animation-delay: 2s; }
.cell-4 { animation-delay: 3s; }

@keyframes cellScan {
    0%, 100% { background: rgba(59, 130, 246, 0.3); }
    50% { background: rgba(239, 68, 68, 0.6); box-shadow: 0 0 8px #EF4444; }
}

.detection-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scan-beam {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06B6D4, transparent);
    transform: translateY(-50%);
    animation: beamSweep 3s linear infinite;
}

@keyframes beamSweep {
    0% { transform: translateY(-50%) translateX(-100%); }
    100% { transform: translateY(-50%) translateX(100%); }
}

/* Surveillance Zone Styles */
.camera-network {
    position: relative;
    width: 100%;
    height: 100%;
}

.camera-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--municipal-blue);
    border-radius: 50%;
}

.point-1 { top: 20%; left: 20%; }
.point-2 { top: 20%; right: 20%; }
.point-3 { bottom: 20%; left: 50%; transform: translateX(-50%); }

.view-cone {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(6, 182, 212, 0.3) 45deg, transparent 90deg);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: coneRotate 4s linear infinite;
}

@keyframes coneRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Environment Zone Styles */
.sensor-mesh {
    position: relative;
    width: 100%;
    height: 100%;
}

.sensor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: sensorPulse 3s ease-in-out infinite;
}

.dot-1 { top: 15%; left: 15%; animation-delay: 0s; }
.dot-2 { top: 15%; right: 15%; animation-delay: 0.6s; }
.dot-3 { bottom: 15%; left: 15%; animation-delay: 1.2s; }
.dot-4 { bottom: 15%; right: 15%; animation-delay: 1.8s; }
.dot-5 { top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: 2.4s; }

@keyframes sensorPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); box-shadow: 0 0 10px #10B981; }
}

.data-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wave {
    position: absolute;
    border: 2px solid #14B8A6;
    border-radius: 50%;
    animation: waveExpand 3s ease-out infinite;
}

.wave-1 {
    width: 30px;
    height: 30px;
    margin: -15px;
    animation-delay: 0s;
}

.wave-2 {
    width: 50px;
    height: 50px;
    margin: -25px;
    animation-delay: 1.5s;
}

@keyframes waveExpand {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

/* Traffic Zone Styles */
.traffic-flow {
    position: relative;
    width: 100%;
    height: 100%;
}

.flow-line {
    position: absolute;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 1px;
}

.line-1 {
    top: 30%;
    left: 0;
    width: 100%;
    height: 2px;
}

.line-2 {
    bottom: 30%;
    left: 0;
    width: 100%;
    height: 2px;
}

.flow-vehicle {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 6px;
    background: #06B6D4;
    border-radius: 1px;
    transform: translateY(-50%);
    animation: vehicleFlow 6s linear infinite;
}

.vehicle-1 { animation-delay: 0s; }
.vehicle-2 { animation-delay: 2s; }
.vehicle-3 { animation-delay: 4s; }

@keyframes vehicleFlow {
    0% { left: -10px; }
    100% { left: calc(100% + 10px); }
}

.optimization-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.optimization-point {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #F59E0B;
    border-radius: 50%;
    animation: optimizationBlink 2s ease-in-out infinite;
}

.opt-1 { top: 20%; left: 40%; animation-delay: 0s; }
.opt-2 { bottom: 20%; right: 30%; animation-delay: 1s; }

@keyframes optimizationBlink {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 8px #F59E0B; }
}

.zone-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--municipal-blue);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 5px;
}

.zone-label i {
    font-size: 1rem;
}

/* Real-time Data Analytics Dashboard */
.analytics-dashboard {
    position: absolute;
    top: 15%;
    left: 8%;
    z-index: 18;
}

.data-visualization {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-panel {
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--municipal-blue);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-municipal);
    animation: panelGlow 6s ease-in-out infinite;
}

@keyframes panelGlow {
    0%, 100% { 
        opacity: 0.95; 
        box-shadow: var(--shadow-municipal);
    }
    50% { 
        opacity: 1; 
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    }
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-municipal);
    color: var(--municipal-blue);
    font-size: 0.9rem;
    font-weight: 700;
}

.metric-chart {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    height: 60px;
    margin-bottom: 10px;
}

.chart-bar {
    flex: 1;
    background: var(--municipal-gradient);
    border-radius: 3px 3px 0 0;
    position: relative;
    animation: barGrow 4s ease-in-out infinite;
    transition: height 0.3s ease;
}

.bar-1 { 
    height: 70%; 
    animation-delay: 0s; 
}
.bar-2 { 
    height: 85%; 
    animation-delay: 0.5s; 
}
.bar-3 { 
    height: 60%; 
    animation-delay: 1s; 
}
.bar-4 { 
    height: 90%; 
    animation-delay: 1.5s; 
}

@keyframes barGrow {
    0%, 100% { transform: scaleY(1); opacity: 0.8; }
    50% { transform: scaleY(1.1); opacity: 1; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
}

.metric-labels {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.metric-labels span {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    flex: 1;
}

.alert-feed {
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--municipal-blue);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-municipal);
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    animation: feedItemSlide 5s ease-in-out infinite;
}

.item-1 { animation-delay: 0s; }
.item-2 { animation-delay: 1.7s; }
.item-3 { animation-delay: 3.4s; }

.feed-item:last-child {
    border-bottom: none;
}

@keyframes feedItemSlide {
    0%, 90%, 100% { transform: translateX(0); opacity: 0.8; }
    95% { transform: translateX(5px); opacity: 1; }
}

.feed-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: bold;
}

.feed-icon.success {
    background: #10B981;
    animation: successPulse 3s ease-in-out infinite;
}

.feed-icon.warning {
    background: #F59E0B;
    animation: warningPulse 2s ease-in-out infinite;
}

.feed-icon.info {
    background: #06B6D4;
    animation: infoPulse 4s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

@keyframes warningPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

@keyframes infoPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
}

.feed-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Neural Signal Waves */
.signal-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    overflow: hidden;
}

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

.signal-wave {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
    animation: waveTravel 8s linear infinite;
}

.layer-1 .signal-wave {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
}

.layer-2 .signal-wave {
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.wave-1 {
    top: 20%;
    left: 0;
    width: 100%;
    animation-delay: 0s;
}

.wave-2 {
    top: 40%;
    left: 0;
    width: 100%;
    animation-delay: 2s;
}

.wave-3 {
    top: 60%;
    left: 0;
    width: 100%;
    animation-delay: 4s;
}

.wave-4 {
    top: 30%;
    left: 0;
    width: 100%;
    animation-delay: 1s;
}

.wave-5 {
    top: 70%;
    left: 0;
    width: 100%;
    animation-delay: 6s;
}

@keyframes waveTravel {
    0% { 
        transform: translateX(-100%) scaleX(0.5); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
        transform: translateX(-50%) scaleX(1); 
    }
    90% { 
        opacity: 1; 
        transform: translateX(50%) scaleX(1); 
    }
    100% { 
        transform: translateX(100%) scaleX(0.5); 
        opacity: 0; 
    }
}

/* Neural City Brain Responsive Design */
@media (max-width: 1200px) {
    .neural-city-brain {
        transform: scale(0.9);
    }
    
    .ai-brain-core {
        right: 8%;
    }
    
    .brain-sphere {
        width: 160px;
        height: 160px;
    }
    
    .neural-network {
        width: 55%;
        height: 55%;
    }
    
    .city-intelligence {
        width: 50%;
        height: 30%;
    }
    
    .metric-panel {
        width: 180px;
    }
    
    .alert-feed {
        width: 180px;
    }
}

@media (max-width: 992px) {
    .neural-city-brain {
        transform: scale(0.8);
        opacity: 0.9;
    }
    
    .ai-brain-core {
        right: 5%;
    }
    
    .brain-sphere {
        width: 140px;
        height: 140px;
    }
    
    .brain-core-center {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .neural-network {
        width: 50%;
        height: 50%;
    }
    
    .neuron {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .city-intelligence {
        width: 45%;
        height: 25%;
    }
    
    .smart-zone {
        padding: 12px;
    }
    
    .zone-visual {
        height: 50px;
    }
    
    .metric-panel {
        width: 160px;
        padding: 12px;
    }
    
    .alert-feed {
        width: 160px;
        padding: 12px;
    }
    
    .feed-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .neural-city-brain {
        transform: scale(0.7);
        opacity: 0.8;
    }
    
    .brain-sphere {
        width: 120px;
        height: 120px;
    }
    
    .brain-core-center {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .neural-network {
        width: 45%;
        height: 45%;
    }
    
    .neuron {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .neuron-cluster {
        gap: 15px;
    }
    
    .synapse-line {
        height: 2px;
        opacity: 0.4;
    }
    
    .signal-pulse {
        width: 8px;
        height: 8px;
    }
    
    .city-intelligence {
        width: 40%;
        height: 20%;
        gap: 15px;
    }
    
    .smart-zone {
        padding: 8px;
        border-radius: 10px;
    }
    
    .zone-visual {
        height: 40px;
    }
    
    .zone-label {
        font-size: 0.7rem;
        gap: 6px;
    }
    
    .zone-label i {
        font-size: 0.8rem;
    }
    
    .metric-panel {
        width: 140px;
        padding: 10px;
    }
    
    .metric-header {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .metric-chart {
        height: 50px;
    }
    
    .metric-labels span {
        font-size: 0.5rem;
    }
    
    .alert-feed {
        width: 140px;
        padding: 10px;
    }
    
    .feed-item {
        padding: 6px 0;
    }
    
    .feed-icon {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
    
    .feed-text {
        font-size: 0.6rem;
    }
    
    .signal-waves {
        opacity: 0.6;
    }
    
    .signal-wave {
        opacity: 0.4;
    }
}

/* Simplified Smart City Animation */
.simplified-city-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.icon-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--municipal-blue);
    font-size: 24px;
    animation: floatGently 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.icon-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: rotateGradient 8s linear infinite;
}

.icon-1 { top: 20%; left: 15%; animation-delay: 0s; }
.icon-2 { top: 25%; right: 20%; animation-delay: 1s; }
.icon-3 { bottom: 30%; left: 20%; animation-delay: 2s; }
.icon-4 { bottom: 25%; right: 25%; animation-delay: 3s; }
.icon-5 { top: 60%; left: 10%; animation-delay: 4s; }
.icon-6 { top: 70%; right: 15%; animation-delay: 5s; }

@keyframes floatGently {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-20px) scale(1.05);
        opacity: 1;
    }
}

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

/* Data Flow Lines */
.data-flow-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.flow-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
    animation: dataFlow 4s ease-in-out infinite;
}

.line-1 {
    top: 30%;
    left: 20%;
    width: 120px;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.line-2 {
    top: 50%;
    right: 25%;
    width: 100px;
    transform: rotate(-30deg);
    animation-delay: 1.5s;
}

.line-3 {
    bottom: 40%;
    left: 50%;
    width: 80px;
    transform: rotate(60deg);
    animation-delay: 3s;
}

@keyframes dataFlow {
    0% { 
        opacity: 0;
        transform: scaleX(0) rotate(var(--rotation));
    }
    50% {
        opacity: 1;
        transform: scaleX(1) rotate(var(--rotation));
    }
    100% { 
        opacity: 0;
        transform: scaleX(0) rotate(var(--rotation));
    }
}

/* AI Core */
.ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.core-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--municipal-blue), var(--municipal-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    animation: corePulse 3s ease-in-out infinite;
}

.core-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: pulseExpand 2s ease-out infinite;
}

@keyframes corePulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes pulseExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .icon-item {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .core-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .core-pulse {
        width: 90px;
        height: 90px;
    }
    
    .flow-line {
        height: 1px;
    }
    
    .line-1 { width: 80px; }
    .line-2 { width: 60px; }
    .line-3 { width: 50px; }
}

/* Smart City System Animation */
.smart-city-system-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px 0;
}

.system-control-panel {
    width: 100%;
    max-width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 2px solid var(--municipal-blue);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--municipal-gradient);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.system-status.online {
    color: #10B981;
}

.system-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex: 1;
}

.system-module {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.system-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.15);
}

.module-header {
    background: rgba(30, 58, 138, 0.1);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--municipal-blue);
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
}

.module-header i {
    font-size: 1rem;
}

.status-indicator {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.status-indicator.processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
    animation: processingPulse 2s ease-in-out infinite;
}

@keyframes processingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.module-content {
    padding: 15px;
    height: 120px;
}

/* Camera Module */
.camera-feeds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: 100%;
}

.camera-feed {
    background: #1a1a2e;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    animation: feedFlicker 4s ease-in-out infinite;
}

.feed-1 { animation-delay: 0s; }
.feed-2 { animation-delay: 1s; }
.feed-3 { animation-delay: 2s; }
.feed-4 { animation-delay: 3s; }

@keyframes feedFlicker {
    0%, 90%, 100% { opacity: 0.9; }
    95% { opacity: 1; }
}

.feed-overlay {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    z-index: 2;
}

.camera-id {
    background: rgba(30, 58, 138, 0.8);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.detection-status {
    background: rgba(16, 185, 129, 0.8);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
}

.detection-status.alert {
    background: rgba(239, 68, 68, 0.9);
    animation: alertBlink 1s ease-in-out infinite;
}

@keyframes alertBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Drone Module */
.drone-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.drone-unit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--municipal-blue);
}

.drone-unit i {
    font-size: 0.9rem;
}

.battery-level {
    width: 40px;
    height: 4px;
    background: rgba(30, 58, 138, 0.2);
    border-radius: 2px;
    margin-left: auto;
    overflow: hidden;
}

.battery-fill {
    height: 100%;
    background: #10B981;
    border-radius: 2px;
    transition: width 2s ease;
}

/* Sensor Module */
.sensor-network {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: 100%;
}

.sensor-node {
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--municipal-blue);
    animation: sensorPulse 3s ease-in-out infinite;
}

.sensor-node:nth-child(2) { animation-delay: 0.5s; }
.sensor-node:nth-child(3) { animation-delay: 1s; }
.sensor-node:nth-child(4) { animation-delay: 1.5s; }

@keyframes sensorPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.sensor-node i {
    font-size: 1rem;
}

/* AI Module */
.ai-processing {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.processing-indicator {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.processing-bar {
    width: 100%;
    height: 6px;
    background: rgba(30, 58, 138, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--municipal-gradient);
    border-radius: 3px;
    animation: progressFill 2s ease-in-out infinite;
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

.processing-text {
    font-size: 0.7rem;
    color: var(--municipal-blue);
    text-align: center;
    font-weight: 500;
}

.neural-activity {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex: 1;
    align-items: center;
}

.neuron {
    width: 8px;
    height: 8px;
    background: rgba(30, 58, 138, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.neuron.active {
    background: var(--municipal-blue);
    animation: neuronPulse 1.5s ease-in-out infinite;
}

.neuron:nth-child(1) { animation-delay: 0s; }
.neuron:nth-child(2) { animation-delay: 0.3s; }
.neuron:nth-child(3) { animation-delay: 0.6s; }

@keyframes neuronPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* System Analytics */
.system-analytics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: var(--municipal-gradient);
    border-radius: 10px;
    padding: 15px;
    color: white;
}

.analytics-item {
    text-align: center;
    font-size: 0.8rem;
}

.analytics-item i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.analytics-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.analytics-label {
    font-weight: 500;
    opacity: 0.9;
    font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .system-control-panel {
        max-width: 100%;
        height: 450px;
    }
    
    .system-grid {
        gap: 10px;
    }
    
    .module-content {
        height: 100px;
        padding: 10px;
    }
    
    .system-analytics {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .system-control-panel {
        height: 400px;
        padding: 15px;
    }
    
    .panel-header {
        font-size: 0.8rem;
        padding: 10px;
    }
    
    .system-grid {
        gap: 8px;
    }
    
    .module-header {
        font-size: 0.7rem;
        padding: 8px;
    }
    
    .camera-feeds {
        gap: 5px;
    }
    
    .sensor-network {
        gap: 5px;
    }
    
    .drone-status {
        gap: 5px;
    }
}

/* Solution Visualization Styles */
.solution-visualization {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-camera-system {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px;
}

.camera-network {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 2px solid var(--municipal-blue);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.control-display {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
}

.display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--municipal-gradient);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3;
}

.system-status.online {
    color: #10B981;
}

.camera-count {
    font-size: 0.8rem;
    opacity: 0.9;
}

.camera-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
    z-index: 2;
}

.camera-feed {
    background: #1a1a2e;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    animation: feedFlicker 4s ease-in-out infinite;
    z-index: 2;
}

.feed-1 { animation-delay: 0s; }
.feed-2 { animation-delay: 1s; }
.feed-3 { animation-delay: 2s; }
.feed-4 { animation-delay: 3s; }

@keyframes feedFlicker {
    0%, 90%, 100% { opacity: 0.9; }
    95% { opacity: 1; }
}

.feed-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    z-index: 4;
}

.camera-id {
    background: rgba(30, 58, 138, 0.9);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.6rem;
}

.detection-alert {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    animation: alertBlink 1s ease-in-out infinite;
}

.status-safe {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
}

.object-detected {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
}

@keyframes alertBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.detection-box {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    z-index: 3;
}

.detection-box.person {
    background: rgba(16, 185, 129, 0.9);
}

.detection-box.object {
    background: rgba(59, 130, 246, 0.9);
}

.detection-label {
    font-size: 0.6rem;
}

.motion-tracking {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 3;
}

.tracking-point {
    width: 8px;
    height: 8px;
    background: #F59E0B;
    border-radius: 50%;
    animation: trackingPulse 2s ease-in-out infinite;
}

@keyframes trackingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

.analytics-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 8px;
    padding: 12px;
    z-index: 2;
}

.analytic-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--municipal-blue);
}

.analytic-item i {
    font-size: 1rem;
    opacity: 0.8;
}

.analytic-item.alert i {
    color: #EF4444;
    animation: alertPulse 1s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* AI Processing Section - Fixed z-index */
.ai-processing {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 80px;
    background: rgba(30, 58, 138, 0.95);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.processing-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 0.7rem;
    text-align: center;
}

.processing-node i {
    font-size: 1.2rem;
    color: #10B981;
}

.processing-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #06B6D4);
    border-radius: 2px;
    animation: progressFill 2s ease-in-out infinite;
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* Responsive Design for Solution Visualization */
@media (max-width: 768px) {
    .solution-visualization {
        height: 400px;
        margin-top: 30px;
    }
    
    .camera-network {
        padding: 15px;
    }
    
    .camera-grid {
        gap: 8px;
    }
    
    .camera-feed {
        min-height: 100px;
    }
    
    .ai-processing {
        width: 100px;
        height: 70px;
        top: 15px;
        right: 15px;
        padding: 10px;
    }
    
    .analytics-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .solution-visualization {
        height: 350px;
    }
    
    .camera-network {
        padding: 12px;
    }
    
    .display-header {
        font-size: 0.8rem;
        padding: 12px;
    }
    
    .camera-grid {
        gap: 6px;
    }
    
    .camera-feed {
        min-height: 80px;
    }
    
    .ai-processing {
        width: 90px;
        height: 60px;
        top: 10px;
        right: 10px;
        padding: 8px;
    }
    
    .processing-node {
        font-size: 0.6rem;
    }
    
    .processing-node i {
        font-size: 1rem;
    }
}


