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

body {
    font-family: 'Courier New', monospace;
    background: #0a0e27;
    color: #3d8cd9;
    overflow-x: hidden;
}
/* Add this to your CSS */
.news-scroll-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px; /* Match your nav height */
    overflow: hidden;
    z-index: 999; /* Just below nav which is 1000 */
    pointer-events: none;
}

.news-scroll-content {
    position: absolute;
    white-space: nowrap;
    font-size: 6.8rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: rgba(61, 140, 217, 0.8); /* Same color but with transparency built in */
    display: flex;
    align-items: center;
    height: 100%;
    animation: scrollNews 150s linear infinite;
}

@keyframes scrollNews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Duplicate the text for seamless loop */
.news-scroll-content::after {
    content: '0x50454143 • INIT::UNITY • 01010000 01000101 01000001 01000011 01000101 • SYS.HARMONY_PROTOCOL • [EARTH.COORDINATES: 0.0000°N, 0.0000°E] • EXEC::COMPASSION.RUN • 0x484F5045 • PROC::UNDERSTANDING • LOOP::KINDNESS{∞} • MEM::LOVE=INFINITE • 0x554E495459 • NAV.DESTINATION::PEACE • KERNEL::EMPATHY • BROADCAST::GOODWILL • 0x4A4F5952 • THREAD::HARMONY • STATUS::HOPEFUL • PWR::HUMANITY • 0x44524541 • INIT::EXPLORE • UNITY.PROTOCOL=TRUE • ';
    padding-left: 50px;
}
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(5, 10, 20, 0.6) 0%,
        rgba(8, 15, 25, 0.55) 50%,
        rgba(5, 10, 20, 0.6) 100%
    );
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    border-bottom: 1px solid rgba(61, 140, 217, 0.3);
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
                inset 0 1px 1px rgba(61, 140, 217, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    font-size: 4.0rem;
    font-weight: bold;
    letter-spacing: 3px;
}

.nav-brand a {
    text-decoration: none;
    background: linear-gradient(135deg, #3d8cd9, #5ba3e0, #3d8cd9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-items-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.nav-item a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.nav-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(61, 140, 217, 0.3);
    transition: all 0.3s ease;
}

.nav-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-item:hover .nav-thumbnail {
    border-color: #3d8cd9;
    box-shadow: 0 0 15px rgba(61, 140, 217, 0.5);
    transform: scale(1.1);
}

.nav-label {
    font-size: 0.7rem;
    color: #3d8cd9;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-label {
    color: #5ba3e0;
}

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

.dashboard-panel {
    position: fixed;
    left: 0;
    width: 400px;
    height: calc(100vh - 100px);
    background: linear-gradient(135deg,
        rgba(5, 10, 20, 0.8) 0%,
        rgba(8, 15, 25, 0.85) 50%,
        rgba(5, 10, 20, 0.8) 100%
    );
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-right: 2px solid rgba(61, 140, 217, 0.3);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: inset 0 1px 1px rgba(61, 140, 217, 0.1);
}

.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orbital-tracker {
    position: absolute;
    top: 300px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    opacity: 0.15;
    pointer-events: none;
    will-change: top;
}

.orbit-ring-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #5ba3e0;
    border-radius: 50%;
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.6;
    }
}

.orbit-satellite {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #5ba3e0;
    border-radius: 50%;
    box-shadow: 0 0 15px #5ba3e0;
    margin-left: -4px;
    margin-top: -4px;
    animation: orbit 8s linear infinite;
}

.orbit-path {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border: 1px dashed rgba(61, 140, 217, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(150px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(150px) rotate(-360deg);
    }
}

.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.code-line {
    position: absolute;
    font-size: 10px;
    color: #3d8cd9;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    opacity: 0.5;
    animation: scrollCode 12s linear infinite;
}

@keyframes scrollCode {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.dashboard-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
}

.state-header {
    margin-bottom: 2rem;
}

.state-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #3d8cd9 0%, #5ba3e0 30%, #7bb8e8 50%, #5ba3e0 70%, #3d8cd9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(61, 140, 217, 0.6)) 
            drop-shadow(0 0 40px rgba(91, 163, 224, 0.4));
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(61, 140, 217, 0.6)) 
                drop-shadow(0 0 40px rgba(91, 163, 224, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(61, 140, 217, 0.8)) 
                drop-shadow(0 0 50px rgba(91, 163, 224, 0.6));
    }
}

.coordinate-display {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #3d8cd9;
}

.coord-label {
    opacity: 0.6;
}

.coord-value {
    font-weight: bold;
}

