/* ============================================================================
   ANIMATED GRADIENT BACKGROUND - Mov/Roz Subtil
   ============================================================================
   Adaugă acest CSS în /assets/css/background.css
   ============================================================================ */

/* Gradient animat pentru body */
body {
    background: linear-gradient(-45deg, #0a0a0a, #1a0a1f, #0f0520, #1a0a28);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Particle background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(246, 11, 139, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 11, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(246, 11, 139, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(139, 11, 246, 0.02) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 1;
    }
    25% {
        transform: translate(20px, -20px);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, 20px);
        opacity: 1;
    }
    75% {
        transform: translate(20px, 20px);
        opacity: 0.8;
    }
}

/* Scanlines effect (optional - foarte subtil) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(246, 11, 139, 0.01) 0px,
        transparent 1px,
        transparent 2px,
        rgba(246, 11, 139, 0.01) 3px
    );
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Asigură-te că conținutul e deasupra */
.hero,
.section,
.navbar,
footer {
    position: relative;
    z-index: 1;
}

/* Glow effect pentru secțiuni */
.section {
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(246, 11, 139, 0.05) 0%,
        transparent 50%
    );
    animation: sectionGlow 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes sectionGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(10%, 10%) scale(1.1);
        opacity: 0.8;
    }
}

/* Asigură că textul și cardurile sunt deasupra */
.section > * {
    position: relative;
    z-index: 1;
}

/* Mesh gradient pentru hero section */
.hero {
    position: relative;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(246, 11, 139, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(139, 11, 246, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(246, 11, 139, 0.08) 0%, transparent 40%);
    filter: blur(60px);
    animation: heroMesh 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

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

/* Floating orbs (optional) */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(246, 11, 139, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation: orbFloat1 15s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 11, 246, 0.3) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation: orbFloat2 18s ease-in-out infinite;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(246, 11, 139, 0.35) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(50px, 30px);
    }
    66% {
        transform: translate(-30px, 50px);
    }
}

@keyframes orbFloat2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(-40px, -40px);
    }
    66% {
        transform: translate(40px, -20px);
    }
}

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

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
    body,
    body::before,
    body::after,
    .hero::before,
    .section::before,
    .orb {
        animation: none !important;
    }
}
