/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Improve touch responsiveness */
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.25;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    line-height: 1.75;
    font-size: 1.0625rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(22, 17, 115, 0.1);
    touch-action: manipulation;
}

a:hover, a:focus {
    color: var(--primary-dark);
    outline: none;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}



