/* Additional Animations and Effects */

/* Ripple effect for buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Glow effect for cards on hover */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Animated gradient background */
.gradient-animation {
    background: linear-gradient(-45deg, #0066FF, #00D4FF, #FF3366, #0066FF);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

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

/* NewDimension Tab Visualizations */

/* Security & Surveillance Visualization */
.security-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
}

.surveillance-field {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.scanning-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid #0045FF;
    border-radius: 50%;
    background: rgba(0, 69, 255, 0.1);
    animation: screen-scanning 3s ease-in-out infinite;
}

.scanning-screen::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #0045FF;
    border-radius: 50%;
    animation: center-pulse 2s ease-in-out infinite;
}

.target-object {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(128, 128, 128, 0.6);
    border-radius: 3px;
    animation: object-identification 4s ease-in-out infinite;
}

.target-1 {
    top: 30%;
    left: 25%;
    animation-delay: 0s;
}

.target-2 {
    top: 60%;
    left: 65%;
    animation-delay: 1.5s;
}

.target-3 {
    top: 40%;
    right: 20%;
    animation-delay: 2.5s;
}

@keyframes screen-scanning {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes center-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes object-identification {
    0%, 70% { background: rgba(128, 128, 128, 0.6); box-shadow: none; }
    80%, 100% { background: #ff7a30; box-shadow: 0 0 10px rgba(255, 122, 48, 0.6); }
}

/* Navigation & Search Visualization */
.navigation-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
}

.navigation-field {
    position: relative;
    width: 100%;
    height: 100%;
}

.blue-drone {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #0045FF;
    border-radius: 50%;
    animation: drone-navigation 6s linear infinite;
    z-index: 10;
}

.obstacle {
    position: absolute;
    background: rgba(128, 128, 128, 0.6);
    border-radius: 4px;
}

.obstacle-1 {
    width: 25px;
    height: 35px;
    top: 20%;
    left: 30%;
}

.obstacle-2 {
    width: 30px;
    height: 20px;
    top: 50%;
    left: 60%;
}

.obstacle-3 {
    width: 20px;
    height: 30px;
    top: 70%;
    left: 25%;
}

.obstacle-4 {
    width: 35px;
    height: 25px;
    top: 35%;
    left: 70%;
}

.nav-path {
    position: absolute;
    width: 100%;
    height: 100%;
}

.path-line {
    position: absolute;
    height: 2px;
    background: rgba(0, 69, 255, 0.3);
    animation: path-reveal 6s linear infinite;
}

.path-1 {
    top: 15%;
    left: 10%;
    width: 25%;
    transform: rotate(30deg);
    animation-delay: 0s;
}

.path-2 {
    top: 40%;
    left: 25%;
    width: 30%;
    transform: rotate(-20deg);
    animation-delay: 1s;
}

.path-3 {
    top: 65%;
    left: 40%;
    width: 25%;
    transform: rotate(15deg);
    animation-delay: 2s;
}

@keyframes drone-navigation {
    0% { top: 10%; left: 10%; transform: scale(1); }
    16% { top: 25%; left: 35%; transform: scale(1.2); }
    33% { top: 45%; left: 45%; transform: scale(1); }
    50% { top: 60%; left: 65%; transform: scale(1.2); }
    66% { top: 75%; left: 50%; transform: scale(1); }
    83% { top: 80%; left: 80%; transform: scale(1.2); }
    100% { top: 10%; left: 10%; transform: scale(1); }
}

@keyframes path-reveal {
    0%, 80% { width: 0%; opacity: 0; }
    90%, 100% { opacity: 0.6; }
}

/* Enhanced Object Detection Visualization */
.detection-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
}

.vision-field {
    position: relative;
    width: 100%;
    height: 100%;
}

.point-cloud {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tree-structure {
    position: absolute;
    background: rgba(128, 128, 128, 0.4);
    border-radius: 2px;
}

.tree-1 {
    width: 8px;
    height: 40px;
    top: 20%;
    left: 25%;
}

.tree-2 {
    width: 6px;
    height: 35px;
    top: 30%;
    left: 45%;
}

.tree-3 {
    width: 10px;
    height: 45px;
    top: 15%;
    left: 65%;
}

.tree-4 {
    width: 7px;
    height: 38px;
    top: 40%;
    left: 35%;
}

.tree-5 {
    width: 9px;
    height: 42px;
    top: 25%;
    left: 75%;
}

.point-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #0045FF;
    border-radius: 50%;
    animation: particle-reveal 4s ease-in-out infinite;
}

