/* ============================================================
   BASE.CSS - Design Tokens, Reset, & Base Styles
   AVGC XR Solutions - Fixed & Complete
   ============================================================ */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
    /* ── Colors - Brand ── */
    --color-primary: #111111;
    --color-primary-light: #111111;
    /* --color-primary-dark: #0d1a35; */
    --color-secondary: #2a7a7a;
    --color-secondary-light: #3a9a9a;
    --color-secondary-dark: #1e5a5a;
    --color-accent: #f5a623;
    --color-accent-light: #f7b84d;
    --color-accent-dark: #e0950a;

    /* ── Colors - Surface ── */
    --color-surface: #ffffff;
    --color-surface-alt: #ffffff;
    /* --color-surface-dark: #1c2a53; */
    --color-white: #ffffff;
    /* FIX: was missing, used in layout.css & utilities.css */

    /* ── Colors - Text ── */
    --color-text-primary: #000000;
    --color-text-secondary: #000000;
    --color-text-tertiary: #000000;
    --color-text-inverse: #ffffff;

    /* ── Colors - Borders ── */
    --color-border: rgba(26, 39, 68, 0.22);
    --color-border-light: rgba(26, 39, 68, 0.10);
    --color-border-dark: rgba(26, 39, 68, 0.35);

    /* ── Colors - Status ── */
    --color-success: #2e7d52;
    --color-error: #e05a84;
    --color-warning: #f5a623;
    --color-info: #3a8ec4;

    /* ── Colors - Card Variants ── */
    --color-card-blue: #5b5ea6;
    --color-card-pink: #e05a84;
    --color-card-teal: #2a7a7a;
    --color-card-orange: #c47d00;
    --color-card-purple: #9b6fd4;

    /* ── Colors - Footer / Surface Semantic ──
       FIX: header-footer.css uses these vars but they were missing */
    --on-surface: #1a2744;
    --on-surface-var: rgba(26, 39, 68, 0.55);
    --outline-var: rgba(26, 39, 68, 0.12);

    /* ── Typography - Font Family ── */
    --font-family-base: 'Montserrat', sans-serif;

    /* ── Typography - Font Sizes (clamp scale) ──
       FIX: layout.css uses xs through 7xl; only xs–2xl were defined */
    --font-size-xs: clamp(0.65rem, 0.80vw, 0.80rem);
    --font-size-sm: clamp(0.72rem, 1.00vw, 0.95rem);
    --font-size-md: clamp(0.88rem, 1.00vw, 1.15rem);
    --font-size-lg: clamp(1.00rem, 1.50vw, 1.60rem);
    --font-size-xl: clamp(1.10rem, 2.20vw, 2.00rem);
    --font-size-2xl: clamp(2.00rem, 3.50vw, 2.50rem);
    --font-size-3xl: clamp(1.50rem, 2.50vw, 2rem);
    /* FIX: added */
    --font-size-4xl: clamp(1.75rem, 3.00vw, 3.00rem);
    /* FIX: added */
    --font-size-5xl: clamp(2.00rem, 3.50vw, 3.75rem);
    /* FIX: added */
    --font-size-6xl: clamp(2.25rem, 4vw, 6rem);
    /* FIX: added */
    --font-size-7xl: clamp(3.00rem, 5vw, 8rem);

    /* ── Typography - Font Weights ──
       FIX: layout.css & utilities.css reference these named weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 900;

    /* ── Typography - Line Heights ──
       FIX: layout.css uses these named line-height tokens */
    --line-height-tight: 1.2;
    --line-height-snug: 1.35;
    --line-height-base: 1.5;
    --line-height-relaxed: 1.7;

    /* ── Typography - Letter Spacing ──
       FIX: layout.css uses these named letter-spacing tokens */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0em;
    --letter-spacing-wide: 0.04em;
    --letter-spacing-wider: 0.08em;
    --letter-spacing-widest: 0.12em;

    /* ── Spacing (numeric scale) ──
       FIX: layout.css & utilities.css use --spacing-1 through --spacing-16
            Previous file only had xs/sm/md/lg/xl/2xl/3xl/4xl names.
            Both scales are kept so component.css stays compatible. */
    --spacing-xs: 0.25rem;
    /* = --spacing-1 */
    --spacing-sm: 0.50rem;
    /* = --spacing-2 */
    --spacing-md: 1.00rem;
    /* = --spacing-4 */
    --spacing-lg: 1.50rem;
    /* = --spacing-6 */
    --spacing-xl: 2.00rem;
    /* = --spacing-8 */
    --spacing-2xl: 3.00rem;
    /* = --spacing-12 */
    --spacing-3xl: 4.00rem;
    /* = --spacing-16 */
    --spacing-4xl: 6.00rem;

    --spacing-1: 0.25rem;
    --spacing-2: 0.50rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1.00rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.50rem;
    --spacing-7: 1.75rem;
    --spacing-8: 2.00rem;
    --spacing-9: 2.25rem;
    --spacing-10: 2.50rem;
    --spacing-11: 2.75rem;
    --spacing-12: 3.00rem;
    --spacing-14: 3.50rem;
    --spacing-16: 4.00rem;
    --spacing-18: 4.50rem;
    --spacing-20: 5.30rem;

    /* ── Layout ── */
    --container-max-width: 1400px;
    --container-padding: clamp(20px, 5vw, 80px);
    /* FIX: layout.css uses --container-padding */
    --container-gutter: clamp(20px, 5vw, 80px);
    /* kept for backwards compat */
    --grid-gap: clamp(16px, 2vw, 24px);
    --header-height: clamp(56px, 6vw, 100px);
    --header-h: clamp(56px, 6vw, 100px);
    /* FIX: header-footer.css uses --header-h */

    /* Page inner width & gutter used in navbar inline styles & mega panel */
    --page-inner: 100%;
    --gutter: 0px;

    /* Section vertical padding */
    --section-padding-y: clamp(3rem, 6vw, 3rem);
    /* FIX: layout.css uses these */
    --section-padding-y-sm: clamp(1.5rem, 3vw, 3rem);
    --section-padding-y-lg: clamp(5rem, 9vw, 9rem);

    /* ── Border Radius ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.10), 0 1px 3px 1px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.10), 0 2px 6px 2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 8px 3px rgba(0, 0, 0, 0.09), 0 1px 3px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.14);

    /* Elevation aliases used in header-footer.css */
    --elev-1: var(--shadow-sm);
    /* FIX: was missing */
    --elev-2: var(--shadow-md);
    /* FIX: navbar.scrolled uses --elev-2 */
    --elev-3: var(--shadow-lg);

    /* ── Transitions ── */
    --transition-fast: 150ms cubic-bezier(0.2, 0, 0, 1);
    --transition-base: 250ms cubic-bezier(0.2, 0, 0, 1);
    --transition-slow: 350ms cubic-bezier(0.2, 0, 0, 1);

    /* ── Z-Index Scale ──
       FIX: utilities.css references these named z-index tokens */
    --z-negative: -1;
    --z-base: 0;
    --z-elevate: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 300;
    --z-modal: 400;
}

