* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

.font-mono {
    font-family: 'Space Mono', monospace;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-fade-in-delay-4 {
    animation: fadeIn 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

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

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.4);
}

/* Image loading */
img {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Button active states */
button:active {
    transform: scale(0.98);
}

/* Focus states */
input:focus, 
textarea:focus, 
select:focus {
    outline: none;
}

/* Placeholder styling */
::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Canvas styling */
canvas {
    display: block;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    h1 {
        line-height: 1.1;
    }
}

/* Hover effects for desktop */
@media (hover: hover) {
    .group:hover .group-hover\:scale-110 {
        transform: scale(1.1);
    }
    
    .group:hover .group-hover\:opacity-100 {
        opacity: 1;
    }
}

/* Backdrop blur fallback */
@supports not (backdrop-filter: blur(10px)) {
    .backdrop-blur-xl {
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    .backdrop-blur-sm {
        background-color: rgba(0, 0, 0, 0.8);
    }
}