/* ========================================
   Advanced Visual Effects & Animations
======================================== */

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(7, 105, 191, 0.5); }
    50% { box-shadow: 0 0 40px rgba(7, 105, 191, 0.8); }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Neon Glow Effect */
.neon-text {
    text-shadow: 
        0 0 10px rgba(7, 105, 191, 0.8),
        0 0 20px rgba(7, 105, 191, 0.6),
        0 0 30px rgba(7, 105, 191, 0.4),
        0 0 40px rgba(7, 105, 191, 0.2);
}

/* Morphing Blob */
.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.7;
    filter: blur(40px);
    animation: morphing 15s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    33% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(120deg) scale(1.1);
    }
    66% {
        border-radius: 30% 70% 30% 70% / 30% 70% 70% 30%;
        transform: rotate(240deg) scale(0.9);
    }
}

/* Enhanced Hero Section */
.hero-enhanced {
    position: relative;
    overflow: hidden;
}

.hero-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(7, 105, 191, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

/* Particle Background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    animation: floatUp 15s infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

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

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

/* Liquid Button */
.btn-liquid {
    position: relative;
    padding: 20px 40px;
    display: inline-block;
    text-decoration: none;
    overflow: hidden;
    border-radius: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-liquid::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-liquid:hover::before {
    left: 100%;
}

.btn-liquid:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Animated Border */
.border-animated {
    position: relative;
    background: white;
    z-index: 1;
}

.border-animated::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0099, #00ff99, #0099ff, #ff9900);
    background-size: 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(
        135deg,
        #ff0099 0%,
        #00ff99 25%,
        #0099ff 50%,
        #ff9900 75%,
        #ff0099 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Neumorphism Style */
.neumorphic {
    background: #f0f0f0;
    border-radius: 20px;
    box-shadow: 
        20px 20px 60px #cccccc,
        -20px -20px 60px #ffffff;
    transition: all 0.3s;
}

.neumorphic:hover {
    box-shadow: 
        10px 10px 30px #cccccc,
        -10px -10px 30px #ffffff;
}

/* Glitch Effect */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translate(2px, 2px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
}

.glitch:hover {
    animation: glitch 0.3s infinite;
}

/* Aurora Background */
.aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.aurora::before,
.aurora::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(
        ellipse at center,
        rgba(102, 126, 234, 0.3) 0%,
        transparent 70%
    );
    animation: rotate 30s linear infinite;
}

.aurora::after {
    background: radial-gradient(
        ellipse at center,
        rgba(118, 75, 162, 0.3) 0%,
        transparent 70%
    );
    animation-duration: 40s;
    animation-direction: reverse;
}

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

/* Spotlight Effect */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.spotlight:hover::before {
    opacity: 1;
    animation: spotlight 1s ease;
}

@keyframes spotlight {
    0% { transform: translate(-50%, -50%) scale(0); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Cyberpunk Grid */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(7, 105, 191, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 105, 191, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
}

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

/* Magnetic Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Wave Animation */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff"></path></svg>');
    background-size: 1200px 100px;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

/* Fractal Pattern */
.fractal {
    background: 
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            rgba(7, 105, 191, 0.05) 0deg,
            rgba(118, 75, 162, 0.05) 60deg,
            rgba(7, 105, 191, 0.05) 120deg
        );
    animation: rotate 60s linear infinite;
}