body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    background-color: #1c1c1e;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

@keyframes fadeInHome {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#Home {
    position: relative;
    top: 0;
    padding: 0;
    margin-top: -2vh;
    width: 100%;
    height: 102vh;
    animation: fadeInHome 1s ease-in-out;
}

#Home .navbar {
    position: absolute;
}

#home-boids {
    z-index: -1;
    max-width: 100vw;
    max-height: 100vh;
}

#foreground {
    position: absolute;
    height: 20vh;
    width: 20vw;
    min-width: 400px;
    top: 10vh;
    left: 10vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#text-box {
    border-radius: 25px;
    text-align: left;
    color: rgb(225, 225, 225);
    background-color: #2c2c2ec8;
    padding: 10px;
}

#text-box h1 {
    color: rgb(169, 169, 169);
}

#text-box a:link, #text-box a:visited {
    color: #8C1D40;
    background-color: transparent;
    text-decoration: underline;
}

#icons {
    width: 25vh;
    margin-left: 15px;
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    transition: transform .2s;
}

#icons img:hover {
    transform: scale(1.2);
}

.subject {
    height: 76vh;
    color: white;
    text-align: center;
}

#About {
    margin-top: 10vh;
}

#gavinMountan {
    max-height: 50%;
    max-width: 30%;
}

/* Media Queries for Responsive Adjustments */
@media (max-width: 1024px) {
    #foreground {
        width: 50vw; /* Increase width on smaller screens */
        top: 5vh;
        left: 5vw;
    }

    #text-box {
        padding: 5px; /* Less padding */
    }
}

@media (max-width: 768px) {
    #Home {
        height: auto;
        margin-top: 0;
    }

    #foreground {
        min-width: 300px; /* Adjust min-width for smaller screens */
        width: 80vw; /* Further increase width for better readability */
        top: 5vh;
        left: 10vw;
    }
}

@media (max-width: 480px) {
    #text-box h1 {
        font-size: 1.5em; /* Smaller text for smaller screens */
    }

    #icons {
        justify-content: center; /* Stack icons vertically on very small screens */
        width: 100%; /* Use full width for icons */
        margin-left: 0; /* Align icons to the left */
    }
}
