/* Base styles */
:root {
    --background: #050814;
    --foreground: #e1e7ef;
    --primary: #64B5F6;
    --primary-light: #E1F5FE;
    --accent: #1976D2;
    --card-bg: rgba(22, 28, 45, 0.8);
    --border: rgba(100, 181, 246, 0.3);
}

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

body {
    font-family: 'Space Grotesk', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Stars background */
.stars-bg {
    background-color: var(--background);
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 4px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 8, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 181, 246, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--foreground);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(100, 181, 246, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--foreground);
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    padding: 150px 0 100px;
    text-align: center;
}

.space-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

.space-subtitle {
    font-size: 1.5rem;
    color: #a0c4ff;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.nav-button {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(25, 118, 210, 0.2);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-button:hover {
    background: rgba(25, 118, 210, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    color: var(--foreground);
}

/* Content sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-content p {
    margin-bottom: 10px;
}

.text-content .nav-button {
    align-self: flex-start;
    margin-top: 10px;
}

/* Planet orbit animation */
.planet-orbit {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ffdd00, #ff9500);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 221, 0, 0.8);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.planet {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.8);
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Timeline section */
.timeline {
    display: flex;
    justify-content: space-around;
    margin: 50px 0;
}

.timeline-item {
    text-align: center;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: var(--primary);
}

.year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.event {
    font-size: 1rem;
}

/* Interactive features preview */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.center-button {
    text-align: center;
    margin-top: 40px;
}

/* Footer */
.footer {
    background: rgba(5, 8, 20, 0.9);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #a0a0a0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .space-title {
        font-size: 2.5rem;
    }
    
    .space-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline {
        flex-direction: column;
        gap: 40px;
    }
    
    .timeline-item::after {
        display: none;
    }
}

/* Interactive pages specific styles */
.interactive-dashboard {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-button {
    padding: 10px 20px;
    background: rgba(25, 118, 210, 0.2);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active, .tab-button:hover {
    background: rgba(25, 118, 210, 0.4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.visual-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.control-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider-container {
    margin-bottom: 10px;
}

.slider-container label {
    display: block;
    margin-bottom: 5px;
}

.slider {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    outline: none;
}

.button-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.control-button {
    width: 40px;
    height: 40px;
    background: rgba(25, 118, 210, 0.3);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-button:hover {
    background: rgba(25, 118, 210, 0.5);
}

.module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.module-button {
    padding: 8px 16px;
    background: rgba(25, 118, 210, 0.3);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-button:hover {
    background: rgba(25, 118, 210, 0.5);
}

.planet-selection, .comparison-type {
    margin-bottom: 20px;
}

.planet-button, .comparison-button {
    padding: 8px 16px;
    background: rgba(25, 118, 210, 0.2);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--foreground);
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.planet-button.selected, .comparison-button.selected,
.planet-button:hover, .comparison-button:hover {
    background: rgba(25, 118, 210, 0.4);
}

.comparison-bar {
    margin-bottom: 15px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.bar-container {
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 10px;
}

.mercury-bar { background: #8c8c8c; }
.venus-bar { background: #e6b800; }
.earth-bar { background: #3498db; }
.mars-bar { background: #e74c3c; }
.jupiter-bar { background: #f39c12; }
.saturn-bar { background: #d4ac0d; }
.uranus-bar { background: #1abc9c; }
.neptune-bar { background: #2980b9; }
