:root {
    --header-height: 3.5rem;
    --body-font: "Poppins", sans-serif;
    --h1-font-size: 1.5rem;
    --normal-font-size: .938rem;
    --font-regular: 400;
    --font-medium: 500;
    --z-fixed: 100;
}

@media screen and (min-width: 1150px) {
    :root { --normal-font-size: 1rem; }
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--md-sys-color-background);
}

ul { list-style: none; }
a  { text-decoration: none; }

.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

main { margin-top: var(--header-height); }

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--md-sys-color-primary-container);
    z-index: var(--z-fixed);
}

.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: var(--md-sys-color-on-primary-container);
    font-weight: var(--font-medium);
}

.nav__close,
.nav__toggle {
    display: flex;
    color: var(--md-sys-color-on-primary-container);
    font-size: 1.5rem;
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--md-sys-color-background);
}

::-webkit-scrollbar-thumb {
    background: var(--md-sys-color-primary);
}

@media screen and (max-width: 1150px) {
    .nav__menu {
        position: fixed;
        left: -100%;
        top: 0;
        background-color: var(--md-sys-color-primary-container);
        width: 100%;
        height: 100%;
        padding: 6rem 3.5rem 4.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: left .4s;
    }

    .nav__item {
        transform: translateX(-150px);
        visibility: hidden;
        transition: transform .4s ease-out, visibility .4s;
    }

    .nav__item:nth-child(1) { transition-delay: .1s; }
    .nav__item:nth-child(2) { transition-delay: .2s; }
    .nav__item:nth-child(3) { transition-delay: .3s; }
    .nav__item:nth-child(4) { transition-delay: .4s; }
    .nav__item:nth-child(5) { transition-delay: .5s; }
}

.nav__list,
.nav__social { display: flex; }

.nav__list {
    flex-direction: column;
    row-gap: 3rem;
}

.nav__link {
    position: relative;
    color: var(--md-sys-color-on-primary-container);
    font-size: var(--h1-font-size);
    font-weight: var(--font-medium);
    display: inline-flex;
    align-items: center;
    transition: opacity .4s;
}

.nav__link i {
    font-size: 2rem;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}

.nav__link span {
    position: relative;
    transition: margin .4s;
}

.nav__link span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--md-sys-color-on-primary-container);
    transition: width .4s ease-out;
}

.nav__link:hover span            { margin-left: 2.5rem; }
.nav__link:hover i               { opacity: 1; visibility: visible; }
.nav__link:hover span::after     { width: 100%; }
.nav__list:has(.nav__link:hover) .nav__link:not(:hover) { opacity: .4; }

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.nav__social { column-gap: 1rem; }

.nav__social-link {
    color: var(--md-sys-color-on-primary-container);
    font-size: 1.5rem;
}

.show-menu { left: 0; }
.show-menu .nav__item { visibility: visible; transform: translateX(0); }

.footer {
    background: var(--md-sys-color-surface-variant);
    padding: 4rem 1.5rem 2rem;
}

.footer__container { max-width: 1120px; margin: 0 auto; }

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--md-sys-color-outline-variant);
}

.footer__column-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--md-sys-color-on-surface);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 500;
}

.footer__brand { text-align: center; padding: 2rem 0; }

.footer__logo {
    font-size: clamp(6rem, 18vw, 8rem);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    color: var(--md-sys-color-on-surface);
    display: block;
    margin-bottom: 1rem;
}

.footer__copyright {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
}

.page-hero {
    padding: 5rem 1.5rem 4rem;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.page-hero__container { max-width: 1120px; margin: 0 auto; }

.page-hero__label {
    display: inline-block;
    background: var(--md-sys-color-on-primary);
    color: var(--md-sys-color-primary);
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.page-hero__title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.page-hero__meta {
    font-size: 0.875rem;
    opacity: 0.75;
}

.page-hero__sub {
    font-size: 1.0625rem;
    opacity: 0.85;
    line-height: 1.6;
}

.section__header { margin-bottom: 3rem; }

.section__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 0.5rem;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--md-sys-color-on-surface-variant);
}

