:root {
    --bg-color: #000000;
    --neon-green: #39FF14;
    --neon-green-glow: rgba(57, 255, 20, 0.6);
    --text-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Optional: custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--neon-green) var(--bg-color);
}

body::-webkit-scrollbar {
    width: 6px;
}
body::-webkit-scrollbar-track {
    background: var(--bg-color);
}
body::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 10px;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-glow);
}

.pulse {
    animation: pulseAnim 1.5s infinite;
}

@keyframes pulseAnim {
    0% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 20px var(--neon-green); }
    100% { opacity: 0.5; }
}

/* Fixed Canvas */
#sequence-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    /* object-fit logic handled in JS draw function */
    pointer-events: none;
    opacity: 0; /* Starts hidden until loaded */
    transition: opacity 1s ease-in;
}

/* Scroll Overlay */
#main-scroll-container {
    position: relative;
    z-index: 10;
}

/* Sections */
.scroll-section {
    position: relative;
    width: 100%;
    height: 150vh; /* Giving each section plenty of scroll space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

/* Make section 7 & 8 normal heights so they appear closer to the end */
#section-7 {
    height: 80vh;
}
#section-8 {
    height: 50vh;
    justify-content: flex-end;
    padding-bottom: 50px;
}

/* Typography styles */
.reveal-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
}

.neon-text {
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green-glow);
}

.chaos-text {
    font-style: italic;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Brand Reveal section */
.brand-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand-title {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    color: var(--bg-color);
    -webkit-text-stroke: 2px var(--neon-green);
    letter-spacing: 0.05em;
    opacity: 0;
}

.brand-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--neon-green);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
}

/* Under Construction Section */
.construction-main {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 10px;
    opacity: 0;
}

.construction-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
}

/* Contact CTA */
.email-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(5px);
    opacity: 0;
}

.email-btn:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green-glow), inset 0 0 10px rgba(57, 255, 20, 0.2);
    transform: translateY(-3px);
}

.extra-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .scroll-section {
        height: 120vh;
    }
}
