@font-face {
    font-family: dirty;
    src: url('dirtyline.ttf');
}

@font-face {
    font-family: Syne;
    src: url('Syne-Regular.ttf');
}

@font-face {
    font-family: helve;
    src: url('Helvetica.ttf');
}

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

html,
body {
    width: 100%;
    height: 100%;
}


#fluid {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

#main {
    height: 100%;
    background-color: #0c0c0c;
    overflow-x: hidden;
}

#page1 {
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(to bottom, #282828, #19191D, #0D0D17);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#overlay,
#overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.8s ease-in-out;
    z-index: 9999;
    pointer-events: none;
}

#page1 #nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#page1 #logo {
    z-index: 2;
    height: 10vh;
    width: auto;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 2rem;
}

#page1 #logo img {
    z-index: 1000;
    width: 80px;
    height: auto;
    object-fit: contain;
    filter: grayscale(80%);
}

#menu-button {
    font-family: syne;
}

.overlay-men {
    position: relative;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
}

.overlay-men svg path {
    fill: rgb(8, 8, 8);
}

#toggle-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2em;
    z-index: 2;
    cursor: pointer;
}

#hamburger {
    position: relative;
    width: 30px;
    height: 20px;
    color: white;
    z-index: 2;
}

#hamburger span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    width: 24px;
    height: 1.25px;
    background: white;
    background-color: white;
    transition: transform 0.25s;
}

#hamburger span::before {
    position: absolute;
    right: 0;
    display: inline-block;
    content: "";
    width: 24px;
    height: 1.25px;
    background: white;
    background-color: white;
    top: -6px;
    transition: transform 0.25s;
}

#hamburger.active span {
    background: white;
    background-color: white;
    transform: rotate(45deg);
}

#hamburger.active span::before {
    background: white;
    top: 0;
    width: 24px;
    transform: rotate(-90deg);
    background-color: white;
}

.menu-men {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    z-index: 1;
    visibility: hidden;
}

.menu-men>div {
    height: 100%;
    display: flex;
}

.menu-container {
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-item {
    position: relative;
    opacity: 0;
}

.menu-item:after {
    content: "";
    position: absolute;
    top: 100px;
    left: -20px;
    width: 120%;
    margin: 0 auto;
}

.menu-men .primary-menu a {
    font-weight: 600;
    position: relative;
    top: 120px;
    left: 50px;
    line-height: 10%;
    text-decoration: none;
    color: #e2e2dc;
}

.menu-men .secondary-menu a {
    position: relative;
    top: 120px;
    line-height: 70%;
    text-decoration: none;
    color: #e2e2dc;
}

.menu-men a span {
    font-size: 20px;
    margin-right: 2em;
}

.primary-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 5%;
}

.primary-menu .menu-container .wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.primary-menu a {
    text-transform: uppercase;
    font-size: 120px;
}

.secondary-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5%;
}

.secondary-menu .menu-container {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36px;
}

.secondary-menu .menu-container .wrapper:nth-child(1) {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.secondary-menu .menu-container .wrapper:nth-child(1) a,
.secondary-menu .menu-container .wrapper:nth-child(2) a {
    margin-left: 1em;
}

#page1 #menu button {
    padding: 10px;
}

.button-animation {
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    font-family: helve;
    font-size: 1.3vw;
    border: none;
    outline: none;
    color: rgb(255, 255, 255);
    cursor: pointer;
    background-color: transparent;
}

.button-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0.5px;
    left: 0;
    bottom: 0;
    transform: scale(0, 1);
    transition: transform 0.3s ease;
    background-color: rgb(255, 255, 255);
}

.button-animation:hover::after {
    transform: scale(1, 1);
}

#page1 #center-contaier {
    display: flex;
    justify-content: center;
    align-items: center;
    /* flex-direction: column; */
}

#page1 #right-image {
    position: absolute;
    right: 22%;
    top: 35%;
}

#page1 #left-image {
    position: absolute;
    left: 18%;
    top: 55%;
}

#page1 #left-image img {
    width: 90%;
    height: 80%;
}

#page1 #header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#page1 #header h1 {
    z-index: 1;
    mix-blend-mode: difference;
    text-transform: uppercase;
    font-weight: 100;
    font-family: helve;
    font-size: 8vw;
    color: #e8f3fc;
    text-align: left;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 0.95;
}

#page1 #header h1 .left {
    text-align: left;
}

#page1 #header h1 .right {
    text-align: right;
}

#page1 #header h1 .narrative {
    text-align: left;
    margin-left: 5%;
}

br {
    display: none;
}

#page1 #header h2 {
    font-weight: 100;
    font-family: Syne;
    font-size: 1vw;
    color: #ffffff;
    text-align: center;
}

#page2 {
    height: 90vh;
    width: 100vw;
    background: linear-gradient(to bottom, #0D0D17, #19191d, #151520);
    position: relative;
    overflow: hidden;
}

#page2 #content {
    height: 50vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page2 #header-title {
    z-index: 1;
    mix-blend-mode: difference;
    padding: 7vh 12vh;
    margin-left: 2vw;
    width: 30%;
    height: 100%;
}

