/********** ADVANCED UI ENHANCEMENTS **********/

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #000000;
    border-left: 1px solid rgba(0, 217, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d9ff, #7c3aed);
    border-radius: 6px;
    border: 2px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed, #00d9ff);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #00d9ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.8),
                 0 0 20px rgba(0, 217, 255, 0.6),
                 0 0 30px rgba(0, 217, 255, 0.4);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow: 0 0 10px rgba(0, 217, 255, 0.8),
                     0 0 20px rgba(0, 217, 255, 0.6),
                     0 0 30px rgba(0, 217, 255, 0.4);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 217, 255, 1),
                     0 0 30px rgba(0, 217, 255, 0.8),
                     0 0 40px rgba(0, 217, 255, 0.6);
    }
}

/* Advanced Button Styles */
.btn-primary {
    position: relative;
    background: linear-gradient(135deg, #00d9ff, #0099cc);
    border: none;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Floating Animation */
@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Particle Background Effect */
.particles-bg {
    position: relative;
    overflow: hidden;
}

.particles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 217, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(124, 58, 237, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(0, 217, 255, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(124, 58, 237, 0.2), transparent);
    background-size: 200% 200%;
    animation: particles-move 20s linear infinite;
    opacity: 0.5;
}

@keyframes particles-move {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Enhanced Navbar */
.navbar-dark {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand h1 {
    position: relative;
    font-weight: 800;
    letter-spacing: 2px;
}

.navbar-brand i {
    animation: spin-slow 10s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced Service Cards */
.service-item {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(124, 58, 237, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover::before {
    opacity: 1;
}

.service-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.3),
                0 0 30px rgba(124, 58, 237, 0.2);
    border-color: rgba(0, 217, 255, 0.5);
}

.service-icon {
    position: relative;
    background: linear-gradient(135deg, #00d9ff, #7c3aed) !important;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.6);
}

/* Enhanced Team Cards */
.team-item {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.03), rgba(124, 58, 237, 0.03));
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.4s ease;
}

.team-item:hover {
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.2);
    transform: translateY(-10px);
}

/* Animated Background Gradient */
.bg-animated {
    background: linear-gradient(135deg, #000000, #0a0e27, #000000);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

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

/* Glowing Border Effect */
.glow-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(#000, #000) padding-box,
                linear-gradient(135deg, #00d9ff, #7c3aed) border-box;
}

/* Text Reveal Animation */
@keyframes text-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-reveal {
    animation: text-reveal 1s ease forwards;
}

/* Enhanced Section Titles */
.section-title h1, .section-title h5 {
    position: relative;
    display: inline-block;
}

.section-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d9ff, #7c3aed);
    transition: width 0.6s ease;
}

.section-title:hover h1::after {
    width: 100%;
}

/* Cyber Grid Background */
.cyber-grid {
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(45deg, 
        #00d9ff 0%,
        #7c3aed 25%,
        #00d9ff 50%,
        #7c3aed 75%,
        #00d9ff 100%);
    background-size: 400% 400%;
    animation: holographic-shift 8s ease infinite;
}

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

/* Enhanced Testimonial Cards */
.testimonial-item {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.03), rgba(124, 58, 237, 0.03));
    border: 1px solid rgba(0, 217, 255, 0.15);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.2);
}

/* Pricing Cards Enhanced */
.pricing-card {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(10, 14, 39, 0.9));
    border: 2px solid rgba(0, 217, 255, 0.2);
    transition: all 0.4s ease;
}

.pricing-card:hover {
    border-color: rgba(0, 217, 255, 0.6);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.3);
    transform: scale(1.05);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Loading Bar */
.loading-bar {
    height: 3px;
    background: linear-gradient(90deg, #00d9ff, #7c3aed);
    width: 0;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    to { width: 100%; }
}

/* Enhanced Footer */
.bg-dark {
    background: linear-gradient(180deg, #000000, #0a0e27) !important;
    position: relative;
}

.bg-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d9ff, transparent);
}

/* Icon Hover Effects */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) rotate(360deg);
    color: #00d9ff !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .gradient-text { font-size: 1.5rem; }
    .neon-glow { font-size: 1.2rem; }
}

/* Performance Optimization */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Link Hover Effect */
a {
    transition: all 0.3s ease;
}

a:not(.btn):hover {
    color: #00d9ff !important;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

