/* ErnstX - Custom Styles */

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Gradient Background */
.gradient-bg {
    background: linear-gradient(-45deg, #a855f7, #ec4899, #f97316, #3b82f6);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

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

/* Glow Effects */
.glow-purple {
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.3);
}

.glow-pink {
    box-shadow: 0 0 60px rgba(236, 72, 153, 0.3);
}

.glow-orange {
    box-shadow: 0 0 60px rgba(249, 115, 22, 0.3);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Animated Border */
.animated-border {
    position: relative;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #a855f7, #ec4899, #f97316);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animated-border:hover::before {
    opacity: 1;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: relative;
}

.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Smooth Scroll Reveal - Desktop only */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Hover Effect */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
    opacity: 1;
}

/* Input Focus */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111113;
}

::-webkit-scrollbar-thumb {
    background: #2e2e33;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3e3e44;
}

/* Selection */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: white;
}

/* Alpine cloak */
[x-cloak] {
    display: none !important;
}

/* Number Counter Animation */
.counter {
    display: inline-block;
}

/* Floating Animation - Desktop only */
.float {
    animation: none;
}

@media (min-width: 768px) {
    .float {
        animation: float 6s ease-in-out infinite;
    }
    
    .float-delay-1 {
        animation-delay: -2s;
    }
    
    .float-delay-2 {
        animation-delay: -4s;
    }
}

/* Pulse Ring */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.1);
        opacity: 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; }
