/* ============================================
   PREMIUM-EFFECTS.CSS - Ultra Modern UI Effects
   Wow-factor animations and visual enhancements
   ============================================ */

/* === Particle Background Effect === */
.particles-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particles-bg::before,
.particles-bg::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
    box-shadow:
        100px 200px 0 rgba(56, 189, 248, 0.4),
        200px 50px 0 rgba(34, 197, 94, 0.4),
        300px 300px 0 rgba(244, 114, 182, 0.4),
        400px 150px 0 rgba(139, 92, 246, 0.4),
        500px 250px 0 rgba(56, 189, 248, 0.4),
        600px 100px 0 rgba(245, 158, 11, 0.4),
        700px 350px 0 rgba(34, 197, 94, 0.4),
        800px 200px 0 rgba(139, 92, 246, 0.4);
}

.particles-bg::after {
    animation-delay: -7s;
    left: 50vw;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* === Glassmorphism Premium === */
.glass-premium {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* === Neon Glow Effects === */
.neon-text {
    text-shadow:
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor,
        0 0 80px currentColor;
}

.neon-border {
    box-shadow:
        0 0 5px var(--accent, #8b5cf6),
        0 0 10px var(--accent, #8b5cf6),
        0 0 20px var(--accent, #8b5cf6);
}

.neon-glow-hover {
    transition: all 0.4s ease;
}

.neon-glow-hover:hover {
    box-shadow:
        0 0 10px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(139, 92, 246, 0.3),
        0 0 60px rgba(139, 92, 246, 0.2);
}

/* === Gradient Shine Effect === */
.gradient-shine {
    position: relative;
    overflow: hidden;
}

.gradient-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    animation: shine 4s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* === Morphing Background === */
.morph-bg {
    background: linear-gradient(-45deg, #1e1b4b, #0f172a, #0c1222, #1a1a2e);
    background-size: 400% 400%;
    animation: morphGradient 15s ease infinite;
}

@keyframes morphGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* === 3D Card Tilt === */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
}

.card-3d:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(20px);
}

.card-3d-content {
    transform: translateZ(40px);
}

/* === Holographic Effect === */
.holographic {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.3) 0%,
            rgba(56, 189, 248, 0.3) 25%,
            rgba(34, 197, 94, 0.3) 50%,
            rgba(244, 114, 182, 0.3) 75%,
            rgba(139, 92, 246, 0.3) 100%);
    background-size: 300% 300%;
    animation: holographicShift 5s ease infinite;
}

@keyframes holographicShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* === Floating Labels === */
.floating-label {
    position: relative;
}

.floating-label input:focus+label,
.floating-label input:not(:placeholder-shown)+label {
    transform: translateY(-24px) scale(0.85);
    color: var(--accent, #8b5cf6);
}

.floating-label label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: var(--muted, #94a3b8);
}

/* === Liquid Button === */
.btn-liquid {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-liquid::before {
    content: '';
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}

.btn-liquid:hover::before {
    width: 300px;
    height: 300px;
}

/* === Typewriter Effect === */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent, #8b5cf6);
    white-space: nowrap;
    animation:
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent, #8b5cf6);
    }
}

/* === Magnetic Button === */
.magnetic-btn {
    transition: transform 0.3s ease-out;
}

/* === Reveal Animation === */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === Counter Animation === */
.counter-animate {
    display: inline-block;
    animation: counterPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes counterPop {
    0% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* === Breathing Glow === */
.breathing-glow {
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
        transform: scale(1.02);
    }
}

/* === Aurora Background === */
.aurora-bg {
    position: relative;
}

.aurora-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        linear-gradient(240deg, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
        linear-gradient(360deg, rgba(34, 197, 94, 0.08) 0%, transparent 30%);
    animation: aurora 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes aurora {
    0% {
        opacity: 0.5;
        filter: hue-rotate(0deg);
    }

    100% {
        opacity: 1;
        filter: hue-rotate(30deg);
    }
}

/* === Spotlight Effect === */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spotlight:hover::after {
    opacity: 1;
}

/* === Grid Pattern Overlay === */
.grid-pattern {
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* === Blur Entrance === */
.blur-enter {
    animation: blurIn 0.6s ease-out;
}

@keyframes blurIn {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* === Text Gradient Animation === */
.text-gradient-animated {
    background: linear-gradient(90deg,
            #8b5cf6,
            #06b6d4,
            #22c55e,
            #f59e0b,
            #ec4899,
            #8b5cf6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 5s linear infinite;
}

@keyframes textGradient {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* === Hover Underline Effect === */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent, #8b5cf6), var(--accent2, #06b6d4));
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* === Badge Glow === */
.badge-glow {
    position: relative;
}

.badge-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent, #8b5cf6), var(--accent2, #06b6d4));
    z-index: -1;
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.3s ease;
}

.badge-glow:hover::before {
    opacity: 1;
}

/* === Smooth Appear === */
.smooth-appear {
    animation: smoothAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes smoothAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* === Responsive Adjustments === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {

    .particles-bg::before,
    .particles-bg::after {
        display: none;
    }

    .card-3d:hover {
        transform: none;
    }
}