/* Animatic Dynamic Gradient Background */
body {
    background: linear-gradient(-45deg, #ffffff, #f0f7ff, #e6f0fa, #ffffff);
    background-size: 400% 400%;
    animation: animaticBg 15s ease infinite;
}

.dark body {
    background: linear-gradient(-45deg, #0f172a, #0b1329, #131c35, #0f172a);
    background-size: 400% 400%;
    animation: animaticBg 15s ease infinite;
}

@keyframes animaticBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.3s ease;
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dark .glass-nav {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Enhanced Animatic Floating Orbs */
@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px) scale(1); }
    50% { transform: translate(-50%, -50%) translateY(-25px) scale(1.05); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(5deg); }
}

.float-anim {
    animation: float 8s ease-in-out infinite;
}

.float-anim-reverse {
    animation: floatReverse 10s ease-in-out infinite;
}

/* Interactive Card Glow Hover Effects */
.anim-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(11, 110, 253, 0.15);
}

/* Infinite Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    display: flex;
    width: 200%;
    animation: marquee 20s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0B6EFD 0%, #0042A5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulse Animation */
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.3; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.pulse-effect {
    animation: pulse-ring 2s infinite ease-in-out;
}

/* Preloader CSS */
#preloader {
    position: fixed;
    inset: 0;
    background: #0F172A;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: #0B6EFD;
    border-radius: 4px;
}