* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #4A6E85;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Top bar with language switch */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0, 31, 63, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    overflow: hidden;
}

.nav-links-top {
    display: flex;
    gap: 15px;
}

.nav-link-top {
    padding: 6px 12px;
    background: #6A8EA5;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #001F3F;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 3px;
}

.nav-link-top:hover {
    background: #ffffff;
    border-color: #39ff14;
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.top-logo {
    height: 60px;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.2s ease;
    filter: brightness(0) invert(1);
}

.top-logo:hover {
    opacity: 1;
}

.lang-switch {
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 6px 12px;
    background: #6A8EA5;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #001F3F;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 3px;
    min-width: 40px;
}

.lang-btn:hover {
    background: #ffffff;
    border-color: #39ff14;
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lang-btn.active {
    background: #ffffff;
    color: #001F3F;
    border-color: #39ff14;
    font-weight: 600;
    box-shadow: 0 0 6px rgba(57, 255, 20, 0.5);
    animation: arcadeGlow 3s ease-in-out infinite;
}

@keyframes arcadeGlow {
    0%, 100% {
        box-shadow: 0 0 6px rgba(57, 255, 20, 0.5);
    }
    50% {
        box-shadow: 0 0 10px rgba(57, 255, 20, 0.6);
    }
}

/* Faint blinking white dots - space effect on dark background */
.space-dot {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
}

@keyframes dotBlink {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    20% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        transform: scale(1.1);
    }
    80% {
        opacity: 0.1;
        transform: scale(1);
    }
}

@keyframes dotTwinkle {
    0%, 100% {
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    30% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.2;
    }
    70% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.08;
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.05;
        transform: scale(1);
    }
    50% {
        opacity: 0.18;
        transform: scale(1.2);
    }
}

/* Back link for sub-pages */
.back-link {
    position: fixed;
    top: 90px;
    left: 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: rgba(0, 31, 63, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.back-link:hover {
    background: rgba(0, 31, 63, 1);
    border-color: #39ff14;
    transform: translateX(-2px);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Content adjustment for top bar */
.main-content {
    padding-top: 70px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .top-bar {
        height: 45px;
        padding: 0 10px;
    }
    
    .nav-links-top {
        gap: 5px;
        flex: 0 0 auto;
        max-width: 35%;
    }
    
    .nav-link-top {
        padding: 3px 5px;
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
    
    .top-logo {
        height: 35px;
    }
    
    .lang-switch {
        flex: 0 0 auto;
        max-width: 25%;
    }
    
    .lang-btn {
        padding: 4px 6px;
        font-size: 0.75rem;
        min-width: 28px;
    }
    
    .back-link {
        top: 55px;
        left: 15px;
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding-top: 60px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .space-dot {
        animation: none;
        opacity: 0.05;
    }
}