/* Audio Modal Dialog */
.audio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow: auto;
    backdrop-filter: blur(10px);
}

.audio-modal-content {
    position: relative;
    background-color: rgba(20, 20, 50, 0.9);
    margin: 5vh auto;
    padding: 30px;
    border: 2px solid #00f7ff;
    width: 80%;
    max-width: 700px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 247, 255, 0.6);
    animation: modalFadeIn 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ff00cc;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: #00f7ff;
    transform: scale(1.1);
    text-shadow: 0 0 10px #00f7ff;
}

.modal-title {
    font-family: 'TopSecret', 'Arial', sans-serif;
    font-size: 1.8rem;
    color: #00f7ff;
    margin-bottom: 15px;
    text-align: center;
}

.track-info-display {
    text-align: center;
    margin-bottom: 20px;
}

.track-name-display {
    font-family: 'TopSecret', 'Arial', sans-serif;
    font-size: 1.5rem;
    color: #ff00cc;
    margin-bottom: 5px;
}

.track-album-display {
    font-family: 'CosmicCursive', 'Arial', sans-serif;
    font-size: 1.1rem;
    color: #a0a0a0;
}

.visualizer-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin: 20px 0;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 247, 255, 0.3);
    overflow: hidden;
}

/* UFO Visualizer */
.ufo-visualizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.ufo-craft {
    position: absolute;
    width: 100px;
    height: 40px;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.5s ease;
}

.ufo-body {
    position: absolute;
    width: 80px;
    height: 20px;
    background-color: #222;
    border-radius: 50%;
    left: 10px;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.6);
    z-index: 6;
}

.ufo-cockpit {
    position: absolute;
    width: 40px;
    height: 15px;
    background-color: rgba(0, 247, 255, 0.7);
    border-radius: 50%;
    top: -7px;
    left: 30px;
    z-index: 7;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.8);
}

.ufo-beam {
    position: absolute;
    width: 20px;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0, 247, 255, 0.8) 0%, rgba(0, 247, 255, 0) 100%);
    top: 20px;
    left: 40px;
    border-radius: 10px;
    opacity: 0.7;
    z-index: 4;
    transform-origin: top center;
    animation: beamPulse 2s infinite alternate ease-in-out;
}

@keyframes beamPulse {
    0% {
        height: 100px;
        opacity: 0.4;
    }
    100% {
        height: 180px;
        opacity: 0.7;
    }
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
}

/* Audio Visualizer Canvas */
#audio-visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 4;
}

/* Audio Controls */
.audio-controls {
    margin-top: 20px;
}

.audio-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #00f7ff, #ff00cc);
    border-radius: 5px;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.9rem;
    color: #a0a0a0;
    text-align: right;
    width: 100%;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.control-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ff00cc;
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-button:hover {
    background-color: #00f7ff;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.6);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00f7ff;
}

#volume-slider {
    -webkit-appearance: none;
    width: 100px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #00f7ff;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 247, 255, 0.6);
}

#volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #00f7ff;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 247, 255, 0.6);
    border: none;
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
    .audio-modal-content {
        width: 90%;
        margin: 10vh auto;
        padding: 20px;
    }
    
    .visualizer-container {
        height: 200px;
    }
    
    .control-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .track-name-display {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .audio-modal-content {
        width: 95%;
        margin: 5vh auto;
        padding: 15px;
    }
    
    .visualizer-container {
        height: 180px;
    }
    
    .ufo-craft {
        width: 80px;
    }
    
    .ufo-body {
        width: 70px;
    }
    
    .ufo-cockpit {
        width: 35px;
        left: 25px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .track-name-display {
        font-size: 1.2rem;
    }
    
    .control-buttons {
        gap: 15px;
    }
    
    .volume-control {
        flex-direction: column;
        gap: 5px;
    }
    
    #volume-slider {
        width: 80px;
    }
}/* ufo-theme.css */

/* UFO Animation on Home Page */
.ufo-animation {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 80px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 247, 255, 0.7) 0%, rgba(0, 247, 255, 0) 70%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.8);
    z-index: 10;
    animation: float 5s infinite ease-in-out;
}

.ufo-animation::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 15px;
    width: 50px;
    height: 20px;
    background-color: #111;
    border-radius: 50% 50% 0 0;
    box-shadow: 0 0 10px rgba(255, 0, 204, 0.6);
}

.ufo-animation::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 30px;
    width: 20px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0, 247, 255, 0.7) 0%, rgba(0, 247, 255, 0) 100%);
    border-radius: 50%;
    opacity: 0.7;
    animation: beam 2s infinite alternate ease-in-out;
}

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

@keyframes beam {
    0% {
        height: 30px;
        opacity: 0.4;
    }
    100% {
        height: 80px;
        opacity: 0.7;
    }
}

/* Star Field Animation */
.star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite alternate ease-in-out;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    }
}

/* Path Items Animation */
.path-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Audio Visualizer */
.audio-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 50px;
    gap: 2px;
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    padding: 5px;
    overflow: hidden;
}

