/* Digital Salute Pro - #PublicAI Enhanced Military Recruitment Styling */

.publicai-cyberpunk-bg {
    background: linear-gradient(135deg, #0F2A44 0%, #2D4A2B 35%, #A01E32 70%, #FFD700 100%);
    background-size: 400% 400%;
    animation: publicAiGradient 20s ease infinite;
    position: relative;
}

.publicai-cyberpunk-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 85%, rgba(0, 191, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(255, 215, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(45, 74, 43, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="neural" patternUnits="userSpaceOnUse" width="60" height="60"><circle cx="10" cy="10" r="2" fill="rgba(0,191,255,0.1)"/><circle cx="50" cy="30" r="1.5" fill="rgba(255,215,0,0.1)"/><circle cx="30" cy="50" r="1" fill="rgba(0,191,255,0.08)"/><path d="M10 10L50 30M50 30L30 50M10 10L30 50" stroke="rgba(0,191,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23neural)"/></svg>');
    background-size: 300px 300px, 200px 200px, 400px 400px, 120px 120px;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

@keyframes publicAiGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 0% 50%; }
    100% { background-position: 50% 0%; }
}

.hero-section {
    background: linear-gradient(135deg, rgba(15, 42, 68, 0.95), rgba(45, 74, 43, 0.95), rgba(160, 30, 50, 0.95), rgba(255, 215, 0, 0.1));
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="rgba(0,191,255,0.3)" opacity="0.8"><animate attributeName="r" values="3;6;3" dur="4s" repeatCount="indefinite"/></circle><circle cx="80" cy="80" r="2" fill="rgba(255,215,0,0.25)"><animate attributeName="opacity" values="0.2;0.8;0.2" dur="3s" repeatCount="indefinite"/></circle><circle cx="50" cy="10" r="1.5" fill="rgba(0,191,255,0.2)"/><circle cx="10" cy="70" r="2.5" fill="rgba(255,215,0,0.15)"/></svg>');
    background-size: 250px 250px;
    animation: neuralFloat 10s ease-in-out infinite;
    opacity: 0.7;
}

.publicai-header {
    background: linear-gradient(90deg, #0F2A44 0%, #2D4A2B 25%, #A01E32 50%, #FFD700 75%, #00BFFF 100%);
    background-size: 300% 100%;
    animation: headerFlow 8s linear infinite;
    border-bottom: 3px solid #FFD700;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.3);
}

@keyframes headerFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.digital-font {
    font-family: 'Orbitron', 'Exo', monospace;
    text-shadow: 
        0 0 10px rgba(0, 191, 255, 0.6),
        0 0 20px rgba(255, 215, 0, 0.4);
}

.cyber-text {
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.4);
}

.publicai-glow {
    text-shadow: 
        0 0 5px rgba(0, 191, 255, 0.6),
        0 0 10px rgba(0, 191, 255, 0.4),
        0 0 15px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 25px rgba(0, 191, 255, 0.2);
    animation: publicAiPulse 3s ease-in-out infinite alternate;
}

@keyframes publicAiPulse {
    from {
        text-shadow: 
            0 0 5px rgba(0, 191, 255, 0.6),
            0 0 10px rgba(255, 215, 0, 0.4);
    }
    to {
        text-shadow: 
            0 0 15px rgba(0, 191, 255, 0.9),
            0 0 25px rgba(255, 215, 0, 0.7),
            0 0 35px rgba(0, 191, 255, 0.5),
            0 0 45px rgba(255, 215, 0, 0.3);
    }
}

.cyber-border {
    border-image: linear-gradient(45deg, #00BFFF, #FFD700, #2D4A2B, #A01E32, #00BFFF) 1;
    box-shadow: 
        0 0 15px rgba(0, 191, 255, 0.4),
        0 0 25px rgba(255, 215, 0, 0.2),
        inset 0 0 15px rgba(0, 191, 255, 0.1);
}

.holographic {
    background: linear-gradient(45deg, #00BFFF, #00FFFF, #FFD700, #00BFFF);
    background-size: 300% 300%;
    animation: holographicShift 4s ease infinite;
    box-shadow: 
        0 0 25px rgba(0, 191, 255, 0.5),
        0 0 35px rgba(255, 215, 0, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.1);
}

@keyframes holographicShift {
    0%, 100% { background-position: 0% 50%; }
    33% { background-position: 100% 50%; }
    66% { background-position: 50% 100%; }
}

.neural-network-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="15" cy="15" r="2" fill="rgba(0,191,255,0.1)"/><circle cx="45" cy="15" r="1.5" fill="rgba(255,215,0,0.1)"/><circle cx="30" cy="45" r="2.5" fill="rgba(0,191,255,0.08)"/><path d="M15 15L45 15M45 15L30 45M15 15L30 45" stroke="rgba(0,191,255,0.06)" stroke-width="1"/></svg>');
    background-size: 60px 60px;
}

.neural-network-overlay {
    position: relative;
}

.neural-network-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="20" cy="20" r="1" fill="rgba(0,191,255,0.15)" opacity="0.6"><animate attributeName="opacity" values="0.2;0.8;0.2" dur="2s" repeatCount="indefinite"/></circle><circle cx="60" cy="20" r="1.5" fill="rgba(255,215,0,0.12)" opacity="0.5"><animate attributeName="opacity" values="0.1;0.6;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="40" cy="60" r="1" fill="rgba(0,191,255,0.1)" opacity="0.7"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="2.5s" repeatCount="indefinite"/></circle></svg>');
    background-size: 80px 80px;
    opacity: 0.8;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes salute {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(-5px) rotate(-2deg); }
    75% { transform: translateY(-8px) rotate(3deg); }
}

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

@keyframes promotion-glow {
    from {
        box-shadow: 
            0 0 10px rgba(255, 215, 0, 0.5),
            0 0 20px rgba(255, 215, 0, 0.3);
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    }
    to {
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.5),
            0 0 60px rgba(255, 215, 0, 0.3);
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 0.9),
            0 0 25px rgba(255, 215, 0, 0.6);
    }
}