/* ---------- Dark Mode Support ---------- */
/* @media (prefers-color-scheme: dark) {
    :root {
        --color-surface: #1a1a2e;
        --color-surface-alt: #16213e;
        --color-text-primary: #ffffff;
        --color-text-secondary: rgba(255, 255, 255, 0.65);
        --color-text-tertiary: rgba(255, 255, 255, 0.35);
        --color-border: rgba(255, 255, 255, 0.15);
        --color-border-light: rgba(255, 255, 255, 0.08);
        --on-surface: #ffffff;
        --on-surface-var: rgba(255, 255, 255, 0.60);
        --outline-var: rgba(255, 255, 255, 0.12);
    }
} */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base) !important;
    font-size: var(--font-size-md);
    line-height: 1.5;
    color: var(--color-text-primary);
    background: var(--color-surface);
    overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-base);
}

/* base.css mein yeh section replace karo */
h1 {
    font-size: var(--font-size-6xl) !important;
    font-weight: 900 !important;
    line-height: var(--line-height-tight) !important;
    letter-spacing: var(--letter-spacing-tight) !important;
}

h2 {
    font-size: var(--font-size-4xl) !important;
    font-weight: 700 !important;
    line-height: var(--line-height-tight) !important;
    letter-spacing: var(--letter-spacing-tight) !important;
}

h3 {
    font-size: var(--font-size-2xl) !important;
    font-weight: 600 !important;
    line-height: var(--line-height-snug) !important;
    letter-spacing: -0.01em !important;
}

h4 {
    font-size: var(--font-size-md) !important;
    font-weight: 600 !important;
    line-height: var(--line-height-snug) !important;
}

h5 {
    font-size: var(--font-size-lg) !important;
    font-weight: 500 !important;
    line-height: var(--line-height-base) !important;
}

h6 {
    font-size: var(--font-size-xs) !important;
    font-weight: 400 !important;
    line-height: var(--line-height-base) !important;
    letter-spacing: var(--letter-spacing-wide) !important;
    color: var(--color-text-secondary) !important;
    /* text-transform: uppercase !important; */
}

p {
    margin-bottom: var(--spacing-md) !important;
    color: var(--color-text-secondary);
    font-family: var(--font-family-base) !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Selection ---------- */
::selection {
    background: var(--color-secondary);
    color: var(--color-text-inverse);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-border-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary-dark);
}

::-webkit-scrollbar {
    display: flex;
}