/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, Segoe UI, Roboto;
}

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    color: white;
    font-size: 0.7rem;
}


/* DESKTOP BACKGROUND */

.desktop {

    height: 100vh;

    background:
        linear-gradient(180deg,
            rgba(15, 23, 42, 0.9),
            rgba(2, 6, 23, 0.95)),
        url("https://images.unsplash.com/photo-1535223289827-42f1e9919769?auto=format&fit=crop&w=2000&q=80");

    background-size: cover;

    padding: 12px;

    display: flex;

    flex-direction: column;

}



/* TOP BAR */

.topbar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(2, 6, 23, 0.8);

    backdrop-filter: blur(10px);

    padding: 10px 15px;

    border-radius: 10px;

    margin-bottom: 15px;

}

.logo {

    font-weight: 700;

    font-size: 16px;

    letter-spacing: 1px;

}

.menu {

    display: flex;

    gap: 12px;

    font-size: 14px;

    opacity: .8;

}

.clock {

    font-size: 14px;

    opacity: .7;

}



/* DESKTOP ICONS */

.icons {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

    padding-top: 20px;

}

.icon {

    display: flex;

    flex-direction: column;

    align-items: center;

    cursor: pointer;

    transition: .2s;

}

.icon img {

    width: 55px;

    margin-bottom: 6px;

}

.icon p {

    font-size: 13px;

    opacity: .9;

}

.icon:hover {

    transform: scale(1.08);

}



/* WINDOWS */

.window {

    position: fixed;

    bottom: 12px;

    left: 12px;

    right: 12px;

    background: rgba(2, 6, 23, 0.95);

    border-radius: 12px;

    display: none;

    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:

        0 20px 40px rgba(0, 0, 0, 0.6);

}



/* WINDOW HEADER */

.window-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(30, 41, 59, 0.9);

    padding: 10px 14px;

    font-size: 14px;

    font-weight: 600;

    cursor: grab;

}

.close {

    background: none;

    border: none;

    color: white;

    font-size: 16px;

    cursor: pointer;

    opacity: .8;

}

.close:hover {

    opacity: 1;

}



/* WINDOW BODY */

.window-body {

    padding: 15px;

    overflow: auto;

    max-height: 60vh;

}



/* ABOUT */

.avatar {

    width: 100%;

    border-radius: 10px;

    margin-bottom: 10px;

}



/* PROJECTS */

.projects {

    display: grid;

    gap: 14px;

}

.project {

    background: #020617;

    padding: 10px;

    border-radius: 10px;

    transition: .2s;

}

.project:hover {

    transform: translateY(-3px);

}

.project img {

    width: 100%;

    border-radius: 8px;

    margin-bottom: 6px;

}



/* SKILLS */

.skills {

    list-style: none;

    display: grid;

    gap: 8px;

}

.skills li {

    background: #020617;

    padding: 8px 10px;

    border-radius: 6px;

}



/* TERMINAL */

.terminal-output {

    font-family: monospace;

    font-size: 14px;

    margin-bottom: 10px;

    white-space: pre-line;

}

.terminal-input {

    width: 100%;

    background: #020617;

    border: none;

    padding: 10px;

    border-radius: 6px;

    color: white;

    outline: none;

    font-family: monospace;

}



/* CONTACT */

.window-body p {

    margin-bottom: 8px;

}


.back {
    color: #f3ebeb;
    text-decoration: none;
    background: #000000;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 500;
    border: 1px solid rgb(255, 255, 255);
    transition: .25s;
}

.back:hover {
    transform: translateY(-2px);
    background: #f5f3f3;
    color: #0e0101;
}



/* DESKTOP VERSION */

@media (min-width:768px) {

    .icons {

        grid-template-columns: repeat(4, 100px);

    }

    .window {

        width: 520px;

        left: 50%;

        transform: translateX(-50%);

        bottom: auto;

        top: 120px;

    }

}

@media (min-width:1100px) {
    body {
        font-size: 1rem;
    }

    .window {

        width: 650px;

    }

}




.back {
    color: #f3ebeb;
    text-decoration: none;
    background: #000000;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 500;
    border: 1px solid rgba(255, 254, 254, 0.948);
    transition: .25s;
}

.back:hover {
    transform: translateY(-2px);
    background: #f5f3f3;
    color: #0e0101;
}

/* MOBILE ADAPTIVE - max-width: 768px */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .desktop {
        padding: 8px;
    }

    .topbar {
        padding: 8px 10px;
    }

    .logo {
        font-size: 12px;
        white-space: nowrap;
    }

    .menu {
        gap: 5px;
        font-size: 9px;
        white-space: nowrap;
    }

    .clock {
        font-size: 10px;
    }

    .icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding-top: 12px;
    }

    .icon img {
        width: 45px;
    }

    .icon p {
        font-size: 11px;
    }

    .window {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .window-header {
        padding: 8px 10px;
        font-size: 12px;
    }

    .window-body {
        padding: 10px;
        max-height: 50vh;
    }

    .terminal-output {
        font-size: 12px;
    }
}