:root {
    --clr-primary-300: #285E6E;
    --clr-primary-400: #0d5170;

    --clr-neutral-050: #F9F9F9;
    --clr-neutral-100: #F4F7F9;
    --clr-neutral-700: #494949;
    --clr-neutral-900: #1B1B1B;

    --clr-accent-400: #D6840C;
    --clr-accent-500: #B06E0B;

    --ff-primary: "Inter", sans-serif;
    --ff-body: var(--ff-primary);
    --ff-heading: var(--ff-primary);

    --fw-regular: 300;
    --fw-semi-bold: 400;
    --fw-bold: 500;
    --fw-extra-bold: 600;

    --fs-100: 0.9rem;
    --fs-200: 1.0rem;
    --fs-300: 1.125rem;
    --fs-400: 1.25rem;
    --fs-500: 1.5rem;
    --fs-600: 1.875rem;
    --fs-700: 3rem;
    --fs-900: 3rem;

    --fs-body: var(--fs-300);
    --fs-button: var(--fs-200);
    --fs-primary-heading: var(--fs-900);
    --fs-secondary-heading: var(--fs-700);
    --fs-tertiary-heading: var(--fs-600);

    --size-100: 0.25rem;
    --size-200: 0.5rem;
    --size-300: 0.75rem;
    --size-400: 1rem;
    --size-500: 1.5rem;
    --size-600: 2rem;
    --size-700: 3rem;
    --size-800: 4rem;
    --size-900: 5rem;
}

@media (min-width: 30em) {
    :root {
        --fs-900: 4rem;
    }
}

