/* ==========================================================================
   BASE STYLES - CSS Variables, Reset, Typography
   ========================================================================== */

/* CSS Custom Properties */
:root {
    /* Brand Colors */
    --primary-blue: #0080FF;
    --primary-blue-light: #3399FF;
    --primary-blue-dark: #0066CC;
    --accent-green: #00DB4F;
    --primary-green: #00DB4F; /* Alias for backwards compatibility */
    --accent-green-light: #33E573;
    --accent-green-dark: #00B341;

    /* Neutrals */
    --black: #000000;
    --dark: #0a1628;
    --dark-secondary: #0f2847;
    --gray-900: #1a1a24;
    --gray-700: #475569;
    --gray-500: #64748b;
    --gray-300: #cbd5e1;
    --gray-100: #F2F2F2;
    --white: #FFFFFF;
    --light: #F2F2F2;

    /* Semantic */
    --text-primary: #000000;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-light: #F2F2F2;
    --bg-white: #FFFFFF;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0f2847 50%, #0a1628 100%);
    --gradient-blue-green: linear-gradient(135deg, #0080FF 0%, #00DB4F 100%);
    --gradient-blue: linear-gradient(135deg, #0080FF, #004080);
    --gradient-green: linear-gradient(135deg, #00DB4F, #00a83c);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow-blue: 0 0 40px rgba(0, 128, 255, 0.3);
    --shadow-glow-green: 0 0 40px rgba(0, 219, 79, 0.3);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.2);

    /* Spacing & Sizing */
    --radius: 8px;
    --radius-lg: 20px;
    --border-radius: 16px;
    --container-max: 1280px;

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

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Nohemi', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Blog pages use Poppins */
body.blog-page {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

::selection {
    background: var(--primary-blue);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.container {
    width: 92%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Blog container variant */
.container.blog-container {
    width: 90%;
    max-width: 1200px;
    padding: 0 20px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    line-height: 1.7;
}

/* ==========================================================================
   GREEN PILL SEPARATOR
   ========================================================================== */

.pill-separator {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 2rem 0;
}

.pill-separator span {
    width: 32px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
}

/* ==========================================================================
   SECTION HEADER WITH LEFT ACCENT
   ========================================================================== */

.section-header {
    margin-bottom: 3rem;
}

.section-header-accent {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.section-header-accent::before {
    content: '';
    width: 4px;
    height: 2.5rem;
    background: var(--accent-green);
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.section-header h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
}

/* Centered variant */
.section-header.centered {
    text-align: center;
}

.section-header.centered .section-header-accent {
    justify-content: center;
}

.section-header.centered .section-header-accent::before {
    display: none;
}

.section-header.centered p {
    margin: 0 auto;
}

/* ==========================================================================
   REDUCED MOTION PREFERENCE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
