/* ============================================
   TechBasi Design System - Motivare
   Clean, modern, calm - Light/Dark mode support
   ============================================ */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   CSS Variables - Light Mode (Default)
   ============================================ */
:root {
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Borders */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    /* Accent - Cyan (unified across all sites) */
    --accent-primary: #0891b2;
    --accent-secondary: #06b6d4;
    --accent-hover: #0e7490;
    --accent-light: #ecfeff;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Orbitron', 'Inter', sans-serif;

    /* Spacing */
    --header-height: 70px;
}

/* ============================================
   Dark Mode Variables
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --bg-card: #1e293b;

        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;

        --border-light: #334155;
        --border-medium: #475569;

        --accent-primary: #22d3ee;
        --accent-secondary: #67e8f9;
        --accent-hover: #06b6d4;
        --accent-light: #164e63;

        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    }
}

/* Manual dark mode override */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    --border-light: #334155;
    --border-medium: #475569;

    --accent-primary: #22d3ee;
    --accent-secondary: #67e8f9;
    --accent-hover: #06b6d4;
    --accent-light: #164e63;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

/* Manual light mode override */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    --accent-primary: #0891b2;
    --accent-secondary: #06b6d4;
    --accent-hover: #0e7490;
    --accent-light: #ecfeff;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header
   ============================================ */
header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo with breadcrumb */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.logo-link:hover .logo-text {
    color: var(--accent-primary);
}

.divider {
    color: var(--text-muted);
    font-size: 1.3rem;
    font-weight: 300;
}

.logo h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

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

/* Theme Toggle Button */
#theme-toggle {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

#theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

#theme-toggle svg {
    width: 20px;
    height: 20px;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .sun-icon { display: block; }
    :root:not([data-theme="light"]) .moon-icon { display: none; }
}

section {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    position: relative;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-content .highlight {
    color: var(--accent-primary);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.15s ease;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button:active {
    transform: translateY(0);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 80px 0;
    background: var(--bg-primary);
}

.features h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.about .lead {
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.about p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 80px 0;
    background: var(--bg-primary);
}

.contact h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.email-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-primary);
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    transition: all 0.15s ease;
}

.email-link:hover {
    background: var(--accent-primary);
    color: white;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

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

/* ============================================
   Legal Pages (Privacy, Terms)
   ============================================ */
.legal-page {
    padding: 120px 0 80px;
    background: var(--bg-primary);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--accent-primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        gap: 1.5rem;
    }

    .logo {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .features, .about, .contact {
        padding: 60px 0;
    }

    .features h2, .about h2, .contact h2 {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    nav ul {
        gap: 1rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .legal-page {
        padding: 100px 0 60px;
    }

    .legal-content h1 {
        font-size: 1.8rem;
    }
}