#page2 #content #header-title h1 {
    font-weight: 100;
    font-family: helve;
    font-size: 3vw;
    color: white;
}

#page2 #header-content {
    padding: 20vh 8vh;
    height: 100%;
    width: 80%;
}

#page2 #content #header-content h2 {
    font-weight: 300;
    font-size: 2vw;
    word-spacing: 7px;
    font-family: helve;
    color: white;
    text-transform: uppercase;
}

#explore-button-d {
    padding-top: 5vh;
    margin-left: 30vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-button {
    position: relative;
    padding: 1.5vh 2vw;
    font-size: 1.1rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: none;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 35px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

.explore-button::before,
.explore-button::after {
    content: '';
    position: absolute;
    inset: -0.2em;
    background: conic-gradient(from 180deg at 50% 50%,
            #040cff 0deg,
            #00ffff 90deg,
            #8B5CF6 180deg,
            #040cff 270deg,
            #00ffff 360deg);
    border-radius: 0.5em;
    z-index: -1;
    animation: rotate 4s linear infinite;
}

.explore-button::after {
    filter: blur(3em);
    opacity: 0.3;
}

.explore-button span {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.explore-button>span::before {
    content: '';
    position: absolute;
    inset: -0.2em;
    background: #000;
    border-radius: 0.4em;
    z-index: -1;
    transition: all 0.4s ease;
}

.explore-button:hover {
    transform: scale(1.05);
    letter-spacing: 0.25em;
}

.explore-button:hover::before {
    animation: rotate 4s linear infinite, liquidEffect 6s linear infinite;
    filter: brightness(1.5);
}

.explore-button:hover::after {
    animation: rotate 4s linear infinite reverse, liquidEffect 6s linear infinite;
    opacity: 0.6;
}

.explore-button:hover>span::before {
    background: rgb(255, 227, 227);
    transform: scale(0.95);
}

.explore-button:active {
    transform: scale(0.95);
}

.explore-button:hover span {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes liquidEffect {

    0%,
    100% {
        border-radius: 0.5em;
    }

    25% {
        border-radius: 4em 0.5em 2em 1em;
    }

    50% {
        border-radius: 0.5em 2em 1em 3em;
    }

    75% {
        border-radius: 2em 1em 3em 0.5em;
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.explore-button::before {
    mask: radial-gradient(circle at 50% 2em,
            rgba(0, 0, 0, 1) 25%,
            transparent 50%);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

#scroll-animation {
    margin-top: 10vh;
    position: relative;
    border-top: 1px solid #ffffff1e;
    border-bottom: 1px solid #ffffff1e;
    height: 15vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#scroller {
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    position: relative;
}

#scroller-in {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    animation: scroll 35s linear infinite;
}

#scroller-in img {
    filter: saturate(1.2);
    width: 4vw;
    margin: 0 20px;
}

img[src="gallery/Flask.svg"] {
    filter: invert(1);
}

#page3 {
    height: 80vh;
    width: 100vw;
    background: linear-gradient(to bottom, #16161f, #121218);
    position: relative;
    overflow: hidden;
}

#header-div {
    display: flex;
    align-items: center;
}

#string {
    height: 200px;
    width: 60vw;
    position: relative;
}

#page3 h1 {
    padding: 5vh 15vh;
    font-size: 3vw;
    font-family: helve;
    font-weight: 400;
    color: white;
}

#page3 #content-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    width: 100vw;
}

#page3 #image-box-1 {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 70vh;
    width: 50vw;
}

#page3 #image-1 {
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.486);
    background-color: #CCD8FF;
    height: 40vh;
    border-radius: 10px;
    width: 80%;
    overflow: hidden;
    position: relative;
}

#page3 #image-1 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#page3 #content-box-1 {
    margin-top: -8vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    width: 60vw;
    height: 70vh;
}

#page3 #title-project-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50vw;
}

#page3 #title-box-1 {
    width: 90%;
}

#page3 #title-project-1 #links-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%;
}

#title-project-1 #links-1 img {
    height: 10%;
    width: 18%;
    margin: 0.5vw;
}

.filtered-image {
    filter: invert(100%);
}

#page3 #content-box-1 #title-project-1 h1 {
    font-family: helve;
    text-align: left;
    padding-left: 0;
    font-size: 1.9vw;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

.tags-container-1 {
    margin-top: -4vh;
    padding: 0 3vw;
    display: flex;
    gap: 15px;
}

.tag-1 {
    padding: 3px 40px;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #fff;
    font-family: syne;
    font-size: 2vh;
    text-align: center;
}

#page3 #content-box-1 h2 {
    padding: 6vh 0;
    padding-right: 10vw;
    word-spacing: 3px;
    text-align: left;
    font-size: 3vh;
    font-weight: 400;
    color: #ffffff;
    font-family: syne;
}

#page4 {
    height: 50vh;
    width: 100vw;
    background: linear-gradient(to bottom, #121218, #212127);
    position: relative;
    overflow: hidden;
}

#page4 h1 {
    padding: 5vh 15vh;
    font-size: 3vw;
    font-family: helve;
    font-weight: 400;
    color: white;
    font-family: "Manrope", sans-serif;
}

