@import "_reset.css";

/* === FONT DECLARATIONS === */
@font-face {
    font-family: 'euclid-medium';
    src: url(../fonts/Euclid/EuclidCircularA-Medium.otf) format('truetype');
}

@font-face {
    font-family: 'euclid-light';
    src: url(../fonts/Euclid/EuclidCircularA-Light.otf) format('truetype');
}

@font-face {
    font-family: 'baskerville-medium';
    src: url(../fonts/BaskervilleBT.otf) format('truetype');
}

@font-face {
    font-family: 'baskerville-bold';
    src: url(../fonts/LibreBaskerville-Bold.ttf) format('truetype');
}

/* === BASE STYLES === */
html,
body {
    font-size: 10px;
    max-width: 100%;
    max-height: 100%;
    cursor: url("cursor.png") 0 0, auto !important;

    
}

@media screen and (min-width: 1920px) {
    html {
        font-size: 0.5208333333vw;
    }
}

@media screen and (min-width: 2560px) {
    html {
        font-size: 13.3333333px;
    }
}

body {
    font-size: 2.4rem;
    line-height: 1.1;
    padding: 0;
    color: white;
    background-color: rgb(0, 0, 0);
    font-family: "euclid-medium", sans-serif;
    overflow: hidden;
    position: relative;
}

main {
    width: 100%;
    height: 100vh;
    display: flex;
}

/* === LOADER === */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background: rgb(255, 255, 255);
}

#loader img {
    width: 55%;
    height: 55%;
    object-fit: cover;
}

#main-content {
    opacity: 0;
    transition: opacity 1s ease;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* === LANDING PAGE === */
.landing {
    position: relative;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    /*padding: 20px; - Remove padding for subpages */
}

.landing h1 {
    color: white;
    font-size: 5rem;
    text-align: center;
    margin-top: 40vh;
}

