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

:root {
    --primary-color: #4C84FF;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --purple-color: #8b5cf6;
    --pink-color: #ec4899;
    --text-primary: #333;
    --text-secondary: #666;
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 80%;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 4rem 2rem;
    position: relative;
}

/* Animated background bubbles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 120rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 4rem;
    text-align: center;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Button Section */
.button-section {
    margin-bottom: 5rem;
}

.button-section h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

/* Glass Button Base */
.glass-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.glass-btn:hover::before {
    transform: translateX(100%);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.glass-btn:active {
    transform: translateY(-1px);
}

/* Colored Glass Buttons */
.glass-primary {
    background: rgba(76, 132, 255, 0.2);
    border-color: rgba(76, 132, 255, 0.4);
}

.glass-primary:hover {
    background: rgba(76, 132, 255, 0.3);
    box-shadow: 0 10px 25px rgba(76, 132, 255, 0.3);
}

.glass-success {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.glass-success:hover {
    background: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.glass-warning {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

.glass-warning:hover {
    background: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.glass-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.glass-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.glass-purple {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.glass-purple:hover {
    background: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.glass-pink {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.4);
}

.glass-pink:hover {
    background: rgba(236, 72, 153, 0.3);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

/* Icon Only Buttons */
.glass-icon {
    width: 5.5rem;
    height: 5.5rem;
    padding: 0;
    border-radius: 50%;
}

.glass-icon i {
    font-size: 2rem;
}

/* Large Buttons */
.glass-large {
    padding: 2rem 4rem;
    font-size: 1.8rem;
}

.glass-large i {
    font-size: 2.2rem;
}

.glass-icon.glass-large {
    width: 7rem;
    height: 7rem;
}

.glass-icon.glass-large i {
    font-size: 2.8rem;
}

/* Button Group */
.glass-button-group {
    display: inline-flex;
    gap: 0.5rem;
    margin-right: 2rem;
    margin-bottom: 2rem;
}

/* Demo Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.demo-card h3 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.volume-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.volume-slider {
    flex: 1;
    max-width: 30rem;
}

.volume-slider input[type="range"] {
    width: 100%;
    height: 0.6rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 2rem;
    height: 2rem;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.volume-slider input[type="range"]::-moz-range-thumb {
    width: 2rem;
    height: 2rem;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.demo-status {
    color: #fff;
    font-size: 1.6rem;
    text-align: center;
    font-weight: 500;
}

/* Special Animations */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.glass-shimmer {
    background-size: 200% 100%;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: shimmer 3s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

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

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

.glass-bounce:hover {
    animation: bounce 0.5s ease infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.glass-shake:hover {
    animation: shake 0.3s ease infinite;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 70%;
    }

    .button-grid {
        grid-template-columns: 1fr;
    }

    .glass-button-group {
        display: flex;
        width: 100%;
    }

    h1 {
        font-size: 2.8rem;
    }
}

/* Accessibility */
.glass-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

.glass-btn:focus:not(:focus-visible) {
    outline: none;
}
