@font-face {
    font-family: OpenSans;
    src:
        local("Open Sans"), url("./fonts/OpenSans-VariableFont_wdth,wght.ttf"),
        format("opentype");
}

@font-face {
    font-family: Italiana;
    src:
        local("Italiana"), url("./fonts/Italiana-Regular.ttf"),
        format("opentype");
}

@font-face {
    font-family: Poppins;
    src:
        local("Poppins"), url("./fonts/Poppins-Regular.ttf"), format("opentype");
}

@font-face {
    font-family: Poppins-Bold;
    src:
        local("Poppins-Bold"), url("./fonts/Poppins-Bold.ttf"),
        format("opentype");
}

@font-face {
    font-family: Poppins-ExtraBold;
    src:
        local("Poppins-ExtraBold"), url("./fonts/Poppins-ExtraBold.ttf"),
        format("opentype");
}

:root {
    --bg-color: white;
    --primary-color: black;
    --secondary-color: #3a3838;
    --magic-color: #3e4e34;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: black;
        --primary-color: white;
        --secondary-color: #e4e1e1;
    }
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--bg-color);
}

.nav {
    display: block;
    padding: 1em;
    height: 2em;
}

.content {
    padding: 0 6em;
}

.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    justify-content: center;
    height: 100vh;
}

.presentation {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.presentation h1 {
    font-family: Italiana;
    font-size: 96px;
    color: var(--primary-color);
    margin-bottom: 0.4em;
    margin-top: 0;
}

.presentation h2 {
    font-family: OpenSans;
    font-size: 32px;
    font-weight: lighter;
    color: var(--secondary-color);
}

.services {
    display: flex;
    flex-direction: row;
    margin-bottom: 3em;
    margin-right: 3em;
    justify-content: space-between;
}

.services .heading {
    opacity: 0;
    transform: translateX(-50px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.services .heading.fade-in-left {
    opacity: 1;
    transform: translateX(0);
}

.service {
    opacity: 0;
    padding-bottom: 33%;
    transform: translateY(20px);
    transition:
        opacity 1s ease,
        transform 1.5s ease;
}

.service.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.service:nth-child(1) {
    transition-delay: 0.4s;
}
.service:nth-child(2) {
    transition-delay: 0.8s;
}
.service:nth-child(3) {
    transition-delay: 1.2s;
}

.service p {
    font-family: OpenSans;
    font-weight: lighter;
    font-size: 20px;
    color: var(--secondary-color);
}

.service span {
    font-family: Poppins-ExtraBold;
    font-size: 32px;
    color: var(--primary-color);
}

.service:last-of-type {
    padding-bottom: 0;
}

.portfolio {
    margin-top: 4em;
}

.portfolio-container {
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    justify-content: space-between;
    padding: 0 1em;
}

.portfolio-container .img-container {
    width: calc(50% - 0.5em);
}

.portfolio-container .img-container img {
    width: 100%;
    height: 600px;
    border-radius: 0.4em;
}

.contact {
    display: flex;
    flex-direction: column;
    height: 50%;
    padding: 6em 0;
    width: fit-content;
}

.contact p {
    font-family: Poppins-Bold;
    font-size: 40px;
    color: var(--primary-color);
}

.contact a {
    font-family: OpenSans;
    font-weight: lighter;
    font-size: 20px;
    color: var(--secondary-color);
    text-decoration: none;
    width: fit-content;
    transition: transform 0.3s ease;
}

.contact a:visited {
    color: var(--secondary-color);
}

.contact a:hover {
    text-decoration: underline;
    transform: scale(1.05);
}

.heading {
    font-family: Poppins-Bold;
    font-size: 64px;
    margin-block-start: 0 !important;
    color: var(--primary-color);
}

.pt-1 {
    padding-top: 1em;
}

.w-25 {
    width: 25% !important;
}

.w-50 {
    width: 50% !important;
}

.w-75 {
    width: 75% !important;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fade-out {
    opacity: 1;
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.slide-left {
    transform: translateX(-100%);
    animation: slideLeft 1s forwards;
}

@keyframes slideLeft {
    to {
        transform: translateX(0);
    }
}
