/* Rufus Page Styles */
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas#bgCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gallery {
    position: relative;
    z-index: 10;
    width: 320px;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(0, 0, 0, 0.2);
}

.gallery:hover {
    transform: scale(1.02) translateY(-5px);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#randomName {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    letter-spacing: -2px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Rufus Page Styles */
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas#bgCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gallery {
    position: relative;
    z-index: 10;
    width: 320px;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(0, 0, 0, 0.2);
}

.gallery:hover {
    transform: scale(1.02) translateY(-5px);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#randomName {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    letter-spacing: -2px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#randomName.show {
    opacity: 1;
}

/* Ensure nav is visible and fixed */
nav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 9999 !important;
    justify-content: center !important;
}

nav a {
    color: rgba(255, 255, 255, 0.7) !important;
}

nav a:hover,
nav a.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}