#page4 #content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    width: 100vw;
}

#page4 #image-box {
    margin-right: 2vw;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 70vh;
    width: 50vw;
}

#page4 #image {
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.486);
    background-color: #CCD8FF;
    border-radius: 10px;
    height: 40vh;
    width: 80%;
    overflow: hidden;
    position: relative;
}

#page4 #image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#page4 #content-box {
    margin-left: 5vw;
    margin-top: -8vh;
    display: flex;
    flex-direction: column;
    width: 60vw;
    height: 70vh;
}

#page4 #title-project {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50vw;
}

#page4 #title-box {
    margin-left: 1vw;
    width: 90%;
}

#page4 #content-box h1 {
    font-family: helve;
    text-align: right;
    padding-right: 0;
    font-size: 1.9vw;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

#page4 #title-project #links {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%;
}

#title-project #links img {
    height: 10%;
    width: 18%;
    margin: 0.5vw;
}

.tags-container {
    margin-top: -4vh;
    display: flex;
    margin-left: 40%;
    gap: 15px;
}

.tag {
    padding: 3px 40px;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #fff;
    font-family: syne;
    font-size: 2vh;
    text-align: center;
}

#page4 #content-box h2 {
    padding: 6vh 0;
    padding-left: 10vw;
    word-spacing: 5px;
    text-align: right;
    font-size: 3.2vh;
    font-weight: 400;
    color: #ffffff;
    font-family: helve;
}

#page5 {
    height: 50vh;
    width: 100vw;
    background: linear-gradient(to bottom, #212127, #191A1F);
    position: relative;
    overflow: hidden;
}

#page5 h1 {
    padding: 5vh 15vh;
    font-size: 3vw;
    font-family: helve;
    font-weight: 400;
    color: white;
    font-family: "Manrope", sans-serif;
}

#page5 #content-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    width: 100vw;
}

#page5 #image-box-1 {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 70vh;
    width: 50vw;
}

#page5 #image-1 {
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.486);
    background-color: #CCD8FF;
    border-radius: 10px;
    height: 40vh;
    width: 80%;
    overflow: hidden;
    position: relative;
}

#page5 #image-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#page5 #content-box-1 {
    margin-top: -8vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    width: 60vw;
    height: 70vh;
}

#page5 #title-project-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50vw;
}

#page5 #title-box-1 {
    width: 90%;
}

#page5 #title-project-1 #links-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%;
}

#title-project-1 #links-1 img {
    height: 10%;
    width: 18%;
    margin: 0.5vw;
}

.filtered-image {
    filter: invert(100%);
}

#page5 #content-box-1 #title-project-1 h1 {
    font-family: helve;
    text-align: left;
    padding-left: 0;
    font-size: 1.9vw;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

.tags-container-1 {
    margin-top: -4vh;
    padding: 0 1vw;
    display: flex;
    gap: 15px;
}

.tag-1 {
    padding: 3px 40px;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #fff;
    font-family: syne;
    font-size: 2vh;
    text-align: center;
}

#page5 #content-box-1 h2 {
    padding: 6vh 0;
    padding-right: 10vw;
    word-spacing: 5px;
    text-align: left;
    font-size: 3.5vh;
    font-weight: 400;
    color: #ffffff;
    font-family: helve;
}

#page6 {
    height: 100vh;
    width: 100vw;
    background: linear-gradient(to bottom, #191A1F, #13131c, #0b0b13);
    overflow: hidden;
}

#page6 #content-box {

    display: flex;
}

#page6 #left-box h1 {
    z-index: 1;
    mix-blend-mode: difference;
    font-size: 5vw;
    font-family: helve;
    font-weight: 400;
    color: white;
    text-transform: uppercase;
}

#page6 #left-box {
    line-height: 25vh;
    padding-left: 2vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    width: 50%;
}

#page6 #left-box #image-box-1 {
    border-radius: 10px;
    height: 50vh;
    width: 40vw;
    background-color: #CCD8FF;
    overflow: hidden;
}

#page6 #left-box #image-box-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#page6 #right-box {
    padding-right: 2vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    width: 50%;
}

#page6 #right-box #image-box-2 {
    border-radius: 10px;
    height: 50vh;
    width: 40vw;
    background-color: #CCD8FF;
    overflow: hidden;
}

#page6 #right-box #image-box-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#page6 #right-box h1 {
    text-align: center;
    padding: 4vh 10vh;
    font-size: 2.2vw;
    font-family: helve;
    font-weight: 500;
    color: white;
}

#ui-button-d {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-button {
    position: relative;
    padding: 1.5vh 2vw;
    font-size: 1.1rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: none;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 35px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

