:root {
    --color-text-dark: rgba(0, 0, 0, 0.75);
    --color-text-light: #fff;
    --color-border-light: rgba(0, 0, 0, 0.03);
    --color-border-dark: rgba(0, 0, 0, 0.09);
    --color-shadow-light: rgba(0, 0, 0, 0.09);
    --color-shadow-mid: rgba(0, 0, 0, 0.11);
    --color-shadow-strong: rgba(0, 0, 0, 0.17);

    --shadow-card: 0 6px 34px var(--color-shadow-light),
        0 3px 6px -3px var(--color-shadow-mid);
    --shadow-button: 0 3px 7px var(--color-shadow-strong);

    --radius-lg: 16pt;
    --radius-md: 14pt;
    --radius-sm: 11pt;

    --cursor-default: url("img/cursor.svg"), auto;
    --cursor-hand: url("img/hand cursor.svg"), auto;
    --cursor-zoom: url("img/picture zoom.svg"), auto;

    --gradient-dark: linear-gradient(180deg, #272727 0%, #020202 100%, #0B0B0B 100%);
    --gradient-dark-hover: linear-gradient(180deg, #383B3B 0%, #161919 100%, #161919 100%);
}

.projectInfoRows,
.purposeRow {
    display: flex;
    gap: 12pt;
    flex-wrap: wrap;
    align-items: center;
}

.projectInfoRows {
    align-items: flex-start;
}

.purposeAndCategory,
.toolsRow,
.yearInRow {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--color-text-dark);
    box-sizing: border-box;
    position: relative;
    box-shadow: var(--shadow-card);
    line-height: 0;
    text-align: center;
}

.purposeAndCategory::before,
.toolsRow::before,
.yearInRow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    border: 1px solid var(--color-border-light);
    box-shadow: inset 0 -3px 3px -1px #fff,
        inset 0 2px 7px -1px rgba(255, 255, 255, 0.5),
        inset 0 -12px 43px -3px rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    mask-border: url("img/mask@2x.png") 49% fill / 24pt;
    z-index: -1;
    box-sizing: border-box;
}

.toolsRow {
    min-height: 48pt;
    flex-wrap: wrap;
    padding: 0 14pt;
    cursor: var(--cursor-default) !important;
    gap: 0;
}

.toolsInsideRow {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 0;
}

.purposeAndCategory {
    margin: 0;
    height: 48pt;
}

.yearInRow {
    padding: 0 14pt;
    height: 48pt;
    border-radius: calc(var(--radius-lg) + 1pt);
}

.yearInRowText {
    margin: 0;
    line-height: 0;
}

.purpose {
    padding: 0 12pt;
    margin: 0;
    line-height: 0;
    height: 0;
}

.categoryRow,
.collabInRow,
.extraButton {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 5px;
    color: var(--color-text-light);
    border-radius: var(--radius-md);
    line-height: 0;
    box-shadow: var(--shadow-button);
    cursor: var(--cursor-hand);
    transition: box-shadow 0.3s, scale 0.3s, background-image 0.3s, transform 0.05s linear;
}

.categoryRow::before,
.collabInRow::before,
.extraButton::before {
    will-change: transform;
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--gradient-dark);
    border: 1px solid var(--color-border-light);
    box-shadow: inset 0 15px 53px rgba(255, 255, 255, 0),
        inset 0 21px 43px rgba(0, 0, 0, 0),
        inset 0 1px 1px -1px rgba(255, 255, 255, 0.5),
        inset 0 -1px 1px -1px rgba(255, 255, 255, 0.5),
        inset 0 -8px 13px -3px rgba(255, 255, 255, 0.08);
    mask-border: url("img/mask@2x.png") 49% fill / 48px;
    border-radius: 20px;
    z-index: -1;
    box-sizing: border-box;
    transition: box-shadow 0.3s, scale 0.3s, background-image 0.3s, transform 0.15s linear, filter 0.3s;
}

.categoryRow {
    height: 40pt;
    border-radius: var(--radius-sm);
}

.collabInRow,
.extraButton {
    height: 48pt;
}

.category,
.extraButtonText {
    cursor: var(--cursor-hand);
    color: var(--color-text-light);
    text-decoration: none;
    padding: 0 18px;
    margin: 0;
    line-height: 0;
}

.category,
.collabText,
.extraButton {
    user-select: none;
    -webkit-user-select: none;
}

.categoryRow::before {
    mask-border: url("img/mask@2x.png") 49% fill / 24px;
    border-radius: 16px;
}

.categoryRow:hover,
.collabInRow:hover,
.extraButton:hover {
    text-shadow: 2px 2px 15px rgba(255, 255, 255, 0.3);
    scale: 1.05;
}

.categoryRow:active,
.collabInRow:active,
.extraButton:active {
    scale: 0.95;
}

.categoryRow:hover::before,
.collabInRow:hover::before,
.extraButton:hover::before {
    background-image: var(--gradient-dark-hover);
    border: 1px solid var(--color-border-dark);
    filter: brightness(1.2);
}

.collabText {
    padding: 0 18px;
    box-sizing: border-box;
    user-select: none;
    cursor: var(--cursor-zoom);
}

.singleTool {
    padding: 0 10px;
    position: relative;
    cursor: var(--cursor-default) !important;
    justify-content: center;
    line-height: 0;
}

.singleTool::before {
    content: "";
    position: absolute;
    inset: 0;
    filter: blur(28px);
    z-index: -1;
    mix-blend-mode: overlay;
    border-radius: var(--radius-lg);
    opacity: 0;
    height: 18pt;
    transition: opacity 0.7s;
    overflow: hidden;
}

.singleTool:hover::before {
    opacity: 0.7;
}

.singleTool::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 18px;
    background-color: black;
    opacity: 0.4;
    border-radius: 1px;
    margin: 0 10px;
    top: 0;
    transform: translateY(-9px);
}

.singleTool:last-child::after {
    content: none;
}

#toolC4D::before {
    background: #6D7DEE;
}

#toolRedshift::before {
    background: #FF5143;
}

#toolRedGiant::before {
    background: #FF5143;
}

#toolForger::before {
    background: #2E2E2E;
}

#toolAE::before {
    background: #9748F2;
}

#toolProcreate::before {
    background: #841ebf;
}

#toolProcreateD::before {
    background: #c90176;
}

#toolProcreateD::before {
    background: #1D1C1A;
}

#toolLogic::before {
    background: #0b8375;
}

#toolAI::before {
    background: #DB7F3C;
}

#toolFigma::before {
    background: #08b723;
}

#toolSketch::before {
    background: #fda309;
}

#toolRhino::before {
    background: #af2929;
}

#toolUnity::before {
    background: #4d45b8;
}

#toolRebelle::before {
    background: #b84577;
}

#toolBlender::before {
    background: #df8b24;
}

#toolPhotoshop::before {
    background: #22b1ee;
}

#toolFCP::before {
    background: #c522ee;
}

#toolMillumin::before {
    background: #22c2ee;
}

#toolArduino::before {
    background: #06bebe;
}

#tool3dPrint::before {
    background: #20222a;
}

#toolXD::before {
    background: #e133d0;
}

#toolXcode::before {
    background: #0a82c7;
}

#toolSwiftUI::before {
    background: #336de1;
}


@media (max-width: 440px) {
    .yearInRow {
        width: 100%;
    }

    .purposeAndCategory {
        width: 100%;
        /* justify-content: space-between; */
    }

    .categoryRow {
        width: 100%;
    }

    .collabInRow {
        width: 100%;
    }

    .toolsRow {
        width: 100%;
    }
}