@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

@font-face {
    font-family: "ComingSoon";
    src: url("./fonts/ComingSoon-Regular.ttf");
}

:root {
    --panel: rgba(18, 18, 18, 0.94);
    --panel-deep: rgba(10, 10, 10, 0.96);
    --panel-soft: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.28);
    --text: #f4f4f4;
    --muted: #a9a9a9;
    --red: #ff5f56;
    --yellow: #ffbd2e;
    --green: #27c93f;
    --trace: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    color: var(--text);
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-image: url("../images/bg2.png");
    background-size: cover;
}

.desktop {
    position: relative;
    min-height: 100vh;
    padding: 54px 24px 112px;
}

.os-menu {
    position: fixed;
    top: 6px;
    right: 16px;
    left: 16px;
    z-index: 60;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 12px;
    color: var(--muted);
    background: rgba(8, 8, 8, 0.76);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    font-family: "ComingSoon", cursive;
    font-size: 12px;
    font-weight: 700;
}

.os-menu-left,
.os-menu-right {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.os-mark {
    color: var(--text);
    padding-right: 4px;
}

#bar {
    position: fixed;
    right: 16px;
    bottom: 6px;
    left: 16px;
    z-index: 50;
    min-height: 70px;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    color: var(--text);
    background: rgba(12, 12, 12, 0.9);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.upper {
    min-height: 38px;
    font-family: "ComingSoon", cursive;
    font-weight: 700;
    background: var(--panel-soft);
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand {
    color: var(--text);
    text-shadow: none;
    background: linear-gradient(180deg, #f7f7f7, #d5d5d5);
    color: #070707;
    border-color: rgba(255, 255, 255, 0.5);
}

#timecheck {
    color: var(--muted);
    font-size: 13px;
    margin-left: auto;
}

.desktop-app:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--line-strong);
}

.desktop-icons {
    position: fixed;
    left: 24px;
    top: 82px;
    bottom: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.desktop-app {
    width: 86px;
    min-height: 94px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 6px;
    font-family: "ComingSoon", cursive;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 2px 4px #000;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.app-glyph {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #080808;
    background-size: cover;
    border: 3px solid rgba(255, 255, 255, 0.62);
    border-radius: 14px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.48), inset 0 -4px 0 rgba(0, 0, 0, 0.14);
    font-family: "ComingSoon", cursive;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;

}

.app-glyph-welcome {
    border-radius: 16px 16px 20px 8px;
    background-image: url(../images/pfp.jpg);
}

.app-glyph-links {
    background-image: url(../images/spamton.png);
    border-color: rgba(0, 0, 0, 0.8);
}

.app-glyph-notepad {
    background-image: url(../images/sketch-of-notepad-hand-draw-illustration-line-sketch-vector-737039317.jpg);
    border-color: rgba(0, 0, 0, 0.74);
    background-size: cover;
}

.window {
    width: min(380px, calc(100vw - 48px));
    position: absolute;
    border: 2px solid rgba(0, 0, 0, 0.34);
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.64), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

#welcome {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -54%);
}

#links {
    top: 50%;
    left: 50%;
    width: min(400px, calc(100vw - 48px));
    height: 500px;
    transform: translate(-50%, -50%);
    display: none;
    overflow-y: auto;
}

#notepad {
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    display: none;
}

.header {
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
    cursor: move;
}

.buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

#export-btn {
    transform: translate(-40px);
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 1px 2px rgba(0, 0, 0, 0.28);
}

.dot.close { background-color: var(--red); }
.dot.minimize { background-color: var(--yellow); }
.dot.maximize { background-color: var(--green); }

.title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-family: "ComingSoon", monospace;
    font-size: 11px;
    letter-spacing: 0;
    user-select: none;
}

.window-content {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        linear-gradient(rgba(17, 17, 17, 0.9), rgba(8, 8, 8, 0.94)),
        url("../images/2396.gif") center / cover;
    text-align: center;
    color: var(--text);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background-size: cover;
}

.window-main-title {
    font-family: "ComingSoon", monospace;
    font-size: 22px;
    margin: 0;
    padding: 7px 16px;
    color: var(--text);
    border-bottom: 1px solid var(--line-strong);
    width: 86%;
}

.section-title {
    font-family: "ComingSoon", sans-serif;
    color: #5ee075;
    margin: 8px 0 0;
    font-size: 20px;
}

.intro-text,
.bio-text {
    color: #dddddd;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    font-weight: 400;
}

.highlight-name {
    color: #ffffff;
    font-weight: 700;
}