.ui-button::before,
.ui-button::after {
    content: '';
    position: absolute;
    inset: -0.2em;
    background: conic-gradient(from 180deg at 50% 50%,
            #040cff 0deg,
            #00ffff 90deg,
            #8B5CF6 180deg,
            #040cff 270deg,
            #00ffff 360deg);
    border-radius: 0.5em;
    z-index: -1;
    animation: rotate 4s linear infinite;
}

.ui-button::after {
    filter: blur(3em);
    opacity: 0.3;
}

.ui-button span {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.ui-button>span::before {
    content: '';
    position: absolute;
    inset: -0.2em;
    background: #000;
    border-radius: 0.4em;
    z-index: -1;
    transition: all 0.4s ease;
}

.ui-button:hover {
    transform: scale(1.05);
    letter-spacing: 0.25em;
}

.ui-button:hover::before {
    animation: rotate 4s linear infinite, liquidEffect 6s linear infinite;
    filter: brightness(1.5);
}

.ui-button:hover::after {
    animation: rotate 4s linear infinite reverse, liquidEffect 6s linear infinite;
    opacity: 0.6;
}

.ui-button:hover>span::before {
    background: rgb(255, 227, 227);
    transform: scale(0.95);
}

.ui-button:active {
    transform: scale(0.95);
}

.ui-button:hover span {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes liquidEffect {

    0%,
    100% {
        border-radius: 0.5em;
    }

    25% {
        border-radius: 4em 0.5em 2em 1em;
    }

    50% {
        border-radius: 0.5em 2em 1em 3em;
    }

    75% {
        border-radius: 2em 1em 3em 0.5em;
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.ui-button::before {
    mask: radial-gradient(circle at 50% 2em,
            rgba(0, 0, 0, 1) 25%,
            transparent 50%);
}

#page7 {
    height: 100vh;
    width: 100vw;
    background: linear-gradient(to bottom, #0c0c12, #111118, #17171d);
    overflow: hidden;
}

#page7 #container {

    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#page7 h1 {
    z-index: 1;
    mix-blend-mode: difference;
    color: white;
    font-size: 5vw;
    font-family: helve;
    text-transform: uppercase;
}

#page7 h3 {
    z-index: 1;
    mix-blend-mode: difference;
    color: white;
    font-weight: 100;
    font-size: 1.5vw;
    font-family: helve;
}

#page7 #links {
    padding: 5vh 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
}

#page7 #link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 55vw;
    padding: 0.6vw 1.2vw;
    font-size: 2.7vw;
    font-family: syne;
    border-bottom: 0.5px solid #ffffff4e;
    text-decoration: none;
    color: white;
    transition: transform 0.4s ease-out, color 0.4s ease-out, box-shadow 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

#page7 #link-item::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.771);
    transition: width 0.5s ease-out, left 0.5s ease-out;
}

#page7 #link-item:hover::after {
    width: 120%;
    left: -10%;
}

#page7 #link-item:hover {
    color: white;
    transform: scale(1.2);
}

#page7 #link-item img {
    width: 3.5vw;
    height: 3.5vw;
    transition: transform 0.5s ease-out;
}

#page7 #link-item:hover img {
    transform: rotate(15deg) scale(1.2);
}

#page8 {
    padding-top: 5vh;
    height: 50vh;
    width: 100vw;
    background: linear-gradient(to bottom, #17171d, #111116, #25252c);
    overflow: hidden;
}

#page8 #footer {
    display: flex;
    flex-direction: column;
}

#page8 #menu-link {
    padding: 2vw 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#page8 #menu-link #copyright h2 {
    font-weight: 100;
    font-size: 1.5vw;
    color: white;
    font-family: helve;
}

#page8 #page-link button {
    padding: 10px;
}

.button-link {
    font-weight: 500;
    position: relative;
    font-family: Syne;
    font-size: 1.5vw;
    border: none;
    outline: none;
    color: rgb(255, 255, 255);
    cursor: pointer;
    background-color: transparent;
}

.button-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0.5px;
    left: 0;
    bottom: 0;
    transform: scale(0, 1);
    transition: transform 0.3s ease;
    background-color: rgb(255, 255, 255);
}

.button-link:hover::after {
    transform: scale(1, 1);
}

#page8 #footer-title {
    padding: 0 3vw;
    z-index: 1;
    mix-blend-mode: difference;
}

#page8 #footer-title h1 {
    font-weight: 700;
    font-family: helve;
    font-size: 15vw;
    color: white;
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    #page1 #header h1 {
        font-size: 6vw;
    }

    #page2 #content #header-content h2 {
        font-size: 1.8vw;
    }

    .tags-container-1,
    .tags-container {
        flex-wrap: wrap;
    }

    .tag-1,
    .tag {
        padding: 3px 20px;
        font-size: 1.8vh;
    }
}

@media (max-width: 992px) {
    #page1 #header h1 {
        font-size: 7vw;
    }

    #page2 #content {
        flex-direction: column;
    }

    #page2 #header-title {
        width: 100%;
        padding: 3vh 5vh;
    }

    #page2 #header-content {
        width: 100%;
        padding: 3vh 5vh;
    }

    #page2 #content #header-content h2 {
        font-size: 2.2vw;
    }

    #explore-button-d {
        margin-left: 0;
        justify-content: center;
    }

    #page3 #content-1,
    #page4 #content,
    #page5 #content-1 {
        flex-direction: column;
    }

    #page3 #image-box-1,
    #page4 #image-box,
    #page5 #image-box-1 {
        width: 90%;
        margin: 2vh auto;
    }

    #page3 #content-box-1,
    #page4 #content-box,
    #page5 #content-box-1 {
        width: 90%;
        margin: 2vh auto;
    }

    #page6 #content-box {
        flex-direction: column;
    }

    #page6 #left-box,
    #page6 #right-box {
        width: 100%;
        padding: 2vh;
    }

    #page6 #left-box #image-box-1,
    #page6 #right-box #image-box-2 {
        width: 80%;
        margin: 2vh auto;
    }
}

