@import url('https://fonts.googleapis.com/css2?family=Alike&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primaryblue: #4361EE;
    --blue: #122995;
    --darkblue: #060D2F;
    --lightblue: #d4daf5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    font-size:16px;
}

h1, h2 {
    font-family:'Alike', serif;
}

h1 {
    font-size: 3rem;
    margin:0;
}

h2 {
    font-size: 2rem;
    color:var(--blue);
}

ul {
    padding-inline-start: 24px;
}

header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index: 100;
    height:auto;
    background-color: white;
    transition:all 0.2s ease-in-out;
    padding:2rem;
    height:114px;
}

.scrolled > header {
    padding:1rem 2rem;
    height: auto;
}

header > svg {
    width:160px;
    transition:all 0.2s ease-in-out;
}

header > svg {
    width:160px;
}

.scrolled > header > svg {
    width:100px;
}

header > svg .logotype {
    fill:black;
    transition: fill 0.2s ease-in-out;
}

header svg .logodot {
    fill:var(--primaryblue);
}

header nav .icon {
    width:30px;
    height:30px;
    cursor:pointer;
}

header nav .icon .line-item {
    stroke: #000;
    stroke-width: 5px;
}

header nav ul {
    display:none;
}

section {
    position: relative;
    display: flex;
    align-items:center;
    overflow:hidden;
    padding: 2rem;
}

section:first-of-type {
    min-height: 100vh;
}

section:first-of-type > img {
    position: absolute;
    bottom:0;
    right:0;
    width:50%;
}

section:nth-child(3) {
    background-color: var(--lightblue);
}

section:nth-child(4) {
    background: linear-gradient(to bottom right, var(--darkblue), var(--blue));
    color: white;
    justify-content: center;
}

section:nth-child(4) h2 {
    color: white;
}

section:nth-child(4) > div {
    width: 50rem;
}

section:nth-child(4) > div > div {
    display: flex;
    gap:1rem;
    flex-direction: column;
}

section:last-of-type > img {
    max-width:90%;
    max-height:40%;
}

section:last-of-type {
    align-items: flex-start;
    flex-direction: column;
}

section:last-of-type > div > p:last-of-type {
    font-family: 'Alike', serif;
}

@media (min-width: 768px) {

    h1 {
        font-size: 4.5rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    section {
        padding: 2rem 10rem;
        min-height: 100vh;
    }
    
    section > div {
        max-width:40rem;
    }

    section:first-of-type > img {
        width:30%;
    }

    section:nth-child(4) > div > div {
        flex-direction: row;
        gap:4rem;
    }
    
    section:last-of-type > div > p:last-of-type {
        font-size:1.5rem;
    }
}

@media (min-width: 960px) {

    section:last-of-type {
        align-items: center;
        flex-direction: row;
    }

    section:last-of-type > img {
        position: absolute;
        width:60%;
        right:-15%;
        max-height:max-content;
        bottom: auto;
        left:auto;
        transform: none;
    }

    section:last-of-type > div {
        width: 50%;
    }

}

@media (min-width: 1200px) {
    
    h1 {
        font-size: 5rem;
    }

    section:last-of-type > img {
        width:48%;
        right:0;
        max-height:max-content;
    }

}

@media (min-width: 1600px) {
    section {
        padding: 2rem 15rem;
    }
}