.profile-avatar {
    height: 92px;
    width: 92px;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
    margin: 4px 0;
}

.linkmain {
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid var(--line-strong);
    padding: 7px 13px;
    border-radius: 6px;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
    background-color: var(--green);
    border-color: rgba(39, 201, 63, 0.78);
    color: #041006;
    box-shadow: 0 4px 0 rgba(12, 74, 23, 0.75);
}

.audio-bar {
    display: flex;
    align-items: center;
    background-color: var(--panel-deep);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 7px 12px;
    width: 92%;
    margin-top: 8px;
    gap: 12px;
}

.audio-btn {
    flex: 0 0 auto;
    background: var(--red);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #080808;
    font-size: 13px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.16s ease;
}

.audio-track-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    font-family: "ComingSoon", monospace;
}

.track-name {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.track-note {
    color: #888888;
    font-size: 9px;
}

.notepad-content {
    align-items: stretch;
    padding: 12px;
    gap: 10px;
}

.notepad-text {
    width: 100%;
    height: 190px;
    resize: none;
    color: var(--text);
    background: rgba(5, 5, 5, 0.82);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 10px;
    outline: none;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

.save-note-btn {
    align-self: flex-end;
    color: #041006;
    background: var(--green);
    border: 1px solid rgba(39, 201, 63, 0.78);
    border-radius: 6px;
    padding: 7px 13px;
    font-family: "ComingSoon", cursive;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(12, 74, 23, 0.75);
}

.app-glyph-pixel {
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.8);
  background: url(../images/delta-rune.jpg);
  background-size: cover;
}

@media (max-width: 700px) {
    .desktop {
        padding: 58px 14px 132px;
    }

    .os-menu {
        top: 8px;
        right: 8px;
        left: 8px;
        font-size: 11px;
    }

    .os-menu-left {
        gap: 10px;
    }

    .os-menu-right {
        display: none;
    }

    #welcome,
    #links,
    #notepad,
    #pixel-test {
        left: 50%;
        width: min(350px, calc(100vw - 28px));
    }

    #links,
    #notepad,
    #pixel-test {
        top: 47%;
    }

    .desktop-icons {
        left: 12px;
        top: 74px;
        bottom: auto;
        gap: 10px;
    }

    .desktop-app {
        width: 72px;
        min-height: 78px;
        font-size: 11px;
    }

    .app-glyph {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    #bar {
        right: 8px;
        bottom: 8px;
        left: 8px;
        min-height: 86px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .version {
        display: none;
    }

    #timecheck {
        margin-left: 0;
    }

    .pixel-test-content main {
        flex-direction: column;
    }

    .pixel-test-content .toolbar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 2px solid var(--line);
        gap: 8px;
        padding: 8px;
    }

    .pixel-test-content .tool-section {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .pixel-test-content .color-palette {
        grid-template-columns: repeat(8, 1fr);
    }

    .pixel-test-content .canvas-container {
        padding: 8px;
    }

    .pixel-test-content .tool-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .pixel-test-content .custom-color-label input[type="color"] {
        width: 28px;
        height: 20px;
    }
}

#links .window-content {
  padding: 20px;
  gap: 14px;
}

.pfp-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pfp-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  image-rendering: crisp-edges;
  border: 2px solid var(--line-strong);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.pfp-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: var(--text);
  margin: 0;
}

.pfp-sub {
  font-family: "ComingSoon", monospace;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.pfp-bio {
  font-family: "ComingSoon", monospace;
  font-size: 12px;
  color: var(--text);
  margin: 0;
  text-align: center;
  line-height: 1.5;
  padding: 0 4px;
}

.pfp-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  font-family: "ComingSoon", monospace;
  font-size: 10px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 12px;
}

.badge-accent {
  border-color: var(--green);
  color: var(--green);
}

.pfp-section {
  width: 100%;
}

.pfp-section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--green);
  margin: 0 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--trace);
}

.skill-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-family: "ComingSoon", monospace;
  font-size: 10px;
  color: #080808;
  background: var(--green);
  border-radius: 4px;
  padding: 3px 10px;
  font-weight: 700;
}

.pfp-goal {
  font-family: "ComingSoon", monospace;
  font-size: 13px;
  color: var(--text);
  margin: 0;
  padding: 6px 10px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  padding: 10px 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.project-card:hover {
  border-color: var(--green);
  background: rgba(0,255,65,0.06);
}

.project-name {
  font-family: "ComingSoon", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.project-desc {
  font-family: "ComingSoon", monospace;
  font-size: 10px;
  color: var(--muted);
}
