/* ============================================
   BASE STYLES - Shared across all apps
   Variables, Reset, Navigation, Footer
   ============================================ */

:root {
    /* Color Palette */
    --color-bg-deep: #0A192F;      /* Deep Void Blue (Main Background) */
    --color-bg-surface: #112240;   /* Lighter Blue (Cards/Sections) */
    --color-accent: #FF8000;       /* Apex Orange (Primary Action) */
    --color-accent-hover: #CC6600; /* Darker Orange for interactions */

    /* Text Colors */
    --color-text-main: #CCD6F6;    /* Off-white for readability */
    --color-text-heading: #FFFFFF; /* Pure white for confident headers */
    --color-text-muted: #8892B0;   /* Grey-blue for secondary info */

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif; /* Headlines - Modern & Geometric */
    --font-body: 'Inter', sans-serif;            /* Body - Clean & Readable */
    --font-code: 'JetBrains Mono', monospace;    /* Data/Code - Tech Savvy */

    /* Spacing & Rounding */
    --radius-sm: 4px;
    --radius-md: 8px;   /* "Welcoming" rounded corners */
    --radius-lg: 16px;
}

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

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 70px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-bg-surface);
    border-bottom: 1px solid #233554;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    height: 60px;
}

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 14px;
}

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

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: flex;
    gap: 6px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-muted);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.lang-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.lang-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-deep);
    font-weight: 600;
}

.profile-link {
    background: var(--color-accent);
    color: var(--color-bg-deep);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.profile-link:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    text-align: center;
    padding: 80px 40px 60px;
    background: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    border-bottom: 1px solid #233554;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-main);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.cta-button {
    background: var(--color-accent);
    color: var(--color-bg-deep);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 128, 0, 0.3);
}

.cta-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.cta-secondary:hover {
    background: var(--color-accent);
    color: var(--color-bg-deep);
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.features-section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.features-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: var(--color-bg-surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid #233554;
    transition: all 0.3s ease;
}

.feature-card-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.feature-card-link:hover {
    border-color: var(--color-accent);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-cta {
    display: inline-block;
    margin-top: 16px;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 14px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 12px;
}

.feature-description {
    color: var(--color-text-main);
    line-height: 1.6;
}

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-heading);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--color-text-main);
    text-align: center;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: var(--color-bg-deep);
    border-top: 1px solid #233554;
    padding: 60px 40px 40px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid #233554;
    padding-top: 24px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 128, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-bg-deep);
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 786px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        gap: 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

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

    .features-grid-2 {
        grid-template-columns: 1fr;
    }
}
