/* ==========================================================================
   1. Global Variables & Root Setup
   ========================================================================== */
:root {
    --primary-color: #CA1936;
    --secondary-color: #1A2238;
    --accent-color: #F5C518;
    --background-color: #1A2238;
    --text-color: #F1F1F1;
    --text-color-pure-white: #FFFFFF;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html {
    font-size: 62.5%;
    box-sizing: border-box;
	overflow-x: clip;
}
*, *::before, *::after {
    box-sizing: inherit;
}

/* ==========================================================================
   2. Base Body & Link Styles
   ========================================================================== */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.6;
	overflow-x: clip;
}
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   3. Responsive Typography System (Tweaked for smaller sizes)
   ========================================================================== */
h1, h2, h3, h4, p {
    margin: 0 0 1rem 0;
    line-height: 1.3;
    font-weight: 700;
}
h1, h2 {
    visibility: hidden; /* Hide headings before animation starts */
}
h1 {
    font-size: clamp(2.8rem, 4vw + 1rem, 5rem);
    font-weight: 800;
    color: var(--text-color-pure-white);
}
h2 {
    font-size: clamp(2.4rem, 3vw + 1rem, 4rem);
    color: var(--text-color-pure-white);
}
h3 {
    font-size: clamp(2.1rem, 2.2vw + 1rem, 3.2rem);
    color: var(--text-color-pure-white);
}
h4 {
    font-size: clamp(1.8rem, 1.5vw + 1rem, 2.4rem);
    color: var(--text-color-pure-white);
}
p {
    font-size: 1.6rem;
    line-height: 1.65;
    font-weight: 400;
}

/* ==========================================================================
   4. Button & Container Styles
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.2);
}
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ==========================================================================
   Global Typewriter Effect (JavaScript-Driven)
   ========================================================================== */
.is-typing {
    display: inline;
    border-right: 3px solid var(--primary-color);
    padding-right: 5px;
    animation: blink-typing 0.75s step-end infinite;
	text-align: center;
}

.final-cursor {
    display: inline-block;
    background-color: var(--primary-color);
    width: 3px;
    height: 0.9em;
    margin-left: 8px;
    vertical-align: baseline;
    position: relative;
    top: 0.1em;
    animation: blink-final 0.75s step-end infinite;
}

@keyframes blink-typing {
    from, to { border-right-color: transparent; }
    50% { border-right-color: var(--primary-color); }
}

@keyframes blink-final {
    from, to { background-color: transparent; }
    50% { background-color: var(--primary-color); }
}