/**
* ADVANCED VISUAL EFFECTS
* Particle effects, advanced animations, and premium visual enhancements
* 2025/2026 Premium Design
*/

/* ============================================
  PARTICLE EFFECTS
  ============================================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
    animation: float-particle 20s infinite ease-in-out;
    opacity: 0.3;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(100px, -100px) scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50px, 100px) scale(0.8);
        opacity: 0.2;
    }
    75% {
        transform: translate(-100px, -50px) scale(1.1);
        opacity: 0.4;
    }
}

/* ============================================
  GRADIENT MESH BACKGROUNDS
  ============================================ */
.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(245, 87, 108, 0.15) 0%, transparent 50%);
    animation: mesh-move 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes mesh-move {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* ============================================
  GLOW EFFECTS
  ============================================ */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-effect:hover::before {
    opacity: 0.6;
}

/* ============================================
  SHIMMER EFFECTS
  ============================================ */
.shimmer {
    position: relative;
    overflow: hidden;
}

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

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ============================================
  MORPHING SHAPES
  ============================================ */
.morphing-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    animation: morph 15s ease-in-out infinite;
    filter: blur(60px);
    pointer-events: none;
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(50px, -50px) rotate(90deg);
    }
    50% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
        transform: translate(-30px, 30px) rotate(180deg);
    }
    75% {
        border-radius: 70% 30% 50% 50% / 30% 50% 50% 70%;
        transform: translate(30px, 30px) rotate(270deg);
    }
}

/* ============================================
  NEON GLOW EFFECTS
  ============================================ */
.neon-glow {
    text-shadow: 
        0 0 10px rgba(102, 126, 234, 0.8),
        0 0 20px rgba(102, 126, 234, 0.6),
        0 0 30px rgba(118, 75, 162, 0.4);
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(102, 126, 234, 0.8),
            0 0 20px rgba(102, 126, 234, 0.6),
            0 0 30px rgba(118, 75, 162, 0.4);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(102, 126, 234, 1),
            0 0 30px rgba(102, 126, 234, 0.8),
            0 0 40px rgba(118, 75, 162, 0.6);
    }
}

/* ============================================
  LIQUID WAVE EFFECTS
  ============================================ */
.liquid-wave {
    position: relative;
    overflow: hidden;
}

.liquid-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(102, 126, 234, 0.1) 25%,
        rgba(118, 75, 162, 0.1) 50%,
        rgba(102, 126, 234, 0.1) 75%,
        transparent 100%
    );
    animation: liquid-flow 4s ease-in-out infinite;
}

@keyframes liquid-flow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ============================================
  MAGNETIC HOVER EFFECTS
  ============================================ */
.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-hover:hover {
    transform: translateY(-10px) scale(1.05);
}

/* ============================================
  GLASSMORPHISM ENHANCED
  ============================================ */
.glass-enhanced {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .glass-enhanced {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
  SCROLL REVEAL ANIMATIONS
  ============================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
  PARALLAX EFFECTS
  ============================================ */
.parallax-layer {
    transition: transform 0.1s ease-out;
}

/* ============================================
  RESPONSIVE DESIGN
  ============================================ */
@media (max-width: 768px) {
    .particle,
    .morphing-shape {
        display: none; /* Hide for performance on mobile */
    }

    .glow-effect::before {
        filter: blur(10px);
    }
}

/* ============================================
  ACCESSIBILITY
  ============================================ */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .morphing-shape,
    .shimmer,
    .liquid-wave,
    .neon-glow,
    .gradient-mesh {
        animation: none;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}


/* Focus styles for accessibility - Auto-added */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}