.visualizer-bar {
    width: 3px;
    height: 5px;
    background-color: #00f7ff;
    border-radius: 2px;
    transition: height 0.1s ease-in-out;
}

/* Cosmic Hover Effects */
.cosmic-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cosmic-hover::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(ellipse at center, rgba(255, 0, 204, 0.2) 0%, rgba(0, 247, 255, 0.2) 50%, rgba(0, 0, 0, 0) 70%);
    opacity: 0;
    transition: all 0.5s ease;
    transform: scale(0.5);
    pointer-events: none;
}

.cosmic-hover:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* UFO Beam on Form Submission */
.form-success {
    position: relative;
    overflow: hidden;
}

.ufo-beam {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0, 247, 255, 0.2) 0%, rgba(0, 247, 255, 0.8) 100%);
    border-radius: 50% 50% 10% 10%;
    animation: beamDown 2s forwards;
    opacity: 0;
    z-index: 5;
}

@keyframes beamDown {
    0% {
        height: 0;
        opacity: 0;
    }
    30% {
        height: 150px;
        opacity: 0.8;
    }
    90% {
        height: 150px;
        opacity: 0.8;
    }
    100% {
        height: 0;
        opacity: 0;
    }
}

/* Hover Glow Effect */
.glow-hover {
    transition: all 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.8);
}

/* Abduction animation for success message */
.abduction {
    animation: abduct 3s forwards;
}

@keyframes abduct {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    80% {
        transform: translateY(-50px);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

/* UFO-themed loading spinner */
.ufo-loader {
    width: 60px;
    height: 30px;
    background-color: #222;
    border-radius: 50% 50% 10px 10px;
    position: relative;
    margin: 20px auto;
    animation: ufoFloat 1.5s infinite ease-in-out;
}

.ufo-loader::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 20px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 247, 255, 0.8) 0%, rgba(0, 247, 255, 0) 100%);
    border-radius: 10px;
    animation: beam 1s infinite alternate ease-in-out;
}

.ufo-loader::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 15px;
    width: 30px;
    height: 8px;
    background-color: rgba(0, 247, 255, 0.8);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.8);
    animation: pulseLight 1s infinite alternate;
}

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

@keyframes pulseLight {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 5px rgba(0, 247, 255, 0.6);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 247, 255, 1);
    }
}

/* Top Secret Document Styling */
.top-secret-document {
    background-color: rgba(20, 20, 50, 0.4);
    border: 2px dashed #ff00cc;
    padding: 20px;
    position: relative;
}

.top-secret-document::before {
    content: 'TOP SECRET';
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: #ff00cc;
    color: #fff;
    font-family: 'TopSecret', 'Arial', sans-serif;
    padding: 5px 10px;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(255, 0, 204, 0.6);
}

.top-secret-document::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="%23ff00cc" stroke-width="5"/><text x="50" y="55" font-family="Arial" font-size="12" text-anchor="middle" fill="%23ff00cc">CLASSIFIED</text></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.8;
    transform: rotate(15deg);
}

/* Alien Language Text Effect */
.alien-text {
    font-family: 'TopSecret', 'Arial', sans-serif;
    color: #00f7ff;
    text-shadow: 0 0 5px #00f7ff;
    animation: alienGlow 2s infinite alternate;
}

@keyframes alienGlow {
    0% {
        text-shadow: 0 0 5px #00f7ff;
    }
    100% {
        text-shadow: 0 0 15px #00f7ff, 0 0 25px #00f7ff;
    }
}

/* UFO-themed error and success messages */
.error-message {
    background-color: rgba(255, 0, 0, 0.3);
    border: 1px solid #ff0000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 5px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.success-message {
    background-color: rgba(0, 255, 100, 0.3);
    border: 1px solid #00ff64;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 100, 0.4);
}

/* Responsive adjustments for UFO elements */
@media (max-width: 768px) {
    .ufo-animation {
        width: 60px;
        height: 30px;
    }
    
    .ufo-animation::before {
        width: 40px;
        height: 15px;
        top: -10px;
        left: 10px;
    }
    
    .ufo-animation::after {
        width: 15px;
        height: 40px;
        bottom: -15px;
        left: 22px;
    }
    
    .top-secret-document::before {
        font-size: 0.8rem;
        top: -12px;
    }
    
    .top-secret-document::after {
        width: 40px;
        height: 40px;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .ufo-animation {
        width: 50px;
        height: 25px;
    }
    
    .ufo-animation::before {
        width: 30px;
        height: 12px;
        top: -8px;
        left: 10px;
    }
    
    .ufo-animation::after {
        width: 12px;
        height: 30px;
        bottom: -12px;
        left: 19px;
    }
    
    .audio-visualizer {
        height: 40px;
    }
    
    .visualizer-bar {
        width: 2px;
    }
    
    .top-secret-document {
        padding: 15px;
    }
    
    .top-secret-document::after {
        width: 30px;
        height: 30px;
    }
}