/* =========================================================
   YESUI MUNKHSULD — MIKU WEBCORE / CYBER Y2K CSS
   ========================================================= */

/* --- Global Styles & Resets --- */

* {
    box-sizing: border-box;
    cursor: url('https://cdn.cursors-4u.net/previews/sexy-pink-heart-25412ebd-32.webp') 32 32, auto !important;
}

.site-title {
    text-align: center;
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 42px;
    color: #004052;
    margin: 20px 0;
}

.comment {
    text-align: center;
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 15px;
    color: #8f8f8f;
    margin: 20px 0;
}

.miku-sticker {
    position: fixed;
    width: 180px;
    height: auto;
    z-index: 2000;
    pointer-events: none;
    user-select: none;
    filter:
        /* white outer outline */
        drop-shadow(3px 0 0 white)
        drop-shadow(-3px 0 0 white)
        drop-shadow(0 3px 0 white)
        drop-shadow(0 -3px 0 white)

        /* dark cyan inner outline */
        drop-shadow(2px 0 0 #004052)
        drop-shadow(-2px 0 0 #004052)
        drop-shadow(0 2px 0 #004052)
        drop-shadow(0 -2px 0 #004052);
}

@keyframes miku-swing {
    0% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(-5deg);
    }
}

.miku-sticker.top-right {
    top: 94.5px;
    right: 8px;
    transform-origin: 50% 0%;
    animation: miku-swing 2s steps(2, end) infinite;
}

.miku-sticker.bottom-left {
    bottom: 0px;
    left: 8px;
    animation: miku-swing 2s steps(1, end) infinite;
}

body {
    margin: 0;
    padding: 0;
    background-color: #e9ffff;
    min-height: 100vh;
    color: #004052;
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1.4;

    /* Retro computer grid */
    background-image:
        linear-gradient(rgba(0, 207, 207, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 197, 187, 0.13) 1px, transparent 1px);
    background-size: 24px 24px;
    overflow-x: hidden;
}

/* Old monitor scanlines */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 64, 82, 0.04) 0px,
            rgba(0, 64, 82, 0.04) 1px,
            transparent 1px,
            transparent 4px
        );
}

/* Text selection */

*::selection {
    background: #39c5bb;
    color: #004052;
}

/* Base heading rule */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Silkscreen', cursive, sans-serif;
    margin: 0;
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.navbar {
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.18) 0px,
            rgba(255, 255, 255, 0.18) 2px,
            transparent 2px,
            transparent 5px
        ),
        linear-gradient(
            to bottom,
            #e8ffff 0%,
            #9df5f5 45%,
            #39c5bb 100%
        );
    border-bottom: 3px solid #004052;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow:
        0 4px 0 #ff4fa3,
        0 7px 12px rgba(0, 120, 140, 0.18);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.pfp-wrapper {
    cursor: pointer;
    display: inline-block;
}

.profile-pic {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 3px solid #004052;
    object-fit: cover;
    display: block;
    transition:
        transform 0.1s steps(2, jump-none),
        box-shadow 0.1s steps(2, jump-none);
}

.profile-pic:hover {
    transform: scale(1.05) rotate(-3deg);
    box-shadow:
        4px 4px 0 #ff4fa3,
        6px 6px 0 #004052;
}

.brand-title h1 {
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: clamp(16px, 3vw, 24px);
    margin: 0;
    color: #004052;
}

.name {
    color: #39c5bb;
    text-decoration: underline wavy #ff4fa3;
}

/* Navigation */

.links {
    list-style: none;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.head-button {
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 13px;
    color: #004052;
    text-decoration: none;
    padding: 6px 14px;
    background: #ffffff;
    border: 3px solid #004052;
    border-radius: 0;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow:
        3px 3px 0 #ff4fa3,
        5px 5px 0 #004052;
    transition:
        transform 0.1s steps(2, jump-none),
        box-shadow 0.1s steps(2, jump-none);
}

.head-button:hover {
    transform: translateY(-3px) rotate(2deg);
    box-shadow:
        3px 3px 0 #39c5bb,
        5px 5px 0 #004052;
}

/* =========================================================
   SECRET JUKEBOX
   ========================================================= */

.pfp-toggle {
    display: none;
}

.secret-audio-pop {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 300px;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.12) 0px,
            rgba(255, 255, 255, 0.12) 2px,
            transparent 2px,
            transparent 5px
        ),
        linear-gradient(
            to bottom,
            #d9ffff 0%,
            #8cf1f1 55%,
            #39c5bb 100%
        );
    border: 3px solid #004052;
    padding: 12px;
    border-radius: 0;
    box-shadow:
        5px 5px 0 #ff4fa3,
        8px 8px 0 #004052;
    z-index: 1001;
}

