/*-----------------------------------------------------------------
Ultra Premium Background Animations & Glassmorphism Effects
Author: AI Bridge
-----------------------------------------------------------------*/

/* ============================================
   ANIMATED GRADIENT BACKGROUNDS
============================================ */

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

@keyframes floatingOrbs {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, -50px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(40px, -20px) scale(1.05);
        opacity: 0.7;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

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

/* ============================================
   BASE BODY GRADIENT BACKGROUND
============================================ 
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background: 
        radial-gradient(circle at 20% 30%, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}
    */

/* ============================================
   FLOATING ORBS BACKGROUND
============================================ */

.animated-bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: floatingOrbs 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.25) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 146, 189, 0.25) 0%, transparent 70%);
    bottom: 20%;
    left: 50%;
    animation-delay: 6s;
    animation-duration: 22s;
}

.orb-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(134, 239, 172, 0.2) 0%, transparent 70%);
    top: 40%;
    right: 40%;
    animation-delay: 9s;
    animation-duration: 25s;
}

/* ============================================
   GLASSMORPHISM EFFECTS
============================================ */

.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-light {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.08);
}

.glass-premium {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.12),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

/* ============================================
   SECTION SPECIFIC ANIMATIONS
============================================ */

/* Home Section with Animated Gradient */


/* Features Section */
.features {
    position: relative;
    overflow: hidden;
}

/* ============================================
   CARD GLASSMORPHISM
============================================ */

.feature-item,
.service-item {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.08),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover,
.service-item:hover {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(167, 139, 250, 0.4);
    box-shadow: 
        0 20px 48px 0 rgba(147, 51, 234, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 1);
}

.roadmap-item-inner {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

/* ============================================
   HEADER GLASSMORPHISM
============================================ */

.header.active-nav.nav-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 24px rgba(31, 38, 135, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

/* ============================================
   FLOATING PARTICLES
============================================ */

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

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(96, 165, 250, 0.3));
    animation: floatParticle 15s linear infinite;
}

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

.particle:nth-child(1) { left: 10%; width: 8px; height: 8px; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 25%; width: 6px; height: 6px; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(3) { left: 40%; width: 10px; height: 10px; animation-delay: 8s; animation-duration: 22s; }
.particle:nth-child(4) { left: 55%; width: 7px; height: 7px; animation-delay: 12s; animation-duration: 19s; }
.particle:nth-child(5) { left: 70%; width: 9px; height: 9px; animation-delay: 16s; animation-duration: 21s; }
.particle:nth-child(6) { left: 85%; width: 5px; height: 5px; animation-delay: 20s; animation-duration: 17s; }

/* ============================================
   SHIMMER EFFECT FOR BUTTONS
============================================ */

.main-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.95) 0%, 
        rgba(59, 130, 246, 0.95) 100%);
    box-shadow: 
        0 8px 24px rgba(147, 51, 234, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}



.main-btn:hover {
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 1) 0%, 
        rgba(59, 130, 246, 1) 100%);
    box-shadow: 
        0 12px 32px rgba(147, 51, 234, 0.4),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER GLASSMORPHISM
============================================ */

.footer {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(240, 244, 255, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ============================================
   SCROLL ANIMATIONS
============================================ */

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

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ 

@media (max-width: 991.98px) {
    .orb-1, .orb-2, .orb-3, .orb-4 {
        width: 250px;
        height: 250px;
    }
    
    body::before,
    .home::before,
    .home::after {
        opacity: 0.2;
    }
}
    */

@media (max-width: 767.98px) {
    .orb-1, .orb-2, .orb-3, .orb-4 {
        width: 180px;
        height: 180px;
        filter: blur(40px);
    }
    
    .feature-item,
    .service-item {
        backdrop-filter: blur(15px) saturate(160%);
        -webkit-backdrop-filter: blur(15px) saturate(160%);
    }
}

/* ============================================
   PREMIUM HOVER EFFECTS
============================================ */

.glass-card-hover {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: inherit;
}

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

/* ============================================
   3D DEPTH EFFECT
============================================ */

.depth-layer {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.depth-element {
    transform: translateZ(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.depth-layer:hover .depth-element {
    transform: translateZ(40px);
}