.status-bar-button {
    display: block;
    background: rgba(10, 20, 35, 0.4);
    border: 1px solid rgba(61, 140, 217, 0.3);
    border-radius: 5px;
    padding: 0.75rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.status-bar-button:hover {
    background: linear-gradient(135deg, rgba(15, 30, 45, 0.6), rgba(20, 40, 60, 0.6));
    border-color: #3d8cd9;
    box-shadow: 0 0 20px rgba(61, 140, 217, 0.5);
    transform: translateY(-2px);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #00ff88; }
    50% { opacity: 0.5; box-shadow: 0 0 5px #00ff88; }
}

.explore-text {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #3d8cd9;
    position: relative;
    z-index: 2;
    text-align: center;
}

.scan-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(61, 140, 217, 0.3), transparent);
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.info-section {
    margin-bottom: 2rem;
    background: rgba(10, 20, 35, 0.3);
    border: 1px solid rgba(61, 140, 217, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
}

.info-section.compact {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-header {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(61, 140, 217, 0.3);
    background: linear-gradient(90deg, #3d8cd9, #5ba3e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.65rem;
    opacity: 0.6;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1rem;
    font-weight: bold;
    color: #5ba3e0;
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(10, 20, 35, 0.4);
    border: 1px solid rgba(61, 140, 217, 0.2);
    border-radius: 5px;
    text-decoration: none;
    color: #3d8cd9;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.location-item:hover {
    background: linear-gradient(135deg, rgba(15, 30, 45, 0.6), rgba(20, 40, 60, 0.6));
    border-color: #3d8cd9;
    box-shadow: 0 0 15px rgba(61, 140, 217, 0.4);
    transform: translateX(5px);
}

.location-icon {
    font-size: 1.2rem;
    filter: grayscale(0.5) brightness(1.2);
}

.location-name {
    flex: 1;
    font-weight: 500;
}

.access-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.access-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(10, 20, 35, 0.3);
    border-radius: 5px;
}

.access-icon {
    font-size: 1.5rem;
    filter: grayscale(0.5) brightness(1.3);
}

.access-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.access-label {
    font-size: 0.65rem;
    opacity: 0.6;
    letter-spacing: 1px;
}

.access-value {
    font-size: 0.85rem;
    font-weight: bold;
    color: #5ba3e0;
}

.terrain-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.terrain-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terrain-label {
    font-size: 0.7rem;
    min-width: 80px;
    opacity: 0.8;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: rgba(10, 20, 35, 0.5);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3d8cd9, #5ba3e0);
    border-radius: 4px;
    position: relative;
    animation: fillBar 2s ease-out;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes fillBar {
    from { width: 0; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.climate-data-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.climate-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem;
    background: rgba(10, 20, 35, 0.3);
    border-radius: 5px;
}

.climate-icon-compact {
    font-size: 1.2rem;
    filter: grayscale(1) brightness(1.5);
}

.climate-label-compact {
    font-size: 0.6rem;
    opacity: 0.7;
    text-align: center;
}

.climate-value-compact {
    font-weight: bold;
    color: #5ba3e0;
    font-size: 0.9rem;
}

.visited-sites-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.visited-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(10, 20, 35, 0.3);
    border-radius: 5px;
}

.visited-rank {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #3d8cd9, #5ba3e0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 0.9rem;
}

.visited-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.visited-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5ba3e0;
}

.visited-count {
    font-size: 0.65rem;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.hidden-gems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.gem-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(10, 20, 35, 0.4);
    border: 1px solid rgba(61, 140, 217, 0.2);
    border-radius: 5px;
    text-decoration: none;
    color: #3d8cd9;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gem-item:hover {
    background: linear-gradient(135deg, rgba(15, 30, 45, 0.6), rgba(20, 40, 60, 0.6));
    border-color: #5ba3e0;
    box-shadow: 0 0 15px rgba(91, 163, 224, 0.4);
    transform: translateX(5px);
}

.gem-icon {
    font-size: 1.2rem;
    filter: grayscale(0) brightness(1.3);
}

.gem-name {
    flex: 1;
    font-weight: 500;
}

.telemetry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(61, 140, 217, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    opacity: 0.7;
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.timestamp {
    font-family: 'Courier New', monospace;
}

.map-container {
    margin-left: 400px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.destination-map {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(61, 140, 217, 0.3);
    object-fit: cover;
}

.dashboard-panel::-webkit-scrollbar {
    width: 8px;
}

.dashboard-panel::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.5);
}

.dashboard-panel::-webkit-scrollbar-thumb {
    background: rgba(61, 140, 217, 0.3);
    border-radius: 4px;
}

.dashboard-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(61, 140, 217, 0.5);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .dashboard-panel {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .map-container {
        margin-left: 0;
    }
}