/* Page Content Styling */
.page-content {
    position: absolute;
    bottom: 4rem;
    left: 4rem;
    z-index: 10;
    color: #ffffff;
    transition: all 0.5s ease;
    text-align: center;
}

.page-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: bold;
    letter-spacing: 0.1em;
}

.page-content p {
    font-size: 1.2rem;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* Page-specific backgrounds using the color scheme */
#page2 {
    background: linear-gradient(135deg, #000000 0%, #0a2f0a 100%);
    height: 400vh; /* 4x viewport height to provide more scroll distance */
}

#page2 h1 {
    color: var(--self);
}

#page3 {
    background: linear-gradient(135deg, #000000 0%, #2f0a1a 100%);
}

#page3 h1 {
    color: var(--relationships);
}

#page4 {
    background: linear-gradient(135deg, #000000 0%, #0a1a2f 100%);
}

#page4 h1 {
    color: var(--career);
}

#page5 {
    background: linear-gradient(135deg, #000000 0%, #2f2a0a 100%);
}

#page5 h1 {
    color: var(--finances);
}

#finalPage {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

#finalPage h1 {
    color: #ffffff;
}

/* Hide old page elements */
#page3, #page4, #page5, #scroll-buffer-1, #scroll-buffer-2, #scroll-buffer-3 {
    display: none;
}