.pfp-toggle:checked ~ .secret-audio-pop {
    display: block;
}

.secret-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.secret-title {
    margin: 0;
    color: #004052;
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 11px;
    font-weight: bold;
}

.badge {
    background: #004052;
    color: #39c5bb;
    font-family: 'VT323', monospace;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 0;
}

.jukebox-scroll {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.track-item {
    background: #ffffff;
    border: 2px solid #004052;
    border-radius: 0;
    padding: 6px 8px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #004052;
    box-shadow: 2px 2px 0 #39c5bb;
}

.track-item audio {
    width: 100%;
    height: 30px;
    margin-top: 4px;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.break {
    text-align: center;
    color: #39c5bb;
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 12px;
    margin: 40px 0;
    text-shadow:
        1px 1px 0 #ff4fa3;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
    align-items: start;
}

.chat-section {
    border: 3px solid #004052;
    border-radius: 0;
    box-shadow:
        6px 6px 0 #39c5bb,
        9px 9px 0 #004052;
    overflow: hidden;
    background: #d9ffff;
}

.window-header {
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.12) 0px,
            rgba(255, 255, 255, 0.12) 2px,
            transparent 2px,
            transparent 5px
        ),
        #004052;
    color: #39c5bb;
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 8px;
    letter-spacing: 1px;
}

.chat-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.card {
    background: #ffffff;
    border: 3px solid #004052;
    padding: 25px;
    border-radius: 0;
    box-shadow:
        6px 6px 0 #39c5bb,
        9px 9px 0 #004052;
    position: relative;
}

.quick-info-mini {
    float: right;
    width: 220px;
    margin: 0 0 15px 15px;
    background: #ffffff;
    border: 2px solid #004052;
    border-radius: 0;
    padding: 10px;
    box-shadow:
        4px 4px 0 #ff4fa3,
        6px 6px 0 #004052;
    font-family: 'VT323', monospace;
    font-size: 16px;
}

.x {
    margin: -4px 0 2px 0;
    text-align: right;
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #55747c;
    cursor: pointer;
}

.x:hover {
    color: #ff4fa3;
}

.info-header {
    background:
        linear-gradient(
            to bottom,
            #ffffff 0%,
            #d9ffff 45%,
            #39c5bb 100%
        );
    border: 2px solid #004052;
    padding: 4px 8px;
    border-radius: 0;
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    color: #004052;
}

.info-details p {
    margin: 4px 0;
    font-family: 'VT323', monospace;
    font-size: 16px;
    line-height: 1.3;
}

.mini-tags {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}

.tag {
    padding: 4px 8px;
    border-radius: 0;
    border: 1.5px solid #004052;
    font-family: 'VT323', monospace;
    font-size: 15px;
    font-weight: bold;
    background: #e9ffff;
    color: #30515a;
}

.section-title-card {
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 18px;
    background:
        linear-gradient(
            to bottom,
            #ffffff 0%,
            #d9ffff 45%,
            #39c5bb 100%
        );
    color: #004052;
    border: 2px solid #004052;
    padding: 4px 14px;
    border-radius: 0;
    display: inline-block;
    margin: 0 0 15px 0;
    transform: rotate(-2deg);
    box-shadow:
        4px 4px 0 #ff4fa3,
        6px 6px 0 #004052;
}

.section-title {
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 22px;
    background:
        linear-gradient(
            to bottom,
            #ffffff 0%,
            #d9ffff 45%,
            #39c5bb 100%
        );
    color: #004052;
    border: 3px solid #004052;
    padding: 6px 20px;
    border-radius: 0;
    transform: rotate(-2deg);
    box-shadow:
        4px 4px 0 #ff4fa3,
        7px 7px 0 #004052;
    display: block;
    width: fit-content;
    margin: 0 auto 30px auto;
}

