* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Ysabeau Infant';
    src: url('../fonts/YsabeauInfant-Medium.ttf') format('truetype');
    font-weight: medium;
}

@font-face {
    font-family: 'Ysabeau Infant';
    src: url('../fonts/YsabeauInfant-Bold.ttf') format('truetype');
    font-weight: bold;
}

body {
    padding: 0;
    margin: 0;
    background-color: #04232F;
    color: #fff;
    font-family: 'Ysabeau Infant', sans-serif;
    line-height: 1.5;
}

a {
    color: #dbe1e4;
    text-decoration: none;
    transition: color 0.3s ease-out;
}

a:hover {
    color: #96a1a5;
    transition: color 0.3s ease-in;
}

.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
}

.main {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100vw;
}

.header-content {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 2rem;
    font-size: 1.2em;
}

ul {
    padding: 0;
    margin: 0;
}

nav ul {
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul li {
    list-style: none;
}

nav ul li + li {
    margin-left: 1.5rem;
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
    }
}

.content {
    height: 100%;
    width: 100%;
    opacity: 0.5;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease-out;
    scroll-snap-align: start;
    font-size: min(2vh, 1.5vw);
}

#footer {
    scroll-snap-align: end;
}

#home {
    background-image: url('../images/home_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.logo-container {
    padding: 0 2rem 2rem 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.logo {
    width: 75%;
}

@media (max-width: 768px) {
    #home {
        background-size: 150%;
        background-position: top;
    }

    .logo {
        width: 100%;
    }

    .logo-container {
        padding: 0 2rem 0 2rem;
    }
}

@media (max-width: 1024px) {
    #home {
        background-size: 150%;
        background-position: top;
        height: 70vh;
    }
}

#about {
    background-image: url('../images/about_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
    font-size: 1em;
}

#contact {
    background-image: url('../images/contact_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
}

.active {
    opacity: 1;
    transition: opacity 0.5s ease-out;
    backdrop-filter: blur(0px);
}

.container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 3.5rem 2rem;
}

.container .flex-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.flex-wrapper.flex-start {
    align-items: flex-start;
}

.flex-wrapper.flex-end {
    align-items: flex-end;
}

#contact .flex-wrapper {
    height: auto;
}
    
.container .flex-wrapper .section-content {
    flex: 1;
    width: 50%;
    background-color: rgba(27, 65, 79, 0.75);
    border-radius: 25px;
    padding: 20px 20px 30px 20px;
}

.section-title h2 {
    margin: 0;
}

.mobile {
    display: none;
}

@media (max-width: 768px) {
    .desktop {
        display: none;
    }

    .mobile {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .mobile.logo-container {
        height: auto;
    }

    .content {
        font-size: max(1.6vh, 1.5vw);
    }

    .container {
        flex-direction: column;
        height: auto;
        padding: 4rem 1rem 1rem 1rem;
    }

    .container.mobile {
        height: 100%;
    }

    .container .flex-wrapper .section-content {
        width: 100%;
        height: auto;
    }

    .section-title {
        font-size: 1em;
    }

    .section-title h2 {
        margin-top: 0.75em;
        margin-bottom: 1em;
    }
}

form {
    font-size: 1em;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1em;
}

form input, form textarea {
    border: none;
    padding: 10px;
    margin-bottom: 2em;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
}

form label {
    font-size: 1.25em;
}

form button {
    background-color: #397A82;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Ysabeau Infant', sans-serif;
    font-size: 1.2em;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease-in;
}

form button:hover {
    background-color: #547d83;
    transition: background-color 0.3s ease-in;
}

@media (max-width: 500px) {
    form {
        font-size: 1em;
    }
}

.hidden {
    display: none;
}

.footer {
    background-color: #080d0e;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
}

.footer a {
    color: #afbdc2;
    text-decoration: none;
    transition: color 0.3s ease-out;
}

.footer a:hover {
    color: #41626e;
    transition: color 0.3s ease-in;
    text-decoration: underline;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 25px;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .footer-content {
        align-items: flex-start;
    }
}

.footer-content p {
    margin: 0;
}