html,
* {
    box-sizing: border-box;
    scroll-behavior: smooth !important;
    transition: all 0.2s ease;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    font-family: "SN Pro", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    background: #1a0629;
    position: relative;
}

body::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url(./images/bg.jpg) no-repeat center center;
    background-size: cover;
    opacity: 0.15;
}

header {
    background: #1a0629;
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    border-radius: 0 0 10px 10px;
}

.main {
    width: calc(100% - 100px);
    min-height: calc(100% - 100px);
    padding-bottom: 50px;
    margin: 50px;
    position: relative;
    z-index: 10;
    border-radius: 10px;
}

.nav {
    position: fixed;
    top: 50px;
    left: 50px;
    width: calc(100% - 100px);
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.nav ul {
    list-style: none;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    gap: 10px;
    padding: 20px;
    position: relative;
}

.nav ul::before {
    --r: 25px;

    content: "";
    display: block;
    height: 100%;
    pointer-events: none;
    width: 100%;
    position: absolute;
    left: calc(-1 * var(--r));
    top: 0;
    transform: rotate(180deg);
    line-height: 1.8;
    padding-inline: 0.5em;
    border-inline: var(--r) solid #0000;
    border-radius: calc(2 * var(--r)) calc(2 * var(--r)) 0 0 / var(--r);
    mask:
        radial-gradient(var(--r) at var(--r) 0, #0000 98%, #000 101%) calc(-1 * var(--r)) 100%/100% var(--r) repeat-x,
        conic-gradient(#000 0 0) padding-box;
    background: #1a0629 border-box;
    z-index: 1;
}

.nav ul li {
    position: relative;
    z-index: 2;
}

.nav ul a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    padding: 5px 10px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav ul a:hover {
    border: 1px solid #289b64;
}

.nav ul a.active {
    border: 1px solid #b9242a;
    background-color: #b9242a;
    color: #fff;
    margin: 0 10px 0 20px;
}

.element {
    width: 200px;
    height: 40px;
    margin: 10px 30px 0;
}

.element img {
    height: 100%;
    width: auto;
    display: block;
}

.content {
    padding: 0;
    position: relative;
    z-index: 5;
    border-radius: 10px;
}

.section {
    background: #eee;
    width: 100%;
    min-height: 800px;
    max-height: 1000px;
    height: calc(100vh - 100px);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.section + .section {
    margin-top: 50px;
}

.columns {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 5;
}

.column {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 5;
}

.section--home {
    min-height: 800px;
    background: url(./images/me.png) no-repeat top left #eee;
    background-size: contain;
}

.section--home::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(./images/decorator.png) no-repeat bottom right;
    background-size: 25%;
    z-index: 1;
    pointer-events: none;
}

.section--home img.logo-full {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.section--services {
    background: url(./images/bg.jpg) no-repeat center center;
    background-size: cover;
    color: #fff;
}

.section--services::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(./images/tile.jpg) repeat center center;
    z-index: 1;
    pointer-events: none;
    opacity: 0.1;
}

.section--service h3 {
    text-shadow: 0 0 10px rgba(0, 0, 0, 1);
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 40px;
    padding: 40px;
    width: fit-content;
    margin: 0 auto;
    box-sizing: border-box;
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 1);
    position: relative;
}

.cards::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(./images/tile.jpg) repeat center center;
    background-size: 50% 50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    filter: blur(4px);
}

.card {
    background: #eee;
    border-radius: 10px 0 0 0;
    padding: 20px;
    width: 100%;
    border: 2px solid #e95d1e;
    position: relative;
    z-index: 5;
}

.card:nth-child(2) {
    border-color: #289b64;
    border-radius: 0 10px 0 0;
}

.card:nth-child(2) h4 {
    background-color: #289b64;
    border-radius: 0 10px 0 0;
}

.card:nth-child(4) {
    border-color: #b9242a;
    border-radius: 0 0 10px 0;
}

.card:nth-child(4) h4 {
    background-color: #b9242a;
    border-radius: 0 0 10px 0;
}

.card:nth-child(3) {
    border-color: #257eb6;
    border-radius: 0 0 0 10px;
}

.card:nth-child(3) h4 {
    background-color: #257eb6;
    border-radius: 0 0 0 10px;
}

.card i {
    font-size: 30px;
    color: #ffffff;
    margin-left: 20px;
}

.card h4 {
    margin: 0 0 20px;
    font-size: 22px;
    background-color: #e95d1e;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    font-weight: 300;
    align-items: center;
    justify-content: space-between;
    vertical-align: middle;
    border-radius: 10px 0 0 0;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.1),
        1px -1px 0 rgba(0, 0, 0, 0.1),
        -1px 1px 0 rgba(0, 0, 0, 0.1),
        1px 1px 0 rgba(0, 0, 0, 0.1);
}

.card p {
    margin: 10px;
    font-size: 18px;
    color: #000;
    text-align: center;
}

.callout {
    padding: 30px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    background: rgba(238, 238, 238, 0.5);
    border-radius: 30px;
}

.section--contact {
    background-color: transparent;
    color: #fff;
}

