/* SpaceX-Inspired Design System */

:root {
    --space-black: #000000;
    --stark-white: #FFFFFF;
    --titanium-grey: #888888;
    --orbital-blue: #0055AA;
}

/* Base Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headers - Bold, tight kerning, uppercase for nav/buttons */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Navigation Links - Uppercase, tight tracking */
.nav-link {
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--stark-white);
}

/* Technical Minimalism - Sharp corners, thin lines */
* {
    border-radius: 0 !important;
}

/* Section Separators - 1px thin lines */
section {
    border-top: 1px solid var(--titanium-grey);
}

/* High Contrast */
.bg-black {
    background-color: var(--space-black);
}

.text-white {
    color: var(--stark-white);
}

.text-gray-300 {
    color: #CCCCCC;
}

.text-gray-400 {
    color: #AAAAAA;
}

.text-gray-500 {
    color: var(--titanium-grey);
}

/* Borders - Titanium Grey */
.border-gray-800 {
    border-color: #333333;
}

/* Orbital Blue Accent - Sparse use */
.text-blue-500 {
    color: var(--orbital-blue);
}

/* CTA Buttons - Sharp, high contrast */
.cta-button {
    letter-spacing: 0.15em;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--stark-white);
    color: var(--space-black);
}

/* Code Snippets - Dark mode */
.code-snippet {
    background-color: #111111;
    border: 1px solid var(--titanium-grey);
}

.code-snippet pre {
    margin: 0;
    padding: 0;
}

.code-snippet code {
    color: #CCCCCC;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Parallax Background */
.parallax-bg {
    background-image: url('assets/placeholder-earth.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: grayscale(100%);
}

/* Hero Section */
.hero-section {
    position: relative;
}

/* Timeline Items */
.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    width: 6px;
    height: 6px;
    background-color: var(--space-black);
    border: 2px solid var(--stark-white);
}

/* Navigation Bar - Transparent to Solid */
#navbar {
    background-color: transparent;
    transition: background-color 0.3s ease;
}

#navbar.scrolled {
    background-color: var(--space-black);
    border-bottom: 1px solid var(--titanium-grey);
}

/* Mobile Menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.active {
    max-height: 500px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Comparison Cards */
.comparison-card {
    transition: border-color 0.2s ease;
}

.comparison-card:hover {
    border-color: var(--titanium-grey);
}

/* Image Placeholders */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Loading State (optional) */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--space-black);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-8xl {
        font-size: 4rem;
    }
}

/* Ensure readability on all devices */
@media (max-width: 640px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .nav-link {
        font-size: 0.875rem;
    }
}

/* Tailwind Overrides for SpaceX Aesthetic */
.rounded {
    border-radius: 0 !important;
}

.rounded-lg {
    border-radius: 0 !important;
}

.rounded-full {
    border-radius: 0 !important;
}

/* Focus States - Sharp, high contrast */
*:focus {
    outline: 2px solid var(--stark-white);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--orbital-blue);
    color: var(--stark-white);
}