@media (min-width: 50em) {
    :root {
        --fs-900: 5rem;
    }
}

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
* {
    margin: 0;
    padding: 0;
    font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html,
html:focus-within {
    scroll-behavior: smooth;
}

/* html,
body {
    height: 100%;
} */

/* Set core body defaults */
body {
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
    max-width: 100%;
    display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html,
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Utility classes */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-primary-300 {
    color: var(--clr-primary-300);
}

.text-primary-400 {
    color: var(--clr-primary-400);
}

.text-neutral-100 {
    color: var(--clr-neutral-100);
}

.text-neutral-700 {
    color: var(--clr-neutral-700);
}

.text-neutral-900 {
    color: var(--clr-neutral-900);
}

.text-accent-400 {
    color: var(--clr-accent-400);
}

.text-accent-500 {
    color: var(--clr-accent-500);
}


.bg-primary-300 {
    background-color: var(--clr-primary-300);
}

.bg-primary-400 {
    background-color: var(--clr-primary-400);
}

.bg-neutral-100 {
    background-color: var(--clr-neutral-100);
}

.bg-neutral-700 {
    background-color: var(--clr-neutral-700);
}

.bg-neutral-900 {
    background-color: var(--clr-neutral-900);
}

.bg-accent-400 {
    background-color: var(--clr-accent-400);
}

.bg-accent-500 {
    background-color: var(--clr-accent-500);
}


.fw-regular {
    font-weight: var(--fw-regular);
}

.fw-semi-bold {
    font-weight: var(--fw-semi-bold);
}

.fw-bold {
    font-weight: var(--fw-bold);
}

.fw-extra-bold {
    font-weight: var(--fw-extra-bold);
}

.fs-primary-heading {
    font-size: var(--fs-primary-heading);
    line-height: 1.1;
}

.fs-secondary-heading {
    font-size: var(--fs-secondary-heading);
    line-height: 1.1;
}

.fs-tertiary-heading {
    font-size: var(--fs-tertiary-heading);
    line-height: 1.1;
}

.padding-block-start-900 {
    padding-block-start: var(--size-900);
}

.padding-block-400 {
    padding-block: var(--size-400);
}

.padding-block-900 {
    padding-block: var(--size-900);
}

.container {
    --max-width: 1110px;
    --padding: 1rem;

    width: min(var(--max-width), 100% - (var(--padding) * 2));
    margin-inline: auto;
}

/* selects every element except the first one. We use it to restore whitespace
   in the 'flow' of the document which we removed in the CSS reset */
.flow > * + * {
    margin-block-start: var(--flow-spacer, 1em);
}


.even-columns {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.two-columns-uneven {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.center_xy {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 50em) {
    .even-columns {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }

    .two-columns-uneven {
        grid-auto-flow: column;
        grid-template-columns: 2fr 1fr;
    }
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: var(--size-500);
    background-color: var(--clr-neutral-050);
}

ul.list-style-custom {
    list-style-type: square;
    padding-left: var(--size-500);
}


/* General styling */

body {
    font-size: var(--fs-body);
    font-family: var(--ff-body);
    font-weight: var(--fw-regular);
    color: var(--clr-neutral-900);
    background-color: var(--clr-neutral-100);
}

strong {
    font-weight: var(--fw-semi-bold);
}

section {
    scroll-margin-top: var(--size-400);
}

footer {
    margin-block-start: var(--size-900);
    margin-block-end: var(--size-900);
    font-size: var(--fs-100);
}

footer .container{
    border-top: 2px solid var(--clr-primary-400);    
    padding-block-start: var(--size-500);
}

.logo {
    height: 2.5rem;
}

.button {
    cursor: pointer;
    text-decoration: none;
    border: 0;
    border-radius: 0.5em;
    padding: .75em 1.5em;
    font-weight: var(--fw-bold);
    font-size: var(--fs-button);
    color: var(--clr-neutral-100);
    background-color: var(--clr-accent-400);
    transition: background-color 0.3s ease;
}

.button:hover,
.button:focus-visible {
    background-color: var(--clr-accent-500);
}

.link {
    color: var(--clr-accent-400);
}

.link:hover,
.link:focus {
    color: var(--clr-accent-500);
}

/* Navigation */

.primary-header {
    position: sticky;
    top: 0;
    padding-block: var(--size-400);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-toggle {
    display: none; 
}

.nav-list {
    display: flex;
    gap: clamp(var(--size-300), 5vw, var(--size-700));
    font-weight: var(--fw-semi-bold);
}

.nav-list a {
    text-decoration: none;
    color: var(--clr-neutral-700);
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--clr-primary-400);
}
  
.footer-navigation {
    text-align: right;
}

.footer-nav-list a {
    color: var(--clr-neutral-900);
}

.footer-nav-list a:hover,
.footer-nav-list a:focus {
    color: var(--clr-primary-400);
}

.disclaimer a {
    color: var(--clr-neutral-900);
}

.disclaimer a:hover,
.disclaimer a:focus {
    color: var(--clr-primary-400);
}

.disclaimer {
    text-align: right;
}

@media (max-width: 50em) {
    .primary-navigation {
        display: none;

        position: fixed;
        padding: var(--size-600);
        inset: 4.5rem 0 auto;
        margin-inline: auto;
        background-color: var(--clr-neutral-100);
        border-bottom-left-radius: var(--size-100);
        border-bottom-right-radius: var(--size-100);
    }

    .primary-header[data-overlay]::before {
        content: "";
        position: fixed;
        inset: 4.5rem 0 0 0;
        background-image: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / 0.8));
    }

    .nav-list {
        display: grid;
        gap: var(--size-600);
        text-align: left;
        font-weight: var(--fw-bold);
    }

    .nav-list a {
        display: flex;
    }

    .primary-navigation[data-visible] {
        display: block;
    }

    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: var(--size-500);
        right: var(--size-400);
        cursor: pointer;
        background: transparent;
        border: 0;
        padding: 0.5em;
        width: 1.75rem;
        aspect-ratio: 1;

        background-image: url('images/icon-hamburger.drawio.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .mobile-nav-toggle[aria-expanded="true"] {
        background-image: url('images/icon-close.drawio.svg')
    }

    .footer-navigation {
        text-align: left;
    }

    .disclaimer {
        text-align: left;
    }
}

/* Hero */

.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background-image: url("images/light_capturing.png");
    background-color: rgb(0 0 0 / 0.2);
    background-size: cover;
    background-blend-mode: darken;
    background-position: center;
    color: var(--clr-neutral-100);
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: var(--fs-400);
    margin-bottom: var(--size-500);
}

/* Technology competence */
.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-evenly;
}

.tech div {
    flex-basis: 140px;
}

@media (min-width: 30em) {
    .tech div {
        flex-basis: 200px;
    }
}

@media (min-width: 62em) {
    .tech div {
        flex-basis: auto;
    }
}

.img-title {
    background-color: var(--clr-neutral-900);
    color: var(--clr-neutral-100);
    font-weight: var(--fw-bold);
    text-align: center;
    border-radius: 4px;
    padding-block: var(--size-100);
}
