/* 
   Cognitive Blaze - Design System
   Theme: Futuristic, AI-First, Enterprise Grade
*/

:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-page: #050508;
    --bg-surface: #0f0f16;
    --bg-surface-glass: rgba(15, 15, 22, 0.7);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-tertiary: #6b6b80;
    
    --accent-primary: #00f0ff; /* Cyan Neon */
    --accent-secondary: #7000ff; /* Deep Purple */
    --accent-glow: rgba(0, 240, 255, 0.4);
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(0, 240, 255, 0.5);
    
    --gradient-hero: linear-gradient(135deg, rgba(5, 5, 8, 0.9) 0%, rgba(15, 15, 22, 0.8) 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    
    /* Spacing */
    --space-sm: 0.5rem;   /* 8px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 4rem;     /* 64px */
    --space-2xl: 8rem;    /* 128px */
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.5rem;
    --text-2xl: 2.25rem;
    --text-3xl: 3.5rem;
    --text-4xl: 5rem;
    
    /* Effects */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px var(--accent-glow);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Theme Overrides */
body.light-theme {
    --bg-page: #f8f9fa;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.8);
    
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a75;
    --text-tertiary: #9090a0;
    
    --accent-primary: #0056b3; /* Darker blue for contrast */
    --accent-secondary: #6200ea;
    --accent-glow: rgba(0, 86, 179, 0.2);
    
    --border-color: rgba(0, 0, 0, 0.1);
    
    --gradient-hero: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 255, 0.9) 100%);
    --gradient-card: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-page);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: transparent;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-primary:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Dark mode default: show sun, hide moon */
.theme-toggle .moon-icon { display: none; }
.theme-toggle .sun-icon { display: block; }

/* Light mode: show moon, hide sun */
body.light-theme .theme-toggle .moon-icon { display: block; }
body.light-theme .theme-toggle .sun-icon { display: none; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* offset navbar */
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-page); /* Fallback */
    background-size: cover;
    background-position: center;
}

.hero-bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: var(--text-4xl);
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-sm);
}

.hero-content h2 {
    font-size: var(--text-xl);
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.hero-content p {
    font-size: var(--text-lg);
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

.hero-cta-group {
    display: flex;
    gap: var(--space-md);
}

/* Trust Strip */
.trust-section {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-section h3 {
    text-align: center;
    font-size: var(--text-sm);
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 2px;
    margin-bottom: var(--space-lg);
}

.trust-logos-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    opacity: 0.7;
}

.trust-logos-grid img {
    height: 30px;
    filter: grayscale(100%) brightness(1.5); /* Make bright for dark mode */
    transition: var(--transition);
}

body.light-theme .trust-logos-grid img {
    filter: grayscale(100%) brightness(0); /* Make dark for light mode */
}

.trust-logos-grid img:hover {
    filter: none;
    opacity: 1;
}

/* Common Section */
.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.section-header h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.card ul {
    margin-top: var(--space-md);
}

.card li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: 20px;
}

.card li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Training Section */
.training-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
}

.program-item {
    background: var(--bg-surface);
    border-left: 4px solid var(--accent-secondary);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: var(--transition);
}

.program-item:hover {
    background: rgba(112, 0, 255, 0.1);
}

.program-meta {
    display: flex;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.principles-card {
    background: var(--bg-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    height: fit-content;
}

.principles-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.principles-card ul li::before {
    content: '★';
    color: var(--accent-secondary);
}

/* Case Studies */
.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.case-study-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.case-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-client {
    color: var(--accent-primary);
    font-family: var(--font-heading);
    margin-bottom: var(--space-sm);
}

.case-stat {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-md);
}

/* Why Us */
.why-us-section {
    background: linear-gradient(180deg, var(--bg-page) 0%, #151520 100%);
}

.why-us-grid {
    margin-top: var(--space-xl);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-box {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
}

.feature-box h4 {
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

/* Contact */
.contact-section {
    background: var(--bg-surface);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Footer */
.footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-color);
    font-size: var(--text-sm);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

/* Responsive */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: var(--space-lg);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: var(--text-3xl);
    }

    .training-layout {
        grid-template-columns: 1fr;
    }

    .case-study-card {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
}
