/* Custom CSS for Fundación Rimas Landing Page */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
    background-color: #0a0a0a; /* rimas-black */
    color: #e5e7eb; /* gray-200 */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* Smooth transitions */
a, button, .group {
    transition: all 0.3s ease;
}

/* Music Player Animations */
@keyframes music-bar {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

.animate-music-bar {
    animation: music-bar 1s ease-in-out infinite;
}

.active-track .animate-music-bar {
    animation-play-state: running;
}

.paused .animate-music-bar {
    animation-play-state: paused;
}

/* Custom Scrollbar for Dark Theme */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #121212; /* rimas-dark */
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid #121212;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF0033; /* rimas-red */
}

/* Selection Color */
::selection {
    background: #FF0033;
    color: white;
}

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

.glass-hover:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1); /* rimas-cyan glow */
}

/* Neon Glow Effects */
.glow-red {
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.3);
}

.glow-cyan {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Navigation sticky effect */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background-color: rgba(10, 10, 10, 0.9); /* rimas-black with opacity */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu.active {
    max-height: 500px;
}

/* Stats Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-animated {
    animation: countUp 0.6s ease-out;
}

/* Chart Animations */
.chart-circle {
    transition: stroke-dashoffset 1.5s ease-out;
}

.chart-bar {
    transition: height 1.5s ease-out;
}

/* Utility */
.text-balance {
    text-wrap: balance;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    nav, footer, .no-print {
        display: none;
    }
}
