/* ==========================================================================
   CarServ24 — Design Tokens & CSS Variables
   Brand: #155dfc (Primary Blue) | Dark: #0f172a | Light: #f8fafc
   Powered by Rynoex Softech PVT LTD | Founded 2026
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    /* ── Brand Colors ── */
    --brand-primary:    #155dfc;
    --brand-primary-dark: #0d4cd8;
    --brand-primary-light: #3d7dff;
    --brand-accent:     #2563eb;
    --brand-gradient:   linear-gradient(135deg, #155dfc 0%, #2563eb 100%);

    /* ── Background Colors ── */
    --bg-primary:       #ffffff;
    --bg-secondary:     #f8fafc;
    --bg-tertiary:      #f1f5f9;
    --bg-card:          #ffffff;
    --bg-glass:         rgba(255, 255, 255, 0.85);
    --bg-section-alt:   #f8fafc;
    --bg-navbar:        rgba(255, 255, 255, 0.8);
    --bg-navbar-scroll: rgba(255, 255, 255, 0.98);
    --bg-mobile-nav:    rgba(255, 255, 255, 0.99);

    /* ── Text Colors ── */
    --text-primary:     #0f172a;
    --text-secondary:   #334155;
    --text-muted:       #475569;
    --text-gray:        #64748b;
    --text-dark:        #1e293b;

    /* ── Border Colors ── */
    --border-default:   #e2e8f0;
    --border-hover:     rgba(21, 93, 252, 0.5);
    --border-card:      #e2e8f0;

    /* ── Semantic Colors ── */
    --color-success:    #10b981;
    --color-warning:    #f59e0b;
    --color-error:      #ef4444;
    --color-info:       #3b82f6;

    /* ── Typography ── */
    --font-heading:     'Poppins', 'Inter', system-ui, sans-serif;
    --font-body:        'Inter', system-ui, sans-serif;

    /* ── Spacing ── */
    --section-py:       96px;
    --container-max:    1280px;
    --container-px:     24px;

    /* ── Border Radius ── */
    --radius-sm:        8px;
    --radius-md:        16px;
    --radius-lg:        24px;
    --radius-xl:        32px;
    --radius-full:      9999px;

    /* ── Shadows ── */
    --shadow-sm:        0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md:        0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg:        0 16px 32px rgba(15, 23, 42, 0.08);
    --shadow-xl:        0 24px 48px rgba(15, 23, 42, 0.1);
    --glow-primary:     0 0 30px rgba(21, 93, 252, 0.15);
    --glow-primary-sm:  0 0 15px rgba(21, 93, 252, 0.1);

    /* ── Transitions ── */
    --transition-fast:  all 0.15s ease;
    --transition-base:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:  all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Z-index Scale ── */
    --z-base:    1;
    --z-raised:  10;
    --z-overlay: 100;
    --z-modal:   200;
    --z-toast:   300;
    --z-navbar:  1000;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-primary);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: var(--radius-full);
}

/* ── Selection ── */
::selection {
    background: rgba(21, 93, 252, 0.3);
    color: var(--text-primary);
}

/* ── Utility Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 0.6; }
    50%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

@keyframes ticker {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.animate-fade-in-up { animation: fadeInUp 0.7s ease forwards; }
.animate-float      { animation: float 4s ease-in-out infinite; }
