/* =========================================================
   SimplyVelvetRedDX
   Windows 7 / Aero Glass stylesheet
   ========================================================= */


/* ---------- Basics ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 40px 18px;

    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 15px;

    color: #1c2c38;

    /*
       Temporary Windows 7-ish sky/grass background.
       We can replace this with an actual custom wallpaper later.
    */
    background:
        linear-gradient(
            to bottom,
            #45a9e6 0%,
            #89d8f5 36%,
            #d8f6ff 53%,
            #8bd35c 54%,
            #4caf45 75%,
            #258b39 100%
        );

    background-attachment: fixed;
}


/* ---------- Main Aero Window ---------- */

.window {
    width: min(1050px, 100%);
    margin: 0 auto;

    overflow: hidden;

    border: 1px solid rgba(20, 60, 85, 0.8);
    border-radius: 9px;

    background: rgba(238, 248, 253, 0.88);

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75),
        0 0 18px rgba(0, 100, 180, 0.45),
        0 18px 45px rgba(0, 30, 60, 0.5);
}


/* ---------- Windows 7 Title Bar ---------- */

.titlebar {
    position: relative;

    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-left: 16px;

    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(200, 236, 250, 0.75) 18%,
            rgba(100, 190, 225, 0.55) 52%,
            rgba(180, 225, 244, 0.7) 100%
        );

    border-bottom: 1px solid rgba(40, 100, 130, 0.6);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(255, 255, 255, 0.45);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* Glossy reflection */

.titlebar::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 48%;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.6),
        rgba(255,255,255,0.05)
    );

    pointer-events: none;
}


.title {
    position: relative;
    z-index: 2;

    font-size: 14px;
    font-weight: 600;

    color: #102c3d;

    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95);
}


/* ---------- Window Controls ---------- */

.window-buttons {
    position: relative;
    z-index: 2;

    height: 31px;

    display: flex;

    margin-right: 8px;

    border-radius: 0 0 5px 5px;
    overflow: hidden;

    border-left: 1px solid rgba(40, 80, 100, 0.55);
    border-right: 1px solid rgba(40, 80, 100, 0.55);
    border-bottom: 1px solid rgba(40, 80, 100, 0.55);
}


.window-buttons span {
    width: 46px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Arial, sans-serif;
    font-size: 16px;

    color: #152d3b;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.8),
            rgba(165,215,235,0.7)
        );

    border-right: 1px solid rgba(60, 100, 120, 0.45);

    text-shadow: 0 1px white;

    cursor: default;

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}


.window-buttons span:hover {
    background:
        linear-gradient(
            to bottom,
            #e9fbff,
            #6fd4f5
        );

    box-shadow:
        inset 0 0 10px rgba(0, 180, 255, 0.7),
        0 0 8px rgba(0, 180, 255, 0.7);
}


.window-buttons .close {
    width: 52px;

    color: white;

    background:
        linear-gradient(
            to bottom,
            #f5a19a 0%,
            #dc5a50 45%,
            #b72b22 55%,
            #d84d43 100%
        );

    text-shadow:
        0 -1px rgba(90, 0, 0, 0.8);
}


.window-buttons .close:hover {
    background:
        linear-gradient(
            to bottom,
            #ffb1a8,
            #ff493b 45%,
            #c30c00 55%,
            #ef382c
        );

    box-shadow:
        inset 0 0 8px #ffddd9,
        0 0 10px rgba(255, 40, 20, 0.8);
}


/* ---------- Explorer-ish Toolbar ---------- */

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    padding: 7px 12px;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #e7f1f7
        );

    border-bottom: 1px solid #a8bdca;

    box-shadow:
        inset 0 1px white,
        0 1px 2px rgba(0, 50, 80, 0.12);
}


.toolbar a {
    display: inline-block;

    padding: 7px 13px;

    color: #17394e;

    text-decoration: none;

    border: 1px solid transparent;
    border-radius: 4px;

    transition: 0.15s;
}


.toolbar a:hover {
    border-color: #7eb4d0;

    background:
        linear-gradient(
            to bottom,
            #f8fdff,
            #cceeff
        );

    box-shadow:
        inset 0 0 4px white,
        0 0 5px rgba(0, 150, 220, 0.25);
}


/* ---------- Main Content ---------- */

main {
    padding: 22px;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.75),
            rgba(225,240,248,0.82)
        );
}


/* ---------- Content Panels ---------- */

.panel {
    position: relative;

    margin-bottom: 22px;
    padding: 24px 27px;

    overflow: hidden;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.9),
            rgba(231,245,252,0.82)
        );

    border: 1px solid #a7c2d1;
    border-radius: 6px;

    box-shadow:
        inset 0 1px white,
        0 2px 5px rgba(0, 60, 90, 0.15);
}


