/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Arial', sans-serif;
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 70%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    cursor: none;
}

/* Background container */
#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
}

/* Canvas for the animated lines */
#lines-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Content overlay */
.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
}

/* Control Panel Styles */
.control-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.control-panel:hover {
    box-shadow: 0 12px 48px rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.6);
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.control-header h3 {
    color: #00d4ff;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.toggle-btn {
    background: linear-gradient(45deg, #00d4ff, #0066ff);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.controls-content {
    transition: all 0.3s ease;
}

.controls-content.collapsed {
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 0.9rem;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.6));
    outline: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #0066ff);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(0, 212, 255, 1);
}

.color-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.color-input-group {
    text-align: center;
}

.color-input-group label {
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.color-picker {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.color-picker:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
}

.action-btn {
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(0, 102, 255, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.4), rgba(0, 102, 255, 0.4));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* Custom cursor */
body::after {
    content: '';
    position: fixed;
    top: var(--mouse-y, 0);
    left: var(--mouse-x, 0);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #0066ff, #ff00ff);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.content p {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 2rem;
}

.stat-item {
    background: rgba(0, 212, 255, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.stat-item span:last-child {
    color: #00d4ff;
    font-weight: 700;
    margin-left: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .content h1 {
        font-size: 2.5rem;
    }
    
    .content p {
        font-size: 1rem;
    }
}

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