:root {
    --bg: #000;
    --text: #fff;
    --gray: #666;
    --accent: #00bbff;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    cursor: none;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Roboto Mono', monospace;
    overflow: hidden;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 30px 40px;
}

footer {
    display: none !important; 
}

.back-link {
    color: var(--text);
    text-decoration: none;
    font-size: 22px;
    display: flex;
    gap: 5px;
}

.back-link__text {
    border-bottom: 1px solid var(--text);
}

.auto-scroll-layout {
    display: flex;
    width: 100%;
    height: 100vh;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.project-sidebar {
    flex: 0 0 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    background: var(--bg);
}

.project-title {
    font-size: clamp(48px, 6vw, 90px);
    margin: 0;
    font-weight: 400;
    letter-spacing: -3px;
}

.project-subtitle {
    font-size: 20px;
    color: var(--gray);
    margin: 10px 0 40px 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
}

.input-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent) !important;
}

.submit-btn {
    margin-top: 10px;
    background: #fff;
    color: #000;
    border: none;
    padding: 18px 30px;
    border-radius: 100px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, background 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.submit-btn:hover {
    background: var(--accent);
}

.project-gallery {
    flex: 1;
    margin-left: 100px;
    position: relative;
    will-change: transform;
}

.gallery-set {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 30px 0;
}

.parallax-frame {
    margin: 0;
    width: 100%;
    height: 75vh;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background: #000;
    flex-shrink: 0;
}

.parallax-img {
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 160%;
    object-fit: cover;
    will-change: transform;
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .project-gallery, #infinite-gallery {
        display: none !important;
    }

    :root {
        font-size: 10px;
        --delay: .75s;
        --timing: 1.5s;
    }

    body {
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #000;
        cursor: auto !important;
    }

    .auto-scroll-layout, .container {
        height: 100vh;
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .box-outer {
        overflow: hidden;
        margin: 0 auto;
        /*width: 40rem;*/
        width: clamp(20rem, 90vw, 40rem);
        height: 50rem;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main_box {
        width: 40rem;
        height: 50rem;
        position: relative;
        background: #000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 3rem;
    }

    .bar {
        position: absolute;
        width: 8rem;
        height: 0.5rem;
        background: #fff;
        z-index: 5;
        animation-duration: var(--timing);
        animation-fill-mode: both;
        animation-iteration-count: infinite;
    }

    .bar.delay {
        animation-delay: var(--delay);
    }

    .top {
        top: 0;
        left: -0.5rem;
        animation-name: h-move;
        translate: -8rem 0;
    }

    .bottom {
        bottom: 0;
        left: -0.5rem;
        animation-name: h-move;
        translate: -8rem 0;
    }

    .right {
        top: 1.8rem;
        right: -3.8rem;
        transform: rotate(90deg);
        animation-name: v-move;
        translate: 0 -3.8rem;
    }
    .left {
        top: 1.8rem;
        left: -3.8rem;
        transform: rotate(90deg);
        animation-name: v-move;
        translate: 0 -3.8rem;
    }

    @keyframes h-move {
        0% { left: 0rem; }
        100% { left: 48rem; }
        /*100% { left: 40rem; }*/
    }

    @keyframes v-move {
        0% { top: -0.5rem; }
        100% { top: 60rem; }
        /*100% { top: 52.8rem; }*/
    }

    .project-sidebar {
        flex: none;
        width: auto;
    }
    .project-title {
        /* font-size: 3.5rem; */
        margin-bottom: 1rem;
    }
    .project-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    .contact-form {
        width: 100%;
    }
}