/* Pulseon Music Visualizer - Ultra-Modern CSS Design */

/* CSS Custom Properties for Advanced Theming */
:root {
    /* Primary Color Palette */
    --primary-50: #f0f4ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    
    /* Accent Colors */
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    
    /* Dark Theme Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #06b6d4 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    --gradient-canvas: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0f 100%);
    --gradient-background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.5);
    --shadow-glow-strong: 0 0 40px rgba(168, 85, 247, 0.8);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gradient-background);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Image Container */
.background-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    background-image: url('assets/Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: filter 0.1s ease-out, transform 0.1s ease-out;
    will-change: filter, transform;
}

/* Background overlay for gradient effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        hsla(250, 70%, 20%, 0.3) 0%, 
        hsla(280, 60%, 25%, 0.2) 50%, 
        hsla(320, 50%, 30%, 0.3) 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
    transition: filter 0.3s ease;
}

/* Dynamic background hue filter */
.background-hue-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 0, 255, 0.1) 25%, 
        rgba(0, 255, 255, 0.1) 50%, 
        rgba(255, 255, 0, 0.1) 75%, 
        transparent 100%);
    animation: backgroundShift 10s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); filter: hue-rotate(0deg); }
    25% { transform: translateX(-20px) translateY(-10px); filter: hue-rotate(90deg); }
    50% { transform: translateX(20px) translateY(-20px); filter: hue-rotate(180deg); }
    75% { transform: translateX(-10px) translateY(20px); filter: hue-rotate(270deg); }
}

/* Pulseon Footer Styles */

.footer {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(10, 10, 15, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-title i {
    color: var(--accent-purple);
    font-size: 1.3rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--accent-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.footer-link:hover {
    background: rgba(6, 182, 212, 0.2);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.footer-heading {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    border-bottom: 2px solid var(--accent-purple);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
}

.footer-list li:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

.footer-list i {
    color: var(--accent-pink);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--accent-purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

.footer-bottom {
    background: rgba(5, 5, 15, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright, .made-by {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.copyright i, .made-by i {
    color: var(--accent-pink);
}

.made-by a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.made-by a:hover {
    color: var(--accent-emerald);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Footer Animation Effects */
.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* Footer Glow Effects */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-purple) 50%, 
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

/* Animated Background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    animation: fadeInDown 1s ease-out;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 1px;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.5); }
}

.title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Main Content Layout */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

/* Upload Section - Glassmorphism Design */
.upload-section {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.upload-area {
    position: relative;
    border: 2px solid transparent;
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl) var(--space-2xl);
    text-align: center;
    transition: all var(--transition-normal);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.upload-area:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow);
    background: var(--bg-glass-hover);
}

.upload-area:hover::before {
    opacity: 0.1;
}

.upload-area.dragover {
    transform: scale(1.02);
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.upload-label {
    cursor: pointer;
    display: block;
    position: relative;
    z-index: 2;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    animation: float 3s ease-in-out infinite;
    display: block;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.upload-label p {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-weight: 600;
}

.file-types {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.7;
}

.file-info {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-purple);
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Visualization Section - Immersive Canvas */
.visualization-section {
    animation: fadeInUp 1s ease-out 0.4s both;
    flex: 1;
    min-height: 500px;
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.visualizer-canvas {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    background: rgba(10, 10, 15, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow-strong);
    position: relative;
    z-index: 5;
}

.visualization-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-accent);
    border-radius: var(--radius-2xl);
    z-index: 0;
    opacity: 0.5;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Controls Section - Advanced Control Panel */
.controls-section {
    animation: fadeInUp 1s ease-out 0.6s both;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.controls-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0.5;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

/* Enhanced Play/Pause Button */
.play-pause-btn {
    background: var(--gradient-accent);
    border: none;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 
        0 10px 30px rgba(168, 85, 247, 0.3),
        0 0 60px rgba(168, 85, 247, 0.2);
    position: relative;
    overflow: hidden;
}

.play-pause-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.play-pause-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 
        0 15px 40px rgba(168, 85, 247, 0.4),
        0 0 80px rgba(168, 85, 247, 0.3);
}

.play-pause-btn:hover:not(:disabled)::before {
    width: 100%;
    height: 100%;
}

.play-pause-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.play-pause-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(50%);
}

.btn-icon {
    font-size: 2.5rem;
    transition: transform var(--transition-fast);
    z-index: 2;
    position: relative;
}

.play-pause-btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-text {
    position: absolute;
    bottom: -30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.9;
    font-weight: 600;
}

/* Enhanced Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--bg-glass);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.volume-label {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.volume-label:hover {
    transform: scale(1.1);
}

.volume-slider {
    width: 150px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--gradient-accent);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    position: relative;
    z-index: 2;
}

.volume-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--gradient-accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    position: relative;
    z-index: 2;
}

.volume-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
}

.volume-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
}

.volume-value {
    font-size: 1rem;
    color: var(--text-secondary);
    min-width: 50px;
    font-weight: 600;
    text-align: center;
}

/* Enhanced Progress Bar */
.progress-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.progress-bar:hover .progress-fill::after {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-weight: 500;
}

.time-separator {
    opacity: 0.5;
}

/* Hidden Audio Element */
.hidden-audio {
    display: none;
}

/* Advanced Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Responsive Design - Enhanced */
@media (max-width: 1024px) {
    .container {
        padding: var(--space-lg);
    }
    
    .title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    .controls {
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--space-md);
    }
    
    .title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .controls {
        gap: var(--space-md);
        flex-direction: column;
    }
    
    .play-pause-btn {
        width: 80px;
        height: 80px;
    }
    
    .btn-icon {
        font-size: 2rem;
    }
    
    .volume-control {
        order: 2;
    }
    
    .upload-area {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .visualization-section {
        min-height: 400px;
    }
    
    .visualizer-canvas {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-sm);
    }
    
    .title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .play-pause-btn {
        width: 70px;
        height: 70px;
    }
    
    .btn-icon {
        font-size: 1.5rem;
    }
    
    .volume-slider {
        width: 120px;
    }
    
    .upload-area {
        padding: var(--space-xl) var(--space-md);
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .controls-section {
        padding: var(--space-lg);
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High DPI Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .upload-area,
    .visualization-section,
    .controls-section {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0f;
        --bg-secondary: #1a1a2e;
        --text-primary: #ffffff;
    }
}
