/* ============================================
   NEXUS AEROSPACE - Space Theme Styles
   ============================================ */

:root {
    --space-black: #050510;
    --space-dark: #0a0a1a;
    --space-blue: #0d1b2a;
    --neon-cyan: #00d4ff;
    --neon-purple: #7b2cbf;
    --neon-pink: #e040fb;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--space-black);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Star Field Canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.stars-small, .stars-medium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.stars-small {
    background: radial-gradient(ellipse at center, transparent 0%, var(--space-black) 70%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Ccircle cx='10' cy='10' r='0.5' fill='white' opacity='0.5'/%3E%3Ccircle cx='50' cy='30' r='0.7' fill='white' opacity='0.7'/%3E%3Ccircle cx='90' cy='70' r='0.4' fill='white' opacity='0.4'/%3E%3Ccircle cx='140' cy='50' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='180' cy='120' r='0.5' fill='white' opacity='0.5'/%3E%3Ccircle cx='30' cy='150' r='0.7' fill='white' opacity='0.7'/%3E%3Ccircle cx='120' cy='180' r='0.4' fill='white' opacity='0.4'/%3E%3Ccircle cx='70' cy='100' r='0.5' fill='white' opacity='0.5'/%3E%3Ccircle cx='160' cy='160' r='0.6' fill='white' opacity='0.6'/%3E%3Ccircle cx='200' cy='10' r='0.5' fill='white' opacity='0.5'/%3E%3C/svg%3E");
    background-size: 100% 100%, 200px 200px;
    animation: twinkle 8s ease-in-out infinite;
}

.stars-medium {
    background: radial-gradient(ellipse at center, transparent 0%, var(--space-black) 70%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Ccircle cx='25' cy='25' r='1' fill='white' opacity='0.6'/%3E%3Ccircle cx='75' cy='125' r='1.2' fill='white' opacity='0.8'/%3E%3Ccircle cx='175' cy='75' r='0.8' fill='white' opacity='0.5'/%3E%3Ccircle cx='275' cy='225' r='1' fill='white' opacity='0.7'/%3E%3Ccircle cx='125' cy='275' r='1.1' fill='white' opacity='0.6'/%3E%3C/svg%3E");
    background-size: 100% 100%, 300px 300px;
    animation: twinkle 12s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 5%;
    background: linear-gradient(to bottom, rgba(5, 5, 16, 0.95), transparent);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.nav-cta:hover {
    background: var(--neon-cyan);
    color: var(--space-black);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 10;
    position: relative;
}

.badge {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--neon-cyan);
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    background: rgba(0, 212, 255, 0.05);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out backwards;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.5s; }

.title-line.accent {
    color: var(--neon-cyan);
    text-shadow: 0 0 60px rgba(0, 212, 255, 0.5);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--neon-cyan), #0099cc);
    color: var(--space-black);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--neon-cyan);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    display: inline;
}

.stat-suffix {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* Floating Planets */
.planet {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}

.planet-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, #7b2cbf, #3d0066);
    top: 10%;
    right: -100px;
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(123, 44, 191, 0.4),
                inset -30px -30px 60px rgba(0, 0, 0, 0.5);
}

.planet-1::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 15%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.planet-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 40% 40%, #e040fb, #aa00a0);
    bottom: 20%;
    left: -50px;
    opacity: 0.5;
    animation: float 15s ease-in-out infinite reverse;
    box-shadow: 0 0 40px rgba(224, 64, 251, 0.4);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* Section Styles */
section {
    padding: 6rem 5%;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Mission Section */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    cursor: default;
}

.mission-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(0, 212, 255, 0.1);
}

.mission-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.3));
}

.mission-icon svg {
    width: 100%;
    height: 100%;
}

.mission-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.mission-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Tech Slider */
.tech-slider {
    overflow: hidden;
    padding: 2rem 0;
}

.tech-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 30s linear infinite;
}

.tech-track:hover {
    animation-play-state: paused;
}

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

.tech-card {
    flex: 0 0 280px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: scale(1.02);
}

.tech-tag {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--neon-cyan);
    padding: 0.3rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.tech-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tech-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.tech-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 2px;
    transition: width 1.5s ease-out;
}

/* Contact Section */
.contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Footer */
footer {
    position: relative;
    z-index: 10;
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to top, rgba(5, 5, 16, 0.8), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.footer-name {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-cyan);
}

.footer-tagline {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-col h5 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--neon-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .form-row {
        flex-direction: column;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        gap: 2rem;
    }

    .planet {
        display: none;
    }
}