.particle-1 { top: 25%; left: 27%; animation-delay: 0s; }
.particle-2 { top: 35%; left: 47%; animation-delay: 0.2s; }
.particle-3 { top: 20%; left: 67%; animation-delay: 0.4s; }
.particle-4 { top: 45%; left: 37%; animation-delay: 0.6s; }
.particle-5 { top: 30%; left: 77%; animation-delay: 0.8s; }
.particle-6 { top: 50%; left: 30%; animation-delay: 1s; }
.particle-7 { top: 55%; left: 50%; animation-delay: 1.2s; }
.particle-8 { top: 40%; left: 70%; animation-delay: 1.4s; }
.particle-9 { top: 60%; left: 40%; animation-delay: 1.6s; }
.particle-10 { top: 65%; left: 60%; animation-delay: 1.8s; }

@keyframes particle-reveal {
    0%, 50% { opacity: 0; transform: scale(0); }
    60%, 90% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}

/* Risk Assessment Visualization */
.risk-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
}

.risk-assessment-field {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-drone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #0045FF;
    border-radius: 50%;
    z-index: 10;
}

.risk-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid #0045FF;
    border-radius: 50%;
    animation: pulse-scan 3s ease-in-out infinite;
}

.surrounding-object {
    position: absolute;
    width: 16px;
    height: 16px;
    background: rgba(128, 128, 128, 0.6);
    border-radius: 4px;
    animation: object-highlight 3s ease-in-out infinite;
}

.object-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.object-2 {
    top: 30%;
    right: 25%;
    animation-delay: 0s;
}

.object-3 {
    bottom: 25%;
    left: 25%;
    animation-delay: 0s;
}

.object-4 {
    bottom: 30%;
    right: 30%;
    animation-delay: 0s;
}

.object-5 {
    top: 50%;
    left: 15%;
    animation-delay: 0s;
}

.object-6 {
    top: 50%;
    right: 15%;
    animation-delay: 0s;
}

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

@keyframes object-highlight {
    0%, 70% { 
        background: rgba(128, 128, 128, 0.6); 
        box-shadow: none; 
    }
    80%, 100% { 
        background: #ff7a30; 
        box-shadow: 0 0 15px rgba(255, 122, 48, 0.6); 
    }
}

/* Make one random object highlight per pulse cycle */
.object-1 { animation-delay: 0s; }
.object-2 { animation-delay: 3s; }
.object-3 { animation-delay: 6s; }
.object-4 { animation-delay: 9s; }
.object-5 { animation-delay: 12s; }
.object-6 { animation-delay: 15s; }

/* Bluea Page Tab Visualizations */

/* Unified Control Visualization */
.unified-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-profile {
    position: relative;
    width: 120px;
    height: 40px;
    background: rgba(128, 128, 128, 0.6);
    border-radius: 8px 8px 4px 4px;
    animation: car-movement 4s ease-in-out infinite;
}

.car-profile::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 15%;
    width: 12px;
    height: 12px;
    background: rgba(64, 64, 64, 0.8);
    border-radius: 50%;
}

.car-profile::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 15%;
    width: 12px;
    height: 12px;
    background: rgba(64, 64, 64, 0.8);
    border-radius: 50%;
}

.blue-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #0045FF;
    border-radius: 50%;
    animation: core-glow 2s ease-in-out infinite;
}

@keyframes car-movement {
    0%, 100% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
}

@keyframes core-glow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        box-shadow: 0 0 10px rgba(0, 69, 255, 0.6); 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.3); 
        box-shadow: 0 0 20px rgba(0, 69, 255, 1); 
    }
}

/* Efficiency Visualization */
.efficiency-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.battery-icon {
    position: relative;
    width: 80px;
    height: 40px;
    border: 3px solid rgba(128, 128, 128, 0.6);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
}

.battery-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 5px;
    height: 16px;
    background: rgba(128, 128, 128, 0.6);
    border-radius: 0 2px 2px 0;
}

.battery-fill {
    position: absolute;
    top: 3px;
    left: 3px;
    bottom: 3px;
    width: calc(95% - 6px);
    background: linear-gradient(to right, #00ff88 0%, #00ff88 100%);
    border-radius: 2px;
    animation: battery-charging 3s ease-in-out infinite;
}

.charging-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff88;
    font-size: 1.2rem;
    font-weight: bold;
    animation: charge-pulse 2s ease-in-out infinite;
}

