/**
 * Base Styles - Reset and fundamental styling
 */

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

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Prevent horizontal overflow globally */
html {
    overflow-x: hidden;
    max-width: 100%;
}

*, *::before, *::after {
    max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 1.75rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2.5vw, 1.25rem); }
h6 { font-size: clamp(1rem, 2vw, 1.1rem); }

p {
    margin-bottom: 1em;
}

/* Focus and Accessibility */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth Animations - Respect user preference */
@media (prefers-reduced-motion: no-preference) {
    * {
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}