:root {
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --accent-color: #00ff88;
    --dark-bg: #0a0a0f;
    --card-bg: rgba(20, 20, 35, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated Stars Background */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.stars-background::before,
.stars-background::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 
        100vw 100vh white,
        200vw 200vh white,
        300vw 100vh white,
        150vw 150vh white,
        250vw 50vh white,
        50vw 200vh white,
        350vw 250vh white,
        180vw 80vh white,
        280vw 180vh white,
        120vw 300vh white;
    animation: starsMove 100s linear infinite;
}

.stars-background::after {
    box-shadow: 
        150vw 50vh white,
        250vw 150vh white,
        350vw 50vh white,
        200vw 200vh white,
        300vw 100vh white,
        100vw 250vh white,
        400vw 200vh white,
        220vw 120vh white,
        320vw 220vh white,
        160vw 280vh white;
    animation: starsMove 150s linear infinite;
}

@keyframes starsMove {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-1000px);
    }
}

/* Header Styles */
header {
    background: var(--gradient-hero);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.radio-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 0;
}

.radio-waves::before,
.radio-waves::after {
    content: '';
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: radioWave 2s ease-out infinite;
}

.radio-waves::after {
    animation-delay: 1s;
}

@keyframes radioWave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 40px rgba(102, 126, 234, 0.5);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitchBefore 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
    opacity: 0.8;
}

.glitch::after {
    animation: glitchAfter 3s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
    opacity: 0.8;
}

@keyframes glitchBefore {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, -2px);
    }
    94% {
        transform: translate(2px, 2px);
    }
}

@keyframes glitchAfter {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(2px, 2px);
    }
    94% {
        transform: translate(-2px, -2px);
    }
}

.subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    margin-bottom: 0.5rem;
}

.developer {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Navigation */
.main-nav {
    background: rgba(10, 10, 15, 0.95);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    z-index: -1;
    transition: left 0.3s ease;
}

.main-nav a:hover::before,
.main-nav a.active::before {
    left: 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Feature Cards */
.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.6);
}

.feature-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Audio Device Selectors */
.audio-device-selectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.device-selector {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.device-selector label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.device-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

.device-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.device-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.device-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.device-select option {
    background: rgba(10, 10, 15, 0.95);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Spectrum Visualization */
.spectrum-container {
    margin: 2rem 0;
}

#spectrumCanvas {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.3);
}

.spectrum-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-3);
    color: white;
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 172, 254, 0.6);
}

.btn-secondary {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 5px 20px rgba(240, 147, 251, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(240, 147, 251, 0.6);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

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

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    padding-left: 1rem;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* About Page Specific Styles */
.about-hero {
    text-align: center;
}

.about-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.creator-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.creator-logo {
    flex-shrink: 0;
}

.logo-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    animation: logoRotate 20s linear infinite;
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    }
    50% {
        transform: rotate(180deg);
        box-shadow: 0 10px 40px rgba(240, 147, 251, 0.5);
    }
    100% {
        transform: rotate(360deg);
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.creator-details {
    flex: 1;
}

.creator-details h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.creator-details p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tech-item {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.tech-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.tech-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.testimonial {
    background: var(--gradient-1);
    text-align: center;
}

.testimonial blockquote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.testimonial cite {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: normal;
}

/* Footer */
footer {
    background: rgba(10, 10, 15, 0.95);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 2px solid rgba(102, 126, 234, 0.3);
}

.footer-content p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.version {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
    font-weight: 700;
}

/* Audio Controls */
.audio-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.control-group {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.control-group:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
}

.control-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.control-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.control-value {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
    font-size: 1rem;
    margin-left: auto;
    padding-left: 1rem;
}

.control-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Slider Styles */
.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(102, 126, 234, 0.2);
    outline: none;
    -webkit-appearance: none;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider:hover {
    background: rgba(102, 126, 234, 0.3);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-3);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    width: 24px;
    height: 24px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-3);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    width: 24px;
    height: 24px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

/* Preset Controls */
.preset-controls {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.3);
}

.preset-controls h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.preset-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-preset {
    padding: 0.8rem 1.5rem;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.5);
    color: var(--text-primary);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-preset:hover {
    background: var(--gradient-3);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.status-dot.active {
    background: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

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

#statusText {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .main-nav ul {
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card h2 {
        font-size: 2rem;
    }

    .creator-info {
        flex-direction: column;
        text-align: center;
    }

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

    .spectrum-controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
    .audio-controls-grid {
        grid-template-columns: 1fr;
    }

    .preset-buttons {
        flex-direction: column;
    }

    .btn-preset {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .feature-card {
        padding: 1rem;
    }
}
