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

body {
    font-family: 'Space Mono', monospace;
    color: white;
    overflow-x: hidden;
    background: #111; /* Keeping the dark background here */
}

/* WebGL Container */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    z-index: 100;
}

.logo {
    color: white;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-decoration: none;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 2rem;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.nav ul li a:hover {
    opacity: 0.7;
}

/* Main content and scroll space */
main {
    position: relative;
    z-index: 1;
}

/* Intro Section */
.intro-section {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    position: relative;
    z-index: 2; /* Above WebGL */
}

.intro-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-content h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.tagline {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
}

.footer {
    width: 100%;
}

.footer-line {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.scroll-down {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-right: 1.5rem;
}

.arrow {
    margin-left: 0.5rem;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    top: 2px;
}

.scroll-down:hover .arrow {
    transform: translateY(8px);
}

/* Add a subtle shine effect to the EXPLORE button */
.scroll-down::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.scroll-down:hover::after {
    left: 100%;
}

/* Text Sections (You jump, We jump) */
.text-section {
    height: 150vh; /* Create space for scrolling */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    position: relative;
    background-color: transparent; /* Ensuring background is transparent */
}

.text-section h2 {
    font-size: 4rem;
    color: white;
    font-weight: 400;
    text-align: center;
    line-height: 1;
}

/* About Section */
.about-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    background-color: transparent; /* Changed from #111 to transparent */
    position: relative;
    z-index: 2;
}

.logo-container {
    margin-bottom: 3rem;
}

.about-logo {
    font-size: 2rem;
    color: white;
    letter-spacing: 1px;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 400;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Other Sections */
.section {
    min-height: 100vh;
    padding: 5rem 2rem;
    background-color: transparent; /* Changed from #111 to transparent */
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.section-item {
    margin-bottom: 5rem;
}

.number {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.section-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.section-item p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    color: rgba(255, 255, 255, 0.9);
}

/* Preloader overlay 
   This will show briefly while Three.js is initializing */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    font-size: 2rem;
    color: white;
    letter-spacing: 2px;
}

/* Media Queries */
@media (max-width: 768px) {
    .intro-content h1 {
        font-size: 3rem;
    }
    
    .text-section h2 {
        font-size: 2.5rem;
    }
    
    .section-item h3 {
        font-size: 1.5rem;
    }
    
    .about-section h2,
    .section h2 {
        font-size: 1.8rem;
    }
    
    .nav ul li {
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .intro-content h1 {
        font-size: 2.5rem;
    }
    
    .text-section h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav ul li a {
        font-size: 0.7rem;
    }
}
