/* ========================================
   BASE STYLES & CSS RESET
   Shared across all sections
   ======================================== */

:root {
    /* Colors */
    --bg: #FFFFFF;
    --bg-subtle: #F8FAFC;
    --bg-muted: #F1F5F9;
    --bg-elevated: #E2E8F0;
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --accent: #059669;
    --accent-light: #10B981;
    --accent-lighter: #34D399;
    --accent-bg: rgba(5, 150, 105, 0.08);
    --accent-glow: rgba(5, 150, 105, 0.15);
    --red: #EF4444;
    --red-bg: rgba(239, 68, 68, 0.08);
    --border: rgba(15, 23, 42, 0.06);
    --border-strong: rgba(15, 23, 42, 0.1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.15);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Easing */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing (Mobile-first) */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Touch-friendly sizes */
    --touch-min: 44px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

::selection {
    background: var(--accent);
    color: white;
}

/* Shared Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (hover: none) {
    .btn:hover {
        transform: none;
    }
}

/* Desktop button hover */
@media (min-width: 1024px) {
    .btn:hover {
        transform: translateY(-2px);
    }

    .btn-primary:hover {
        box-shadow: 0 8px 30px var(--accent-glow);
    }
}

/* Desktop spacing adjustments */
@media (min-width: 1024px) {
    :root {
        --space-lg: 32px;
        --space-xl: 48px;
        --space-2xl: 64px;
    }
}