@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}


:root {

    --color-primary: #154C79;
    --color-secondary: #1E6EA5;
    --color-accent: #2FA4D6;
    --color-highlight: #6CC6E8;

    --color-bg: #FFFFFF;
    --color-bg-soft: #F4F7FA;
    --color-bg-card: #F0F8FC;

    --color-text: #0D2F4A;
    --color-text-muted: #6B8799;

    --color-border: #E3EEF5;

    --color-success: #28C76F;
    --color-warning: #FF9F43;
    --color-error: #EA5455;
    --color-info: #2FA4D6;

    --ff-primary: 'Poppins', sans-serif;
    --ff-secondary: 'Inter', sans-serif;

    --font-space: 1.312rem;
    --line-height: 1.5;
    --fw-normal: 400;
    --fw-semibold: 500;
    --fw-bold: 700;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    width: 100%;
    padding: 0;
    overflow-x: hidden;
    margin: 0;
}


/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture,
ul,
ol,
blockquote {
    margin: 0;
}



/* Set up the body */
body {
    min-height: 100vh;
}

/* Make images easier to work with */

img,
picture {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    font-style: italic;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Make form elements easier to work with */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* WebKit Browsers */
::-webkit-scrollbar {
    width: 1em;
}

::-webkit-scrollbar-track {
    background: var(--color-secondary);
    border-radius: 100vw;
    margin-block: 0.5em;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border: 0.25em solid var(--color-secondary);
    border-radius: 100vw;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary) !important;
    border: 0.25em solid var(--color-primary) !important;
}

/* Firefox */
@supports (scrollbar-color: red blue) {
    * {
        scrollbar-color: var(--color-primary) var(--color-secondary);
        scrollbar-width: thin;
    }
}

/* Typography */


h1,
h2,
h3 {
    font-family: var(--ff-secondary);
    font-size: clamp(26px, 5vw, 60px);
    letter-spacing: -0.02em;
    /* slightly tighter spacing for headings */
    line-height: 1.2;
}


h4 {
    font-family: var(--ff-secondary);
    font-size: clamp(24px, 4.5vw, 36px);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h5 {
    font-family: var(--ff-secondary);
    font-size: clamp(22px, 4vw, 28px);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h6 {
    font-family: var(--ff-secondary);
    font-size: clamp(20px, 3.5vw, 24px);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p,
li,
figcaption {
    font-family: var(--ff-primary);
    font-size: clamp(16px, 3vw, 18px);
    letter-spacing: normal;
    line-height: 1.5;
}




/* Responsive Design */
/* Breakpoints */

@media (max-width: 1200px) {
    :root {
        --font-space: 1.2rem;
    }
}

@media (max-width: 992px) {
    :root {
        --font-space: 1.1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --font-space: 1rem;
    }
}

@media (max-width: 576px) {
    :root {
        --font-space: 0.9rem;
    }
}

/* Form Styles */
input,
textarea,
select,
button {
    padding: 0.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    outline: none;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

button {
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: transparent;
}

button:hover {
    background-color: var(--color-primary);
}

/* Additional Reset Styles */
body {
    margin: 0;
    padding: 0;
}

a,
a:hover,
a:focus,
a:active {
    text-decoration: none;
}




/* Accessibility Enhancements */

:focus-visible {
    outline: 2px dashed var(--clr-accent);
    outline-offset: 4px;
}

a:focus-visible {
    outline: 2px dashed var(--clr-accent);
    outline-offset: 4px;
}



/* Custom Styles */

main {
    min-height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
}

.title-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
}

.title {
    font-family: var(--ff-primary);
    font-size: clamp(25px, 4vw, 60px);
    font-weight: 600;
    position: relative;
    line-height: 1.5;
}


.subtitle {
    font-family: var(--ff-secondary);
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 300;
}