:root {
    --bg: #000;
    --fg: #fff;
}

@font-face {
    font-family: 'Parsley';
    src: url('fonts/Parsley.ttf') format('truetype');
    font-weight: 68;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plex';
    src: url('fonts/Plex.ttf') format('truetype');
    font-weight: 250;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Angelwish';
    src: url('fonts/Angelwish.ttf') format('truetype');
    font-weight: 250;
    font-style: normal;
    font-display: swap;
}

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
}

h2, h3 {
    color: cadetblue;
    font-size: 35px;
    font-weight: 7000;
    font-family: 'Parsley', sans-serif;
    
}

p {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Plex', sans-serif;

}

a {
    color: inherit;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

/* -------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------- */

.header-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

#headerVideo {
    content: url("videos/previews/Header_Loop.mp4");
}

.header-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.header-dimmer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.95) 10%,
        rgba(0,0,0,0.9) 25%,
        rgba(0,0,0,0.85) 50%,
        rgba(0,0,0,0.7) 75%,
        rgba(0,0,0,0.5) 90%,
        rgba(0,0,0,0) 100%
    );
    opacity: 0;
    transition: opacity 0.12s linear;
}

/* -------------------------------------------------- */
/* SIDE BUTTONS & MENU */
/* -------------------------------------------------- */

#sideButtons {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-end;
    padding-right: 40px;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    z-index: 99;
}

#sideButtons a {
    font-size: 1.5rem;
    font-family: 'Parsley', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

#sideButtons a:hover {
    color: red;
}

#menuToggle {
    position: fixed;
    top: 20px;
    right: 40px;
    font-family: 'Parsley', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: red;
    cursor: pointer;
    z-index: 100;
    user-select: none;
    padding: 10px 20px;
}

#homeButton {
    position: fixed;
    top: 20px;
    left: 20px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 2rem;
    font-family: 'Parsley', sans-serif;
    font-weight: 600;
    color: red;
    cursor: pointer;
    z-index: 120;
    padding: 10px 6px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#homeButton:hover {
    opacity: 0.7;
    transform: translateY(3px);
}

/* -------------------------------------------------- */
/* SCROLL OVERLAY (ARROWS + TEXT) */
/* -------------------------------------------------- */

.scroll-overlay {
    position: absolute;
    top: 80%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.25s ease;
}

.center-text {
    font-size: 1.9rem;
    font-weight: 700;
    font-family: 'Parsley', sans-serif;
    letter-spacing: 6px;
    text-shadow: 0 6px 20px rgba(0,0,0,0.9);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.arrow {
    font-size: 3rem;
    text-shadow: 0 6px 20px rgba(0,0,0,0.9);
    transition: opacity 0.25s ease, transform 0.3s ease;
}

/* -------------------------------------------------- */
/* MAIN CONTENT & SECTIONS */
/* -------------------------------------------------- */

main {
    position: relative;
    z-index: 50;
    background: #000;
    padding-top: 0;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(0, 1200px) minmax(250px, 1fr);
    gap: 20px;
    align-items: start;
    justify-items: center;
}


.split-wrapper {
    display: flex;
    justify-content: center;
    max-width: 1170px;  /* oder 1100 – du bestimmst */
    margin: 0 auto;     /* ZENTRIERT */
}

.split-left, 
.split-right {
    width: 100%;  /* sorgt für gleiche Breite */
}

.split-left { 
    text-align: left; 
}

.split-right { 
    text-align: right; 
}


.split-center .preview-video {
    width: 100%;
    cursor: pointer;
    justify-content: start
}

.split-mini-video {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.split-mini-video:hover {
    opacity: 1;
}

/* -------------------------------------------------- */
/* CONTACT VIDEO */
/* -------------------------------------------------- */

.character {
    position: relative;
    width: 250px;      /* anpassen */
    height: 250px;     /* anpassen */
}

.character video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.25s linear;
}

#standVid { opacity: 1; }
#waveVid  { opacity: 0; }

/* -------------------------------------------------- */
/* SHOWREEL */
/* -------------------------------------------------- */

/* Vimeo Overlay */
#vimeoContainer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#vimeoPlayer {
    width: 85%;
    height: 81%;
    border: none;
}

#closeVimeo {
    position: absolute;
    top: 12px;
    right: center;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
}