@keyframes holographic-scan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.virtual-display {
    border: 3px solid #00BFFF;
    box-shadow: 
        0 0 40px rgba(0, 191, 255, 0.5),
        0 0 60px rgba(255, 215, 0, 0.3),
        inset 0 0 40px rgba(0, 191, 255, 0.1);
    animation: virtualFlicker 5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.virtual-display::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: calc(100% + 4px);
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    animation: holographic-scan 3s linear infinite;
}

@keyframes virtualFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

@keyframes neuralFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
    75% { transform: translateY(-12px) rotate(1deg); }
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 42, 68, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00BFFF, #FFD700);
    border-radius: 5px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00FFFF, #FFF700);
}

/* Advanced button effects */
button:hover {
    transform: translateY(-3px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

button:active {
    transform: translateY(-1px);
}

/* Promotion-specific styling */
.promotion-ready {
    animation: promotion-glow 2s ease-in-out infinite alternate;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .publicai-glow {
        font-size: 2rem;
    }
    
    .cyber-text {
        font-size: 0.85rem;
    }
    
    .holographic {
        transform: scale(0.95);
    }
    
    .virtual-display {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .publicai-glow {
        font-size: 1.5rem;
    }
    
    .neural-network-overlay::after {
        background-size: 60px 60px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .publicai-glow {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.9),
            0 0 20px rgba(255, 215, 0, 1);
    }
}

/* Animation performance optimization */
@media (prefers-reduced-motion: reduce) {
    .animate-salute,
    .animate-neural-pulse,
    .animate-promotion-glow,
    .animate-holographic-scan {
        animation: none;
    }
    
    .publicai-glow {
        animation: none;
    }
}