@media screen and (min-width: 1150px) {
    .container     { margin-inline: auto; }
    .nav           { height: calc(var(--header-height) + 2rem); }
    .nav__toggle,
    .nav__close    { display: none; }
    .nav__link     { font-size: var(--normal-font-size); }
    .nav__link i   { font-size: 1.5rem; }
    .nav__list     { flex-direction: row; column-gap: 3.5rem; }
    .nav__menu     { display: flex; align-items: center; column-gap: 3.5rem; }
}

body.dark-monocromatic {
    --md-sys-color-primary: rgb(200 200 200);
    --md-sys-color-on-primary: rgb(30 30 30);
    --md-sys-color-primary-container: rgb(60 60 60);
    --md-sys-color-on-primary-container: rgb(230 230 230);
    --md-sys-color-secondary: rgb(180 180 180);
    --md-sys-color-on-secondary: rgb(40 40 40);
    --md-sys-color-secondary-container: rgb(70 70 70);
    --md-sys-color-on-secondary-container: rgb(220 220 220);
    --md-sys-color-tertiary: rgb(190 190 190);
    --md-sys-color-on-tertiary: rgb(50 50 50);
    --md-sys-color-tertiary-container: rgb(80 80 80);
    --md-sys-color-on-tertiary-container: rgb(240 240 240);
    --md-sys-color-error: rgb(220 220 220);
    --md-sys-color-on-error: rgb(20 20 20);
    --md-sys-color-error-container: rgb(90 90 90);
    --md-sys-color-on-error-container: rgb(250 250 250);
    --md-sys-color-background: rgb(18 18 18);
    --md-sys-color-on-background: rgb(230 230 230);
    --md-sys-color-surface: rgb(18 18 18);
    --md-sys-color-on-surface: rgb(230 230 230);
    --md-sys-color-surface-variant: rgb(70 70 70);
    --md-sys-color-on-surface-variant: rgb(200 200 200);
    --md-sys-color-outline: rgb(140 140 140);
    --md-sys-color-outline-variant: rgb(70 70 70);
    --md-sys-color-shadow: rgb(0 0 0);
    --md-sys-color-scrim: rgb(0 0 0);
    --md-sys-color-inverse-surface: rgb(230 230 230);
    --md-sys-color-inverse-on-surface: rgb(48 48 48);
    --md-sys-color-inverse-primary: rgb(100 100 100);
    --md-sys-color-primary-fixed: rgb(230 230 230);
    --md-sys-color-on-primary-fixed: rgb(25 25 25);
    --md-sys-color-primary-fixed-dim: rgb(200 200 200);
    --md-sys-color-on-primary-fixed-variant: rgb(60 60 60);
    --md-sys-color-secondary-fixed: rgb(220 220 220);
    --md-sys-color-on-secondary-fixed: rgb(30 30 30);
    --md-sys-color-secondary-fixed-dim: rgb(180 180 180);
    --md-sys-color-on-secondary-fixed-variant: rgb(70 70 70);
    --md-sys-color-tertiary-fixed: rgb(240 240 240);
    --md-sys-color-on-tertiary-fixed: rgb(35 35 35);
    --md-sys-color-tertiary-fixed-dim: rgb(190 190 190);
    --md-sys-color-on-tertiary-fixed-variant: rgb(80 80 80);
    --md-sys-color-surface-dim: rgb(18 18 18);
    --md-sys-color-surface-bright: rgb(56 56 56);
    --md-sys-color-surface-container-lowest: rgb(13 13 13);
    --md-sys-color-surface-container-low: rgb(26 26 26);
    --md-sys-color-surface-container: rgb(30 30 30);
    --md-sys-color-surface-container-high: rgb(40 40 40);
    --md-sys-color-surface-container-highest: rgb(52 52 52);
    --md-extended-color-warn-color: rgb(210 210 210);
    --md-extended-color-warn-on-color: rgb(45 45 45);
    --md-extended-color-warn-color-container: rgb(75 75 75);
    --md-extended-color-warn-on-color-container: rgb(235 235 235);
}

