.echo-container {
    background: linear-gradient(135deg, #0c0c0c 0%, #2d1810 50%, #0c0c0c 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

/* ASCII Waveforms with pulsing animation */
.waveform {
    font-family: 'Courier New', monospace;
    color: #4ecdc4;
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: pre;
    margin: 1rem 0;
    animation: pulse-wave 3s ease-in-out infinite;
}

.waveform.low-freq {
    color: #ff6b6b;
    animation: slow-wave 4s ease-in-out infinite;
}

.waveform.mid-freq {
    color: #4ecdc4;
    animation: medium-wave 2.5s ease-in-out infinite;
}

.waveform.high-freq {
    color: #ffe66d;
    animation: fast-wave 1.5s ease-in-out infinite;
    font-size: 0.7rem;
}

@keyframes slow-wave {
    0%, 100% {
        text-shadow: 0 0 5px currentColor;
        opacity: 0.6;
    }
    50% {
        text-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
        opacity: 1;
        transform: scaleY(1.1);
    }
}

@keyframes medium-wave {
    0%, 100% {
        text-shadow: 0 0 3px currentColor;
        opacity: 0.7;
    }
    50% {
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
        opacity: 1;
        transform: scaleY(1.05);
    }
}

@keyframes fast-wave {
    0%, 100% {
        text-shadow: 0 0 2px currentColor;
        opacity: 0.8;
    }
    50% {
        text-shadow: 0 0 8px currentColor, 0 0 15px currentColor;
        opacity: 1;
        transform: scaleX(1.02);
    }
}

/* Typographic Crescendo */
.crescendo {
    text-align: center;
    margin: 3rem 0;
}

.crescendo .note {
    display: block;
    font-family: Georgia, serif;
    margin: 0.3rem 0;
    transition: all 0.5s ease;
    color: #e8e8e8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.crescendo .note:nth-child(1) {
    font-size: 0.8rem;
    opacity: 0.3;
    animation: crescendo-1 6s ease-in-out infinite;
}
.crescendo .note:nth-child(2) {
    font-size: 1rem;
    opacity: 0.4;
    animation: crescendo-2 6s ease-in-out infinite 0.5s;
}
.crescendo .note:nth-child(3) {
    font-size: 1.3rem;
    opacity: 0.6;
    animation: crescendo-3 6s ease-in-out infinite 1s;
}
.crescendo .note:nth-child(4) {
    font-size: 1.7rem;
    opacity: 0.7;
    animation: crescendo-4 6s ease-in-out infinite 1.5s;
}
.crescendo .note:nth-child(5) {
    font-size: 2.2rem;
    opacity: 0.9;
    animation: crescendo-5 6s ease-in-out infinite 2s;
}
.crescendo .note:nth-child(6) {
    font-size: 2.8rem;
    opacity: 1;
    animation: crescendo-6 6s ease-in-out infinite 2.5s;
    font-weight: bold;
}

@keyframes crescendo-1 {
    0%, 90% { transform: scale(1); opacity: 0.3; }
    15% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes crescendo-2 {
    0%, 90% { transform: scale(1); opacity: 0.4; }
    25% { transform: scale(1.3); opacity: 0.9; }
}

@keyframes crescendo-3 {
    0%, 90% { transform: scale(1); opacity: 0.6; }
    35% { transform: scale(1.4); opacity: 1; }
}

@keyframes crescendo-4 {
    0%, 90% { transform: scale(1); opacity: 0.7; }
    45% { transform: scale(1.5); opacity: 1; }
}

@keyframes crescendo-5 {
    0%, 90% { transform: scale(1); opacity: 0.9; }
    55% { transform: scale(1.6); opacity: 1; }
}

@keyframes crescendo-6 {
    0%, 90% { transform: scale(1); opacity: 1; }
    65% {
        transform: scale(1.8);
        opacity: 1;
        text-shadow: 0 0 20px #fff, 0 0 40px #4ecdc4;
    }
}

/* Visual Reverb Effect */
.reverb-chamber {
    position: relative;
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
}

.reverb-text {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.reverb-text::before {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    top: 2px;
    color: rgba(255, 107, 107, 0.7);
    animation: reverb-1 2s ease-in-out infinite;
}

.reverb-text::after {
    content: attr(data-text);
    position: absolute;
    left: 4px;
    top: 4px;
    color: rgba(78, 205, 196, 0.5);
    animation: reverb-2 3s ease-in-out infinite 0.3s;
}

@keyframes reverb-1 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.7;
        filter: blur(0px);
    }
    50% {
        transform: translate(3px, 3px);
        opacity: 0.3;
        filter: blur(1px);
    }
}

@keyframes reverb-2 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.5;
        filter: blur(1px);
    }
    50% {
        transform: translate(6px, 6px);
        opacity: 0.2;
        filter: blur(2px);
    }
}

/* Spectrum Analyzer Style */
.spectrum {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100px;
    gap: 2px;
    margin: 2rem 0;
    padding: 1rem;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0c0c0c 100%);
    border-radius: 8px;
}

.spectrum-bar {
    width: 4px;
    background: linear-gradient(to top, #ff6b6b, #4ecdc4, #ffe66d);
    border-radius: 2px;
    animation: spectrum-dance 1s ease-in-out infinite;
}

.spectrum-bar:nth-child(odd) { animation-delay: 0.1s; }
.spectrum-bar:nth-child(even) { animation-delay: 0.05s; }
.spectrum-bar:nth-child(3n) { animation-delay: 0.15s; }
.spectrum-bar:nth-child(4n) { animation-delay: 0.2s; }

.spectrum-bar:nth-child(1) { height: 20%; }
.spectrum-bar:nth-child(2) { height: 35%; }
.spectrum-bar:nth-child(3) { height: 60%; }
.spectrum-bar:nth-child(4) { height: 80%; }
.spectrum-bar:nth-child(5) { height: 95%; }
.spectrum-bar:nth-child(6) { height: 70%; }
.spectrum-bar:nth-child(7) { height: 45%; }
.spectrum-bar:nth-child(8) { height: 25%; }
.spectrum-bar:nth-child(9) { height: 40%; }
.spectrum-bar:nth-child(10) { height: 65%; }
.spectrum-bar:nth-child(11) { height: 85%; }
.spectrum-bar:nth-child(12) { height: 55%; }
.spectrum-bar:nth-child(13) { height: 30%; }
.spectrum-bar:nth-child(14) { height: 75%; }
.spectrum-bar:nth-child(15) { height: 50%; }

@keyframes spectrum-dance {
    0%, 100% { transform: scaleY(0.3); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

.controls {
    text-align: center;
    margin: 2rem 0;
}

.sound-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sound-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.sound-button.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: button-pulse 1s ease-in-out infinite;
}

@keyframes button-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240, 147, 251, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(240, 147, 251, 0); }
}

@media (max-width: 768px) {
    .echo-container {
        padding: 2rem 1rem;
        min-height: 300px;
    }

    .waveform {
        font-size: 0.7rem;
    }

    .crescendo .note:nth-child(6) {
        font-size: 2rem;
    }

    .spectrum {
        height: 80px;
    }

    .spectrum-bar {
        width: 3px;
    }
}
