body::-webkit-scrollbar-track {
    background: aliceblue !important;
}

body::-webkit-scrollbar-thumb {
    border: 3px solid aliceblue !important;
}

.hero-section {
    background-color: aliceblue;
}

nav {
    color: var(--primary-bg-color);
}

nav ul a {
    color: var(--primary-bg-color);
}

nav ul a:hover {
    color: var(--blue-color);
}

.brand a {
    text-decoration: none;
    color: var(--primary-bg-color);
}

.highlited {
    border: 2px solid var(--primary-bg-color);
}

.highlited:hover {
    border: 2px solid var(--blue-color);
}

.active {
    color: var(--blue-color);
    pointer-events: all;
}

.highlited-active {
    border: 2px solid var(--blue-color);
}


.hero-section:has(a:hover) #cursor-hero-section {
    height: 30px;
    width: 30px;
}

/**/

.background-circles {
    position: absolute;
    height: 110vh;
    width: 100vw;
    overflow: hidden;
    z-index: 0;
    filter: opacity(0.5) blur(5px);
}

.background-circle1 {
    position: absolute;

    border-radius: 50%;
    border: 30px solid var(--primary-bg-color);
    z-index: 0;

    height: 170vh;
    width: 170vh;
    bottom: 15%;
    right: -35%;
    left: 45%;
}

.background-circle2 {
    position: absolute;
    /* bottom: 20%;
    right: 30%; */
    height: 50vh;
    width: 50vh;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    border-radius: 50%;
    border: 30px solid var(--blue-color);
    z-index: 0;
}

.background-circle3 {
    height: 40vh;
    width: 40vh;

    transform: translate(-50%, -60%);

    border-radius: 50%;
    border: 30px solid var(--blue-color);
    z-index: 0;
}

/**/

.hero-section {
    background-color: aliceblue;
    color: var(--primary-bg-color);
}

#cursor-hero-section {
    height: 0px;
    width: 0px;
}

.hero-section:hover #cursor-hero-section {
    height: 60px;
    width: 60px;
}

.title-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    color: var(--primary-bg-color);
}

.title {
    text-align: center;
    color: var(--primary-bg-color);
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-bg-color);
    font-size: clamp(5rem, 10vw, 200px);
}

.title-stroked {
    /* text-stroke: 2px aliceblue; */
    /* -webkit-text-stroke: 2px aliceblue; */
}

.text-thin {
    color: var(--primary-bg-color);
}


.description {
    color: var(--primary-bg-color);
    width: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-shadow: 0px 0px 5px aliceblue;
}

*::selection {
    color: aliceblue !important;
    background-color: var(--purple-color);
}

.hero-section *::selection {
    color: aliceblue !important;
    background-color: var(--purple-color);
}

