/* WeTheNorth Space Station - Base Styles */

/* CSS Variables for Cosmic Theme */
:root {
    /* Cosmic Colors */
    --space-black: #0a0a0f;
    --space-dark: #1a1a2e;
    --space-blue: #00d4ff;
    --space-purple: #8b5cf6;
    --space-green: #00ff88;
    --space-silver: #c0c0c0;
    --space-orange: #ff6b35;
    --space-pink: #ff006e;
    --space-white: #ffffff;
    --space-light-blue: #e0f2fe;
    
    /* Gradients */
    --cosmic-gradient: linear-gradient(135deg, var(--space-black) 0%, var(--space-dark) 50%, var(--space-purple) 100%);
    --aurora-gradient: linear-gradient(90deg, var(--space-blue), var(--space-purple), var(--space-green), var(--space-pink));
    --hologram-gradient: linear-gradient(45deg, transparent, var(--space-blue), transparent);
    
    /* Typography */
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Shadows */
    --cosmic-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    --hologram-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    --glow-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-cosmic: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    background: var(--space-black);
    color: var(--space-white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--space-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--space-blue), var(--space-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--space-purple), var(--space-pink));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--space-md);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.7;
}

/* Space Background */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--cosmic-gradient);
}

#starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cosmic-aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--aurora-gradient);
    opacity: 0.1;
    animation: aurora-flow 20s ease-in-out infinite;
}

@keyframes aurora-flow {
    0%, 100% { transform: translateX(-50%) rotate(0deg); opacity: 0.1; }
    50% { transform: translateX(50%) rotate(180deg); opacity: 0.2; }
}

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

.planet {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--space-blue), var(--space-purple));
    animation: planet-float 30s linear infinite;
}

.planet-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-duration: 40s;
}

.planet-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-duration: 35s;
    animation-direction: reverse;
}

.planet-3 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 70%;
    animation-duration: 50s;
}

@keyframes planet-float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.cosmic-dust {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--space-silver), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--space-blue), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--space-purple), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--space-green), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: dust-drift 60s linear infinite;
    opacity: 0.3;
}

@keyframes dust-drift {
    0% { transform: translateX(0px) translateY(0px); }
    100% { transform: translateX(-200px) translateY(-200px); }
}

/* Navigation */
.space-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    padding: var(--space-md) 0;
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo .logo-hologram {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--space-blue);
    text-shadow: 0 0 10px var(--space-blue);
    animation: hologram-flicker 3s ease-in-out infinite;
}

.logo-subtitle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--space-silver);
    letter-spacing: 2px;
    margin-top: -5px;
}

@keyframes hologram-flicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--space-blue); }
    50% { opacity: 0.8; text-shadow: 0 0 20px var(--space-blue), 0 0 30px var(--space-purple); }
}

.nav-constellation {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-star {
    position: relative;
    width: 12px;
    height: 12px;
    background: var(--space-silver);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 0 10px var(--space-silver);
}

.nav-star:hover {
    background: var(--space-blue);
    box-shadow: 0 0 20px var(--space-blue);
    transform: scale(1.5);
}

.nav-star.active {
    background: var(--space-green);
    box-shadow: 0 0 25px var(--space-green);
    transform: scale(1.3);
}

.star-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--space-light-blue);
    white-space: nowrap;
    opacity: 0;
    transition: all var(--transition-normal);
    pointer-events: none;
}

.nav-star:hover .star-label {
    opacity: 1;
    bottom: -35px;
}

/* Cosmic Buttons */
.cosmic-button {
    position: relative;
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 2px solid var(--space-blue);
    color: var(--space-blue);
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    border-radius: 0;
}

.cosmic-button:hover {
    color: var(--space-black);
    border-color: var(--space-green);
    box-shadow: var(--glow-shadow);
}

.cosmic-button.primary {
    border-color: var(--space-green);
    color: var(--space-green);
}

.cosmic-button.primary:hover {
    border-color: var(--space-blue);
    color: var(--space-black);
}

.cosmic-button.secondary {
    border-color: var(--space-purple);
    color: var(--space-purple);
}

.cosmic-button.secondary:hover {
    border-color: var(--space-pink);
    color: var(--space-black);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all var(--transition-slow);
}

.cosmic-button:hover .button-glow {
    left: 100%;
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--space-green), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-slow);
    z-index: 1;
}

.cosmic-button:hover .button-particles {
    width: 200%;
    height: 200%;
}

/* Main Layout */
.space-main {
    position: relative;
    z-index: 1;
    margin-top: 80px;
}

.space-section {
    min-height: 100vh;
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    margin-bottom: var(--space-md);
}

.title-glow {
    background: var(--aurora-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--space-light-blue);
    max-width: 600px;
    margin: 0 auto;
}

/* Loading Screen */
.space-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--space-black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loader-content {
    text-align: center;
}

.space-logo {
    margin-bottom: var(--space-xl);
}

.logo-orbit {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.planet-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, var(--space-blue), var(--space-purple));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--space-blue);
    animation: core-pulse 2s ease-in-out infinite;
}

@keyframes core-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid var(--space-silver);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.ring-1 {
    width: 60px;
    height: 60px;
    animation: orbit-rotate 3s linear infinite;
}

.ring-2 {
    width: 90px;
    height: 90px;
    animation: orbit-rotate 4s linear infinite reverse;
}

.ring-3 {
    width: 120px;
    height: 120px;
    animation: orbit-rotate 5s linear infinite;
}

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

.satellite {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--space-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--space-green);
}

.sat-1 {
    top: 20%;
    left: 50%;
    animation: satellite-orbit 3s linear infinite;
    transform-origin: 0 40px;
}

.sat-2 {
    top: 50%;
    right: 15%;
    animation: satellite-orbit 4s linear infinite reverse;
    transform-origin: -30px 0;
}

.sat-3 {
    bottom: 20%;
    left: 50%;
    animation: satellite-orbit 5s linear infinite;
    transform-origin: 0 -40px;
}

@keyframes satellite-orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--space-blue);
    margin-bottom: var(--space-lg);
    letter-spacing: 2px;
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto var(--space-md);
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: var(--aurora-gradient);
    animation: loading-progress 3s ease-in-out infinite;
}

@keyframes loading-progress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loading-status {
    color: var(--space-light-blue);
    font-size: 0.9rem;
    animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loader-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--space-white), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--space-blue), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--space-purple), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars-twinkle 4s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes stars-twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

/* Cosmic Cursor */
.cosmic-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--space-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
}

.cursor-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 1px solid var(--space-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    opacity: 0.5;
}

.cursor-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, transparent 40%, var(--space-blue) 41%, var(--space-blue) 42%, transparent 43%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: cursor-rotate 3s linear infinite;
    opacity: 0.3;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-constellation {
        gap: var(--space-md);
    }
    
    .nav-star {
        width: 10px;
        height: 10px;
    }
    
    .star-label {
        font-size: 0.7rem;
    }
    
    .section-container {
        padding: 0 var(--space-md);
    }
    
    .cosmic-button {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
    
    .space-section {
        padding: var(--space-2xl) 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    .nav-constellation {
        order: 2;
    }
    
    .nav-controls {
        order: 3;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
}

