/* Base Styles - Variables, Resets, Typography */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    /* Colors */
    --primary: #1a1a2e;
    --accent: #047857;
    --accent-dark: #065f46;
    --highlight: #10b981;
    --bg: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --light-gray: #f3f4f6;
    --border: #e5e7eb;
    --card-bg: #ffffff;
    --footer-bg: #1f2937;
    --footer-text: #f3f4f6;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;

    /* Layout Standards */
    --container-max-width: 1200px;
    --section-padding-y: 5rem;
    --section-padding-y-mobile: 3rem;
    --card-padding: 2.5rem;
    --card-padding-mobile: 1.5rem;
    --grid-gap: 2rem;
    --grid-gap-mobile: 1.5rem;
}

[data-theme="dark"] {
    --primary: #f3f4f6;
    --accent: #10b981;
    --accent-dark: #059669;
    --highlight: #34d399;
    --bg: #111827;
    --text: #e5e7eb;
    --text-light: #9ca3af;
    --light-gray: #1f2937;
    --border: #374151;
    --card-bg: #1f2937;
    --footer-bg: #0f172a;
    --footer-text: #f3f4f6;
}

/* Base Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global Section Styles */
section {
    padding: var(--section-padding-y) 2rem;
}

section+section {
    margin-top: 0;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Title - Always Centered */
.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text);
    opacity: 0.8;
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto;
}