.section--contact .logo-full {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

h1,
h2,
h3 {
    text-align: center;
    font-size: 32px;
    margin: 0;
    line-height: 1.4em;
    letter-spacing: 0.2px;
    font-weight: 300;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

form input,
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin: 20px 0 0;
}

form button:hover {
    background-color: #289b64;
}

.section--process {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 1500px;
}

.section--process > *:not(.timeline__bg) {
    z-index: 5;
    position: relative;
}

.section--process h4 {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.5em;
    line-height: 1.75em;
    color: #333;
    text-align: center;
    font-weight: 300;
    border: 2px solid #289b64;
    border-radius: 10px;
    padding: 20px;
    margin-top: 80px;
}

.timeline {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    font-size: 1em;
    line-height: 1.75em;
    border-top: 3px solid;
    -o-border-image: linear-gradient(to right, #253f8a 0%, #289b64 100%);
    border-image: linear-gradient(to right, #253f8a 0%, #289b64 100%);
    border-image-slice: 1;
    border-width: 3px;
    margin: 0;
    padding: 20px 40px 40px;
    counter-increment: section;
    position: relative;
    color: #34435e;
    max-width: 500px;
    text-align: left;
}

.timeline-item:before {
    content: counter(section);
    position: absolute;
    border-radius: 50%;
    padding: 10px;
    height: 1.25em;
    width: 1.25em;
    background-color: #34435e;
    text-align: center;
    line-height: 1.25em;
    color: #ffffff;
    font-size: 1em;
}

.timeline-item:nth-child(odd) {
    border-right: 3px solid;
    padding-left: 0;
}
.timeline-item:nth-child(odd):before {
    left: 100%;
    margin-left: -20px;
}

.timeline-item:nth-child(odd) h5,
.timeline-item:nth-child(odd) p {
    text-align: right;
}

.timeline-item:nth-child(even) {
    border-left: 3px solid;
    padding-right: 0;
}
.timeline-item:nth-child(even):before {
    right: 100%;
    margin-right: -20px;
}

.timeline-item:first-child {
    border-top: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.timeline-item:last-child {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.timeline-item h5 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
    text-align: left;
}

.timeline-item p {
    margin: 20px 0 0;
    line-height: 120%;
}

.timeline::after {
    content: "\f00c"; /** font-awesome checkmark*/
    font-family: "FontAwesome";
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    width: 40px;
    height: 40px;
    position: absolute;
    bottom: 0;
    right: calc(50% - 267px);
    border-radius: 100%;
    background-color: #289b64;
}

.timeline__bg {
    animation: slide 3s ease-in-out infinite alternate;
    background: url(./images/tile.jpg) no-repeat right bottom;
    background-size: cover;
    left: 0;
    width: 100%;
    height: 100%;
    top: 0;
    opacity: 0.05;
    position: absolute;
    z-index: 1;
    filter: blur(50px);
}

.timeline__bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 4s;
}

.timeline__bg3 {
    animation-duration: 5s;
}

@keyframes slide {
    0% {
        transform: scale(1) translateX(-50%) translateY(-50%) rotate(0);
    }
    100% {
        transform: scale(2) translateX(50%) translateY(50%) rotate(360deg);
    }
}

footer {
    position: fixed;
    bottom: 50px;
    width: 100%;
    z-index: 20;
    left: 0;
    height: 50px;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer__inner {
    position: relative;
    z-index: 5;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 0 100px;
}

footer span {
    position: relative;
    z-index: 5;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.3px;
}

footer::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #1a0629;
    z-index: 1;
}

.footer__inner::before {
    --r: 25px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 1);

    content: "";
    display: block;
    height: 100%;
    pointer-events: none;
    width: 100%;
    position: absolute;
    left: calc(-1 * var(--r));
    top: 0;
    line-height: 1.8;
    padding-inline: 0.5em;
    border-inline: var(--r) solid #0000;
    border-radius: calc(2 * var(--r)) calc(2 * var(--r)) 0 0 / var(--r);
    mask:
        radial-gradient(var(--r) at var(--r) 0, #0000 98%, #000 101%) calc(-1 * var(--r)) 100%/100% var(--r) repeat-x,
        conic-gradient(#000 0 0) padding-box;
    background: #1a0629 border-box;
    z-index: 1;
}

@media screen and (max-width: 1024px) and (min-height: 100vw) {
    .section--home {
        background-image: none;
    }

    .section--home .column:first-child {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    header,
    nav {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
    }

    .nav ul {
        margin: 0 auto !important;
    }

    .nav ul a {
        font-size: 10px !important;
        padding: 5px !important;
    }

    footer {
        bottom: 0;
    }

    .footer__inner {
        gap: 30px;
        width: 100%;
        padding: 10px;
    }

    footer span {
        font-size: 10px !important;
    }

    .element {
        display: none;
    }

    .main {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .section {
        min-height: unset !important;
        max-height: unset !important;
        height: auto !important;
    }

    .section {
        margin-top: 50px !important;
    }
    
    .section--home {
        background-image: none;
    }

    .section--home .column:first-child {
        display: none;
    }

    .section--home .callout {
        background: none;
    }

    .section--home .callout img {
        max-width: 200px !important;
        margin-bottom: 50px !important;
    }

    h1,
    h2,
    h3 {
        font-size: 22px !important;
        line-height: 1.2em !important;
    }

    .section--services,
    .section--process {
        min-height: auto !important;
    }

    .section--services {
        padding: 50px 10px !important;
    }

    .cards {
        grid-template-columns: auto;
        padding: 20px !important;
    }

    .card h4 {
        font-size: 18px !important;
    }

    .card p {
        font-size: 14px;
    }

    .card i {
        font-size: 15px !important;
    }

    .section--process {
        padding: 50px !important;
    }

    .section--process h4 {
        margin-top: 30px;
        font-size: 22px;
        line-height: 1.25em;
    }

    .timeline {
        min-width: unset !important;
    }

    .timeline__bg,
    .timeline::after {
        display: none;
    }
}
