body {
    background-color: var(--primary-colour);
}

.about-container {
    background: 
        radial-gradient(ellipse at 40% 25%, color-mix(in srgb, var(--secondary-colour) 50%, transparent) 0%, transparent 55%),
        var(--primary-colour);
}


.about-us-header {
    position: relative; /* needed for absolute overlay */
    width: 100%;
    text-align: center;
    padding: 50px 0;
    color: white;
    overflow: hidden;
}

.about-us-header img {
    width: 40%; /* Match .about-us-paragraph width */
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* Pixel overlay now absolutely positioned over the image */
.pixel-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%; /* match the image width */
    max-width: 42rem;
    height: auto; /* fix height via JS */
    transform: translate(-50%, -50%);
    display: grid;
    pointer-events: none; /* so overlay doesn’t block clicks */
}

.pixel-overlay div {
    background-color: var(--primary-colour);
    opacity: 1;
    animation: pixelFadeOut 1s forwards;
}

/* Text overlay */
.about-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: var(--four-letter-spacing);
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: var(--font-family);
    opacity: 0;
    animation: textFadeIn 1s forwards;
    animation-delay: 1s;
}
.about-overlay h1 {
    font-size: var(--h1-font-size);
    font-weight: 300;
}

/* Fade overlay pixels one by one */
@keyframes pixelFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Text fade-in */
@keyframes textFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


.about-us-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5rem 10rem 5rem;
}

.about-us-paragraph {
    width: 40%;
    text-align: justify;
    margin: 20px 0;
    color: white;
}


@media (max-width: 1280px) {

    .about-us-header img {
        width: 70%; /* Match paragraph width at this size */
    }

    .about-us-header h1 {
        font-size: var(--h1-font-size-handheld);
    }

    .about-us-paragraph {
        width: 70%;
    }
    
.about-us-header h1 {
    font-size: var(--h1-font-size-handheld);
}

.about-us-paragraph {
    width: 70%;
}

}

@media only screen and (max-width: 768px) {

    .about-us-header img {
        width: 100%; /* Match paragraph width */
    }

    .about-us-header { 
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .about-us-paragraph {
        width: 100%;
    }

    .about-us-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

