body {
    cursor: none; /* Hide default cursor */
    background-color: black;
    margin: 0;
    color: white;
}

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #ff00ff; /* Hot pink */
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s;
    animation: cursor-pulse 1.5s infinite;
    box-shadow: 0 0 10px #ff00ff; /* Hot pink */
}

.custom-cursor.hover {
    transform: scale(1.5);
    background-color: rgba(255, 0, 255, 0.2); /* Hot pink */
}

@keyframes cursor-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.6); } /* Hot pink */
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 255, 0); } /* Hot pink */
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 255, 0); } /* Hot pink */
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin: 0 0 2rem 0;
    text-shadow: 0 0 10px #fff,
                0 0 20px #fff,
                0 0 30px #ff00ff,
                0 0 40px #ff00ff;
    animation: textPulse 2s infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: none; /* Changed from pointer to none */
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px currentColor;
    cursor: none; /* Added to ensure cursor stays hidden */
}

.btn:hover ~ .custom-cursor {
    transform: scale(1.5);
}

.green-btn {
    background-color: #00ffbb; /* Cyan */
    color: white;
    box-shadow: 0 0 15px #00ffbb; /* Cyan */
}

.red-btn {
    background-color: #ff0055; /* Hot red */
    color: white;
    box-shadow: 0 0 15px #ff0055; /* Hot red */
}

.section {
    min-height: 100vh;
    display: none;
}

#home {
    display: block;
}

#player {
    display: none;
    position: relative;
}

#visualizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(0.5px);
    z-index: 2; /* Increased to be above background but below other elements */
    transform-style: preserve-3d; /* Enable 3D transformations */
}

#player:target {
    display: block;
}

#player:target ~ #home {
    display: none;
}

.crt {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    animation: textShadow 1.6s infinite;
    perspective: 1000px; /* Add perspective for 3D effect */
}

.crt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 80%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
    z-index: 5; /* CRT effects should be on top */
}

.crt::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 5; /* CRT effects should be on top */
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 10%,
        transparent 100%
    );
    animation: scanline 6s linear infinite;
    z-index: 5; /* CRT effects should be on top */
}

.flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: flicker 0.3s infinite;
    pointer-events: none;
    z-index: 5; /* CRT effects should be on top */
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

@keyframes flicker {
    0% { opacity: 0; }
    50% { opacity: 0.1; }
    100% { opacity: 0; }
}