/* =========================================================
   BLOG SECTION
   ========================================================= */

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}

.blog-window {
    background: #d9ffff;
    border: 3px solid #004052;
    box-shadow:
        6px 6px 0 #39c5bb,
        9px 9px 0 #004052;
    overflow: hidden;
}

.blog-scroll {
    max-height: 450px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-post {
    background: #ffffff;
    border: 2px solid #004052;
    padding: 15px;
    position: relative;
    box-shadow:
        4px 4px 0 #ffb9db,
        6px 6px 0 #004052;
}

.blog-post:hover {
    box-shadow:
        4px 4px 0 #39c5bb,
        6px 6px 0 #004052;
}

/* User area */

.blog-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #004052;
}

.blog-pfp {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #004052;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.blog-user-info strong {
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 13px;
    color: #004052;
}

.blog-user-info span {
    font-family: 'VT323', monospace;
    font-size: 15px;
    color: #55747c;
    margin-top: 2px;
}

.blog-content {
    padding: 10px 3px 5px 3px;
}

.blog-content h3 {
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #39c5bb;
}

.blog-content p {
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1.4;
    margin: 5px 0;
}

/* =========================================================
   PROJECTS SECTION
   ========================================================= */

.projects-layout {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
}

.project-card {
    background: #ffffff;
    border: 3px solid #004052;
    border-radius: 0;
    padding: 15px;
    position: relative;
    box-shadow:
        5px 5px 0 #ff4fa3,
        8px 8px 0 #004052;
    transition:
        transform 0.1s steps(2, jump-none),
        box-shadow 0.1s steps(2, jump-none);
    width: 320px;
    max-width: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow:
        6px 6px 0 #39c5bb,
        9px 9px 0 #004052;
}

.project-card h3 {
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 13px;
    margin: 8px 0 4px 0;
    color: #004052;
}

.project-card p {
    font-family: 'VT323', monospace;
    font-size: 16px;
    margin: 0;
    color: #496b73;
}

.pin,
.pin-2 {
    position: absolute;
    top: -12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #004052;
    border-radius: 50%;
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 12px;
    box-shadow:
        2px 2px 0 #ff4fa3;
}

.project-thumb {
    width: 100%;
    height: 140px;
    background:
        repeating-linear-gradient(
            45deg,
            #d9ffff 0px,
            #d9ffff 8px,
            #c2f7f7 8px,
            #c2f7f7 16px
        );
    border-radius: 0;
    border: 2px solid #004052;
    margin-bottom: 12px;
}

.project-webcam {
    float: none;
    width: 100%;
    margin: 0;
}

.project-webcam .webcam-screen {
    height: 180px;
}

.project-webcam .webcam-status {
    font-family: 'VT323', monospace;
    font-size: 16px;
}

/* =========================================================
   WEBCAM WIDGET
   ========================================================= */

.webcam-header {
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.15) 0px,
            rgba(255,255,255,0.15) 2px,
            transparent 2px,
            transparent 5px
        ),
        linear-gradient(
            to bottom,
            #d9ffff 0%,
            #39c5bb 100%
        );
    color: #004052;
    font-family: 'Silkscreen', cursive, sans-serif;
}

.webcam-screen {
    width: 192px;
    height: 192px;
    border: 2px solid #004052;
    background: #d9ffff;
    overflow: hidden;
    margin: 6px auto;
    box-shadow:
        inset 0 0 0 2px #39c5bb;
}

.webcam-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.webcam-status {
    font-family: 'VT323', monospace;
    font-size: 15px;
    color: #39c5bb;
    margin: 2px 0;
}

/* =========================================================
   SKILLS SECTION
   ========================================================= */

.skills-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.side-info {
    float: none;
    width: 230px;
    margin: 0;
    flex-shrink: 0;
}

.skills-list {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    flex: 1;
}

.skills-card {
    background: #ffffff;
    border: 2.5px solid #004052;
    border-radius: 0;
    padding: 15px;
    width: 140px;
    text-align: center;
    box-shadow:
        4px 4px 0 #ffb9db;
    transition:
        transform 0.1s steps(2, jump-none),
        box-shadow 0.1s steps(2, jump-none);
}

.skills-card:hover {
    transform: translateY(-3px);
    box-shadow:
        4px 4px 0 #39c5bb,
        6px 6px 0 #004052;
}