.section-transition {
    text-align: justify;       /* makes both edges aligned */
    padding: 80px 20px; /* vertikal + mobile safe */
    justify-content: center;
    opacity: 60%
}

.section-transition p {
    font-size: 3rem;
    max-width: 1200px; 
    width: 100%;
    margin: 0 auto;
    font-family: 'Parsley', sans-serif;
    font-weight: 5500;
    color: cadetblue;
    letter-spacing: 0.04em;
    text-align: center;       /* ensure paragraph is justified */
    text-justify: inter-word;  /* spreads out words evenly */
}


/* -------------------------------------------------- */
/* CGI, FILM, CONTACT */
/* -------------------------------------------------- */

.two-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 280px;
    margin: 0 auto;
    margin-bottom: 80px;
    justify-content: center;
    align-items: center;
    max-width: fit-content
    
}

.hover-box {
    position: relative;
    display: flex;
    flex-direction: column; /* Text oben, Viewer unten */
    align-items: center;    /* zentriert horizontal */
    width: 100%;
    height: 230px;
    max-width: 230px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    margin: 0 auto;
    

    /* Start viel höher → kommen früher rein */
    transform: translateY(220px) scale(0.9);
    opacity: 0;

    transition: 
        transform 0.7s cubic-bezier(.18,.89,.32,1.28),
        opacity 0.6s ease-out;

    will-change: transform, opacity;
}

.hover-box model-viewer {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-link {
    font-family: 'Parsley', sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 1.5rem;
    color: cadetblue;
    text-decoration: none;
    transition: color 0.2s ease;
    text-align: center; /* zentriert */
}

.box-link:hover {
    color: white;
}

/* -------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------- */

.site-footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-name {
    font-size: 1rem;
    font-family: 'Parsley', sans-serif;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.footer-links {
    font-size: 0.6rem;
    margin: 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Hochkant-Smartphones (Portrait) */
@media (orientation: portrait) {
    
    #homeButton {
        display: none !important;
    }
    
    #menuToggle {
    top: 14px;
    right: 20px;
    font-size: 1.4rem;
    padding: 6px 12px;
    }
    
    #sideButtons {
    padding-right: 20px;
    justify-content: center;          /* nice vertical alignment */
    gap: 20px;                        /* controls spacing between links */
    }
    
    /* Menu link text size smaller */
    #sideButtons a {
        font-size: 1.6rem;
        letter-spacing: 1px;
        font-weight: 600;
    }

    /* Reduce hover intensity for mobile */
    #sideButtons a:hover {
        color: #ff4444;
    }
    
    
    #headerVideo {
        content: url("videos/previews/Header_Loop_Phone.mp4");
    }
    
    /* Videos nur skalieren, nicht Desktop-Layout ändern */
    .split-section {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        padding: 10px 20px !important;
    }

    /* Texte zentrieren */
    .split-left {
        text-align: left;
    }

    .split-center,
    
    .split-right {
        text-align: right;
    }

    .section-transition p {
        font-size: 2rem; /* vorher 3rem, jetzt kleiner */
    }
    
    /* Videos kleiner */
  
    .split-mini-video {
        width: 200px !important;
        max-width: 30% !important;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    /* Scroll-Arrows kleiner */
    .scroll-overlay {
        gap: 20px;        /* enger packen */
    }

    .scroll-overlay .arrow {
        font-size: 1.5rem; 
    }

    .scroll-overlay .center-text {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    /* Character Animations zentrieren, ohne Grid zu ändern */
    .character {
        margin-left: auto;
        margin-right: auto;
        width: 150px;   /* kleiner */
        height: 150px;
    }

    .character video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    
   /* Film & CGI side by side, Contact below */
.two-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr); /* two columns for the first row */
    grid-template-rows: auto auto;          /* two rows */
    gap: 50px !important;                  /* spacing between boxes */
    grid-template-areas: 
        "film cgi"
        "contact contact";
    max-width: 100% !important;
}

/* Assign each box to the correct area */
.two-grid .hover-box:nth-child(1) { grid-area: film; }
.two-grid .hover-box:nth-child(2) { grid-area: cgi; }
.two-grid .hover-box:nth-child(3) { grid-area: contact; }

}



