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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

.header {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1rem 2rem;
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ffff, #8a2be2, #ffd700);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.mode-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.mode-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mode-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.main-container {
    display: flex;
    height: calc(100vh - 140px);
}

.left-panel {
    width: 30%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1.5rem;
    overflow-y: auto;
}

.image-showcase h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.image-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.image-container img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.image-title {
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.image-description {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.4;
}

.image-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.image-btn {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #8a2be2;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    flex: 1;
}

.image-btn:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateY(-1px);
}

.image-btn.active {
    background: rgba(138, 43, 226, 0.3);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.info-panel {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.info-panel h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-panel p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: #e0e0e0;
}

.info-panel strong {
    color: #00ffff;
}

.info-panel em {
    color: #ffd700;
    font-style: normal;
}

.right-panel {
    width: 70%;
    position: relative;
}

#scene-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.scene-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 100;
}

#resetCamera {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.5);
    color: #00ffff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

#resetCamera:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 1000;
    pointer-events: none;
    display: none;
    border: 1px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 250px;
}

.footer {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 0.8rem 2rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.footer p {
    color: #cccccc;
    font-size: 0.9rem;
}

.footer a {
    color: #00ffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
        height: 40%;
    }
    
    .right-panel {
        width: 100%;
        height: 60%;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .mode-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .mode-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .image-selector {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    
    .left-panel {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
}

/* Custom scrollbar */
.left-panel::-webkit-scrollbar {
    width: 6px;
}

.left-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.left-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

.left-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.6); }
}

.mode-btn.active {
    animation: glow 2s infinite;
}

/* Loading animation for images */
.image-container img {
    transition: opacity 0.3s ease;
}

.image-container img:not([src]) {
    opacity: 0;
}