.skills-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.skill-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition:
        transform 0.1s steps(2, jump-none);
}

.skills-card:hover .skill-logo {
    transform: scale(1.15);
}

.skills-card h3 {
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 12px;
    margin: 8px 0 4px 0;
    color: #39c5bb;
}

.skills-card p {
    font-family: 'VT323', monospace;
    font-size: 16px;
    margin: 0;
    color: #496b73;
}

.dont-clicks {
    color: #ff4fa3;
    font-weight: bold;
    text-decoration: underline;
    word-break: break-all;
    font-family: 'VT323', monospace;
    font-size: 16px;
}

.dont-clicks:hover {
    color: #39c5bb;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    text-align: center;
    padding: 40px 20px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: #496b73;
    background-color: #e9ffff;
    border-top: 3px dashed #004052;
    margin-top: 50px;
    background-image:
        radial-gradient(
            #39c5bb 1px,
            transparent 1px
        );
    background-size: 16px 16px;
}

.silly {
    font-family: 'VT323', monospace;
    font-size: 22px;
    color: #ff4fa3;
    margin: 6px 0;
    text-shadow:
        1px 1px 0 #39c5bb;
}

/* =========================================================
   SOCIAL LINKS
   ========================================================= */

.socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.socials a {
    text-decoration: none;
    color: #004052;
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 14px;
    border: 2px solid #004052;
    border-radius: 0;
    background: #ffffff;
    box-shadow:
        3px 3px 0 #ff4fa3;
    transition:
        transform 0.1s steps(2, jump-none),
        box-shadow 0.1s steps(2, jump-none);
}

.socials a:hover {
    transform: translateY(-2px);
    box-shadow:
        4px 4px 0 #39c5bb,
        6px 6px 0 #004052;
}

/* =========================================================
   COOL WEB LINKS
   ========================================================= */

.cool-web-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.web-button {
    width: 120px;
    height: 38px;
    background: #ffffff;
    border: 2px solid #004052;
    padding: 0;
    text-decoration: none;
    color: #004052;
    box-shadow:
        3px 3px 0 #ff4fa3;
    transition:
        transform 0.1s steps(2, jump-none),
        box-shadow 0.1s steps(2, jump-none);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.web-button:hover {
    transform: translate(-1px, -1px);
    box-shadow:
        4px 4px 0 #39c5bb,
        6px 6px 0 #004052;
}

.web-button span {
    display: block;
    font-family: 'Silkscreen', cursive, sans-serif;
    font-size: 9px;
    white-space: nowrap;
}

/* =========================================================
   EXTRA WEBCORE DETAILS
   ========================================================= */

/* Makes links feel more like old personal websites */

a {
    transition: none;
}

a:hover {
    color: #39c5bb;
}

/* =========================================================
   RETRO PINK SCROLLBAR
   ========================================================= */

*::-webkit-scrollbar {
    width: 12px;
}

*::-webkit-scrollbar-track {
    background: #d9ffff;
    border-left: 2px solid #004052;
}

*::-webkit-scrollbar-thumb {
    background: #ff4fa3;
    border: 2px solid #004052;
}

*::-webkit-scrollbar-thumb:hover {
    background: #ff79ba;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================= */

@media (max-width: 850px) {

    .about-grid {
        grid-template-columns: 1fr;
    }

    .chat-section {
        max-width: 100%;
        margin: 0 auto;
    }

    .quick-info-mini {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .project-webcam {
        max-width: 100%;
    }
}

@media (max-width: 600px) {

    .navbar {
        flex-direction: column;
        gap: 12px;
    }

    .links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .secret-audio-pop {
        position: fixed;
        top: 80px;
        left: 5%;
        right: 5%;
        width: 90%;
        max-width: 320px;
        margin: 0 auto;
    }

    .projects-layout {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 100%;
    }

    .skills-layout {
        flex-direction: column;
        align-items: center;
    }

    .side-info {
        width: 100%;
    }

    .cool-web-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-items: center;
    }

    .web-button {
        width: 100%;
        max-width: 140px;
    }
}

@media (max-width: 600px) {

    .miku-sticker {
        width: 100px;
    }

    .miku-sticker.top-right {
        top: 145px;
        right: 5px;
        left: auto;
    }
}