/* Advanced Landing Page Animations and Effects */

/* ========================================
   1. Animated Background Gradient
   ======================================== */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(-45deg,
            #667eea 0%,
            #764ba2 25%,
            #f093fb 50%,
            #4facfe 75%,
            #667eea 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* ========================================
   2. Floating Parallax Elements
   ======================================== */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.floating-shape.circle {
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.4), transparent);
}

.floating-shape.blob {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    filter: blur(40px);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) translateX(20px) rotate(120deg);
    }

    66% {
        transform: translateY(30px) translateX(-20px) rotate(240deg);
    }
}

.floating-shape:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 200px;
    height: 200px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-shape:nth-child(2) {
    top: 60%;
    left: 80%;
    width: 150px;
    height: 150px;
    animation-delay: 3s;
    animation-duration: 20s;
}

.floating-shape:nth-child(3) {
    top: 30%;
    left: 70%;
    width: 100px;
    height: 100px;
    animation-delay: 6s;
    animation-duration: 18s;
}

.floating-shape:nth-child(4) {
    top: 80%;
    left: 20%;
    width: 180px;
    height: 180px;
    animation-delay: 2s;
    animation-duration: 22s;
}

.floating-shape:nth-child(5) {
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    animation-delay: 5s;
    animation-duration: 24s;
}

/* Dots Pattern */
.floating-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(102, 126, 234, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    animation: dotsMove 30s linear infinite;
}

@keyframes dotsMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(40px);
    }
}

/* ========================================
   3. Enhanced Button Hover Effects
   ======================================== */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-enhanced:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgba(79, 172, 254, 0.5);
}

.btn-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

.btn-enhanced:active {
    transform: translateY(0) scale(1);
}

/* Glow effect */
.btn-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(79, 172, 254, 0.2),
            0 0 10px rgba(79, 172, 254, 0.2),
            0 0 15px rgba(79, 172, 254, 0.1);
    }

    50% {
        box-shadow: 0 0 10px rgba(79, 172, 254, 0.4),
            0 0 20px rgba(79, 172, 254, 0.3),
            0 0 30px rgba(79, 172, 254, 0.2);
    }
}

/* ========================================
   4. Scroll-Based Animations (Enhanced)
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   5. Custom Cursor Effect
   ======================================== */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(79, 172, 254, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease-out, border-color 0.2s;
    transform: translate(-50%, -50%);
}

.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: rgba(79, 172, 254, 1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease-out;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: rgba(102, 126, 234, 1);
    background: rgba(79, 172, 254, 0.1);
}

/* ========================================
   6. Card Hover Effects
   ======================================== */
.card-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-float:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   7. Particle Background
   ======================================== */
.particles-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 10s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ========================================
   8. Stagger Animation Delays
   ======================================== */
.stagger-1 {
    animation-delay: 0.1s;
    transition-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
    transition-delay: 0.5s;
}

/* ========================================
   9. Shimmer Effect
   ======================================== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ========================================
   10. Smooth Scroll
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .floating-shape {
        opacity: 0.05;
    }

    .btn-enhanced:hover {
        transform: scale(1.02);
    }

    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
}