h3 {
    font-size: 1em;
}

.header-illustration {
    position: relative;
    height: 535px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(68, 109, 165, 0.9), rgba(92, 126, 172, 0.8)), url("../images/projects.jpg");
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
}

.header-illustration .sun-drawing {
    position: absolute;
    top: 27%;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
}

.header-illustration .sun-drawing img {
    min-width: 500px;
}

.header-illustration .header-text {
    font-size: 0.95em;
    color: white;
    z-index: 10;
}

.header-illustration .header-text > h1 {
    position: absolute;
    top: 48%;
    font-size: 1.7em;
    text-transform: uppercase;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    text-shadow: 7px 5px 4px rgb(31 61 103 / 50%);
}

.header-illustration .header-text > h3 {
    position: absolute;
    font-weight: 400;
    line-height: 1.3em;
    width: 154px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2em;
    padding: 0.7rem;
    background-color: rgb(37 77 123 / 0.6);
}

.header-illustration .header-text > h3:nth-child(2) {
    top: 140px;
    transform: translateX(calc(-50% + 90px));
}

.header-illustration .header-text > h3:nth-child(3) {
    top: 30px;
}

.header-illustration .header-text > h3:nth-child(4) {
    top: 125px;
    transform: translateX(calc(-50% - 78px));
}

.header-illustration .header-text > h3:nth-child(5) {
    top: 320px;
    transform: translateX(calc(-50% - 85px));
}

.header-illustration .header-text > h3:nth-child(6) {
    width: 170px;
    top: 425px;
}

.header-illustration .header-text > h3:nth-child(7) {
    top: 345px;
    transform: translateX(calc(-50% + 90px));
}

.gallery {
    padding: 7rem 0;
}

@media (min-width: 300px) {
    .header-illustration .header-text > h3:nth-child(2) {
        transform: translateX(calc(-50% + 100vw / 3));
    }
    .header-illustration .header-text > h3:nth-child(3) {
        transform: translateX(calc(-50% + (100vw - 350px) / 20));
    }
    .header-illustration .header-text > h3:nth-child(4) {
        transform: translateX(calc(-50% - (100vw + 50px) / 4));
    }
    .header-illustration .header-text > h3:nth-child(5) {
        transform: translateX(calc(-50% - (100vw - 150px) / 2));
    }
    .header-illustration .header-text > h3:nth-child(6) {
        transform: translateX(calc(-50% - 100vw / 40));
    }
    .header-illustration .header-text > h3:nth-child(7) {
        transform: translateX(calc(-50% + 90vw / 3));
    }
}

@media (min-width: 600px) {
    .header-illustration .header-text > h3:nth-child(3) {
        min-width: 200px;
    }
    .header-illustration .header-text > h3:nth-child(5) {
        transform: translateX(calc(-50% - 100vw / 3)) translateY(-10px);
    }
    .header-illustration .header-text > h3:nth-child(6) {
        width: 250px;
        transform: translateX(calc(-50% - 100vw / 40)) translateY(20px);
    }
    .header-illustration .header-text > h3:nth-child(7) {
        transform: translateX(calc(-50% + 90vw / 3)) translateY(-10px);
    }
}

@media (min-width: 900px) {
    .header-illustration {
        height: 400px;
    }
    .header-illustration .sun-drawing {
        bottom: 0;
        transform: translateX(-50%) translateY(-40px);
    }
    .header-illustration .sun-drawing img {
        width: 700px;
    }
    /* Reset styles from index.css */
    .header-illustration .header-text {
        position: static;
        top: unset;
        transform: unset;
        text-align: center;
    }
    .header-illustration .header-text > h1 {
        top: unset;
        bottom: 35px;
        padding: 0;
    }
    .header-illustration .header-text > h3:nth-child(2) {
        transform: translateX(calc(-50% - (100vw + 70px) / 4));
    }
    .header-illustration .header-text > h3:nth-child(3) {
        transform: translateX(calc(-50% - 100vw / 26)) translateY(15px);
    }
    .header-illustration .header-text > h3:nth-child(4) {
        transform: translateX(calc(-50% + 100vw / 6)) translateY(-22px);
    }
    .header-illustration .header-text > h3:nth-child(5) {
        transform: translateX(calc(-50% - 96vw / 3)) translateY(-65px);
    }
    .header-illustration .header-text > h3:nth-child(6) {
        transform: translateX(calc(-50% + 100vw / 3)) translateY(-244px);
    }
    .header-illustration .header-text > h3:nth-child(7) {
        transform: translateX(calc(-50% + (100vw + 400px) / 4)) translateY(-60px);
    }
}
@media (min-width: 1200px) {
    .header-illustration .sun-drawing {
        transform: translateX(-50%) translateY(-70px);
    }
    .header-illustration .sun-drawing:hover img {
        transform: scale(1.1, 1.1);
    }
    .header-illustration .sun-drawing img {
        width: 800px;
        transition: transform 0.3s ease;
    }
    .header-illustration .header-text > h3:nth-child(2) {
        transform: translateX(calc(-50% - 328px));
    }
    .header-illustration .header-text > h3:nth-child(3) {
        transform: translateX(calc(-50% - 46px)) translateY(15px);
    }
    .header-illustration .header-text > h3:nth-child(4) {
        transform: translateX(calc(-50% + 170px)) translateY(-22px);
    }
    .header-illustration .header-text > h3:nth-child(5) {
        transform: translateX(calc(-50% - 380px)) translateY(-65px);
    }
    .header-illustration .header-text > h3:nth-child(6) {
        transform: translateX(calc(-50% + 350px)) translateY(-244px);
    }
    .header-illustration .header-text > h3:nth-child(7) {
        transform: translateX(calc(-50% + 370px)) translateY(-60px);
    }
}
