html {
    position: fixed;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    /* font-family: "Big Shoulders Display", serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal; */
    font-family: "Oranienbaum", serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #e0e0e0;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

a {
    color: #e0e0e0;
    text-decoration: none;
}

a:hover {
    color: #afcafc
}

.container {
    width: 100vw;
    margin: 0 auto;
    padding: 20px;
    padding-left: 20%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.nav-container {
    width: 100vw;
    margin: 0 auto;
    padding: 20px;
    height: 100px;
    bottom: 0;
    position: fixed;
    z-index: 2;
}

h1 {
    color: #ffffff;
}

.centered-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    padding: 5px;
    animation: shrinkPadding 5s cubic-bezier(0, 0, 0, 1) forwards;
}

@media screen and (max-width: 550px) {
    .centered-logo {
        max-width: 200px;
    }
}

.nav-logo {
    max-width: 100px;
    width: 100%;
    height: auto;
    padding: 5px;
}

@keyframes shrinkPadding {
    0% {
        padding: 105px;
    }
    100% {
        padding: 5px;
    }
}


.flipped {
    transform: scaleY(-1);
    filter: blur(4px);
}

.nav-flipped {
    transform: scaleY(-1);
    filter: blur(1px);
}

.gradient-wrapper {
    position: relative;
}

.gradient-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 1) 100%);
    pointer-events: none;
    margin: 0 -10px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    animation: fadeOut 3s ease-in forwards;
    pointer-events: none;
    z-index: 9999;
}

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

.horizontal-line {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 32px);
    height: 0.5px;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: -1;
}

@media screen and (max-width: 550px) {
    .horizontal-line {
        top: calc(50% - 16px);
    }
}

.menu {
    position: absolute;
    bottom: 93px;
    right: 25px;
    width: 100vw;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 400;
    font-style: normal;
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 1);
    z-index: 2;
}

@media screen and (max-width: 550px) {
    .menu {
        font-size: 0.9rem
    }
}

.nav-horizontal-line {
    position: fixed;
    bottom: 0;
    height: 93px;
    background-color: black;
    width: 100vw;
    border-top: 0.5px solid rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 93px);
    background-image: url('chateau-sky.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    animation: zoomBackground 30s ease-in-out forwards;
    transform-origin: center;
}

@keyframes zoomBackground {
    0% {
        transform: scale(1.6);
    }
    100% {
        transform: scale(1);
    }
}

.contact-background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 93px);
    background-image: url('contact-blueprint.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: brightness(50%);
    z-index: -1;
    animation: zoomContactBackground 15s ease-in-out forwards;
    transform-origin: center;
}

@keyframes zoomContactBackground {
    0% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 93px);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.5) 80%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 0;
    pointer-events: none;
}

@keyframes zoomText {
    0% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.centered-header {
    position: absolute;
    top: calc(50% - 70px);
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: "Oranienbaum", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem;
    text-align: center;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 1);
    animation: zoomText 30s ease-in-out forwards;
}

.contact-page .centered-header {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    height: calc(100vh - 93px);
    width: 100%;
    position: fixed;
    z-index: -1;
}

@media screen and (max-width: 550px) and (min-height: 326px) {
    .project-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        height: calc(100vh - 93px - 4.7rem);
    }
}

.project-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomProjectImage 15s ease-in-out forwards;
    transform-origin: center;
}

@keyframes zoomProjectImage {
    0% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.copyright-symbol {
    font-size: 1.2em;
}

.footer {
    font-family: "Big Shoulders Display", serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    position: fixed;
    bottom: 0;
    left: 0;
    width: calc(100% - 40px);
    height: 40px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    white-space: nowrap;
}

.footer-left {
    text-align: left;
    min-width: 0;
    padding-bottom: 3px;
    opacity: 0.5;
}

.footer-right {
    text-align: right;
    float: right;
}

.fade-container {
    position: relative;
}

.wave-text {
    display: inline-block;
    color: inherit;
}

.wave-text .letter:nth-child(-n+2) {
    display: inline-block;
    transform: translateY(0);
    color: #ff007e;
}

.wave-text .letter:nth-child(n+3):nth-child(-n+6) {
    display: inline-block;
    transform: translateY(0);
    color: #bfbfbf;
}

.wave-text .letter:nth-child(n+7):nth-child(-n+13) {
    display: inline-block;
    transform: translateY(0);
    color: #ffffff;
}

.wave-text .letter:nth-child(n+14):nth-child(-n+16) {
    display: inline-block;
    transform: translateY(0);
    color: #ff007e;
}

.wave-text:hover .letter {
    animation: wave 0.2s ease-out;
    animation-play-state: paused;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

.wave-text:hover .letter:nth-child(1) { animation-delay: 0.0s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(2) { animation-delay: 0.05s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(3) { animation-delay: 0.10s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(4) { animation-delay: 0.15s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(5) { animation-delay: 0.20s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(6) { animation-delay: 0.25s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(7) { animation-delay: 0.30s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(8) { animation-delay: 0.35s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(9) { animation-delay: 0.40s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(10) { animation-delay: 0.45s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(11) { animation-delay: 0.50s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(12) { animation-delay: 0.55s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(13) { animation-delay: 0.60s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(14) { animation-delay: 0.65s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(15) { animation-delay: 0.70s; animation-play-state: running; }
.wave-text:hover .letter:nth-child(16) { animation-delay: 0.75s; animation-play-state: running; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: calc(100vh - 93px - 4.7rem);
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
}

.contact-column {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.contact-column p {
    margin: 0.5rem 0;
    font-family: 'Oranienbaum', serif;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}