/* Global Styles — White Label SEO Agency */
/* CSS Variables, Resets, and Base Styles */

/* CSS Variables */
:root {
    /* Colors — premium light B2B SaaS, indigo accent */
    --color-primary: #4F46E5;
    --color-primary-light: #6366F1;
    --color-primary-dark: #3730A3;
    --color-primary-soft: #EEF2FF;
    --color-secondary: #1E1B4B;
    --color-accent: #06B6D4;
    --color-accent-soft: #ECFEFF;

    /* Surfaces */
    --color-bg: #FFFFFF;
    --color-bg-tinted: #FAFBFC;
    --color-bg-soft: #F4F6FA;
    --color-bg-card: #FFFFFF;
    --color-bg-dark-strip: #0F172A;

    /* Borders */
    --color-border: #E5E7EB;
    --color-border-soft: #EEF0F4;
    --color-border-strong: #C7D2FE;

    /* Text */
    --color-text: #0F172A;
    --color-text-strong: #020617;
    --color-text-medium: #334155;
    --color-text-muted: #64748B;
    --color-text-dark: #94A3B8;

    /* Status */
    --color-success: #059669;
    --color-success-soft: #ECFDF5;
    --color-warn: #D97706;
    --color-warn-soft: #FFFBEB;

    /* Legacy aliases (some template CSS still references these) */
    --color-bg-darker: var(--color-bg-soft);
    --color-text-light: var(--color-text);

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

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50px;

    /* Shadows — soft for light theme */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.10), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 12px 32px -8px rgba(79, 70, 229, 0.25);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Section Spacing */
    --section-padding-y: 50px;
    --section-padding-x: 2rem;
}

/* Mobile CSS Variables */
@media (max-width: 768px) {
    :root {
        --section-padding-y: 35px;
        --section-padding-x: 1rem;
    }
}

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global Section Styles */
section {
    padding: var(--section-padding-y) var(--section-padding-x);
    overflow: visible;
}

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

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

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

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

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

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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