@keyframes battery-charging {
    0%, 10% { width: calc(20% - 6px); }
    90%, 100% { width: calc(95% - 6px); }
}

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

/* Scalability Visualization */
.scalability-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scale-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.scale-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #0045FF;
    border-radius: 50%;
    opacity: 0;
    animation: dot-sequence 8s ease-in-out infinite;
}

.dot-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}

.dot-2 {
    top: 30%;
    left: 60%;
    animation-delay: 1s;
}

.dot-3 {
    top: 70%;
    left: 60%;
    animation-delay: 2s;
}

.dot-4 {
    top: 30%;
    left: 40%;
    animation-delay: 3s;
}

.dot-5 {
    top: 70%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes dot-sequence {
    0%, 12.5% { opacity: 0; transform: scale(0); }
    25%, 75% { opacity: 1; transform: scale(1); }
    87.5%, 100% { opacity: 0; transform: scale(0); }
}

/* Neural Network Visualization (with Adaptive Control) */
.neural-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.adaptive-car {
    position: relative;
    width: 80px;
    height: 30px;
    background: rgba(128, 128, 128, 0.6);
    border-radius: 6px 6px 2px 2px;
    animation: adaptive-movement 4s ease-in-out infinite;
}

.adaptive-car::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 12%;
    width: 8px;
    height: 8px;
    background: rgba(64, 64, 64, 0.8);
    border-radius: 50%;
}

.adaptive-car::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 12%;
    width: 8px;
    height: 8px;
    background: rgba(64, 64, 64, 0.8);
    border-radius: 50%;
}

.data-input {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #0045FF;
    border-radius: 50%;
    animation: data-flow-input 3s ease-in-out infinite;
}

.input-top {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.input-left {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.input-right {
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.input-bottom {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.5s;
}

.control-output {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ff7a30;
    border-radius: 50%;
    animation: control-response 2s ease-in-out infinite;
}

@keyframes adaptive-movement {
    0%, 100% { transform: translateX(-5px) rotate(-1deg); }
    50% { transform: translateX(5px) rotate(1deg); }
}

@keyframes data-flow-input {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(0); }
}

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

/* Adaptive Control Visualization */
.adaptive-visualization {
    position: relative;
    width: 100%;
    height: 200px;
    background: radial-gradient(circle at center, rgba(255, 153, 0, 0.06) 0%, transparent 70%);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adaptation-cycle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 153, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cycle-step {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: adaptation-step 8s ease-in-out infinite;
}

.sense {
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.analyze {
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.adapt {
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

.execute {
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 6s;
}

.step-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 153, 0, 0.7);
    border-radius: 50%;
    margin-bottom: 0.5rem;
    animation: step-activation 2s ease-in-out infinite;
}

.cycle-step span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-align: center;
}

.cycle-center {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-align: center;
}

@keyframes adaptation-step {
    0%, 75% { opacity: 0.5; transform: scale(0.9); }
    12.5%, 37.5% { opacity: 1; transform: scale(1.1); }
}

@keyframes step-activation {
    0%, 100% { transform: scale(1); background: rgba(255, 153, 0, 0.7); }
    50% { transform: scale(1.3); background: rgba(255, 204, 0, 0.9); }
}

/* Safety Architecture Visualization */
.safety-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.safety-layers {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.safety-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: safety-shield 4s ease-in-out infinite;
}

.primary {
    width: 150px;
    height: 150px;
    border-color: rgba(34, 197, 94, 0.8);
    animation-delay: 0s;
}

.secondary {
    width: 110px;
    height: 110px;
    border-color: rgba(59, 130, 246, 0.8);
    animation-delay: 1s;
}

.tertiary {
    width: 70px;
    height: 70px;
    border-color: rgba(168, 85, 247, 0.8);
    animation-delay: 2s;
}

.safety-core {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(0, 69, 255, 0.7) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: core-protection 3s ease-in-out infinite;
    z-index: 10;
}

.safety-ring span {
    position: absolute;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.safety-core span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

@keyframes safety-shield {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes core-protection {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 255, 255, 0.6); }
}

/* Floating elements */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* Swarm Page Mission Scenario Visualizations */

/* Harbour Security Visualization */
.harbour-visualization {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 212, 255, 0.12) 100%);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.harbour-layout {
    position: relative;
    width: 100%;
    height: 100%;
}

.port-structure {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    animation: infrastructure-monitoring 4s ease-in-out infinite;
}

.patrol-drones {
    position: relative;
    width: 100%;
    height: 100%;
}

.patrol-drone {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(0, 212, 255, 0.8);
    border-radius: 50%;
    animation: patrol-movement 6s linear infinite;
}

.drone-1 {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.drone-2 {
    top: 60%;
    left: 40%;
    animation-delay: 2s;
}

.drone-3 {
    top: 45%;
    left: 70%;
    animation-delay: 4s;
}

.patrol-paths {
    position: absolute;
    width: 100%;
    height: 100%;
}

.patrol-path {
    position: absolute;
    border: 2px dashed rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    animation: path-activation 8s ease-in-out infinite;
}

.path-1 {
    top: 25%;
    left: 15%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.path-2 {
    top: 40%;
    left: 50%;
    width: 100px;
    height: 60px;
    animation-delay: 2s;
}

@keyframes infrastructure-monitoring {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); }
    50% { opacity: 1; box-shadow: 0 0 25px rgba(0, 212, 255, 0.4); }
}

@keyframes patrol-movement {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -10px) scale(1.2); }
    50% { transform: translate(20px, 20px) scale(1); }
    75% { transform: translate(-15px, 10px) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); }
}

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

