html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: white;
    color: white;
    font-family: sans-serif;
    font-weight: bold;
    overflow-x: hidden;
}

a {
    color: white;
}

header {
    background-color: black;
    display: flex;
    align-items: center;
    padding: 20px 50px;
    width: 100%;
    margin: 0 auto;
    height: 40px;
    position: fixed;
    top: 0;
    z-index: 2;
}

header img {
    width: 200px;
}

header a.logo {
    position: fixed;
    top: 21px;
    left: 40%;
    margin-left: -70px;
}

@media (min-width: 1590px) {
    header img {
        width: 200px;
    }

    header a.logo {
        margin-right: 40px;
        position: relative;
        top: initial;
        left: initial;
        margin-left: initial;
    }
}

.center-nav {
    display: none;
}

@media (min-width: 1590px) {
    .center-nav {
        position: relative;
        left: 375px;
        display: block;
    }
}

.center-nav a,
.right-nav a,
.left-nav a {
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
    margin: 0 30px;
    position: relative;
    transition: color 0.4s ease-in-out;
}

header.scrolled .center-nav a {
    color: white
}

.center-nav a:before,
.right-nav a:before,
.left-nav a::before {
    content: '';
    width: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background-color: white;
    position: absolute;
    transition: width .2s linear;
}

.center-nav a:hover:before,
.right-nav a:hover:before,
.left-nav a:hover::before {
    right: initial;
    left: 0;
    width: 100%;
}

.right-nav {
    position: fixed;
    right: 550px;
    top: 20px;
    height: 40px;
    display: flex;
    align-items: center;
}

.right-nav a {
    display: none;
    transition: color 0.4s ease-in-out;
}

header.scrolled .right-nav a {
    color: white
}

.left-nav {
    position: fixed;
    right: 1300px;
    top: 20px;
    height: 40px;
    display: flex;
    align-items: center;
}

.left-nav a {
    display: none;
    transition: color 0.4s ease-in-out;
}

header.scrolled .left-nav a {
    color: white
}

@media (min-width: 1590px) {
    .right-nav a {
        display: inline-block;
        padding: 0;
        margin: 0 50px;
    }

    .left-nav a {
        display: inline-block;
        padding: 0;
        margin: 0 50px;
    }
}

.hamburger {
    position: fixed;
    z-index: 3;
    right: 6px;
    top: 13px;
    color: white;
    padding: 20px;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 16px;
    margin: 2px 0;
    height: 2px;
    background-color: white;
    position: relative;
    transition: all 0.2s linear;
}

.hamburger.active span:first-child,
.hamburger.active span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    transform: rotate(-45deg);
    top: -4px;
}

.hamburger.active span:last-child {
    opacity: 0;
}

.shadow.active {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, .3);
    z-index: 1;
}

nav.mobile-nav {
    padding-top: 70px;
    display: block;
    position: fixed;
    top: 0;
    right: -280px;
    bottom: 0;
    z-index: 2;
    width: 280px;
    background-color: #000;
    transition: right 0.3s ease-in-out;
}

nav.mobile-nav.active {
    right: 0;
}

nav.mobile-nav a {
    display: block;
    opacity: 0;
    border-bottom: 1px solid #222;
    text-transform: uppercase;
    padding: 16px 25px;
    text-decoration: none;
    text-align: right;
    transition: opacity .3s linear;
    transition-delay: .2s;
}

nav.mobile-nav.active a {
    opacity: 1;
    color: white;
}

nav.mobile-nav a:nth-child(2) {
    transition-delay: .25s;
}

nav.mobile-nav a:nth-child(3) {
    transition-delay: .3s;
}

nav.mobile-nav a:nth-child(4) {
    transition-delay: .35s;
}

nav.mobile-nav a:nth-child(5) {
    transition-delay: .4s;
}

nav.mobile-nav a:nth-child(6) {
    transition-delay: .45s;
}

nav.mobile-nav a:nth-child(7) {
    transition-delay: .5s;
}

nav.mobile-nav a:nth-child(8) {
    transition-delay: .55s;
}

