* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
}

body.animation-active {
    height: 500vh;
}

body.animation-complete {
    height: auto;
    min-height: 100vh;
}

/* Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(107, 215, 255, 0.2);
    border-top-color: #6bd7ff;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-content p {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    body.animation-active {
        height: 400vh;
    }
}

@media (max-width: 480px) {
    body.animation-active {
        height: 350vh;
    }
}

/* Hide scrollbar but keep functionality */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
}

html,
body {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    overflow: -moz-scrollbars-none;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    display: none;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    display: none;
}

/* Smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