/* Search & Rescue Visualization */
.search-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
}

.search-grid {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 2px;
    padding: 10px;
}

.search-cell {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 2px;
    position: relative;
}

/* Create 64 cells with sequential scanning animation */
.search-cell:nth-child(1) { animation: grid-scan 8s linear infinite; animation-delay: 0s; }
.search-cell:nth-child(2) { animation: grid-scan 8s linear infinite; animation-delay: 0.125s; }
.search-cell:nth-child(3) { animation: grid-scan 8s linear infinite; animation-delay: 0.25s; }
.search-cell:nth-child(4) { animation: grid-scan 8s linear infinite; animation-delay: 0.375s; }
.search-cell:nth-child(5) { animation: grid-scan 8s linear infinite; animation-delay: 0.5s; }
.search-cell:nth-child(6) { animation: grid-scan 8s linear infinite; animation-delay: 0.625s; }
.search-cell:nth-child(7) { animation: grid-scan 8s linear infinite; animation-delay: 0.75s; }
.search-cell:nth-child(8) { animation: grid-scan 8s linear infinite; animation-delay: 0.875s; }

/* Row 2 - reverse direction */
.search-cell:nth-child(16) { animation: grid-scan 8s linear infinite; animation-delay: 1s; }
.search-cell:nth-child(15) { animation: grid-scan 8s linear infinite; animation-delay: 1.125s; }
.search-cell:nth-child(14) { animation: grid-scan 8s linear infinite; animation-delay: 1.25s; }
.search-cell:nth-child(13) { animation: grid-scan 8s linear infinite; animation-delay: 1.375s; }
.search-cell:nth-child(12) { animation: grid-scan 8s linear infinite; animation-delay: 1.5s; }
.search-cell:nth-child(11) { animation: grid-scan 8s linear infinite; animation-delay: 1.625s; }
.search-cell:nth-child(10) { animation: grid-scan 8s linear infinite; animation-delay: 1.75s; }
.search-cell:nth-child(9) { animation: grid-scan 8s linear infinite; animation-delay: 1.875s; }

/* Continue pattern for all 64 cells... */
.search-cell:nth-child(17) { animation: grid-scan 8s linear infinite; animation-delay: 2s; }
.search-cell:nth-child(18) { animation: grid-scan 8s linear infinite; animation-delay: 2.125s; }
.search-cell:nth-child(19) { animation: grid-scan 8s linear infinite; animation-delay: 2.25s; }
.search-cell:nth-child(20) { animation: grid-scan 8s linear infinite; animation-delay: 2.375s; }
.search-cell:nth-child(21) { animation: grid-scan 8s linear infinite; animation-delay: 2.5s; }
.search-cell:nth-child(22) { animation: grid-scan 8s linear infinite; animation-delay: 2.625s; }
.search-cell:nth-child(23) { animation: grid-scan 8s linear infinite; animation-delay: 2.75s; }
.search-cell:nth-child(24) { animation: grid-scan 8s linear infinite; animation-delay: 2.875s; }