section {
    min-height: 59vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

section div.content-outer {
    flex-grow: 1;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

section.active div.content {
    opacity: 1;
    bottom: 15vh;
}

section div.content {
    position: absolute;
    left: 50px;
    max-width: 360px;
    opacity: 0;
    bottom: 10vh;
    transition: all .5s linear;
}

section div.content h2 {
    font-size: 48px;
    margin: 0;
}

section div.content a {
    border: 2px solid white;
    display: inline-block;
    padding: 20px 60px;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 30px;
    position: relative;
}

section div.content a:before {
    content: '';
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0%;
    transition: height 0.3s ease-in-out;
    background-color: white;
}

section div.content a:hover:before {
    height: 100%;
    top: initial;
    bottom: 0;
}

section div.content a span {
    position: relative;
    z-index: 1;
    transition: color .3s ease-in-out;
}

section div.content a:hover span {
    color: black
}

.services-right {
    position: absolute;
    top: 70px;
    right: 50px;
    width: 40%;
    padding: 20px;
}

.services-right p {
    color: black;
    line-height: 1.5em;
    margin-bottom: 1em;
}

.services-right img {
    width: 450px;
    height: 450px;
    position: absolute;
    left: -800px;
    top: 40px;
}

.design-section {
    min-height: 40vh;
}

.timeline {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 75%;
    margin: 0 auto;
}

.timeline-component {
    padding: 10px;
    border-radius: 5px;
    color: black;
    transition: 0.4s ease;
    margin: 0.5rem;
    border-radius: 6px;
    flex-direction: column;
    text-align: center;
    width: 100%; 
    position: relative;
}

.timeline-middle {
    position: relative;
    left: -150px;
    background-image: linear-gradient(45deg, #2D8ADD, #C5C5C5, #2D8ADD);
    width: 100px;
    height: 3px;
    margin-left: -200px;
    margin-right: -200px;
}

.timeline-circle {
    position: absolute;
    left: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-image: linear-gradient(45deg, #C5C5C5, #2D8ADD, #C5C5C5);
    transform: translateX(-50%);
}

.timeline-content.up {
    align-self: flex-start;
    margin-top: 250px;
    position: relative;
    right: 43px;
}

.timeline-content.down {
    align-self: flex-end;
    margin-bottom: 250px;
    position: relative;
    right: 45px;
}

.timeline-connector-up {
    position: absolute;
    left: 269px;
    width: 3px;
    height: 50px;
    background-image: linear-gradient(45deg, #000000, #2D8ADD, #C5C5C5);
    top: -50px;
    transform: translateX(-50%);
}

.timeline-connector-down {
    position: absolute;
    left: 269px;
    width: 3px;
    height: 50px;
    background-image: linear-gradient(45deg, #C5C5C5, #2D8ADD,#000000);
    bottom: -50px;
    transform: translateX(-50%);
}

.timeline-component,
.timeline-middle {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.timeline-component.show,
.timeline-middle.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

@media screen and (min-width: 768px) {
    .timeline {
        display: flex;
        flex-direction: row;
    }

    .timeline-middle {
        height: 3px;
        width: 100%;
    }

    .timeline-circle {
        left: 52%;
        top: -6px;
    }
}

footer {
    background-color: black;
    padding: 50px;
    font-size: 12px;
}

footer nav {
    text-align: center;
}

footer nav span {
    color: #777;
    display: inline-block;
    padding-right: 30px;
    text-transform: uppercase;
}

footer nav a {
    padding: 0 20px;
    text-decoration: none;
    transition: color .2s linear;
}

footer nav a:hover {
    color: #aaa;
}

@media (min-width: 932px) {
    body {
        overflow-x: auto;
    }
}

@media (max-width: 932px) {
    .services-right {
        position: absolute;
        top: 50px;
        right: 0px;
        width: 90%;
        padding: 20px;
    }

    .services-right img {
        width: 350px;
        height: 350px;
        position: absolute;
        left: 40px;
        top: 875px;
    }
    
    .design-section {
        min-height: 100h; 
    }

    .timeline {
        position: relative; 
        flex-direction: column;
        width: 100%; 
        margin-top: 800px; 
    }

    .timeline-component {
        width: 60%; 
        margin: 0 auto 30px; 
        text-align: center; 
    }

    .timeline-middle {
        display: none; 
    }

    .timeline-circle {
        display: none;
    }

    .timeline-content.up, .timeline-content.down {
        margin: 0;
        right: 0;
    }

    .timeline-connector-up, .timeline-connector-down {
        display: none;
    }

    .timeline-component h3 {
        font-size: 18px;
    }

    .timeline-component p {
        font-size: 14px;
    }

    footer {
        font-size: 11px;
    }
}