@keyframes textShadow {
    0% {
        filter: brightness(1) contrast(1.2);
    }
    3% {
        filter: brightness(1.1) contrast(1.3);
    }
    6% {
        filter: brightness(0.9) contrast(1.1);
    }
    7% {
        filter: brightness(1.1) contrast(1.2);
    }
    8% {
        filter: brightness(1) contrast(1);
    }
    100% {
        filter: brightness(1) contrast(1);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(25deg); /* Added tilt */
    z-index: 4; /* Increased to be above visualizer */
}

.orbit-text {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate 20s linear infinite;
}

.orbit-text span {
    transition: transform 0.1s ease, text-shadow 0.1s ease;
    color: #ff00ff; /* Hot pink */
    text-shadow: 0 0 10px #ff00ff; /* Hot pink */
}

@keyframes rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.main-orbit {
    transform: translate(-50%, -50%) rotateX(25deg);
}

.top-orbit {
    transform: translate(-50%, -80%) rotateX(65deg) scale(0.7);
}

.bottom-orbit {
    transform: translate(-50%, 0%) rotateX(-35deg) scale(0.8);
}

/* Unique animation speeds for each orbit */
.top-orbit .orbit-text {
    animation: rotate 25s linear infinite reverse;
}

.bottom-orbit .orbit-text {
    animation: rotate 15s linear infinite;
}

.cube-container {
    position: fixed;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    pointer-events: none;
    perspective: 1000px;
    z-index: 3; /* Moved above visualizer */
}

.cube {
    position: absolute;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    transform-origin: center center -50px; /* Adjust origin point */
    transition: transform 0.3s ease;
}

.cube:hover {
    transform: scale(1.1) translateZ(-50px);
}

/* Position cubes at different corners */
.cube1 { 
    animation: spin1 20s linear infinite; 
    left: 20%; 
    top: 25%;
    transform: translateZ(-50px);
}

.cube2 { 
    animation: spin2 25s linear infinite; 
    right: 20%; 
    top: 35%;
    transform: translateZ(-50px);
}

.cube3 { 
    animation: spin3 30s linear infinite; 
    left: 40%; 
    bottom: 25%;
    transform: translateZ(-50px);
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px currentColor; /* Add glow to cube faces */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0; /* Hide the text */
}

.front  { transform: translateZ(50px); background: #ff0055; } /* Hot red */
.back   { transform: translateZ(-50px) rotateY(180deg); background: #00ffbb; } /* Cyan */
.right  { transform: translateX(50px) rotateY(90deg); background: #ff00ff; } /* Hot pink */
.left   { transform: translateX(-50px) rotateY(-90deg); background: #7700ff; } /* Purple */
.top    { transform: translateY(-50px) rotateX(90deg); background: #00aaff; } /* Blue */
.bottom { transform: translateY(50px) rotateX(-90deg); background: #ffaa00; } /* Orange */

@keyframes spin1 {
    from { transform: translateZ(-50px) rotateX(0) rotateY(0) rotateZ(0); }
    to { transform: translateZ(-50px) rotateX(360deg) rotateY(720deg) rotateZ(360deg); }
}

@keyframes spin2 {
    from { transform: translateZ(-50px) rotateX(120deg) rotateY(0) rotateZ(240deg); }
    to { transform: translateZ(-50px) rotateX(480deg) rotateY(-720deg) rotateZ(600deg); }
}

@keyframes spin3 {
    from { transform: translateZ(-50px) rotateX(240deg) rotateY(0) rotateZ(120deg); }
    to { transform: translateZ(-50px) rotateX(600deg) rotateY(720deg) rotateZ(480deg); }
}

.freq-bars-left, .freq-bars-right {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    height: 100vh;
    width: 50px;
    padding: 20px;
    z-index: 3;
    transform-style: preserve-3d;
    perspective: 800px; /* Adjusted perspective */
}

.freq-bars-left {
    left: 50px;
    transform: rotateY(30deg); /* Added rotation for left side */
}

.freq-bars-right {
    right: 50px;
    transform: rotateY(-30deg); /* Added rotation for right side */
}

.freq-bar {
    width: 50px;
    height: 20px; /* Set initial height */
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-10deg); /* Reduced X rotation */
    transition: height 0.1s ease; /* Smooth height changes */
}

.bar-front, .bar-top, .bar-right {
    position: absolute;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: all 0.1s ease;
}

.bar-front {
    width: 100%;
    height: 100%;
    background: #ff0055;
    transform: translateZ(25px);
    transform-origin: bottom center;
}

.bar-top {
    width: 100%;
    height: 25px; /* Adjusted depth */
    background: #00ffbb;
    transform: rotateX(90deg) translateZ(-25px);
    transform-origin: top;
}

.bar-right {
    width: 25px; /* Adjusted depth */
    height: 100%;
    background: #ff00ff;
    transform: rotateY(90deg) translateZ(50px);
    transform-origin: left;
}

.grid-overlay {
    position: fixed;
    width: 200%;
    height: 200vh;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(255, 0, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(45deg);
    animation: gridMove 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes gridMove {
    from { transform: perspective(500px) rotateX(45deg) translateY(0); }
    to { transform: perspective(500px) rotateX(45deg) translateY(40px); }
}

.light-rays {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    mix-blend-mode: screen;
}

.light-ray {
    position: absolute;
    width: 5px; /* Increased from 2px */
    height: 0;
    background: linear-gradient(
        to bottom,
        transparent,
        currentColor 20%,
        currentColor 80%,
        transparent
    );
    transform-origin: top;
    opacity: 0;
    filter: blur(3px); /* Add blur for softer edges */
    transition: all 0.2s ease;
}