/* Target cell that appears at random location */
.target-found {
    background: #ff7a30 !important;
    box-shadow: 0 0 8px rgba(255, 122, 48, 0.8);
    animation: target-pulse 1s ease-in-out infinite !important;
}

@keyframes grid-scan {
    0%, 85% { background: rgba(128, 128, 128, 0.3); }
    10%, 15% { background: #00ff88; box-shadow: 0 0 6px rgba(0, 255, 136, 0.6); }
    90%, 100% { background: rgba(128, 128, 128, 0.3); }
}

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

/* Force Protection Visualization */
.protection-visualization {
    position: relative;
    width: 100%;
    height: 200px;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.08) 0%, transparent 70%);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.protection-perimeter {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.protected-asset {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.8);
    border-radius: 50%;
    animation: asset-protection 3s ease-in-out infinite;
    z-index: 10;
}

.perimeter-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: perimeter-sweep 4s ease-in-out infinite;
}

.ring-1 {
    width: 120px;
    height: 120px;
    border-color: rgba(0, 255, 136, 0.6);
    animation-delay: 0s;
}

.ring-2 {
    width: 180px;
    height: 180px;
    border-color: rgba(0, 212, 255, 0.4);
    animation-delay: 2s;
}

@keyframes asset-protection {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(0, 255, 136, 0.7); }
}

@keyframes perimeter-sweep {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Mine Countermeasures Visualization */
.mine-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
}

.survey-pattern {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-mine {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ff7a30;
    border-radius: 50%;
    animation: mine-floating 4s ease-in-out infinite;
}

.mine-1 {
    top: 25%;
    left: 30%;
    animation-delay: 0s;
}

.mine-2 {
    top: 60%;
    left: 70%;
    animation-delay: 1s;
}

.mine-3 {
    top: 45%;
    left: 50%;
    animation-delay: 2s;
}

.scanning-drone {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #0045FF;
    border-radius: 50%;
    animation: drone-scanning 6s linear infinite;
}

.scan-drone-1 {
    animation-delay: 0s;
}

.scan-drone-2 {
    animation-delay: 3s;
}

.scanning-beam {
    position: absolute;
    width: 20px;
    height: 2px;
    background: linear-gradient(to right, #0045FF, transparent);
    animation: beam-sweep 3s ease-in-out infinite;
}

@keyframes mine-floating {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.8; }
    50% { transform: translateY(-3px) scale(1.1); opacity: 1; }
}

@keyframes drone-scanning {
    0% { top: 20%; left: 20%; }
    25% { top: 20%; left: 70%; }
    50% { top: 70%; left: 70%; }
    75% { top: 70%; left: 20%; }
    100% { top: 20%; left: 20%; }
}

@keyframes beam-sweep {
    0% { width: 0px; opacity: 0; }
    50% { width: 40px; opacity: 0.8; }
    100% { width: 0px; opacity: 0; }
}

/* Intelligence Gathering Visualization */
.intelligence-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
}

.stealth-operation {
    position: relative;
    width: 100%;
    height: 100%;
}

.water-surface {
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, rgba(0, 100, 150, 0.6), rgba(0, 50, 100, 0.8));
    border-radius: 0 0 15px 15px;
}

.underwater-drone {
    position: absolute;
    top: 60%;
    left: 30%;
    width: 8px;
    height: 8px;
    background: rgba(0, 69, 255, 0.7);
    border-radius: 50%;
    animation: underwater-movement 6s ease-in-out infinite;
}

.underwater-drone-2 {
    position: absolute;
    top: 70%;
    left: 60%;
    width: 8px;
    height: 8px;
    background: rgba(0, 69, 255, 0.6);
    border-radius: 50%;
    animation: underwater-movement 6s ease-in-out infinite;
    animation-delay: 3s;
}

.surface-searchlight {
    position: absolute;
    top: 20%;
    width: 60px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 0, 0.4), transparent);
    border-radius: 50%;
    animation: searchlight-sweep 4s linear infinite;
}

.searchlight-1 {
    left: 20%;
    animation-delay: 0s;
}

.searchlight-2 {
    right: 20%;
    animation-delay: 2s;
}

@keyframes underwater-movement {
    0%, 100% { transform: translateX(0px) translateY(0px); opacity: 0.6; }
    25% { transform: translateX(15px) translateY(-5px); opacity: 0.8; }
    50% { transform: translateX(10px) translateY(5px); opacity: 0.7; }
    75% { transform: translateX(-10px) translateY(-3px); opacity: 0.8; }
}

