/* ========================================================
   kruchow.cc - Music Educator Portfolio Custom Styles
   Theme: Modern, Minimalist, Dark Slate & Elegant Music Vibe
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,300&family=Prompt:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

:root {
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Prompt', sans-serif;
    --color-bg-primary: #0b0f17;
    --color-bg-card: #131b2e;
    --color-accent-purple: #8b5cf6;
    --color-accent-amber: #f59e0b;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: #cbd5e1;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0f17;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Glassmorphism Classes */
.glass-nav {
    background: rgba(11, 15, 23, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(19, 27, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(26, 38, 64, 0.85);
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5), 0 0 20px 0 rgba(139, 92, 246, 0.12);
}

/* Glowing Ambient Gradients */
.glow-purple {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(11, 15, 23, 0) 70%);
}

.glow-amber {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(11, 15, 23, 0) 70%);
}

/* Sound Wave Equalizer Animation */
.equalizer-bar {
    display: inline-block;
    width: 3px;
    background: linear-gradient(to top, #8b5cf6, #ec4899);
    border-radius: 3px;
    animation: bounce 1.2s ease-in-out infinite alternate;
}

.equalizer-bar:nth-child(1) { height: 16px; animation-delay: 0.1s; }
.equalizer-bar:nth-child(2) { height: 24px; animation-delay: 0.3s; }
.equalizer-bar:nth-child(3) { height: 12px; animation-delay: 0.5s; }
.equalizer-bar:nth-child(4) { height: 28px; animation-delay: 0.2s; }
.equalizer-bar:nth-child(5) { height: 18px; animation-delay: 0.4s; }

.equalizer-paused .equalizer-bar {
    animation-play-state: paused;
    height: 6px !important;
}

@keyframes bounce {
    0% { height: 6px; }
    100% { height: 26px; }
}

/* Audio Progress Bar Styling */
input[type="range"].audio-scrubber {
    -webkit-appearance: none;
    appearance: none;
    background: #1e293b;
    border-radius: 9999px;
    height: 5px;
    outline: none;
    cursor: pointer;
}

input[type="range"].audio-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
    transition: transform 0.15s ease;
}

input[type="range"].audio-scrubber::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* Sheet Music Preview Badge */
.sheet-badge {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* Floating note animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(4deg); }
}

.floating-element {
    animation: float 5s ease-in-out infinite;
}
