body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overscroll-behavior: none;
}

body {
    display: flex;
    flex-direction: column;

    padding-bottom: 24px;

    --mouse-x: 0%;
    --mouse-y: 0%;
    --mouse-x-grid: 0%;
    --mouse-y-grid: 0%;
    --radius: 96px;

    background-image: 
        linear-gradient(#c5fdd3, #94e1b4, #69c5a0, #45a994, #288d8a, #126171, #033854);

    font-family: Helvetica;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background-image:
        linear-gradient(to right, #033854, #126171, #288d8a, #45a994, #69c5a0, #94e1b4, #c5fdd3, transparent 2px),
        linear-gradient(to bottom, #033854, #126171, #288d8a, #45a994, #69c5a0, #94e1b4, #c5fdd3, transparent 2px);

    background-size: 15px 15px;
    background-repeat: repeat;

    mask-image: radial-gradient(
        circle var(--radius) at var(--mouse-x-grid) var(--mouse-y-grid),
        transparent 0%,
        transparent 40%,
        black 100%
    );
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background-image:
        radial-gradient(circle at var(--mouse-x) var(--mouse-y), #45a99384, transparent 100%),
        linear-gradient(to right, #033854, #126171, #288d8a, #45a994, #69c5a0, #94e1b4, #c5fdd3, transparent 5px),
        linear-gradient(to bottom, #033854, #126171, #288d8a, #45a994, #69c5a0, #94e1b4, #c5fdd3, transparent 5px);

    background-size:
        cover,
        15px 15px,
        15px 15px;

    background-repeat:
        no-repeat,
        repeat,
        repeat;

    mask-image: radial-gradient(
        circle var(--radius) at var(--mouse-x-grid) var(--mouse-y-grid),
        black 0%,
        black 40%,
        transparent 100%
    );
}

header {
    background: #033854;
    padding: 0px 64px;
}

div {
    display: flex;
}

div.nav-bar {
    align-items: center;
    justify-content: space-between;
    padding: 12px 0px;
    max-height: 50px;
}

div.nav-item-container {
    align-items: center;
    justify-content: space-between;
}

div.projects-container {
    flex-direction: row;
    flex-wrap: wrap;
}

div.project-card {
    margin: 8px 8px 16px 8px;
    width: 30%;
    border-radius: 16px;
    padding: 8px;
    background-color: #c5fdd372;
    flex-direction: column;
    align-items: center;
    transition: transform ease-in-out 0.3s;
}

div.project-card:hover {
    transform: translateY(-8px);
}

div.skill-container {
    margin: 16px;
    flex-wrap: wrap;
}

div.skill {
    font-weight: bolder;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    color: black;
    border-radius: 8px;
    background-color: white;
    padding: 8px;
    margin: 8px;
    transition: transform ease-in-out 0.3s;
}

div.skill:hover {
    transform: translateY(-8px);
}

div.image-container {
    border-radius: 8px;
    width: 95%;
    height: 200px;
    overflow-y: auto;
}

div.image-container::-webkit-scrollbar {
    display: none;
}

button {
    border: none;
    border-radius: 8px;
    margin: 0 8px;
    padding: 16px;
    font-weight: bolder;
    color: white;
    background-color: transparent;
    transition: background-color ease-in-out 0.3s;
    cursor: pointer;
}

button:hover {
    background-color: #c5fdd351;
}

p {
    margin: 8px;
}

img#logo {
    height: 48px;
    width: 48px;
    transition: transform 0.3s ease-in-out;
}

img#logo:hover {
    transform: scale(1.5) rotate(5deg) translateY(6px);

}

img#project-preview {
    border-radius: 8px;
    height: max-content;
    width: 100%;
}

img.icon{
    margin: 4px;
    height: 32px;
    width: auto;
}

.card-view {
    flex-direction: column;
    padding: 8px;
    border-radius: 8px;
    background-color: #03385451;
    color: white;
    margin: 32px 32px 8px 32px;
    transition: background-color ease-in-out 0.3s,
                color ease-in-out 0.5s,
                transform ease-in-out 0.3s;
}

.card-view:hover {
    background-color: #033854da;
    transform: scale(1.0125);
}

.card-view h1, h3 {
    margin: 8px;
}

.card-view#recent-projects {
    text-align: center;
}

.card-view#all-projects {
    padding: 24px;
    text-align: center;
}
