body {
    margin: 0;
    padding: 0;
    background-color: #050505;
    color: white;
    font-family: sans-serif;
    overflow-x: hidden;
}

#starfield-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

a {
    text-decoration: none;
}

li {
    font-size: 0.8em;
    max-width: 600px;
    margin: 0 auto; /* FIXED: Changed '1 auto' to '0 auto' */
    text-align: center;
    color: lightgray;
    line-height: 1.5; /* Added for better readability */
    -webkit-text-stroke: 0.5px black;
    font-weight: bold;
}

h1 {
    text-align: center;
    margin-top: 2.5em;
    font-size: 6em;
    color: whitesmoke;
    font-family: "Jersey 10";
    font-weight: lighter;
    transition: all 0.3s ease;
    -webkit-text-stroke: 2px black;
}

    h1:hover {
        color: ghostwhite;
        text-shadow: 0 0 20px ghostwhite;
        transform: scale(1.05);
    }

p {
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto; /* FIXED: Changed '1 auto' to '0 auto' */
    text-align: center;
    color: lightgray;
    line-height: 1.5; /* Added for better readability */
    -webkit-text-stroke: 0.5px black;
    font-weight: bold;
}

h6 {
    font-size: 0.7em;
    max-width: 600px;
    margin: 0 auto; /* FIXED: Changed '1 auto' to '0 auto' */
    text-align: center;
    color: darkgray;
    line-height: 1.5; /* Added for better readability */
    -webkit-text-stroke: 0.5px black;
    font-weight: bold;
}

.starfield-origin {
    display: block;
    margin: 2em auto;
    padding: 1em 2em;
    font-size: 1.2em;
    color: white;
    background-color: transparent;
    border: 1.5px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* Removes the underline from the link */
    width: fit-content; /* Ensures the button stays centered */
}

    .starfield-origin:hover {
        background-color: white;
        color: black;
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(100, 200, 255, 0.8), 0 0 40px rgba(100, 200, 255, 0.4);
    }

html {
    scroll-behavior: smooth;
}

#vanta-background {
    width: 100%;
    height: 800px;
    position: relative;
    opacity: 1;
    background-color: #050505; /* Must match body background */
    /* Smooth fade at top (0-15%) and bottom (85-100%) */
    -webkit-mask-image: linear-gradient( to bottom, transparent 0%, black 15%, black 85%, transparent 100% );
    mask-image: linear-gradient( to bottom, transparent 0%, black 15%, black 85%, transparent 100% );
}

#vanta-background {
    /* ... your existing styles (width, height, mask, etc) ... */
    position: relative; /* Keep this for Flexbox context */
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    overflow: hidden;
}

.content-wrapper {
    position: relative;
    z-index: 10; /* Ensures text sits on top of the animation */
    text-align: center; /* Centers the text inside the wrapper */
    color: white;
    padding: 20px;
    max-width: 800px; /* Prevents text from being too wide */
}

    /* Optional: Ensure the H1 and P look good */
    .content-wrapper h1 {
        margin-top: 0;
    }

#vanta-background > * {
    position: relative;
    z-index: 1; /* Keep content above the background */
}

/* Add this to style.css */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
#Download {
    /* 1. Sizing and Positioning */
    position: relative; /* Crucial so the text stays anchored inside this box */
    min-height: 60vh; /* Gives the fog enough height to look good */
    /* 2. Centering Magic (Flexbox) */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers vertically */
    align-items: center; /* Centers horizontally */
    text-align: center;
    padding: 2rem;
}

    /* 3. Pull all the text and buttons to the front! */
    #Download > * {
        position: relative;
        z-index: 10; /* Forces the text to render ABOVE the Vanta fog canvas */
    }
#Download a {
    text-decoration: none;
}

#Download button {
    display: block;
    margin: 2em auto;
    padding: 1em 2em;
    font-size: 1.2em;
    color: white;
    background-color: transparent;
    border: 1.5px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* Removes the underline from the link */
    width: fit-content; /* Ensures the button stays centered */
    transition: all 0.3s ease;
}

    #Download button:hover {
        background-color: white;
        color: black;
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(100, 200, 255, 0.8), 0 0 40px rgba(100, 200, 255, 0.4);
    }

.steps-container {
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

.step-card {
    background: rgba(255, 255, 255, 0.05); /* Very faint white */
    backdrop-filter: blur(10px); /* The "glass" effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease;
    transition: border-color 0.3s ease, text-shadow 0.3s ease;
    transition: box-shadow 0.3s ease;
    color: white;
    font-weight: bold;
    -webkit-text-stroke: 0.5px black;
}

    .step-card:hover {
        transform: translateY(-10px);
        border-color: white;
        border: 1.5px solid;
        text-shadow: 0 0 20px blue;
        box-shadow: 0 0 20px white, 0 0 40px rgba(100, 200, 255, 0.4);
    }

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: black;
    color: white;
    text-decoration: none;
    border: 1.5px solid white;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .download-btn:hover {
        background: white;
        color: black;
        border-color: white;
        box-shadow: 0 0 20px rgba(100, 200, 255, 0.8), 0 0 40px rgba(100, 200, 255, 0.4);
    }

.site-footer {
    padding: 40px 20px;
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5); /* Faded white for subtle look */
    font-size: 0.9em;
}

.footer-links {
    margin-top: 15px;
}

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        margin: 0 10px;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: #ffffff;
            text-shadow: 0 0 8px rgba(100, 200, 255, 0.8);
        }
/* Sections start invisible and ready to animate */
.fade-section {
    opacity: 0;
    transform: translateY(30px); /* Slight slide-up effect */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Class added by JS when visible */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Add this to style.css */
.scroll-transition {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

    .scroll-transition.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Ensure Vanta containers are relative for stacking */
#vanta-background, .steps-container, #Download {
    position: relative;
    overflow: hidden;
    /* Smooth transition for the opacity observer */
}

/* Center text globally within these sections */
.content-wrapper, .steps-container, #Download {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 50vh; /* Ensures enough height for effects */
    z-index: 1;
    position: relative;
}

/* Make Download section significantly larger */
#Download {
    min-height: 10vh;
}


/* The container must be relative */
.vanta-container {
    position: relative;
    overflow: hidden;
    transition: opacity 1.5s ease-in-out;
}

    /* This creates the fade effect using an overlay instead of masking */
    .vanta-container::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none; /* Allows clicking through to buttons */
        background: linear-gradient( to bottom, #000000 0%, /* Matches your background color */
        transparent 15%, transparent 85%, #000000 100% );
        z-index: 5; /* Ensures it stays on top of the animation */
    }

/* Applies a top and bottom fade to all your effect containers */
#starfield-container,
#vanta-background,
.steps-container,
#Download {
    /* Webkit prefix for broad browser compatibility */
    -webkit-mask-image: linear-gradient( to bottom, transparent 0%, black 10%, black 90%, transparent 100% );
    /* Standard syntax */
    mask-image: linear-gradient( to bottom, transparent 0%, black 10%, black 90%, transparent 100% );
}