@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti::before,
.confetti::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #0052FF;
    animation: confetti-fall 3s ease-out forwards;
}

.confetti::before {
    left: 20%;
    animation-delay: 0s;
}

.confetti::after {
    left: 80%;
    animation-delay: 0.5s;
    background: #7C3AED;
}

@keyframes confetti-fall {
    0% {
        top: -10%;
        transform: rotate(0deg);
        opacity: 1;
    }
    100% {
        top: 100%;
        transform: rotate(720deg);
        opacity: 0;
    }
}

/* BerrryMode animations */
.berry-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: 
        radial-gradient(circle, #FF4D6D 2px, transparent 2px),
        radial-gradient(circle, #FF4D6D 2px, transparent 2px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: berry-fall 2s linear infinite;
}

@keyframes berry-fall {
    0% { background-position: 0 0, 25px 25px; }
    100% { background-position: 0 50px, 25px 75px; }
}

.berry-mode {
    background: linear-gradient(to bottom right, #1a0510, #0A1B3D, #0d0208) !important;
}

.berry-card {
    border: 2px solid rgba(255, 77, 109, 0.3) !important;
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.2);
}

.berry-button:hover {
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.2), rgba(0, 82, 255, 0.2)) !important;
}

body {
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #0052FF;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0066FF;
}

/* Button hover effects */
button {
    transition: all 0.3s ease;
}

button:active {
    transform: scale(0.95);
}

/* Card hover effects */
.glass-card:hover {
    border-color: rgba(0, 82, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 82, 255, 0.2);
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-card {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Accessibility */
button:focus,
a:focus {
    outline: 2px solid #0052FF;
    outline-offset: 2px;
}

/* Dark mode enhancements */
.bg-gradient-to-br {
    background-attachment: fixed;
}

/* Vibecode pulse effect */
@keyframes vibe-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(0, 82, 255, 0);
    }
}

.glass-card:hover {
    animation: vibe-pulse 2s infinite;
}

/* BerrryMode special effects */
.berry-mode .glass-card {
    animation: berry-glow 3s ease-in-out infinite alternate;
}

@keyframes berry-glow {
    0% { box-shadow: 0 0 10px rgba(255, 77, 109, 0.3); }
    100% { box-shadow: 0 0 30px rgba(255, 77, 109, 0.6); }
}