/* ══════════════════════════════════════════════
   MKT - Mokolwane Technologies
   Main Stylesheet
   ══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --primary: #00B4D8;
    --primary-dark: #0077B6;
    --secondary: #90E0EF;
    --accent: #CAF0F8;
    --gradient-accent: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Theme (default) ── */
[data-theme="dark"] {
    --bg-body: #0a0a0f;
    --bg-alt: #0d1117;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #e0e0e0;
    --text-muted: #888;
    --text-heading: #ffffff;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 16px 48px rgba(0, 180, 216, 0.15);
    --nav-bg: rgba(10, 10, 15, 0.92);
    --footer-bg: #060609;
    --input-bg: rgba(255, 255, 255, 0.04);
    --hero-glow-1: rgba(0, 180, 216, 0.08);
    --hero-glow-2: rgba(0, 119, 182, 0.06);
    --grid-line: rgba(255, 255, 255, 0.02);
    --cta-bg: linear-gradient(135deg, rgba(0, 119, 182, 0.15), rgba(0, 180, 216, 0.1));
}

/* ── Light Theme ── */
[data-theme="light"] {
    --bg-body: #f5f7fa;
    --bg-alt: #eaeff5;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --glass: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text: #333;
    --text-muted: #555;
    --text-heading: #0d1117;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 180, 216, 0.15);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #111827;
    --input-bg: rgba(0, 0, 0, 0.04);
    --hero-glow-1: rgba(0, 180, 216, 0.08);
    --hero-glow-2: rgba(0, 119, 182, 0.06);
    --grid-line: rgba(0, 0, 0, 0.04);
    --cta-bg: linear-gradient(135deg, rgba(0, 119, 182, 0.08), rgba(0, 180, 216, 0.06));
}

/* Light theme card shadows */
[data-theme="light"] .glass-card {
    box-shadow: var(--shadow);
}

[data-theme="light"] .glass-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Light theme gradient text needs to stay readable */
[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light theme nav border */
[data-theme="light"] .nav.scrolled {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Light mobile menu */
[data-theme="light"] .mobile-menu {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .mobile-menu a {
    color: var(--text-heading);
}

[data-theme="light"] .hamburger span {
    background: var(--text-heading);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

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

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 180, 216, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ── Glass Card ── */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 180, 216, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ── Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
