:root {
    --primary-color: #9333ea; /* Purple-600 */
    --secondary-color: #1f2937; /* Gray-800 */
    --accent-color: #d8b4fe; /* Purple-300 */
    --text-color: #f3f4f6; /* Gray-100 */
    --bg-color: #111827; /* Gray-900 */
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    overflow: hidden;
    /* Disable text selection */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
    transition: background 0.5s ease;
}
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 50;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 0 30px var(--primary-color);
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}
.neon-text {
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color), 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: block;
    text-align: center;
}
.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}
.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 10px var(--primary-color);
}
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-online {
    background-color: #10b981; /* Emerald-500 */
    color: white;
    box-shadow: 0 0 8px #10b981;
}
.status-offline {
    background-color: #ef4444; /* Red-500 */
    color: white;
    box-shadow: 0 0 8px #ef4444;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid var(--primary-color);
    top: 20px;
    z-index: 10;
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
    transform: translateX(0);
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    transform: translateX(0);
}
/* Music Player Styles */
.music-player {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(31, 41, 55, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(5px);
    transition: all 0.5s ease-in-out;
}
.music-player button {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.music-player button:hover {
    color: white;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    background: transparent;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
    background: var(--secondary-color);
    height: 4px;
    border-radius: 4px;
}
input[type="range"]::-moz-range-track {
    background: var(--secondary-color);
    height: 4px;
    border-radius: 4px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -6px;
    background-color: var(--accent-color);
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}
input[type="range"]::-moz-range-thumb {
    background-color: var(--accent-color);
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

/* --- VIBING ANIMATIONS --- */
@keyframes rainbow-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes text-vibe {
    0%, 100% { 
        transform: scale(1); 
        text-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color), 0 0 20px var(--primary-color), 0 0 40px var(--primary-color); 
    }
    50% { 
        transform: scale(1.05); 
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--accent-color), 0 0 50px var(--primary-color), 0 0 80px var(--primary-color); 
    }
}

@keyframes button-vibe {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 10px var(--primary-color); 
    }
    50% { 
        transform: scale(1.03); 
        box-shadow: 0 0 20px var(--accent-color), 0 0 30px #fff; 
    }
}

/* Class to trigger animations when music is playing */
body.vibin {
    background: linear-gradient(270deg, #161515,#0000ff, #4b0082, #573b57);
    background-size: 1400% 1400%;
    animation: rainbow-bg 8s ease infinite;
}

body.vibin #main-name {
    animation: text-vibe 2s ease-in-out infinite;
}

body.vibin .btn-primary,
body.vibin .btn-secondary {
    animation: button-vibe 1.5s ease-in-out infinite;
}

body.vibin #music-player-container {
    box-shadow: 0 0 25px #fff, 0 0 40px var(--primary-color);
    border: 1px solid #fff;
    transform: scale(1.05);
}