body.dark-blue {
    --md-sys-color-primary: rgb(170 199 255);
    --md-sys-color-on-primary: rgb(10 48 95);
    --md-sys-color-primary-container: rgb(40 71 119);
    --md-sys-color-on-primary-container: rgb(214 227 255);
    --md-sys-color-secondary: rgb(190 198 220);
    --md-sys-color-on-secondary: rgb(40 49 65);
    --md-sys-color-secondary-container: rgb(62 71 89);
    --md-sys-color-on-secondary-container: rgb(218 226 249);
    --md-sys-color-tertiary: rgb(221 188 224);
    --md-sys-color-on-tertiary: rgb(63 40 68);
    --md-sys-color-tertiary-container: rgb(87 62 92);
    --md-sys-color-on-tertiary-container: rgb(250 216 253);
    --md-sys-color-error: rgb(255 180 171);
    --md-sys-color-on-error: rgb(105 0 5);
    --md-sys-color-error-container: rgb(147 0 10);
    --md-sys-color-on-error-container: rgb(255 218 214);
    --md-sys-color-background: rgb(17 19 24);
    --md-sys-color-on-background: rgb(226 226 233);
    --md-sys-color-surface: rgb(17 19 24);
    --md-sys-color-on-surface: rgb(226 226 233);
    --md-sys-color-surface-variant: rgb(68 71 78);
    --md-sys-color-on-surface-variant: rgb(196 198 208);
    --md-sys-color-outline: rgb(142 144 153);
    --md-sys-color-outline-variant: rgb(68 71 78);
    --md-sys-color-shadow: rgb(0 0 0);
    --md-sys-color-scrim: rgb(0 0 0);
    --md-sys-color-inverse-surface: rgb(226 226 233);
    --md-sys-color-inverse-on-surface: rgb(46 48 54);
    --md-sys-color-inverse-primary: rgb(65 95 145);
    --md-sys-color-primary-fixed: rgb(214 227 255);
    --md-sys-color-on-primary-fixed: rgb(0 27 62);
    --md-sys-color-primary-fixed-dim: rgb(170 199 255);
    --md-sys-color-on-primary-fixed-variant: rgb(40 71 119);
    --md-sys-color-secondary-fixed: rgb(218 226 249);
    --md-sys-color-on-secondary-fixed: rgb(19 28 43);
    --md-sys-color-secondary-fixed-dim: rgb(190 198 220);
    --md-sys-color-on-secondary-fixed-variant: rgb(62 71 89);
    --md-sys-color-tertiary-fixed: rgb(250 216 253);
    --md-sys-color-on-tertiary-fixed: rgb(40 19 46);
    --md-sys-color-tertiary-fixed-dim: rgb(221 188 224);
    --md-sys-color-on-tertiary-fixed-variant: rgb(87 62 92);
    --md-sys-color-surface-dim: rgb(17 19 24);
    --md-sys-color-surface-bright: rgb(55 57 62);
    --md-sys-color-surface-container-lowest: rgb(12 14 19);
    --md-sys-color-surface-container-low: rgb(25 28 32);
    --md-sys-color-surface-container: rgb(29 32 36);
    --md-sys-color-surface-container-high: rgb(40 42 47);
    --md-sys-color-surface-container-highest: rgb(51 53 58);
    --md-extended-color-warn-color: rgb(242 190 110);
    --md-extended-color-warn-on-color: rgb(67 44 0);
    --md-extended-color-warn-color-container: rgb(97 64 0);
    --md-extended-color-warn-on-color-container: rgb(255 221 175);
}