@media (max-width: 576px) {
    #page1 #header h1 {
        font-size: 10vw;
        text-align: center;
    }

    .primary-menu a {
        font-size: 28px;
    }

    .secondary-menu .menu-container {
        font-size: 18px;
    }

    #page2 #content #header-title h1 {
        font-size: 6vw;
    }

    #page2 #content #header-content h2 {
        font-size: 4vw;
    }

    .explore-button,
    .ui-button {
        padding: 1.2vh 4vw;
        font-size: 0.9rem;
    }

    #scroll-animation {
        height: 10vh;
    }

    #scroller-in img {
        width: 10vw;
        margin: 0 10px;
    }

    .tags-container-1,
    .tags-container {
        justify-content: center;
    }

    .tag-1,
    .tag {
        padding: 2px 12px;
        font-size: 1.4vh;
        margin: 5px;
    }

    #page7 #link-item {
        width: 90vw;
        font-size: 5vw;
        padding: 2vw;
    }

    #page7 #link-item img {
        width: 8vw;
        height: 8vw;
    }

    #page8 #footer-title h1 {
        font-size: 20vw;
    }
}

@media (hover: none) {

    .explore-button:hover,
    .ui-button:hover,
    #page7 #link-item:hover,
    .button-link:hover {
        transform: none;
    }

    .explore-button:active,
    .ui-button:active,
    #page7 #link-item:active,
    .button-link:active {
        transform: scale(0.95);
    }
}

html {
    scroll-behavior: smooth;
}

