.hero {
    padding: 2rem;
    min-height: 100vh;

    background-image: url("../assets/blackhole.png");
    background-position: center;
    background-size: 70%;
    background-repeat: no-repeat;
}

.header {
    padding: 2rem;
}

.cursor-square {
    position: fixed;
    width: 48px;
    height: 48px;
    background: #8dffa0;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 1000;
    transition: opacity 0.4s ease; /* Optional for fade out effect */
}

h1 {
    font-size: clamp(3rem, 7rem, 8vw) !important;

    &.head {
        font-size: clamp(3.5rem, 7rem, 8vw) !important;
    }
}

h2 {
    font-size: clamp(2.75rem, 4.5rem, 7vw) !important;
}

h3 {
    font-size: clamp(2rem, 3.5rem, 7vw) !important;
}

h4 {
    font-size: clamp(1.5rem, 2.5rem, 6vw) !important;
}

h5 {
    font-size: clamp(1.5rem, 1.75rem, 6vw) !important;
}

button {
    transform: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;

    &:hover {
        background-color: transparent;
        color: white;
    }
}

input,
textarea {
    background-color: transparent;
    border: none;
    margin: 0;
}

textarea {
    resize: none;
    white-space: pre-wrap;
}

.checkmark {
    cursor: pointer;
    padding: 0.125rem;
    height: 1.75rem;
    width: 1.75rem;

    &.error {
        border-color: #ff4444;
    }

    .inner {
        display: none;
        height: 100%;
        width: 100%;

        svg {
            height: 100%;
            width: 100%;
            color: var(--white);
        }
    }

    &.active {
        .inner {
            display: block;
        }
    }
}

a.link {
    color: white !important;
}

.fs-cl {
    font-size: clamp(1.25rem, var(--default-font-size), 4.5vw) !important;
}

.ls-5p {
    letter-spacing: 5%;
}

.ls-15p {
    letter-spacing: 15%;
}

.project {
    img {
        transform: scale(1);
        transition: transform 0.75s ease;
    }

    &:hover {
        img {
            transform: scale(1.05);
        }
    }
}

@media only screen and (min-width: 991px) {
    .expertise {
        border: solid 1px var(--gray-800);

        .sub {
            padding-left: 4rem;
            padding-right: 4rem;
        }

        .grid:first-child {
            border-bottom: solid 1px var(--gray-800);
        }

        .grid:first-child > .sub:first-child {
            border-right: solid 1px var(--gray-800);
        }

        .grid:first-child > div .sub:last-child {
            border-top: solid 1px var(--gray-800);
        }

        .grid:last-child > .sub:first-child {
            border-right: solid 1px var(--gray-800);
        }
    }

    .zz-table {
        .cell:nth-child(1) {
            grid-column: 1;
            grid-row: 1;
        }

        .cell:nth-child(2) {
            grid-column: 2;
            grid-row: 2;
        }

        .cell:nth-child(3) {
            grid-column: 3;
            grid-row: 1;
        }

        .cell:nth-child(4) {
            grid-column: 4;
            grid-row: 2;
        }

        .cell {
            margin-left: -1px;
            margin-top: -1px;
            padding: 4rem;
        }

        .cell:nth-child(1),
        .cell:nth-child(3) {
            margin-top: 0;
        }
    }

    .dg-table {
        .cell:nth-child(1) {
            grid-column: 1;
            grid-row: 1;
        }

        .cell:nth-child(2) {
            grid-column: 2;
            grid-row: 2;
        }

        .cell {
            margin-left: -1px;
            margin-top: -1px;
            padding: 4rem;
        }

        .cell:first-child {
            margin-top: 0;
            margin-left: 0;
        }

        &.reverse {
            .cell:nth-child(1) {
                grid-column: 2;
                grid-row: 1;
            }

            .cell:nth-child(2) {
                grid-column: 1;
                grid-row: 2;
            }

            .cell {
                margin-right: -1px;
                margin-top: -1px;
                padding: 4rem;
            }
        }
    }
}

@media only screen and (max-width: 991px) {
    .hero {
        min-height: 90vh;
        background-size: 150%;
        padding: 1rem;
        padding-bottom: 2rem;
    }

    .header {
        padding: 1rem;
    }

    .expertise {
        border: solid 1px var(--gray-800);

        .sub {
            padding-left: 2rem;
            padding-right: 2rem;
        }

        .grid:first-child .sub {
            border-bottom: solid 1px var(--gray-800);
        }

        .grid:last-child > .sub:first-child {
            border-bottom: solid 1px var(--gray-800);
        }
    }

    .zz-table,
    .dg-table {
        .cell {
            grid-column: 1 !important;
            grid-row: auto !important;
            margin-left: 0;
            margin-top: -1px;
            padding: 2rem;
        }

        .cell:first-child {
            margin-top: 0;
        }
    }
}
