
@font-face {
    font-family: 'OT Miniature';
    src: url('fonts/OTMiniature-LightItalic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

#bgCanvas {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: -1;
    mix-blend-mode: multiply;
    cursor: default;
}

#themeSelector-container {
    position: fixed;
    bottom: 90px;
    right: 40px;
    z-index: 1000;
}

body {
    background: white;
    margin: 0;
}

.info-panel {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10;
    left: 100%;
}

#aboutPanel .close-arrow, #contactPanel .close-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 101;
}

#worksPanel .close-arrow {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 101;
    opacity: 0;
    transition: none;
}

.sub-panel {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #191919;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

#contactPanel .close-arrow {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%) rotate(180deg);
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s;
}

#worksCloseArrow, .subPanelCloseArrow {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    width: 60px;
    height: 60px;
    z-index: 101;
    opacity: 0;
    transition: none;
}

.subPanelCloseArrow {
    filter: brightness(0) invert(1);
}

#aboutCloseArrow {
    right: 30px;
}

#contactCloseArrow {
    left: 30px;
    transform: translateY(-50%) rotate(180deg);
}

#aboutPanel .panel-content {
    position: relative;
    padding: 0;
    margin: 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

.ascii-text-container {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 40px;
    margin: auto 0;
    padding-left: 5vw;
}

.ascii-text-container {
    z-index: 10;
}

#ascii-wrapper {
    position: relative;
    width: 25rem;
}

#ascii-art-container {
    position: relative;
    width: 23.5rem;
    height: 28rem;
}

#ascii-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#profile-pic, #piano-pic, #theatre-pic {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 20;
}

#profile-pic {
    height: 100%;
    top: 0;
}

#piano-pic {
    height: 50%;
    top: 0;
}

#theatre-pic {
    height: 50%;
    top: 50%;
}

#ldm-pic {
    position: absolute;
    width: 300px;
    z-index: 30;
    top: 9rem;
    right: 15rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#uc-pic {
    position: absolute;
    width: 500px;
    z-index: 30;
    top: 9rem;
    left: 35rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#hobbies-pic {
    position: absolute;
    width: 700px;
    z-index: 30;
    top: 9rem;
    left: 32rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#requiem-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: normal !important;
    will-change: opacity;
    transform: translateZ(0);
}

#ascii-wrapper a {
    display: inline-block;
    margin-top: 1rem;
    font-family: "PP Editorial Old";
    font-size: 0.9rem;
    text-decoration: underline;
    color: black;
}

#ascii-art {
    display: block;
    width: 15vw;
    white-space: pre;
    margin: 0;
    padding: 0;
    position: relative;
}

.about-text {
    max-width: 700px;
}

.about-text p {
    font-family: 'PPEditorialOld-Regular';
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

#worksPanel {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    box-sizing: border-box;
}

.work-container {
    display: flex;
    flex-direction: column;
}

.work-item {
    width: 100%;
    box-sizing: border-box;
    padding: 2rem;
    transition: transform 0.3s ease;
    position: relative;
    height: 15em;
    overflow: hidden;
    pointer-events: auto;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-item h1 {
    display: block;
    font-family: "OT Miniature", serif !important;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-decoration: none;
    color: black;
    pointer-events: none;
}

.work-item p, #copyFeedback {
    font-size: 1.1rem;
    color: black;
    margin: 0;
    font-family: "PP Editorial Old";
    pointer-events: none;
}

#portfolio, #website, #requiem, #come_closer, #raven, #afterhim-web, #illustrations {
    height: 15em;
    position: relative;
    overflow: hidden;
}

#portfolio-video, #website-video, #requiem-videobanner, #closer-video, #raven-video, #after-him-video, #illustrations-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    mix-blend-mode: normal !important;
    will-change: opacity;
    transform: translateZ(0);
    display: none;
}

#portfolio h1,
#portfolio p {
    position: relative;
    z-index: 1;
}

#website h1,
#website p {
    position: relative;
    z-index: 1;
}

#requiem h1,
#requiem p {
    position: relative;
    z-index: 1;
}

#come_closer h1,
#come_closer p {
    position: relative;
    z-index: 1;
}

#raven h1,
#raven p {
    position: relative;
    z-index: 1;
}

#afterhim-web h1,
#afterhim-web p {
    position: relative;
    z-index: 1;
}

#illustrations h1,
#illustrations p {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .ascii-text-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-left: 2rem;
    }

    #ascii-art {
        font-size: 3px;
        line-height: 3px;
    }

    .about-text {
        max-width: 100%;
        padding-right: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }
}


#aboutPanel .panel-content {
    position: relative;
    width: 100%;
    height: 100%;
    /* REMOVE grid layout if not needed */
    display: block;
}

.grid-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-section img {
    width: 30vh;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.grid-section img:hover {
    transform: scale(1.1);
}

#contactPanel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10;
}

.contact-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
    margin: auto 0;
    padding-right: 5vw;
    justify-content: flex-end;
}

.contact-grid-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-grid-section img {
    width: 10vw;
    height: 10vw;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.contact-grid-section img:hover {
    transform: scale(1.1);
}

#copyFeedback {
    font-family: 'PPEditorialOld-Regular';
    font-size: 1rem;
    color: black;
    margin-top: 0.5rem;
}

#contactCloseArrow {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%) rotate(180deg);
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 101;
}

@media (max-width: 768px) {
    .contact-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        padding-right: 2rem;
        gap: 20px;
    }

    .contact-grid-section img {
        width: 80px;
        height: 80px;
    }

    .contact-grid-section p {
        font-size: 1rem;
    }
}