/* Custom animations and effects */

@keyframes matrix-rain {
    0% { transform: translateY(-100vh); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, transparent 30%, #00FF41 30%, #00FF41 32%, transparent 32%),
        linear-gradient(0deg, transparent 0%, transparent 30%, #00FF41 30%, #00FF41 32%, transparent 32%);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: matrix-slide 20s linear infinite;
}

@keyframes matrix-slide {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.matrix-rain::after {
    content: "010101010101010101010101010101010101010101010101";
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    color: #00FF41;
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 2px;
    animation: matrix-rain 10s linear infinite;
    opacity: 0.3;
    word-wrap: break-word;
    overflow: hidden;
}

/* Glassmorphism effects */
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

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

::-webkit-scrollbar-track {
    background: #1F2937;
}

::-webkit-scrollbar-thumb {
    background: #00FFFF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00E5E5;
}

/* Hover effects for buttons */
button:hover {
    transform: translateY(-1px);
}

/* Focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #00FFFF50;
}

/* Link hover effects in preview */
.preview-link:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flex-col {
        flex-direction: column;
    }
    
    .lg\\:flex-row {
        flex-direction: column;
    }
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(45deg, #00FFFF, #8A2BE2, #00FF41);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease-in-out infinite;
}

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

/* Neon glow effects */
.neon-glow {
    box-shadow: 
        0 0 5px #00FFFF,
        0 0 10px #00FFFF,
        0 0 15px #00FFFF,
        0 0 20px #00FFFF;
}

.neon-glow:hover {
    box-shadow: 
        0 0 5px #00FFFF,
        0 0 10px #00FFFF,
        0 0 15px #00FFFF,
        0 0 20px #00FFFF,
        0 0 35px #00FFFF,
        0 0 40px #00FFFF;
}

/* Card styling improvements */
.link-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Theme-specific enhancements */
.theme-creative {
    background: linear-gradient(135deg, #8A2BE2, #00FFFF, #8A2BE2);
    background-size: 400% 400%;
    animation: gradient-shift 5s ease infinite;
}

.theme-hacker {
    position: relative;
    background: linear-gradient(135deg, #001a00, #000000);
}

.theme-professional {
    background: linear-gradient(135deg, #1e3a8a, #374151);
}

.theme-minimalist {
    background: linear-gradient(135deg, #374151, #1f2937);
}