/* Smart Badya AI Theme - Custom Styles */

:root {
    --ai-cyan: #5DADE2;
    --ai-blue: #2874A6;
    --ai-dark: #0A0E27;
    --ai-darker: #050714;
    --ai-light: #7FB3D5;
    --ai-accent: #00D4FF;
    --ai-glow: #00FFE5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ai-darker);
    color: #ffffff;
    overflow-x: hidden;
}

/* Neural Network Background Animation */
.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        linear-gradient(var(--ai-cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--ai-cyan) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: neuralFlow 20s linear infinite;
}

@keyframes neuralFlow {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Gradient Animations */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(93, 173, 226, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(93, 173, 226, 0.8);
    }
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ai-cyan), var(--ai-accent));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* AI Button Styles */
.ai-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ai-button::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 ease;
}

.ai-button:hover::before {
    left: 100%;
}

/* Floating Cards Animation */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* AI Card Hover Effects */
.ai-card {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ai-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--ai-cyan), var(--ai-accent), var(--ai-blue));
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.ai-card:hover::before {
    opacity: 1;
}

.ai-card:hover {
    transform: translateY(-5px);
}

/* Service Card Effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Tech Item Animations */
.tech-item {
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateX(10px);
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Form Styles */
input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.2);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ai-cyan), var(--ai-blue));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--ai-accent), var(--ai-cyan));
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid var(--ai-dark);
    border-top: 3px solid var(--ai-cyan);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Glow Effects */
.glow-cyan {
    box-shadow: 0 0 30px rgba(93, 173, 226, 0.6);
}

.glow-accent {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.glow-blue {
    box-shadow: 0 0 30px rgba(40, 116, 166, 0.6);
}

/* Circuit Pattern Background */
.circuit-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 35px,
            var(--ai-cyan) 35px,
            var(--ai-cyan) 36px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 35px,
            var(--ai-cyan) 35px,
            var(--ai-cyan) 36px
        );
}

/* Particle Effects */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ai-cyan);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

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

/* Text Gradient Animation */
.gradient-text-animate {
    background: linear-gradient(90deg, var(--ai-cyan), var(--ai-accent), var(--ai-blue), var(--ai-cyan));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

/* Pulse Animation for Icons */
.pulse-icon {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Glass Morphism Effects */
.glass {
    background: rgba(10, 14, 39, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(93, 173, 226, 0.2);
}

/* Neon Text Effect */
.neon-text {
    text-shadow: 
        0 0 10px var(--ai-cyan),
        0 0 20px var(--ai-cyan),
        0 0 30px var(--ai-cyan),
        0 0 40px var(--ai-accent);
}

/* Data Stream Animation */
.data-stream {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, transparent, var(--ai-cyan), transparent);
    animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .neural-network {
        background-size: 30px 30px;
    }
    
    .floating-card {
        animation: none;
    }
    
    .tech-item:hover {
        transform: none;
    }
}

/* Back to Top Button */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* Success Message Animation */
.success-message {
    animation: slideInRight 0.5s ease, fadeOut 0.5s ease 2.5s forwards;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 200px;
    width: 100%;
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(45deg, 
        rgba(93, 173, 226, 0.3),
        rgba(0, 212, 255, 0.3),
        rgba(40, 116, 166, 0.3),
        rgba(0, 255, 229, 0.3)
    );
    background-size: 400% 400%;
    animation: holographicShift 10s ease infinite;
}

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

/* Matrix Rain Effect (Optional) */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    z-index: 1;
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .neural-network,
    .circuit-pattern,
    .particle,
    .data-stream {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --ai-cyan: #00FFFF;
        --ai-blue: #0080FF;
        --ai-accent: #00FF00;
    }
}

/* 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;
    }
}