.arrow {
    top: 90vh;
    height: clamp(100px, 15vw, 150px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* border: 1px solid red; */
}

.btn-return {
    position: fixed;
    overflow: hidden;
    top: 80px;
    right: 2rem;
    color: var(--primary-bg-color);
    filter: drop-shadow(1px 1px 1px black);
    text-decoration: none;
    z-index: 100;
    /* outline: 1px red solid; */
    padding-left: 2rem;
    cursor: pointer;
}

.btn-return::before {
    position: absolute;
    /* content: "← "; */
    content: url(/assets/images/arrow-right.svg);
    filter: invert(1);
    transform: translateX(-5rem) rotateZ(180deg);
    transition: all 200ms ease-in-out;
}

.btn-return:hover {
    color: var(--blue-color);
}

.btn-return:hover::before {
    transform: translateX(-1.5rem) rotateZ(180deg);
    filter: invert(87%) sepia(39%) saturate(1671%) hue-rotate(6deg) brightness(98%) contrast(101%);
}

.btn-white-bg {
    filter: drop-shadow(0 0 0 aliceblue);
}

.btn-white-bg:hover::before {
    transform: translateX(-1.5rem) rotateZ(180deg);
    filter: invert(52%) sepia(35%) saturate(4648%) hue-rotate(161deg) brightness(94%) contrast(101%);
}

.section1 a {
    width: 100%;
}

.grid {
    margin: 0 auto;
    gap: 40px 30px;
    max-width: 1900px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    justify-content: space-evenly
}

.colored-underline {
    position: relative;
    /* font-family: 'Helvetica Rounded Bold'; */
    font-weight: 700;
    text-wrap: nowrap;
    /* color: var(--blue-color); */
    z-index: 1;
}

.colored-underline::before {
    content: "";
    position: absolute;
    width: 100%;
    height: clamp(7px, 5vw, 10px);
    left: 0;
    bottom: 0;
    background-color: var(--yellow-color);
    border-radius: 15px;
    z-index: -1;
}

.project-preview-container {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    text-align: center;

    background-color: var(--primary-bg-color);
    color: aliceblue;

    height: auto;
    width: 100%;
    max-height: 360px;
    max-width: 640px;
    aspect-ratio: 16/9;

    border: 2px solid var(--primary-bg-color);
    border-radius: 10px;
    cursor: cell;
    overflow: hidden;
}

.project-preview-container img, .project-preview-container video {
    height: auto;
    width: 100%;

    max-height: 360px;
    max-width: 640px;
    object-fit: cover;
    transform: scale(1);
    /* filter: grayscale(1); */
    /* transition: filter 200ms ease; */
    transition: transform 200ms ease;
}

.project-preview-container img, .project-preview-container video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1);
    opacity: 1;
    transition: all 200ms ease;
}

.project-preview-container:hover img, .project-preview-container:hover video {
    opacity: 0.8;
    transform: scale(1.05);
}

.project-preview-container span {
    position: absolute;
    color: aliceblue;
    font-family: 'Helvetica Rounded Bold';
    font-size: 2rem;
    opacity: 0;
    width: 100%;
    transition: opacity 200ms ease;
    text-shadow: 0 0 15px var(--primary-bg-color);
}

.project-preview-container span font { /*to fix color when translating*/
    color: aliceblue;
}

.project-preview-container:hover span {
    opacity: 1;
    color: aliceblue;
}


/*** Mobile css ***/

@media screen and (max-width: 768px) {
    .btn-return {
        right: auto;
        left: 1.5rem;
        /* right: 50%;
        transform: translateX(50%); */
    }

    .btn-return::before {
        transform: translateX(-1.5rem) rotateZ(180deg);
        filter: invert(1);
    }

    .btn-white-bg::before {
        transform: translateX(-1.5rem) rotateZ(180deg);
        filter: none;
    }

    .background-circle1 {
        height: 150vh;
        width: 150vh;
        top: -55vh;
        right: -100vw;
    }

    .background-circle3 {
        height: 30vh;
        width: 30vh;
        transform: translate(-50%, -50%);
    }

    .title-container {
        padding-left: 0;
    }

    .title {
        padding-left: 0;
    }

    .description {
        text-shadow: 0px 0px 5px aliceblue;
    }

    .section1 .section-title2 {
        margin: 0 0 2rem 0;
    }

    .project-preview-container img {
        opacity: 0.8;
    }

    .project-preview-container span {
        font-size: 1.5rem;
        opacity: 1;
    }
}

/* Fixes for high density displays:: iphones */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2),
only screen and (max-width: 768px) and (min--moz-device-pixel-ratio: 2),
only screen and (max-width: 768px) and (-o-min-device-pixel-ratio: 2/1),
only screen and (max-width: 768px) and (min-device-pixel-ratio: 2),
/* For iPhone X, XS, 11 Pro */
only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {


    .grid {
        margin: 0 auto;
        gap: 40px 30px;
        max-width: 1900px;
        display: flex;
        flex-wrap: wrap !important;
        justify-content: center;
        justify-content: space-evenly
    }

    .project-preview-container {
        
        height: fit-content !important;
        width: 90vw !important;
        min-height: 30vw !important;
        min-width: 90vw !important;

        aspect-ratio: 16/9 !important;
    }

}