@media only screen and (max-width: 768px) {

    #page1 #nav {
        position: absolute;
        width: 100vw;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .overlay-men {
        position: relative;
        width: 250vw;
        top: 0;
        left: 0;
        z-index: -1;
    }
    
    #page7 {
        height: auto;
        min-height: 100vh;
        padding: 30px 0 50px 0;
    }

    #page7 #container {
        margin-top: 20px;
    }

    #page7 h1 {
        font-size: 9vw;
        text-align: center;
        margin-bottom: 10px;
    }

    #page7 h3 {
        font-size: 4vw;
        text-align: center;
        margin-bottom: 20px;
    }

    #page7 #links {
        width: 100%;
        padding: 3vh 0;
    }

    #page7 #link-item {
        width: 85vw;
        padding: 3vw 3vw;
        font-size: 5vw;
    }

    #page7 #link-item img {
        width: 8vw;
        height: 8vw;
    }

    /* Adjust hover effects for touch devices */
    #page7 #link-item:hover {
        transform: scale(1.05);
    }

    #page7 #link-item:active::after {
        width: 120%;
        left: -10%;
    }

    #page7 #link-item:active img {
        transform: rotate(15deg) scale(1.1);
    }

    /* Page 8 Mobile Styles */
    #page8 {
        height: auto;
        min-height: 40vh;
        padding-top: 3vh;
        padding-bottom: 5vh;
    }

    #page8 #menu-link {
        flex-direction: column;
        gap: 20px;
        padding: 5vw;
    }

    #page8 #menu-link #copyright h2 {
        font-size: 3.5vw;
        text-align: center;
    }

    #page8 #page-link {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    #page8 #page-link button {
        padding: 8px;
    }

    .button-link {
        font-size: 3.5vw;
    }

    #page8 #footer-title {
        padding: 5vw 3vw;
    }

    #page8 #footer-title h1 {
        font-size: 18vw;
        text-align: center;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    .explore-button::before,
    .explore-button::after,
    .ui-button::before,
    .ui-button::after {
        animation-duration: 6s;
    }

    #scroller-in {
        animation-duration: 40s;
    }

    #page1 #logo {
        padding: 1.5rem 1rem;
    }

    #page1 #logo img {
        width: 60px;
    }

    #toggle-btn {
        width: 50px;
        height: 50px;
        margin: 1em;
    }

    .menu-men {
        flex-direction: column;
    }

    .menu-men>div {
        width: 100%;
        height: auto;
    }

    .primary-menu,
    .secondary-menu {
        width: 100%;
        padding: 0 5%;
    }

    .primary-menu {
        align-items: center;
        padding-top: 20vh;
    }

    .secondary-menu {
        align-items: center;
        padding-top: 2vh;
    }

    .primary-menu a {
        font-size: 48px;
        text-align: center;
    }

    .secondary-menu .menu-container {
        font-size: 24px;
    }

    .menu-men a span {
        font-size: 16px;
        margin-right: 1em;
    }

    .menu-item:after {
        top: 60px;
    }

    #left-image {
        display: none;
    }

    #right-image {
        display: none;
    }

    .explore-button:hover {
        letter-spacing: 0.2em;
        /* Slightly reduce the spread on hover for small screens */
    }

    .explore-button:hover::before,
    .explore-button:hover::after {
        animation: rotate 5s linear infinite;
        /* Slow down animations for better performance */
    }

    /* Scroll animation section */
    #scroll-animation {
        margin-top: 5vh;
        height: 10vh;
    }

    #scroller-in {
        animation: scroll 25s linear infinite;
        /* Slightly slower on mobile */
    }

    #scroller-in img {
        width: 10vw;
        /* Larger relative size for visibility */
        margin: 0 15px;
    }

    #page3 {
        height: auto;

    }

    #page3 #content-1 #image-box-1 #image-1 {
        height: 20vh;
        /* or try 180px */
        width: 90%;
        overflow: hidden;
    }

    #page3 #image-1,
    #page4 #image,
    #page5 #image-1 {
        height: 25vh !important;
        /* Reduced from 40vh or 30vh */
        width: 90%;
    }

    /* Ensure images properly fit the reduced container */
    #page3 #image-1 img,
    #page4 #image img,
    #page5 #image-1 img {
        object-fit: contain;
    }


    #string {
        display: none;
    }

    /* Adjust the header */
    #page3 h1 {
        padding: 4vh 5vh;
        font-size: 8vw;
        text-align: center;
        width: 100%;
    }

    #header-div {
        justify-content: center;
    }

    /* Make content display in column format */
    #page3 #content-1 {
        flex-direction: column;
        height: auto;
        padding-bottom: 5vh;
    }

    /* 2. Adjust image section to come after h1 with center div */
    #page3 #image-box-1 {
        width: 100%;
        height: auto;
        order: 1;
        margin-bottom: 4vh;
    }

    #page3 #image-1 {
        height: 30vh;
        width: 90%;
    }

    /* Content box adjustments */
    #page3 #content-box-1 {
        width: 100%;
        height: auto;
        margin-top: 0;
        align-items: center;
        order: 2;
    }

    /* 3. Center the project title and tags */
    #page3 #title-project-1 {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    #page3 #title-box-1 {
        width: 100%;
        text-align: center;
    }

    #page3 #content-box-1 #title-project-1 h1 {
        text-align: center;
        padding: 0;
        font-size: 6vw;
        margin-bottom: 2vh;
    }

    #page3 #title-project-1 #links-1 {
        width: 100%;
        margin-top: 1vh;
        margin-bottom: 4vh;
    }

    #title-project-1 #links-1 img {
        height: auto;
        width: 8%;
    }

    /* Center the tags */
    .tags-container-1 {
        margin-top: 0;
        padding: 0;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .tag-1 {
        padding: 3px 20px;
        font-size: 1.8vh;
        margin-bottom: 10px;
    }

    /* 4. Center the content description */
    #page3 #content-box-1 h2 {
        padding: 4vh 5vw;
        font-size: 2.5vh;
        text-align: center;
        width: 100%;
    }

    /* Page 3 styling */
    /* #page3 {
        height: auto;
        min-height: 100vh;
    }

    #page3 #header-div h1 {
        font-size: 10vw;
    }

    #string {
        display: none;
    }

    #header-div {
        flex-direction: column;
    }

    #page3 #content-1 {
        flex-direction: column;
        height: auto;
    }

    #page3 #image-box-1 {
        height: auto;
        width: 90vw;
        margin-bottom: 30px;
    }

    #page3 #image-1 {
        height: 40vh;
        width: 100%;
    }

    #page3 #content-box-1 {
        width: 90vw;
        height: auto;
        margin-top: -4vh;
    }

    #page3 #title-project-1 {
        width: 100%;
        flex-direction: column;
    }

    #page3 #title-box-1 {
        width: 100%;
    }

    #page3 #title-project-1 #links-1 {
        width: 100%;
        margin-top: 10px;
    }

    #title-project-1 #links-1 img {
        height: 20px;
        width: 20px;
        margin: 0 10px;
    }

    #page3 #content-box-1 #title-project-1 h1 {
        font-size: 5vw;
        text-align: center;
        padding: 0;
    }

    .tags-container-1 {
        margin-top: 20px;
        padding: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tag-1 {
        padding: 3px 15px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    #page3 #content-box-1 h2 {
        padding: 4vh 0;
        padding-right: 0;
        font-size: 16px;
        text-align: center;
    } */

    /* Page 4 */
    /* #page4 {
        height: auto;
        padding-bottom: 40px;
    }

    #page4 h1 {
        padding: 4vh 5vh;
        font-size: 6vw;
        text-align: center;
    }

    #page4 #content {
        flex-direction: column;
        height: auto;
    }

    #page4 #image-box {
        margin-right: 0;
        width: 100%;
        height: auto;
        margin-bottom: 30px;
    }

    #page4 #image {
        height: 30vh;
        width: 90%;
    }

    #page4 #content-box {
        margin-left: 0;
        margin-top: 0;
        width: 90vw;
        height: auto;
    }

    #page4 #title-project {
        width: 100%;
        flex-direction: column;
    }

    #page4 #title-box {
        margin-left: 0;
        width: 100%;
    }

    #page4 #content-box h1 {
        font-size: 5vw;
        text-align: center;
        padding: 0;
    }

    #page4 #title-project #links {
        width: 100%;
        margin-top: 10px;
    }

    #title-project #links img {
        height: 20px;
        width: 20px;
        margin: 0 10px;
    }

    .tags-container {
        margin-left: 0;
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .tag {
        padding: 3px 15px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    #page4 #content-box h2 {
        padding: 4vh 0;
        padding-left: 0;
        font-size: 16px;
        text-align: center;
    } */

    #page4 {
        height: auto;
        padding-bottom: 5vh;
    }

    /* Make content display in column format */
    #page4 #content {
        flex-direction: column;
        height: auto;
    }

    /* 1. Put image box first */
    #page4 #image-box {
        order: 1;
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 4vh;
    }

    #page4 #image {
        height: 30vh;
        width: 90%;
        margin: 0 auto;
    }

    /* 2. Show content box after image */
    #page4 #content-box {
        order: 2;
        width: 100%;
        height: auto;
        margin-left: 0;
        margin-top: 0;
        align-items: center;
    }

    /* Adjust the title project layout */
    #page4 #title-project {
        width: 100%;
        flex-direction: column-reverse;
        align-items: center;
    }

    #page4 #title-box {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    #page4 #content-box h1 {
        text-align: center;
        padding: 0;
        font-size: 6vw;
        margin-bottom: 2vh;
    }

    #page4 #title-project #links {
        width: 100%;
        margin-top: 2vh;
        margin-bottom: 2vh;
    }

    #title-project #links img {
        height: auto;
        width: 8%;
    }

    /* Center the tags */
    .tags-container {
        margin-top: 0;
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .tag {
        padding: 3px 20px;
        font-size: 1.8vh;
        margin-bottom: 10px;
    }

    /* Center the content description */
    #page4 #content-box h2 {
        padding: 4vh 5vw;
        font-size: 2.5vh;
        text-align: center;
        width: 100%;
    }

    #page5 {
        height: auto;
        padding-bottom: 5vh;
    }

    /* Make content display in column format */
    #page5 #content-1 {
        flex-direction: column;
        height: auto;
    }

    /* Adjust image box to come first */
    #page5 #image-box-1 {
        width: 100%;
        height: auto;
        order: 1;
        margin-bottom: 4vh;
    }

    #page5 #image-1 {
        height: 30vh;
        width: 90%;
    }

    /* Content box adjustments */
    #page5 #content-box-1 {
        width: 100%;
        height: auto;
        margin-top: 0;
        align-items: center;
        order: 2;
    }

    /* Center the project title and links */
    #page5 #title-project-1 {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    #page5 #title-box-1 {
        width: 100%;
        text-align: center;
    }

    #page5 #content-box-1 #title-project-1 h1 {
        text-align: center;
        padding: 0;
        font-size: 6vw;
        margin-bottom: 2vh;
    }

    #page5 #title-project-1 #links-1 {
        width: 100%;
        margin-top: 1vh;
        margin-bottom: 4vh;
    }

    #title-project-1 #links-1 img {
        height: auto;
        width: 8%;
    }

    /* Center the tags */
    .tags-container-1 {
        margin-top: 0;
        padding: 0;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .tag-1 {
        padding: 3px 20px;
        font-size: 1.8vh;
        margin-bottom: 10px;
    }

    /* Center the content description */
    #page5 #content-box-1 h2 {
        padding: 4vh 5vw;
        font-size: 2.5vh;
        text-align: center;
        width: 100%;
    }

    /* #page5 {
        height: auto;
        min-height: 100vh;
        padding-bottom: 40px;
    }

    #page5 h1 {
        padding: 4vh 5vw;
        font-size: 6vw;
        text-align: center;
    }

    #page5 #content-1 {
        flex-direction: column;
        height: auto;
    }

    #page5 #image-box-1 {
        width: 100%;
        height: auto;
        margin-bottom: 30px;
    }

    #page5 #image-1 {
        height: 30vh;
        width: 90%;
    }

    #page5 #content-box-1 {
        margin-top: 0;
        width: 90vw;
        height: auto;
    }

    #page5 #title-project-1 {
        width: 100%;
        flex-direction: column;
    }

    #page5 #title-box-1 {
        width: 100%;
    }

    #page5 #content-box-1 #title-project-1 h1 {
        font-size: 5vw;
        text-align: center;
        padding: 0;
    }

    #page5 #title-project-1 #links-1 {
        width: 100%;
        margin-top: 10px;
    }

    #title-project-1 #links-1 img {
        height: 20px;
        width: 20px;
        margin: 0 10px;
    }

    .tags-container-1 {
        margin-top: 20px;
        padding: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tag-1 {
        padding: 3px 15px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    #page5 #content-box-1 h2 {
        padding: 4vh 0;
        padding-right: 0;
        font-size: 16px;
        text-align: center;
    } */

    /* Page 6 Mobile Styles */
    #page6 {
        height: auto;
        min-height: 100vh;
        padding: 30px 0;
    }

    #page6 #content-box {
        flex-direction: column;
    }

    #page6 #left-box {
        width: 100%;
        height: auto;
        padding: 30px 10px;
        line-height: normal;
    }

    #page6 #left-box h1 {
        font-size: 10vw;
        text-align: center;
        margin-bottom: 20px;
    }

    #page6 #left-box #image-box-1 {
        width: 90vw;
        height: 40vh;
        margin-bottom: 30px;
    }

    #page6 #right-box {
        width: 100%;
        height: auto;
        padding: 10px;
    }

    #page6 #right-box #image-box-2 {
        width: 90vw;
        height: 40vh;
    }

    #page6 #right-box h1 {
        padding: 4vh 5vw;
        font-size: 6vw;
    }

    #ui-button-d {
        margin: 20px 0;
    }

    .ui-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }


    #page7 {
        height: 100vh;
        width: 100vw;
    }


    #page7 #links {
        padding: 8vh 0;
        gap: 5vh;
    }

    #page7 #link-item img {
        width: 10vw;
        height: 10vw;
    }

    #page7 h1 {
        font-size: 10vw;
    }

    #page7 h3 {
        font-size: 4.5vw;
    }

    #page7 #link-item {
        font-size: 7.5vw;
    }

    #page8 {
        padding-top: none;
    }

    #page8 #menu-link {
        padding: 2vw 5vw;

    }

    #page8 #menu-link #copyright h2 {
        margin-top: 1vh;
        font-size: 4vw;
    }

    .button-link {
        font-size: 5vw;
    }

    #page8 #footer-title h1 {
        font-size: 18vw;
    }


}

