
/* Custom Styles for PixelCanvas Animation Studio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #7e22ce 0%, #be185d 50%, #3730a3 100%);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animated Background Grid */
.animated-grid {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(168, 85, 247, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(168, 85, 247, 0.1) 1px, transparent 1px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-50px) translateX(-50px);
    }
}

/* Floating Animation */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Pixel Glitch Effect */
.pixel-glitch {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    2% {
        transform: translate(-2px, -2px);
    }
    4% {
        transform: translate(2px, 2px);
    }
    6% {
        transform: translate(0);
    }
    8% {
        transform: translate(-2px, -2px);
    }
    10% {
        transform: translate(0);
    }
}

/* Neon Border Effect */
.neon-border {
    border: 2px solid;
    border-image: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00);
    border-image-slice: 1;
    animation: neonFlicker 2s infinite alternate;
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        box-shadow: 
            0 0 5px #ff00ff,
            0 0 15px #ff00ff,
        0 0 25px #ff00ff,
        0 0 5px #ff00ff,
        0 0 10px #ff00ff;
    }
    20%, 24%, 55% {
        box-shadow: none;
    }
}

/* Cosmic Float Animation */
.cosmic-float {
    animation: cosmicFloat 8s ease-in-out infinite;
}

@keyframes cosmicFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Shimmer Effect */
.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Rainbow Text Animation */
.animate-rainbow {
    background: linear-gradient(45deg, #ff0000, #ff9900, #33cc33, #3399ff, #cc33ff);
    background-size: 400% 400%;
    animation: rainbow 4s ease-in-out infinite;
}

@keyframes rainbow {
    0% { color: #ff0000; }
    20% { color: #ff9900; }
    40% { color: #33cc33; }
    60% { color: #3399ff; }
    80% { color: #cc33ff; }
    100% { color: #ff0000; }
}

/* Glow Text Effect */
.glow-text {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

/* Cosmic Border */
.cosmic-border {
    border: 3px solid;
    border-image: 
        linear-gradient(45deg, #8b5cf6, #ec4899, #3b82f6);
    border-image-slice: 1;
}

/* Wiggle Animation */
.animate-wiggle {
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    25% {
        transform: rotateZ(0);
    }
}

/* Custom scrollbar - Dark Theme */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
}

/* Pulse Animation */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Spin Slow Animation */
.animate-spin-slow {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Custom filter effects preview */
.filter-preview-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    transform: skewX(-15deg);
    transition: all 0.4s ease;
}

.filter-preview-card:hover::before {
    left: 100%;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Upload Area Styles */
.upload-area {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-area:hover {
    border-color: rgba(236, 72, 153, 0.7);
    cursor: pointer;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 3rem 1rem;
    }
}

/* Card hover effects with anime-style animations */
.filter-preview-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2);
    }
}

/* Form styling enhancements */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid rgba(168, 85, 247, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.form-input:focus {
    border-color: rgba(236, 72, 153, 0.7);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

/* Additional animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slideIn {
    animation: slideIn 0.8s ease-out;
}

/* Particle effect simulation */
.particle-burst {
    animation: particleBurst 1s ease-out;
}

@keyframes particleBurst {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Neon flicker for special elements */
.neon-flicker {
    animation: neonFlicker 1.5s infinite alternate;
}
