:root {
    --ease-time: .5s;
    /* Global variable */
    --font-size-base: 16px;
}

@font-face {
    font-family: 'HumaneVariable';
    src: url('./assets/fonts/Humane-VF.woff') format('woff');
    font-style: normal;
    font-weight: 100 900;
    /* variable font weight range */
    text-rendering: optimizeLegibility;
    font-display: swap;
}

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn var(--ease-time) ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-fade {
    transform: translateY(10px);

    opacity: 0;
    animation: fadeIn var(--ease-time) ease-out forwards;
}

.delay-0 {
    animation-delay: 0s;
}

.delay-1 {
    animation-delay: .2s;
}

.delay-2 {
    animation-delay: .4s;
}

.delay-3 {
    animation-delay: .8s;
}


* {
    font-family: "Geist", monospace;
    margin: 0;
    font-weight: 200;
}

b {
    font-weight: 500;
}

.darkveil-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

body {
    padding: 10px 20%;
    background-color: black;
    color: rgba(255, 255, 255, 0.933);
}

h1,
h3 {
    font-family: "HumaneVariable", Helvetica, sans-serif;

}

h1 {
    font-size: 200px;
    padding-top: 70px;
    line-height: .8;
}

h2 {
    font-weight: 300;
    padding-bottom: 10px;
    letter-spacing: -1px;
}

header h2 {
    font-size: 30px;
}

h3 {
    letter-spacing: 1px;
    font-size: 60px;
    font-weight: 700;
    padding-bottom: 10px;
}

nav {
    background-color: #ff000084;
    padding: 7px 25px;
    border-radius: 10px;
    margin-top: 7px;
    margin-bottom: 0px;
    position: relative;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(to left, transparent, black 80%);
    mask-image: linear-gradient(to left, transparent, black 80%);
    transition: background-color var(--ease-time) ease;
}

nav:hover {
    background-color: #ff000043;

}

nav a {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.551);

    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    color: white;
    transition: color 0.3s ease;
}


nav a:hover {
    color: #ff4141;
}

.intro {
    margin-top: 15px;

}

.intro p {
    margin-bottom: 15px;
    line-height: 150%;
}

hr {
    opacity: .2;
}

.box-element {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    max-width: 1200px;
    width: 100%;

    margin: 30px auto;

    align-items: stretch;
    transition: transform .3s ease;
}

.box-element:hover {
    transform: translateX(5px);
}

.box-element:hover .box-img {
    transform: translateX(-6px);
}

.box-txt {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.box-img {
    object-fit: cover;
    max-width: 300px;

    border-radius: 50%;
    aspect-ratio: 1;

    filter: grayscale();

    transition: transform .7s ease;
}

footer {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
}

footer p {
    opacity: .4;
    font-weight: 100;
    font-size: 15px;
}

.contacts {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.contacts img {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(100%);
    transition: transform 0.3s ease;
    height: 20px;
    width: auto;
}

.contacts img:hover {
    transform: translateY(-4px) rotate(10deg);
}



/* toolbox section */
.tools-showcase {
    /* debug colors */
    /* background-color: #e2e8f04f; */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 30px;

}

.tool {
    /* background-color: #ff000084; */
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    border: 1px solid #ffffff36;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px 5px 5px;
}

.tool-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-icon {
    width: 35px;
    height: 35px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.tool-icon img {
    width: 90%;
    height: 90%;
    object-fit: scale-down;
}

.tool-name {
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

.tool-desc {
    font-weight: 100;
    opacity: .7;
    font-size: .8em;
    transition: all 0.3s ease;
    white-space: nowrap;

}

.tool:hover {
    border-color: #ffffff7e;
}

.tool:hover .tool-icon {
    transform: scale(1.8);
    border-radius: 50%;

}

.tool:hover .tool-name {
    transform: translateX(8px);

}

.tool:hover .tool-desc {
    transform: translateX(-3px);
    padding-top: 4px;
    padding-bottom: 4px;

}



/* clipping issues w name */
@media (max-width: 1390px) {
    header h2 {
        padding-top: 18px;
        font-size: 30px;
    }

    .tools-showcase {
        grid-template-columns: 1fr 1fr;
    }
}



/* mobile fix */
@media (max-width: 800px) {
    .tools-showcase {
        justify-content: center;

    }

    body {
        padding: 10px 10%;
        text-align: center;
    }

    .intro {
        text-align: center;
        margin-inline: 0;
    }


    .box-element {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .box-element:hover {
        transform: translateY(-4px);
    }

    .box-element:hover .box-img {
        transform: translateY(-6px);
    }

    .box-img {
        max-width: none;
        width: 100%;
        max-height: 300px;

        border-radius: 90px;
    }


    .box-txt {
        padding: 15px 10px;
    }

    footer {
        align-items: center;
        text-align: center;
    }

    h1 {
        font-size: 27vw;
        line-height: .8;
        padding-bottom: 10px;
    }

    header h2 {
        padding-top: 0px;
        font-size: 30px;
    }

    nav {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .tools-showcase {
        /* debug colors */
        /* background-color: #e2e8f04f; */
        display: flex;
        flex-wrap: wrap;
    }

    .tool-bg {
        margin: 0px;
        border-radius: 15px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 15px;
    }

    .tool {
        /* background-color: #ff000084; */
        margin: 0px;
        border-radius: 15px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 15px;
        width: 100px;
    }

    .tool-left {
        flex-direction: column;
    }

    .tool-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 0px;
    }

    .tool-desc {
        font-size: .7em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .tool:hover {
        padding: 15px;
    }


    .tool:hover .tool-name {
        transform: none;

    }

    .tool:hover .tool-icon {
        transform: scale(1.1);

    }


    .tool:hover .tool-desc {
        transform: none;
        padding: 0px;

    }

}