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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.animate-bounce-subtle {
    animation: bounce-subtle 3s ease-in-out infinite;
}

@keyframes blob-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(50px, 30px) scale(1.05);
    }
}

@keyframes blob-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-40px, 30px) scale(0.95);
    }
    50% {
        transform: translate(30px, -40px) scale(1.1);
    }
    75% {
        transform: translate(-20px, -20px) scale(1);
    }
}

.animate-blob-1 {
    animation: blob-1 20s ease-in-out infinite;
}

.animate-blob-2 {
    animation: blob-2 25s ease-in-out infinite;
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scale-in 0.2s ease-out;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

@keyframes confetti {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

.animate-confetti {
    animation: confetti 2s ease-out forwards;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Prevent text selection on drag */
[draggable="true"] {
    user-select: none;
    -webkit-user-select: none;
}

/* Smooth transitions for theme changes */
body, .theme-transition {
    transition: background 0.5s ease;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    input, textarea, button {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Animation for links on hover */
a:hover {
    transition: all 0.2s ease;
}

/* Glassmorphism enhancement */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Gradient text effect for header (optional enhancement) */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}