/*
 * Global Styles for Data N Analysis
 * 
 * This file contains the core styling variables and utility classes
 * used across the entire website to ensure consistent design and SEO-friendly styling.
 * 
 * Usage Guidelines:
 * 1. Always include this file in page templates
 * 2. Use CSS variables for consistent colors, fonts, and spacing
 * 3. Apply utility classes for common styling patterns
 * 4. Use font-primary and font-secondary classes for consistent typography
 * 5. Use text-secondary for body text to maintain consistent color scheme
 * 6. Use line-height utilities for consistent spacing
 * 
 * Example Usage:
 * <h2 class="font-primary font-weight-bold">Heading</h2>
 * <p class="text-secondary line-height-loose">Body text</p>
 */

:root {
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Raleway', sans-serif;
    --font-base-size: 100%;
    --font-weight-normal: 300;
    --font-weight-medium: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-base: 2em;
    --letter-spacing-base: 1px;
    --heading-color: #333;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
}

html,
body {
    font-family: var(--font-primary);
    font-size: var(--font-base-size);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    letter-spacing: var(--letter-spacing-base);
    color: var(--text-primary);
    background: #fff;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    color: var(--heading-color);
    margin: 0;
    font-weight: 600;
}

h1 {
    font-size: 2em;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.37);
}

h2 {
    font-size: 1.5em;
    font-weight: 600;
}

h3 {
    font-size: 1.17em;
    font-weight: 600;
}

h4 {
    font-size: 1.12em;
    font-weight: 600;
}

h5 {
    font-size: 0.83em;
    font-weight: 600;
}

h6 {
    font-size: 0.75em;
    font-weight: 600;
}

p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: var(--line-height-base);
    letter-spacing: var(--letter-spacing-base);
    font-weight: 300;
}

.right-tab-header {
    font-family: var(--font-secondary);
    background: #cacaca;
    text-transform: uppercase;
    padding: 5px 0px;
    border-left: 4px solid #0d2e4d;
    text-align: center;
    color: #000;
    font-size: 16px;
    font-weight: 600;
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-light {
    color: var(--text-light);
}

.font-primary {
    font-family: var(--font-primary);
}

.font-secondary {
    font-family: var(--font-secondary);
}

.font-weight-normal {
    font-weight: var(--font-weight-normal);
}

.font-weight-medium {
    font-weight: var(--font-weight-medium);
}

.font-weight-semibold {
    font-weight: var(--font-weight-semibold);
}

.font-weight-bold {
    font-weight: var(--font-weight-bold);
}

.text-small {
    font-size: 0.875rem;
}

.text-large {
    font-size: 1.125rem;
}

.line-height-tight {
    line-height: 1.4;
}

.line-height-loose {
    line-height: 1.8;
}

.line-height-base {
    line-height: var(--line-height-base);
}

.letter-spacing-wide {
    letter-spacing: 1.5px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.uppercase {
    text-transform: uppercase;
}

.capitalize {
    text-transform: capitalize;
}

.lowercase {
    text-transform: lowercase;
}

.margin-bottom-40 {
    margin-bottom: 40px;
}

.margin-top-20 {
    margin-top: 20px;
}

.padding-20 {
    padding: 20px;
}

/* Additional utility classes for consistent spacing */
.margin-bottom-20 {
    margin-bottom: 20px;
}

.margin-bottom-30 {
    margin-bottom: 30px;
}

.margin-top-30 {
    margin-top: 30px;
}

.padding-30 {
    padding: 30px;
}

/* Button styles for consistency */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #64748b;
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.btn-outline:hover {
    background-color: #3b82f6;
    color: white;
}

/* Card styles for consistency */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Section styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid system */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    :root {
        --font-base-size: 15px;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    :root {
        --font-base-size: 14px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }
}