/* ==========================================================================
   LINGUAKONNECT - MAIN LAYOUT & GLOBAL STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Modern Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Accessibility: Focus visible */
:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 3px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.2rem; }
p { color: var(--text-secondary); font-size: 1.05rem; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 60px auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-teal);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.section-tag.tag-coral {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-coral);
    border-color: var(--border-coral-highlight);
}

.section-title {
    margin-bottom: 18px;
}

.section-title span.highlight-teal {
    color: var(--accent-teal);
}

.section-title span.highlight-coral {
    color: var(--accent-coral);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

header.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: all var(--transition-normal);
}

header.site-header.scrolled {
    box-shadow: var(--shadow-md);
    height: 70px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.brand-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-teal), #0284C7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 800;
    box-shadow: var(--shadow-glow-teal);
    font-size: 1.2rem;
}

.brand-logo span.brand-accent {
    color: var(--accent-coral);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-coral));
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    border-color: var(--border-highlight);
    background: var(--bg-surface-elevated);
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* Mobile Drawer Menu - Hidden on desktop */
.mobile-drawer {
    display: none;
}

/* ==========================================================================
   PAGE SECTIONS CONTROLLER
   ========================================================================== */

.page-view {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.page-view.active-page {
    display: block;
}

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

/* ==========================================================================
   HERO SECTION & BACKGROUND VIDEO
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 140px 0 100px 0;
    overflow: hidden;
    background-color: var(--bg-primary);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-video-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    filter: brightness(0.7) contrast(1.15) saturate(1.2);
    transform: scale(1.02);
}

[data-theme="light"] .hero-video-bg {
    opacity: 0.22;
    filter: brightness(0.9) contrast(1.1);
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(244, 63, 94, 0.12) 0%, transparent 50%),
                linear-gradient(180deg, rgba(7, 13, 30, 0.85) 0%, rgba(15, 23, 42, 0.78) 50%, rgba(7, 13, 30, 0.94) 100%);
}

[data-theme="light"] .hero-video-overlay {
    background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.1) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(225, 29, 72, 0.08) 0%, transparent 50%),
                linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.82) 50%, rgba(248, 250, 252, 0.95) 100%);
}

.hero-video-toggle {
    position: absolute;
    bottom: 20px;
    right: 24px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
}

.hero-video-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-highlight);
    background: rgba(15, 23, 42, 0.9);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--bg-glass-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-badge .status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-headline {
    margin-bottom: 22px;
    line-height: 1.15;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 620px;
    color: var(--text-secondary);
}

.hero-cta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

/* Trust Stats Bar */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
}

.trust-item h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trust-item h4 span.accent-text {
    color: var(--accent-teal);
}

.trust-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Interactive Card / Quick Estimator Preview */
.hero-card-preview {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    position: relative;
}

.hero-card-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-coral));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ==========================================================================
   CORE ACTIVITIES & SERVICES GRIDS
   ========================================================================== */

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.activity-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.activity-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow-teal);
    background: var(--bg-surface-elevated);
}

.activity-card.featured {
    border-top: 3px solid var(--accent-coral);
}

.activity-card.featured:hover {
    border-color: var(--accent-coral);
    box-shadow: var(--shadow-glow-coral);
}

.activity-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.activity-card:hover .activity-icon-box {
    background: var(--accent-teal);
    color: #FFFFFF;
    transform: scale(1.08);
}

.activity-card.featured .activity-icon-box {
    background: rgba(244, 63, 94, 0.12);
    color: var(--accent-coral);
}

.activity-card.featured:hover .activity-icon-box {
    background: var(--accent-coral);
    color: #FFFFFF;
}

.activity-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.activity-card p {
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   5-STEP QUALITY WORKFLOW PIPELINE
   ========================================================================== */

.workflow-section {
    background: var(--bg-secondary);
}

.workflow-pipeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    margin-top: 40px;
}

.workflow-step {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    position: relative;
    transition: all var(--transition-normal);
}

.workflow-step:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-teal);
    background: rgba(6, 182, 212, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 14px;
}

.workflow-step h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.workflow-step p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   REGIONAL AFRICAN LANGUAGE SHOWCASE
   ========================================================================== */

.regional-spotlight {
    background: radial-gradient(circle at 10% 50%, rgba(244, 63, 94, 0.08) 0%, transparent 40%),
                var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

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

.regional-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-normal);
    position: relative;
}

.regional-card:hover {
    border-color: var(--border-coral-highlight);
    transform: translateY(-4px);
}

.regional-badge {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-coral);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

.regional-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.regional-card h3 .native-script {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

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

footer.site-footer {
    background: #040813;
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 30px 0;
    color: var(--text-secondary);
    margin-top: auto;
}

[data-theme="light"] footer.site-footer {
    background: #0B132B;
    color: #CBD5E1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 22px;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent-teal);
}

.footer-col p {
    font-size: 0.92rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #94A3B8;
    font-size: 0.92rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--accent-teal);
    transform: translateX(4px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: #94A3B8;
}

.contact-row svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent-teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: #64748B;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a:hover {
    color: var(--accent-teal);
}