/* Tiny glass highlight */

.panel::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 35%;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.42),
            transparent
        );

    pointer-events: none;
}


.panel > * {
    position: relative;
    z-index: 1;
}


/* ---------- Welcome ---------- */

.welcome {
    text-align: center;

    padding-top: 35px;
    padding-bottom: 35px;

    background:
        linear-gradient(
            135deg,
            rgba(230, 249, 255, 0.96),
            rgba(182, 230, 250, 0.83)
        );
}


.welcome h1 {
    margin-top: 0;

    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 400;

    color: #154b70;

    text-shadow:
        0 1px white,
        0 0 8px rgba(60, 180, 235, 0.25);
}


/* ---------- Headings ---------- */

h2 {
    margin-top: 0;

    padding-bottom: 9px;

    font-weight: 400;
    font-size: 1.65rem;

    color: #14527b;

    border-bottom: 1px solid #b6ceda;

    text-shadow: 0 1px white;
}


h3 {
    color: #195b80;

    font-weight: 600;
}


p {
    line-height: 1.65;
}


/* ---------- Projects ---------- */

.project {
    margin: 18px 0;
    padding: 17px 19px;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #edf7fc
        );

    border: 1px solid #b4cbd7;
    border-radius: 5px;

    box-shadow:
        inset 0 1px white,
        0 1px 3px rgba(0, 60, 100, 0.12);
}


.project h3 {
    margin-top: 0;
}


/* ---------- Windows 7 Buttons ---------- */

.button-row {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 18px;
}


.win-button {
    display: inline-block;

    padding: 9px 18px;

    color: #17364a;

    font-size: 14px;
    text-decoration: none;

    border: 1px solid #7898a9;
    border-radius: 4px;

    background:
        linear-gradient(
            to bottom,
            #ffffff 0%,
            #f4fafc 42%,
            #d8e9f1 48%,
            #edf6fa 100%
        );

    box-shadow:
        inset 0 1px white,
        0 1px 2px rgba(0, 50, 80, 0.2);

    text-shadow: 0 1px white;

    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        background 0.15s;
}


.win-button:hover {
    border-color: #3c9dcc;

    background:
        linear-gradient(
            to bottom,
            #ffffff 0%,
            #e7faff 42%,
            #b8eaff 48%,
            #dff7ff 100%
        );

    box-shadow:
        inset 0 0 5px white,
        0 0 7px rgba(0, 170, 240, 0.5);
}


.win-button:active {
    background:
        linear-gradient(
            to bottom,
            #bde9fa,
            #e8f9ff
        );

    box-shadow:
        inset 0 2px 4px rgba(0, 80, 120, 0.25);
}


/* ---------- Interest Tags ---------- */

.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}


.tags span {
    display: inline-block;

    padding: 6px 11px;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #dceef7
        );

    border: 1px solid #a2becd;
    border-radius: 4px;

    box-shadow:
        inset 0 1px white;

    color: #174764;
}


.tags span:hover {
    border-color: #56a9d1;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #c7efff
        );
}


/* ---------- Normal Links ---------- */

main a:not(.win-button) {
    color: #0066aa;
}

main a:not(.win-button):hover {
    color: #0099dd;
}


/* ---------- Footer ---------- */

footer {
    padding: 14px 20px;

    text-align: center;

    font-size: 12px;
    color: #27485c;

    background:
        linear-gradient(
            to bottom,
            rgba(240,250,255,0.92),
            rgba(190,220,235,0.9)
        );

    border-top: 1px solid #9cb8c7;

    text-shadow: 0 1px white;
}


/* ---------- Text Selection ---------- */

::selection {
    background: #3399ff;
    color: white;
}


/* ---------- Scrollbar ---------- */

/* Chromium / newer browsers */

::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #e6f0f5;
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            to right,
            #c6dce7,
            #f4fbff,
            #abcbdc
        );

    border: 1px solid #789cac;
    border-radius: 3px;
}


/* ---------- Mobile ---------- */

@media (max-width: 650px) {

    body {
        padding: 12px 8px;
    }

    .window {
        border-radius: 7px;
    }

    .titlebar {
        min-height: 40px;
    }

    .window-buttons span {
        width: 38px;
    }

    .window-buttons .close {
        width: 45px;
    }

    .toolbar {
        padding: 6px;
    }

    .toolbar a {
        flex-grow: 1;
        text-align: center;

        padding: 7px 8px;
    }

    main {
        padding: 12px;
    }

    .panel {
        padding: 19px 17px;
        margin-bottom: 14px;
    }

    .button-row {
        flex-direction: column;
    }

    .win-button {
        text-align: center;
        width: 100%;
    }

    .welcome h1 {
        font-size: 2.2rem;
    }
}