:root {
    --primary-color: #2c3e50;
    --secondary-color: #8e44ad;
    /* Rich purple for accents */
    --accent-color: #e67e22;
    /* Warm orange for CTAs or highlights */
    --text-light: #FFFFFF;
    /* White for main text */
    --text-muted: #FFFFFF;
    /* White for less important text */
    --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    /* Modern, readable sans-serif */
    --font-headings: 'Helvetica Neue', Arial, sans-serif;
    /* Clean, modern headings */
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    /* Default text color for body */
    background-color: transparent;
    /* Body itself is transparent */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

#immersive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* Use viewport width */
    height: 100vh;
    /* Use viewport height */
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

#immersive-background video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* Use viewport width */
    height: 100vh;
    /* Use viewport height */
    object-fit: cover;
    z-index: -2;
}

#libraryCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    /* Removes extra space under canvas if it's inline */
}

#content-scroll-area {
    position: relative;
    z-index: 1;
    padding-top: 20vh;
    padding-bottom: 5vh;
    width: 100%;
    /* Ensure content width matches viewport */
    max-width: 100vw;
    /* Prevent content from exceeding viewport */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.content-section {
    padding: 4rem 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Ensure section width matches viewport */
}

.content-section .container {
    max-width: 800px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.hero-content {
    min-height: 80vh;
    padding-top: 15vh;
    padding-bottom: 15vh;
}

.hero-content .container {
    background-color: transparent;
    /* No background for hero text container */
    box-shadow: none;
}

.logo-container {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.logo-container img {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    /* Makes the SVG white */
}

@media (max-width: 768px) {
    .logo-container img {
        max-width: 300px;
    }

    h1.display-4 {
        font-size: 2.5rem;
    }

    .section {
        padding: 3rem 1rem;
        /* Adjust padding for mobile */
        border-radius: 0.75rem;
    }

    .hero-content {
        min-height: 70vh;
        padding-top: 10vh;
        padding-bottom: 10vh;
    }

    h1.display-3 {
        font-size: 2.8rem;
    }

    .lead-hero {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    #immersive-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -1;
        overflow: hidden;
        pointer-events: none;
    }

    #immersive-background video {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        z-index: -2;
        transform: none !important;
        will-change: transform;
    }

    .content-section .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    body {
        overflow-x: hidden;
        width: 100vw;
        position: relative;
    }
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-headings);
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

h1.display-3 {
    /* For Hero title */
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 3.8rem;
    /* Larger for hero */
    letter-spacing: 1px;
}

.lead-hero {
    /* For Hero subtitle */
    font-family: var(--font-main);
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.lead-intro {
    /* For About section intro */
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.7;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-light);
    /* Changed to white */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--accent-color);
}

.content-section p,
.content-section ul li {
    font-family: var(--font-main);
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content-section ul {
    list-style-type: none;
    /* Or 'disc' if preferred */
    padding-left: 0;
}

.content-section ul li::before {
    content: "•";
    /* Or a custom icon/character */
    color: var(--text-light);
    /* Changed to white */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-outline-light:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-outline-light {
    color: var(--text-light);
    border-color: var(--secondary-color);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.contact-link-styled {
    color: var(--text-light);
    /* Changed to white */
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-link-styled:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

footer {
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.lead {
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
