/* ============================================
   ???? ???? - Global Styles
   ============================================ */
:root {
    /* Brand Colors */
    --primary: #1B5E3B;
    --primary-dark: #134A2E;
    --primary-light: #2A7A54;
    --primary-subtle: rgba(27, 94, 59, 0.08);
    
    --accent: #C9A962;
    --accent-hover: #D4B978;
    --accent-subtle: rgba(201, 169, 98, 0.15);

    /* Light Theme - Warm & Comfortable */
    --bg-main: #FAF8F3;
    --bg-secondary: #F3EEE5;
    --bg-card: #FFFFFF;
    --text-main: #1A1A1A;
    --text-secondary: #3A473D;
    --text-muted: #4E6052;
    --border: #E5DFD3;

    /* Elevation */
    --shadow-sm: 0 2px 8px rgba(27, 94, 59, 0.06);
    --shadow-md: 0 4px 16px rgba(27, 94, 59, 0.08);
    --shadow-lg: 0 8px 32px rgba(27, 94, 59, 0.12);

    /* Typography - Cairo for Modern Arabic */
    --font-arabic: 'Cairo', 'Amiri', sans-serif;
    --font-body: 'Cairo', sans-serif;
    --font-display: 'Cairo', sans-serif;
    
    /* Scale - Major Third */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Motion */
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-feedback: 150ms;
    --duration-state: 200ms;
    --duration-reveal: 300ms;
    --duration-entrance: 400ms;
    --transition: 200ms var(--ease-out-quart);
    --transition-smooth: 300ms var(--ease-out-quint);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary: #41A973;
    --primary-dark: #2E8A5A;
    --primary-light: #67C293;
    --primary-subtle: rgba(65, 169, 115, 0.15);

    --bg-main: #0F1612;
    --bg-secondary: #1A2420;
    --bg-card: #1E2822;
    --text-main: #F0EDE8;
    --text-secondary: #C4C0B4;
    --text-muted: #8E9C90;
    --border: #2A3530;
    --accent-subtle: rgba(201, 169, 98, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-size: 16px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Hide Scrollbar Completely */
::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

body {
    font-family: var(--font-body);
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    
    /* تخطيط مرن لدفع الفوتر للأسفل */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

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

/* Text Selection - Yellow highlight */
::selection {
    background: var(--accent);
    color: var(--bg-main);
}

::-moz-selection {
    background: var(--accent);
    color: var(--bg-main);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

