/* =========================================
   GoAstroBiz - Cosmic Intelligence Design System (V5 Terminal)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* --- Color Palette (Terminal Theme) --- */
    /* Backgrounds */
    --bg-deep: #050510;
    /* Deep Space Void */
    --bg-panel: #0a0e17;
    /* Terminal Panel */
    --bg-main: #0a0e17;
    /* Fallback for legacy components */
    --bg-glass: rgba(10, 14, 23, 0.85);

    /* Accents */
    --primary: #6c5ce7;
    /* Intelligence Purple */
    --primary-glow: rgba(108, 92, 231, 0.4);
    --secondary: #00cec9;
    /* Data Stream Cyan */
    --gold: #f1c40f;
    /* Vedic Wisdom Gold */
    --gold-glow: rgba(241, 196, 15, 0.3);
    --accent: #ffd700;
    /* Legacy Gold Support */

    /* Text */
    --text-main: #ecf0f1;
    --text-muted: #95a5a6;
    --text-cyan: #81ecec;

    /* Gradients */
    --grad-glow: linear-gradient(90deg, #6c5ce7, #00cec9);
    --grad-gold: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);

    /* --- Typography --- */
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    /* New Terminal Font */
    --font-body: 'Outfit', sans-serif;

    /* --- Borders & Effects --- */
    --radius-sm: 4px;
    --radius-md: 8px;
    /* Sharper corners for tech feel */
    --radius-lg: 12px;
    --border-thin: 1px solid rgba(255, 255, 255, 0.1);
    --border-glow: 1px solid rgba(108, 92, 231, 0.3);

    /* --- Spacing --- */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* --- Transitions --- */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 206, 201, 0.05) 0%, transparent 40%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   Utility Classes
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--grad-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gold {
    color: var(--accent);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

/* =========================================
   Components
   ========================================= */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.6);
    background: #5a4bd4;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(108, 92, 231, 0.1);
    color: white;
}

.btn-gold {
    background: var(--grad-gold);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(108, 92, 231, 0.5);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #020305;
    padding: var(--spacing-xl) 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Mobile / Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu implementation later */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   New Features: Voice & Multilingual
   ========================================= */
.voice-btn {
    background: linear-gradient(135deg, #ff5f56, #d63031);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 95, 86, 0.4);
    transition: 0.3s;
}

.voice-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 95, 86, 0.6);
}

.voice-pulse {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 95, 86, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 95, 86, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 95, 86, 0);
    }
}

.lang-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 5px;
    margin-bottom: 5px;
}