/* Small phones */
@media (max-width: 480px) {
    #page1 #logo {
        padding: 1rem 0.5rem;
    }

    #page1 #logo img {
        width: 50px;
    }

    #toggle-btn {
        width: 40px;
        height: 40px;
        margin: 0.8em;
    }

    .primary-menu a {
        font-size: 36px;
    }

    .secondary-menu .menu-container {
        font-size: 18px;
    }

    .menu-men .primary-menu a,
    .menu-men .secondary-menu a {
        top: 80px;
    }

    .menu-item:after {
        top: 40px;
    }

    .secondary-menu .menu-container .wrapper:nth-child(1) {
        gap: 20px;
    }

    #page1 #header h1 {
        font-size: 14vw;
    }

    #page1 #header h2 {
        font-size: 4vw;
    }

    #page2 #content #header-title h1 {
        font-size: 8vw;
    }

    #page2 #content #header-content h2 {
        font-size: 6vw;
    }

    .explore-button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    /* Animation adjustments for better mobile performance */
    .explore-button::after {
        filter: blur(1.5em);
    }

    .button-animation {
        font-size: 16px;
        /* Fixed size instead of vw for better mobile display */
    }

    #page1 #right-image,
    #page1 #left-image {
        position: relative;
        width: 80%;
        margin: 20px auto;
        left: auto;
        right: auto;
        top: auto;
    }

    #page1 #center-contaier {
        flex-direction: column;
        padding: 0 5%;
    }

    #page1 #header h1 {
        font-size: 12vw;
        text-align: center;
    }

    #page1 #header h1 .left,
    #page1 #header h1 .right,
    #page1 #header h1 .narrative {
        text-align: center;
        margin-left: 0;
    }

    #page1 #header h2 {
        font-size: 3vw;
        margin-top: 10px;
    }

    #page2 {
        height: auto;
        min-height: 100vh;
    }

    #page2 #content {
        height: auto;
        flex-direction: column;
        padding: 50px 0;
    }

    #page2 #header-title {
        padding: 20px;
        margin-left: 0;
        width: 90%;
        height: auto;
        text-align: center;
    }

    #page2 #content #header-title h1 {
        font-size: 7vw;
        text-align: center;
    }

    #page2 #header-content {
        padding: 20px;
        width: 90%;
        height: auto;
    }

    #page2 #content #header-content h2 {
        font-size: 5vw;
        text-align: center;
        word-spacing: normal;
    }

    #explore-button-d {
        margin-left: 0;
        padding-top: 30px;
        width: 100%;
    }

    .explore-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .explore-button:hover {
        transform: scale(1.03);
        letter-spacing: 0.15em;
    }

    .explore-button:hover::before,
    .explore-button:hover::after {
        filter: brightness(1.3);
    }

    @keyframes liquidEffect {

        0%,
        100% {
            border-radius: 0.5em;
        }

        50% {
            border-radius: 1em 0.5em 1em 0.5em;
        }
    }

    #scroll-animation {
        height: 8vh;
    }

    #scroller-in img {
        width: 12vw;
        margin: 0 10px;
    }

    #page3 h1 {
        padding: 2vh 3vh;
        font-size: 7vw;
    }

    #page3 #image-1 {
        height: 25vh;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (hover: none) {

    .explore-button:hover {
        transform: none;
        letter-spacing: inherit;
    }

    .explore-button:hover>span::before {
        background: inherit;
        transform: none;
    }

    .explore-button:active {
        transform: scale(0.95);
        background-color: rgba(255, 255, 255, 0.1);
    }
}