* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: white;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

/* 
   Scroll Container
   Height = Video Duration * Scroll Speed feel. 
   Let's make it 600vh for a long scroll experience (approx 120-178 frames).
*/
.scroll-container {
    height: 600vh;
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

canvas {
    width: 100%;
    height: 100%;
    /* We handle cover/contain in JS, but let's ensure it takes space */
    display: block;
}

.main-header {
    position: absolute;
    top: 50%;
    /* Start centered */
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centered exactly */
    z-index: 20;
    text-align: center;
    width: 100%;
}

.main-header h1 {
    font-size: 8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -3px;
    text-shadow: none;
    margin: 0;
    line-height: 1;
}

.side-content {
    position: absolute;
    top: 55%;
    /* Moved down slightly to not overlap header */
    transform: translateY(-50%);
    width: 500px;
    color: #ffffff;
    /* White text as requested */
    z-index: 10;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    /* Shadow for readability on images */
    text-align: left;
    /* Left align side text */
    opacity: 0;
    /* Start invisible */
}

.main-header h1 span {
    font-weight: 300;
    /* Thinner */
    font-style: italic;
}

.left-content {
    left: 10%;
    text-align: right;
}

.right-content {
    right: 10%;
    text-align: left;
}

.side-content h2 {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    margin: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .content-section h2 {
        font-size: 2rem !important;
    }

    .main-header h1 {
        font-size: 3.5rem;
        /* Smaller header on mobile */
    }

    .side-content {
        position: absolute;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        margin: 0;
        padding: 0;
        text-align: center;
        /* Center text on mobile usually looks better, or left if preferred */
    }

    .sticky-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        /* Stack from top */
    }

    /* We need to position them absolutely on mobile over the canvas? 
       User said "displayed one below the other".
       If we keep them absolute, we can position them.
    */
    /* Hide Left Content on Mobile */
    .left-content {
        display: none;
    }

    /* Adjust Right Content for Mobile */
    .right-content {
        position: absolute;
        top: 75%;
        /* Position below header */
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        text-align: center;
        /* Center align for balance */
    }

    .side-content h2 {
        font-size: 1.5rem;
        /* Smaller font for mobile */
        line-height: 1.3;
    }

    .main-header h1 {
        font-size: 12vw;
        /* Responsive font size to prevent overflow */
    }

    .content-section h2 {
        font-size: 2rem;
    }
}

.loading-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.content-section {
    padding: 100px 40px;
    background: #111;
    color: white;
    text-align: center;
    min-height: 50vh;
}

.content-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.content-section button {
    margin-top: 20px;
    padding: 15px 30px;
    background: #0055aa;
    /* Pascofix Blue */
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.content-section button:hover {
    transform: scale(1.05);
}