/* ========================================
   CODE TECH - SHARED THEME
   Centralized CSS variables and base styles
   ======================================== */

/* Google Fonts - Primary (Outfit + IBM Plex Sans Arabic) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* Google Fonts - Services pages (Space Grotesk + Noto Kufi Arabic) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Noto+Kufi+Arabic:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES - Primary Design System
   Used by: index, blog, faq, quote, portfolio,
   products, privacy, terms, thank-you, 404, 500,
   and all product detail pages
   ======================================== */

:root {
    /* Core Colors */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: rgba(20, 20, 20, 0.8);

    /* Brand Colors */
    --accent-primary: #6B8E23;
    --accent-glow: #8FBC3E;
    --accent-dim: rgba(107, 142, 35, 0.15);
    --accent-subtle: rgba(107, 142, 35, 0.08);
    --accent-dark: #4a6318;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --glow-sm: 0 0 20px rgba(107, 142, 35, 0.3);
    --glow-md: 0 0 40px rgba(107, 142, 35, 0.4);
    --glow-lg: 0 0 80px rgba(107, 142, 35, 0.3);

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-arabic: 'IBM Plex Sans Arabic', sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 12vw, 150px);
    --container-max: 1400px;

    /* Services Design System Aliases
       Used by: services/smart-home, services/network,
       services/low-voltage, services/it-solutions */
    --primary: #6B8E23;
    --primary-light: #8FBC3C;
    --primary-dark: #4A6219;
    --secondary: #1A1A1A;
    --accent: #FFFFFF;
    --bg-dark: #0D0D0D;
    --border-color: rgba(107, 142, 35, 0.3);
    --glow: 0 0 40px rgba(107, 142, 35, 0.3);

    /* Error pages */
    --error-color: #e74c3c;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.9);
        --glass-border: rgba(255, 255, 255, 0.3);
    }
}

/* ========================================
   BASE RESET
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="rtl"],
[dir="rtl"] body {
    font-family: var(--font-arabic);
}
