﻿.bg-grid{
    position: fixed;
    inset: 0;
    z-index: 0;
    display: grid;
    pointer-events: none;
    opacity: 0.9;
}

.bg-cell{
    width: 100px;
    height: 100px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.10);
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.bg-cell.lit{
    background: rgba(240,182,255,0.20);
    box-shadow:
            inset 0 0 18px rgba(158,247,255,0.25),
            0 0 18px rgba(240,182,255,0.18);
}

/* Make sure your site content sits ABOVE the bg grid */
.home-wrapper,
.project-page,
.terminal-wrap{
    position: relative;
    z-index: 1;
}

.collage-stage {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}


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

.no-scroll {
    overflow: hidden !important;
}

.terminal-home {
    width: min(920px, 92vw);
}

.terminal-body-home {
    display: flex;
    flex-direction: column;
    align-items: center;   /* center title + collage horizontally */
    justify-content: center;
    gap: 18px;
}

body {
    font-family: "Spline Sans Mono", monospace;
    color: #fdf5ea;
    background:
            radial-gradient(circle at 10% 0%, #3c3a7a 0, transparent 50%),
            radial-gradient(circle at 90% 0%, #e6373f 0, transparent 55%),
            linear-gradient(180deg, #0a0715 0, #020307 100%);
    overflow-x: hidden;
    position: relative;
}

.home-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 14px;
    padding-top: 0;
    box-sizing: border-box;
}

.hero-centered{
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-centered h2 {
    margin: 0;
    font-size: 3rem;
}

.hero-centered h4 {
    margin-top: 8px;
    font-size: 1.5rem;
    opacity: 0.85;
}


.collage-grid {
    position: relative;
    width: 850px;
    height: 600px;
    transform: translateY(-40px) scale(0.7) translateX(135px);
    transform-origin: top center;
    margin: 0 auto;
}


.tile {
    position: absolute;
    width: 160px;
    height: 220px;
    display: block;
    overflow: hidden;
    transform-origin: center;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.tile img {
    width: 95%;
    height: 95%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.tile:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
}


.tile-crochet         { transform: translate(380px,   700px); }
.tile-robotics        { transform: translate(-150px,   590px); }
.tile-aboutWebsite    { transform: translate(420px,    120px); }
.tile-saleszone       { transform: translate(130px,    260px); }
.tile-chatApp         { transform: translate(270px,    510px); }
.tile-tsa             { transform: translate(-10px,    450px); }
.tile-art             { transform: translate(350px,    320px); }
.tile-history         { transform: translate(480px,    510px); }
.tile-kalimba         { transform: translate(550px,    310px); }
.tile-me              { transform: translate(0px,      100px); }
.tile-hackClub        { transform: translate(240px,     70px); }
.tile-photography     { transform: translate(130px,    620px); }
.tile-windCoolingTower{ transform: translate(-130px,   260px); }


body.project-scroll {
    overflow-y: auto;
    overflow-x: hidden;
}


.project-page {
    max-width: 800px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 3rem 1.5rem 4rem;
    text-align: left;
    box-sizing: border-box;
}

.project-back {
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #f0a4ff;
    text-decoration: none;
}

.project-back:hover {
    text-decoration: underline;
}

.project-title {
    text-align: center;
    font-size: 2rem;
    margin: 15px;
    margin-bottom: 2rem;
}

.project-subtitle {
    text-align: center;
    margin-top: 0.4rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    opacity: 0.9;
}

.project-content {
    font-size: 0.98rem;
    line-height: 1.7;
}

.project-section-title {
    font-weight: 600;
    margin-top: 1.8rem;
    margin-bottom: 0.4rem;
}

.project-content ul {
    padding-left: 1.2rem;
    margin-top: 0.2rem;
}

.project-content li {
    margin-bottom: 0.4rem;
}

.project-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* links inside content */
.project-content a {
    color: #d58aff;
    text-decoration: none;
}

.project-content a:hover {
    text-decoration: underline;
}



.contact-section {
    margin-top: 3rem;
    text-align: center;
}

.contact-label {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 0.8rem;
}

.contact-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.contact-icon {
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid #d58aff;
    text-decoration: none;
    color: #fdf5ea;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: transparent;
}

.contact-icon:hover {
    transform: translateY(-2px);
    background: rgba(213, 138, 255, 0.18);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.photo-strip {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.photo-strip img {
    width: 30%;
    max-width: 260px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

#tooltip {
    position: fixed;
    padding: 6px 10px;
    background: rgba(0,0,0,0.75);
    border-radius: 6px;
    color: #fdf5ea;
    font-family: "Spline Sans Mono", monospace;
    font-size: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-out, transform 0.1s ease-out;
    z-index: 999;
    transform: translate(-50%, -120%);
}

.landing-body {
    background:
            radial-gradient(circle at 10% 0%, #3c3a7a 0, transparent 50%),
            radial-gradient(circle at 90% 0%, #e6373f 0, transparent 55%),
            linear-gradient(180deg, #0a0715 0, #020307 100%);
    font-family: "Spline Sans Mono", monospace;
    color: #fdf5ea;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.landing-wrapper {
    text-align: center;
}

.landing-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.landing-subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 45px;
}

.landing-buttons {
    display: flex;
    justify-content: center;
    gap: 26px;
}

.yes-button,
.no-button {
    padding: 12px 26px;
    font-size: 1.1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: #0a0715;
    background: #fdf5ea;
    transition: transform 0.2s ease;
}

.yes-button:hover {
    transform: scale(1.1);
}

.no-button {
    position: relative;
}

/* === TERMINAL GUESTBOOK === */

.guestbook-page {
    color: #fdf5ea;
    background:
            radial-gradient(circle at 10% 0%, #3c3a7a 0, transparent 50%),
            radial-gradient(circle at 90% 0%, #e6373f 0, transparent 55%),
            linear-gradient(180deg, #0a0715 0, #020307 100%);
}

.terminal-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.terminal {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(10, 10, 18, 0.55);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 55px rgba(0,0,0,0.55);
    backdrop-filter: blur(14px);
}

.terminal-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    opacity: 0.9;
}
.dot.red { background: #ff4d5a; }
.dot.yellow { background: #ffcc33; }
.dot.green { background: #36d98a; }

.terminal-title {
    margin-left: 10px;
    font-size: 0.9rem;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.terminal-body {
    padding: 18px 18px 22px;
    font-size: 0.95rem;
    line-height: 1.65;
}

.terminal-line {
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prompt { color: #9ef7ff; }
.path { color: #f0b6ff; }

.terminal-text {
    margin: 0 0 18px;
    opacity: 0.9;
}

.dim { opacity: 0.7; }

.terminal-giscus {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.10);
}

/* make giscus blend in nicer */
.terminal-giscus .giscus,
.terminal-giscus .giscus-frame {
    width: 100%;
}

/* Back button (if you don't already have it) */
.back {
    position: fixed;
    top: 22px;
    left: 22px;
    text-decoration: none;
    color: #f0b6ff;
    font-size: 0.95rem;
    opacity: 0.85;
    z-index: 9999;
}

.back:hover {
    opacity: 1;
    text-decoration: underline;
}

.terminal-wrap {
    display: flex;
    justify-content: center;
}

.terminal {
    width: min(920px, 92vw);
}

@media (max-width: 900px) {
    .collage-grid {
        transform: scale(0.65) translateY(-120px);
        transform-origin: top center;
    }
}

/*@media (max-width: 600px) {
    .collage-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        height: auto;
        transform: none;
        left: auto;
    }

    .tile {
        position: static;
        width: 140px;
        height: 190px;
    }
}*/

@media (max-width: 600px){
    .collage-grid{
        transform:
                translateY(-40px)
                translateX(-40px)
                scale(0.35);
        transform-origin: top center;
    }
}



/*@media (max-width: 600px) {
    body {
        overflow-y: auto;
    }
}*/
.photo-divider {
    width: 100%;
    max-width: 820px;
    height: 1px;
    margin: 2.5rem auto 1.6rem;
    background: rgba(253, 245, 234, 0.25);
}

.photo-strip {
    max-width: 820px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.photo-strip img {
    width: 100%;
    aspect-ratio: 4 / 4;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.photo-strip video {
    width: 100%;
    aspect-ratio: 4 / 4;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}


@media (max-width: 720px) {
    .photo-strip {
        grid-template-columns: 1fr;
    }

    .photo-strip img {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* hover zoom for photos/videos in the strip (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .photo-strip img,
    .photo-strip video {
        transition: transform 0.18s ease, box-shadow 0.18s ease;
        transform-origin: center;
    }

    .photo-strip img:hover,
    .photo-strip video:hover {
        transform: scale(1.3);
        box-shadow: 0 14px 34px rgba(0,0,0,0.6);
    }
}
