@import './variables.css';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

.hidden {
    display: none;
}

body {
    overflow-x: hidden;
    background-color: var(--offBlack);
    cursor: none !important;
}

body > * {
    cursor: none !important;
}

body > *:hover {
    cursor: none !important;
}

body h1 {
    color: var(--offWhite);
    font-family: var(--fontBody);
    font-size: var(--fontSizeH1);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

body p,
body a {
    color: var(--offWhite);
    font-family: var(--fontBody);
    font-size: var(--fontSizeP);
    font-style: normal;
    font-weight: 300;
    line-height: 1.75rem;
}

body h2 {
    color: var(--offWhite);
    font-family: var(--fontBody);
    font-size: var(--fontSizeH2);
    font-style: normal;
    font-weight: 600;
    line-height: 1.25rem;
    /* 117.647% */
}

/* HEADER */
body header {
    margin-bottom: var(--gapXL);
    margin: 20px;
}

/* LOGO */
body header img {
    width: 10.25rem;
}

/* NAVIGATION BAR */
body header nav {
    z-index: 10;
}

body header nav ul {
    position: relative;
        list-style: none;
        display: flex;

        border-radius: 1.875rem;
        border: var(--menuBorder);
        background: var(--offBlack);
}

body header nav ul a {
    position: relative;
    display: flex;
    height: 2.6875rem;
    padding: 0.625rem 2rem;
    /* justify-content: center; */
    align-items: center;
    text-decoration: none;
    z-index: 1;
}

/* THE MOVING PILL */
body header nav ul .nav-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2.6875rem;
    min-width: 2.6875rem;
    display: block;
    border-radius: 1.875rem;
    z-index: 0;

    /* INNER FILL */
    background: var(--fadedGradientBg);
    transition: left 0.35s cubic-bezier(.4, 0, .2, 1), width 0.35s cubic-bezier(.4, 0, .2, 1);
}

/* GRADIENT BORDER */
body header nav ul .nav-indicator::before {
    content: "";
    position: absolute;
    inset: -2.5px;
    padding: 2.5px;
    border-radius: inherit;
    background: var(--gradientOutline);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* DARK/LIGHT MODE */
body header button {
    display: flex;
    width: 4.5625rem;
    height: 2.6875rem;
    height: 2.8rem;
    padding: 0.625rem 0.45rem;
    align-items: center;

    border-radius: 1.875rem;
    border: var(--menuBorder);
    display: none;
}

body header button span {
    display: flex;
    position: relative;

    /* use flex to center contents */
    justify-content: center;
    /* horizontal centering */
    align-items: center;
    /* vertical centering */
    width: 2rem;
    height: 2rem;
    border-radius: 1.875rem;
}

body header button span svg {
    width: 1.0625rem;
    height: 1.00938rem;
    aspect-ratio: 17/16.15;
}

body header .dark_mode {
    justify-content: flex-end;
    background: var(--offBlack);
}

body header .dark_mode span {
    background: var(--gradientOutline);
}

body header .light_mode {
    justify-content: flex-start;
    background: var(--offWhite);
}

body header .light_mode span {
    background: var(--offBlack);
}


@media (max-width: 800px) {

    .outer_cursor,
    .inner_cursor {
        display: none;
    }

    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    /* NAVIGATION BAR */
    nav {
        width: fit-content;
        position: fixed;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        /* display: flex;
        gap: var(--gapS);
        flex-direction: row-reverse; */
    }
}


@media (min-width: 800px) {
    body {
        max-width: 1600px;
    }

    body header {
        margin: 30px 60px;
        display: flex;
        justify-content: space-between;
        align-self: center;
        align-items: center;
    }

    /* LOGO */
    body header img {
        width: 12.25rem;
    }

    body header div {
        display: flex;
        gap: var(--gapL);
    }

    /* NAVIGATION BAR */
    body header nav {
        width: fit-content;
        position: relative;
    }

    body header nav ul a {
        padding: 0.625rem 2rem;
    }

    body main #decoration_line {
        width: 9.375rem;
        height: 0.0625rem;
        background-color: var(--grey);
        margin-bottom: var(--gapM);
    }

    .inner_cursor {
        position: fixed;
        left: 10px;
        top: 10px;
        height: 10px;
        width: 10px;
        transform: translate(-50%, -50%) scale(1);
        background: var(--offWhite);
        clip-path: none;
        border-radius: 50%;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 100;
        opacity: 1;
    }

    .inner_cursor.cursor-fill {
        /* transform: translate(-50%, -50%) scale(2.5);
        background: linear-gradient(283deg, #31448A -7.23%, #ED6D3D 110.31%); */
        display: none;
    }

    .outer_cursor {
        position: fixed;
        left: 10px;
        top: 10px;
        width: 90px;
        height: 85px;
        transform: translate(-50%, -50%);
        pointer-events: none;
        transition: left 0.2s ease-out, top 0.2s ease-out;
        z-index: 50;
    }

    .outer_cursor svg {
        width: 100%;
        height: 100%;
    }

    /* default: ghost fill */
    .cursor-fill-path {
        fill: transparent;
    }

    .cursor-fill .cursor-fill-path {
        fill: url(#cursor-gradient-hover);
    }

    .grad-stop-1,
    .grad-stop-2 {
        stop-opacity: 0.2;
        transition: stop-opacity 0.3s ease;
    }

    /* active: full fill */
    .outer_cursor.cursor-fill .grad-stop-1,
    .outer_cursor.cursor-fill .grad-stop-2 {
        stop-opacity: 1;
    }

    .outer_cursor.cursor-fill {
        transform: translate(-50%, -50%);
        transition: transform 0.3s ease, left 0.2s ease-out, top 0.2s ease-out;
    }

    /* text mode stays the same as before */
    .outer_cursor.cursor-text {
        clip-path: none;
        background-color: var(--black);
        transform: translate(10px, -50%);
        position: fixed;
        left: 0;
        top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 30px;
        width: fit-content;
        padding: 0 0.625rem;
        border-radius: 3.75rem;
        z-index: 4000;
    }

    .outer_cursor.cursor-text svg {
        display: none;
    }

    .outer_cursor.cursor-text p {
        color: red;
    }
}