@keyframes searchlight-sweep {
    0% { transform: translateX(-30px); opacity: 0.8; }
    50% { transform: translateX(30px); opacity: 1; }
    100% { transform: translateX(-30px); opacity: 0.8; }
}

/* Offshore Security Visualization */
.offshore-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid rgba(128, 128, 128, 0.2);
}

.offshore-platform {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Wind Turbines */
.wind-turbine {
    position: absolute;
    width: 4px;
    height: 40px;
    background: #888;
    border-radius: 2px;
}

.wind-turbine-1 {
    top: 60px;
    left: 50px;
}

.wind-turbine-2 {
    top: 80px;
    left: 100px;
}

.wind-turbine-3 {
    top: 70px;
    left: 150px;
}

.wind-turbine::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: #777;
    border-radius: 50%;
}

.wind-turbine::after {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 12px;
    background: #999;
    transform-origin: bottom center;
    animation: turbine-blade 2s linear infinite;
}

/* Patrolling Drones */
.patrol-drone-offshore {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #0045FF;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 69, 255, 0.6);
}

.drone-offshore-1 {
    animation: offshore-patrol-1 8s linear infinite;
}

.drone-offshore-2 {
    animation: offshore-patrol-2 10s linear infinite;
}

@keyframes turbine-blade {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes offshore-patrol-1 {
    0% { left: 30px; top: 50px; }
    25% { left: 80px; top: 30px; }
    50% { left: 130px; top: 50px; }
    75% { left: 80px; top: 120px; }
    100% { left: 30px; top: 50px; }
}

@keyframes offshore-patrol-2 {
    0% { left: 70px; top: 100px; }
    33% { left: 120px; top: 40px; }
    66% { left: 60px; top: 30px; }
    100% { left: 70px; top: 100px; }
}
    33% { transform: translateY(-20px) rotate(-2deg); }
    66% { transform: translateY(-10px) rotate(2deg); }
}

/* Slide in animations */
.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing animation */
.typing-animation {
    overflow: hidden;
    border-right: 2px solid var(--secondary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--secondary) }
}

/* Particle effect background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.5;
    animation: particle-float 10s linear infinite;
}

@keyframes particle-float {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    to {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Shimmer effect for loading states */
.shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.2) 60%, rgba(255,255,255,0));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 4px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* Print styles */
@media print {
    nav, footer, .loader, .cta-button, .secondary-button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #0080FF;
        --secondary: #00FFFF;
        --text-secondary: #E0E0E0;
    }
    
    .card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-lighter);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Selection color */
::selection {
    background: var(--secondary);
    color: var(--dark);
}

/* Swarm Demo Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes droneEntry {
    0% { 
        opacity: 0; 
        transform: scale(0) rotate(0deg); 
        box-shadow: 0 0 0 rgba(0, 102, 255, 0.8);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.2) rotate(180deg); 
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.8);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(360deg); 
        box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
    }
}

@keyframes connectionPulse {
    0%, 100% { opacity: 0.4; stroke-width: 1; }
    50% { opacity: 0.8; stroke-width: 2; }
}

@keyframes coverageExpand {
    0% { r: 0; opacity: 0; }
    50% { r: 25; opacity: 0.3; }
    100% { r: 30; opacity: 0.1; }
}

@keyframes dataTransfer {
    0% { stroke-dashoffset: 20; opacity: 0.8; }
    100% { stroke-dashoffset: 0; opacity: 0.3; }
}

.swarm-drone {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #0066ff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: droneEntry 0.8s ease-out;
}

.swarm-drone:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.8);
}

.swarm-drone.recently-deployed {
    background: #ff6b6b;
    animation: pulse 2s infinite, droneEntry 0.8s ease-out;
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.demo-button:active {
    transform: translateY(0);
}

/* Network health indicator animations */
.network-healthy { color: #51cf66; }
.network-warning { color: #ffd43b; }
.network-critical { color: #ff6b6b; }

/* Auto-deploy mode animation */
@keyframes autoDeployBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.auto-deploy-active {
    animation: autoDeployBlink 1s infinite;
}

/* Improved mobile experience */
@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .swarm-grid {
        height: 300px !important;
    }
    
    .demo-controls {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .demo-stats {
        text-align: center;
        margin-top: 1rem;
    }
}