/* ============================================
   ADVANCED ANIMATIONS & GLASSMORPHISM
   ============================================ */

/* Glassmorphism Effects */
.glass {
    background: rgba(26, 31, 46, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 165, 0, 0.6);
    }
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 165, 0, 0.1) 50%,
        transparent 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Reveal Animation */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 165, 0, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite;
}

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

/* Liquid Gradient Animation */
@keyframes liquidGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.liquid-gradient {
    background: linear-gradient(
        -45deg,
        rgba(10, 14, 26, 1),
        rgba(26, 31, 46, 1),
        rgba(37, 43, 61, 1),
        rgba(26, 31, 46, 1)
    );
    background-size: 400% 400%;
    animation: liquidGradient 15s ease infinite;
}

/* Smooth Page Transitions */
@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-transition {
    animation: fadeInPage 0.8s ease;
}

/* Morphing Border Animation */
@keyframes morphBorder {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.morph-border {
    animation: morphBorder 8s ease-in-out infinite;
}

/* Text Gradient Animation */
@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-text {
    background: linear-gradient(
        90deg,
        var(--color-text-primary),
        var(--color-primary),
        var(--color-accent),
        var(--color-text-primary)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 5s ease infinite;
}

/* Blur Fade In */
@keyframes blurFadeIn {
    from {
        opacity: 0;
        filter: blur(20px);
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

.blur-fade-in {
    animation: blurFadeIn 1s ease;
}

/* Magnetic Hover Effect */
.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-hover:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Glow Line Animation */
@keyframes glowLine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

.glow-line {
    position: relative;
    overflow: hidden;
}

.glow-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 165, 0, 0.3),
        transparent
    );
    animation: glowLine 3s infinite;
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 165, 0, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ripple-effect:hover::before {
    width: 300px;
    height: 300px;
    animation: ripple 0.8s ease-out;
}

/* Depth Shadow Animation */
@keyframes depthShadow {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.1),
            0 8px 40px rgba(255, 165, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 8px 30px rgba(0, 0, 0, 0.2),
            0 16px 60px rgba(255, 165, 0, 0.2);
    }
}

.depth-shadow {
    animation: depthShadow 4s ease-in-out infinite;
}

/* Frosted Glass Card */
.frosted-glass {
    background: rgba(26, 31, 46, 0.5);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.125);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

.spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 165, 0, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.spotlight:hover::before {
    opacity: 1;
}

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

.breathe {
    animation: breathe 4s ease-in-out infinite;
}

/* Parallax Layers */
.parallax-slow {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.parallax-medium {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.parallax-fast {
    transition: transform 0.1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Glitch Effect */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Loading Shimmer */
@keyframes loadingShimmer {
    0% {
        background-position: -500px 0;
    }
    100% {
        background-position: 500px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(26, 31, 46, 0.5) 0%,
        rgba(255, 165, 0, 0.1) 50%,
        rgba(26, 31, 46, 0.5) 100%
    );
    background-size: 500px 100%;
    animation: loadingShimmer 1.5s infinite;
}
