:root {
    --purple-base: #6b21a8;
    --purple-light: #9333ea;
    --purple-dark: #4c1d95;
    --text-white: #ffffff;
    --bg-dark: #0f172a;
}

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

body {
    background-image: url(../assets/images/webbackground1.jpg);
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

a {
    text-decoration: none;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
}

.box {
    border-radius: 2rem;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

h3 {
    color: #98e2cd;
    margin-bottom: 1rem;
}

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

.logo {
    width: 14rem;
}

.box-1 {
    background: var(--purple-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-box {
    text-align: center;
    transition: transform 0.2s;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-box:hover {
    transform: scale(1.03);
}

.project-box-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.3125rem;
}

.project-text {
    font-size: 0.7rem;
    color: white;
    line-height: 1.2;
}

.box-2 {
    background: linear-gradient(135deg, var(--purple-base), var(--purple-dark));
    margin-bottom: 1rem;
    text-align: center;
}

.book-imgs {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.book-img {
    width: 6rem;
}

#nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    position: absolute;
    top: 0rem;
    left: 0.125rem;
    z-index: 1000;
}

.circle-menu {
    border-radius: 50%;
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 30;
}

.circle-menu span {
    color: #ffffff;
    margin-top: 1rem;
    margin-left: 1rem;
    padding: 1rem;
    font-size: 1.8rem;
    text-shadow: 0 0 0.5rem rgba(152, 226, 205, 0.6);
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.close-icon {
    display: none;
    width: 1rem;
    height: auto;
    position: absolute;
    top: 1.2rem;
    left: 1rem;
    cursor: pointer;
}

#nav-toggle.active .hamburger-icon {
    display: none;
}

#nav-toggle.active .close-icon {
    display: block;
}

#primary-nav {
    display: none;
    position: absolute;
    top: 0;
    left: -200%;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0.5rem);
    border-radius: 1.5rem;
    z-index: 900;
    flex-direction: column;
    align-items: center;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#primary-nav.active {
    left: 0;
}

#primary-nav ul {
    list-style: none;
    text-align: center;
    width: 100%;
}

#primary-nav ul li {
    margin: 1.5rem 0;
}

#primary-nav ul li a {
    display: inline-block;
    color: #fff;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
}

#primary-nav ul li a:hover {
    color: #98e2cd;
    transform: translateY(-3px);
}

#primary-nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #98e2cd;
    transition: width 0.3s;
}

#primary-nav ul li a:hover::after {
    width: 100%;
}

.box-3 {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-base));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    p {
        margin-bottom: 2rem;
    }
}

.box-4 {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-base));
    overflow: hidden;
    padding: 0rem;
}

.box-5 {
    display: flex;
    flex-direction: column;
    background: var(--purple-base);
    align-items: center;
    justify-content: center;

    p {
        margin-bottom: 2rem;
    }
}

.box-6 {
    background: linear-gradient(135deg, var(--purple-base), var(--purple-dark));
    position: relative;
    margin-top: 1rem;
    padding-top: 11rem;

    h1 {
        margin-top: 9rem;
    }
}

.eye-video {
    position: absolute;
    top: -8rem;
    width: 28rem;
    z-index: 80;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem;
    border: 6px solid #eaeaea;
}

.artist-name {
    font-size: 0.7rem;
    color: white;
    text-transform: uppercase;
    word-spacing: 2px;
    overflow-wrap: break-word;
}

.song-desc {
    font-size: 0.7rem;
    color: white;
    text-transform: uppercase;
    word-spacing: 2px;
    overflow-wrap: break-word;
}

#progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    margin: 2.5rem 0;
    position: relative;
    z-index: 2;
}

#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #98e2cd;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    border: 3px solid #000;
    box-shadow: 0 0 10px rgba(152, 226, 205, 0.5);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
}

.controls div {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.controls div img {
    width: 18px;
}

.controls div:nth-child(2) {
    transform: scale(1.3);
    border: 1px solid #98e2cd40;
}

.controls div:active {
    transform: scale(1.1);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.controls div:hover {
    border-color: #98e2cd80;
}

.box-7 {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-base));
}

.tall {
    grid-row: span 2;
}

.sidebar-tall {
    grid-row: span 3;
}

.center-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.vertical-tall {
    grid-row: span 2;
}

.wide-bottom {
    grid-column: span 2;
}

#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: #98e2cd;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2000;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #C19A6B;
    color: white;
    transform: translateY(-0.3125rem);
}

footer {
    color: black;
    margin-top: 2rem;
    font-size: 0.6rem;
    text-align: center;
    width: 100%;
}

@media (max-width: 56.25rem) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .box {
        width: 100%;
        order: 4;
    }

    .box-1 {
        display: none;
    }

    .box-2 {
        order: 1;
    }

    .box-3 {
        order: 2;
        padding-top: 4rem;
    }

    .box-6 {
        order: 3;
        margin-top: 4rem;
    }

    .eye-video {
        position: absolute;
        top: -4rem;
        width: 20rem;
    }

    #nav-toggle {
        display: block;
    }

    #primary-nav {
        display: flex;
    }
}

@media (max-width: 37.5rem) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .box {
        width: 100%;
        order: 4;
    }

    .box-1 {
        display: none;
    }

    .box-2 {
        order: 1;
    }

    .box-3 {
        order: 2;
        padding-top: 4rem;
    }

    .box-6 {
        order: 3;
        margin-top: 4rem;
    }

    .eye-video {
        position: absolute;
        top: -4rem;
        width: 20rem;
    }

    #nav-toggle {
        display: block;
    }

    #primary-nav {
        display: flex;
    }
}