/* === UNIVERSAL LOGO STYLES === */
.logo {
    color: white;
    font-size: 2.5rem;
    letter-spacing: 1px;
    opacity: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo.hidden {
    opacity: 0;
}

/* === UNIVERSAL SECTION STYLES === */
section {
    position: relative;
    display: none; /* CRITICAL: All sections hidden by default */
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

section.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Logo positioning for all sections */
section .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    z-index: 101;
    color: white;
    opacity: 1;
    visibility: visible;
    text-decoration: none;
    font-size: 2.5rem;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
}

/* === MIDSECTION === */
section.midsection.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

section.midsection.active .logo {
    transform: none;
    position: static;
    font-size: 3.8rem;
}

.home-navigation {
    position: relative;
    z-index: 10;
}

section.midsection .home-navigation {
    position: relative;
    z-index: 101;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5%;
    padding-right: 5%;
    width: 100%;
    transition: opacity .4s, visibility .4s;
}

section.midsection.portrait-visible .home-navigation {
    opacity: 0;
}

section.midsection.portrait-visible .fade-in-portrait {
    opacity: 1;
    visibility: visible;
}

.fade-in-portrait {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 5;
    transition: opacity .5s, visibility .5s;
}

/* === SECTION TITLES === */
.section-title {
    font-size: 2rem;
    letter-spacing: 0.8px;
    width: 12.5rem;
    text-align: center;
    cursor: pointer;
}

.section-title-about {
    text-align: left;
}

.section-title-collaborations {
    text-align: right;
    font-family: "euclid-medium", sans-serif;
}

/* === ABOUT SECTION === */
section.about {
    /* background-color: rgb(0, 0, 0); */
    color: rgb(255, 255, 255);
}

section.about .text-overlay {
    position: relative;
    z-index: 10;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
}

section.about p {
    font-size: 1.8rem;
    line-height: 4;
    font-family: "Baskerville-medium";
}

section.about .contact {
    line-height: 1.2;
    max-width: 800px;
    text-align: center;
}

/* === WORKS SECTION === */
section.works {
    background-color: rgb(0, 0, 0);


}

/* === COLLABORATIONS SECTION === */
section.collaborations {
    /* background-color: rgb(0, 0, 0); */
    color: white;
    display: none;
}

section.collaborations.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

section.collaborations .text-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

section.collaborations .collaborations-content {
    text-align: center;
    width: 100%;
}

section.collaborations .collaborations-title {
    color: white;
    font-size: 2.4rem;
    /* font-family: "euclid-medium", sans-serif; */
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

section.collaborations .collaborations-list {
    list-style: none;
    font-family: "baskerville-medium";
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

section.collaborations .collaborations-list li {
    color: white;
    font-size: 1.6rem;
    /* font-family: "euclid-light", sans-serif; */
    line-height: 0.2;
    text-align: center;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

section.collaborations .collaborations-list li:hover {
    opacity: 1;
}

/* === CONTACT SECTION === */
section.contact {
    /* background-color: rgb(0, 0, 0); */
}

.contact {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-adress {
    top: calc(50vh - 2em);
    color: white;
    padding-left: 8em;
    padding-right: 8em;
    padding-top: 3em;
}

.contact-text {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.contact-text p {
    padding-left: 3em;
    padding-right: 3em;
    font-size: 1.8rem;
    line-height: 3.3;
    /* font-family: "euclid-medium", sans-serif; */
    font-family: "baskerville-medium";


}

/* === SWIPER STYLES === */
.swiper {
    width: 100%;
    height: 100%;
    opacity: 1;
    padding: 1.2rem;
}

section.works .swiper {
    padding-top: 4.5rem;
}

.swiper-pagination {
    width: auto !important;
    position: absolute;
    top: 1.2rem !important;
    left: 2.4rem !important;
    right: 2.4rem !important;
    bottom: auto !important;
    color: rgb(255, 255, 255);
    text-align: left;
    font-size: 1.2rem;
    transform: none !important;
    display: flex;
    justify-content: space-between;
}

.swiper-pagination .swiper-pagination-bullet {
    background: transparent;
    width: auto;
    height: auto;
    opacity: .5;
    margin: 0 !important;
}

.swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-slide {
    display: flex;
    position: relative;
    text-align: center;
    width: auto;
    font-size: 1.6rem;
}

.swiper-slide .element-container {
    position: relative;
}

.swiper-slide .element-container~* {
    margin-left: 1.2rem;
}

.swiper-slide img {
    width: auto;
    height: 100%;
    display: block;
}

picture {
    display: block;
    height: 100%;
}

.video {
    width: auto;
    height: 100%;
}

.swiper-slide .text {
    position: absolute;
    bottom: 0em;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: left;
    text-align: left;
    color: white;
    transition: transform .5s, opacity .5s;
    padding: 1.2rem;
}

.title {
    color: rgb(255, 255, 255);
    font-size: 4rem;
    text-align: left;
    padding-bottom: 0.5em;
    font-family: "baskerville-bold";
}

.project-description {
    color: rgb(255, 255, 255);
    font-size: 1.5rem;
    box-sizing: border-box;
}

.text-feld {
    width: 40rem;
    height: 100%;
    background-color: rgb(0, 0, 0);
}

header {
    position: fixed;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.swiper-slide .text .project-information {
    color: rgb(255, 255, 255);
    /* font-family: "euclid-light", sans-serif; */
    font-family: "Baskerville-medium";
    font-size: 1.4rem;
    /* letter-spacing: 0.2px; */
}

/* === FORM ELEMENTS === */
a {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

button,
[type="workbutton"],
[type="contactbutton"] {
    -webkit-appearance: button;
    font-family: "euclid-medium";
    color: rgb(38, 34, 29);
    padding: 0;
    border: none;
    background: 0;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 850px) {
    .section-title {
        width: auto;
        text-align: center;
    }

    section.midsection.active {
        display: flex;
        align-items: stretch;
    }

    section.midsection .home-navigation {
        flex-direction: column;
        justify-content: space-between;
        padding-top: 15vh;
        padding-bottom: 15vh;
    }

    .logo-container {
        flex-grow: 1;
        display: flex;
        align-items: center;
    }

    .section-title-about {
        margin-bottom: 5px;
    }

    .section-title-collaborations {
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    section {
        overflow: hidden;
    }

    .logo {
        font-size: 2rem;
    }

    section.midsection.active .logo {
        font-size: 3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .swiper-pagination {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 1.2rem !important;
        background-color: rgb(0, 0, 0); /* Zahlen oben Kopfleiste */
        font-size: 1.5rem;
        justify-content: center;
        font-family: "baskerville-bold";
        display: flex;
        justify-content: space-between; /* gleichmäßige Verteilung */
    }

    .swiper-pagination .swiper-pagination-bullet+.swiper-pagination-bullet {
        margin-left: 1rem !important;
    }

    .swiper-slide video,
    .swiper-slide img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .swiper-slide {
        display: block;
        padding-bottom: 15px;
    }

    .swiper-slide .text {
        margin-left: 0em;
        position: static !important;
        padding: 0;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    picture {
        height: auto;
        width: 100%;
    }

    .video {
        width: 100%;
        height: auto;
    }

    .project-description {
        font-size: 1.6rem;
        padding-left: 0em;
    }

    .title {
        font-size: 2.4rem;
        padding-bottom: 0.3em;
        padding-left: 0;
    }

    .swiper-slide {
        width: 100%;
        height: auto;
    }

    .swiper-slide .element-container~* {
        margin-left: 0;
        margin-top: 1.2rem;
    }

    .contact-text p {
        padding: 2rem;
        line-height: 1rem;
        color: rgb(255, 255, 255);
        font-size: 1.5rem;
    }

    section.about p {
    font-size: 1.5rem;
    line-height: 1.2;
    font-family: "Baskerville-medium";
    }

    section.about .contact {
    line-height: 1.2;
    max-width: 800px;
    text-align: center;
}

    

    body {
        overflow: scroll;
        height: 100%;
    }

    .contact-adress {
        padding: 0em;
        line-height: 1em;
        padding-bottom: 8em;
        padding-top: 8em;
        font-family: "euclid-medium", sans-serif;
    }

    .text-feld {
        display: none;
    }

    .logo {
        transition: opacity .2s;
    }

    .swiper-contact {
        height: 100%;
    }

    section.contact {
        font-size: 1rem;
        margin-bottom: 1rem;    
        line-height: 1rem;    
    }

    /* Mobile collaborations */
    section.collaborations .text-overlay {
        padding: 2rem 1rem;
        max-width: 90%;
    }
    
    section.collaborations .collaborations-title {
        font-size: 2rem;
        margin-bottom: 2rem;        
    }
    
    section.collaborations .collaborations-list {
        gap: 1rem;
    }
    
    section.collaborations .collaborations-list li {
        font-size: 1.4rem;
        line-height: 0.5;
    }
}

@media (orientation: portrait) {
    .swiper-slide .text {
        background-color: rgb(0, 0, 0);
    }
}