body {
    overflow: hidden;
}

a:link{
    color: #fff;
}

a:hover{
    color: #ffaeae;
}

a:visited{
    color: #ffaeae;
}

d{
    color: #cfa2ff;
}

b{
    color: #5effff;
    font-size: 2rem;
}

c{
    color: #7fffb8;
}

.slide {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.wrap {
    position: absolute;
    display: flex;
    flex-direction: row;
    width: 500vw;
    transform: rotate(90deg) translateY(-100vh);
    transform-origin: top left;
}

.line{
    background-color: #bc68ec;
    height:2px;
    width: 100%;
    margin-bottom: 3%;
    margin-top: 2%;
    filter: blur(1px);
}

.gap{
    background-color: #33ebdc00;
    height:1px;
    width: 100%;
    margin-bottom: 5%;
    filter: blur(1px);
}

.one {
    background-image: url("assets/img/purple.png");
    background-repeat: repeat;
    background-size: cover;
    text-align: center;
}
.two {
    background-image: url("assets/img/blue.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.three {
    background-image: url("assets/img/green.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.four {
    background-image: url("assets/img/yellow.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.five {
    background-image: url("assets/img/red.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.outer-wrap {
    width: 100vh;
    height: 100vw;
    transform: rotate(-90deg) translateX(-100vh);
    transform-origin: top left;
    overflow-y: scroll;
    overflow-x: hidden;
    position: absolute;
}

.absolute {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 50vh;
}

.sticky {
    position: sticky;
    z-index: 5;
    left: 0;
    top: 0;
    width: 0;
}

.dog {
    position: absolute;
    z-index: 5;
    transform: rotate(90deg) translateY(-50%);
    transform-origin: top left;
    height: 40vh;
}

.slide-header {
    position: absolute;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'TitleFont', serif;
    font-size: clamp(1.6rem, 3vh, 2.6rem);
    font-weight: bold;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,0.7);
    white-space: nowrap;
    z-index: 6;
}

.slide-box {
    position: absolute;
    left: 20vw;
    right: 20vw;
    top: 18vh;
    bottom: 10vh;
    background: rgba(0,0,0,0.40);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    padding: 1.6rem 2rem;
    color: #fff;
    font-family: 'main', monospace, sans-serif;
    font-size: clamp(1.5rem, 1.2vw, 0.95rem);
    line-height: 1.75;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
    z-index: 4;
    overflow-y: auto;
    box-sizing: border-box;
}

.slide-box p { margin: 0 0 0.5rem; }

.slide-box span {
    opacity: 0.55;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    margin-right: 0.4rem;
}

.one .slide-header  { color: #e8d0ff; }
.one .slide-box     { border-color: rgba(183,157,255,0.4); }

.two .slide-header  { color: #d0f0ff; }
.two .slide-box     { border-color: rgba(157,235,255,0.4); }

.three .slide-header { color: #d0ffd8; }
.three .slide-box    { border-color: rgba(98,189,110,0.4); }

.four .slide-header  { color: #fff2d0; }
.four .slide-box     { border-color: rgba(245,226,115,0.4); }

.five .slide-header  { color: #ffd0d0; }
.five .slide-box     { border-color: rgba(245,115,115,0.4); }

.five-box{
height: fit-content;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.8rem;
    height: 100%;
}

.card {
    background: #00000054;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.2s;
}

.card:hover {
    background-color: #00000054;
    color: #ffffff;
    box-shadow: 0 0 8px #fff, 0 0 20px #fff, 0 0 30px #43fff6, 0 0 40px #43fff6, 0 0 50px #43fff6;
}

.card b {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.card p {
    font-size: 0.75rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

.tech-card {
    align-items: center;
    text-align: center;
    transition: background 0.2s, transform 0.2s;
}

.tech-card img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: brightness(1.1);
}

.slide-box iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

.screenshot-grid {
    grid-template-rows: unset;
    height: auto;
}

.screenshot-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    aspect-ratio: 16/9;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}

.screenshot-item img:hover {
    transform: scale(1.04);
}

#scrollpath {
    position: fixed;
    top: 2%;
    left: 0.5vw;
    width: 99vw;
    height: 2%;
    background: rgba(255,255,255,0.05);
    z-index: 10;
}

#progressbar {
    position: fixed;
    top: 2%;
    left: 0.5vw;
    width: 0%;
    height: 2%;
    background: linear-gradient(to right, #9ddbff, #bfa5ff, #ffffff);
    z-index: 10;
    transition: width 0.15s linear;
    overflow: visible;
}

#progressbar:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #9ddbff, #bfa5ff, #ffffff);
    filter: blur(10px);
    opacity: 0.9;
}

#progressbar:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #9ddbff, #bfa5ff, #ffffff);
    filter: blur(30px);
    opacity: 0.6;
}


::-webkit-scrollbar { width: 0; }

@font-face {
    font-family: 'TitleFont';
    src: url('/assets/fonts/Rockybilly.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'main';
    src: url('/assets/fonts/RetroGaming.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@media (max-width: 768px) {

    .outer-wrap {
        width: 100vw;
        height: 100vh;
        transform: none;
        overflow-y: scroll;
        overflow-x: hidden;
        position: relative;
    }

    .wrap {
        width: 100vw;
        flex-direction: column;
        transform: none;
        position: relative;
    }

    .slide {
        width: 100vw;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 4rem 1.2rem 2rem;
        box-sizing: border-box;
    }

    .sticky,
    .absolute,
    .dog {
        display: none;
    }

    #scrollpath {
        top: 0;
        left: auto;
        right: 0;
        width: 3px;
        height: 100%;
    }

    #progressbar {
        top: 0;
        left: auto;
        right: 0;
        width: 3px !important;
        height: 0%;
        background: linear-gradient(to bottom, #9ddbff, #bfa5ff, #ffffff);
        transition: height 0.15s linear;
    }

    #progressbar:before,
    #progressbar:after {
        background: linear-gradient(to bottom, #9ddbff, #bfa5ff, #ffffff);
    }

    .slide-header {
        position: static;
        transform: none;
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        margin-bottom: 1rem;
        text-align: center;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: unset;
        height: auto;
    }
}

@media (max-width: 380px) {
    .grid {
        grid-template-columns: 1fr;
    }
}