body {
    font-family: 'Bebas Neue', sans-serif;
    padding: 0;
    margin: 0;
    align-items: center;
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    align-items: center;
}

li {
    list-style: none;
    margin: 0.5rem 3rem;
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: black;
}

a:hover {
    text-decoration: underline;
}

.logo img {
    max-height: 4rem;
}

/* hero section */
.hero {
    width: 100%;
    display: flex;
    background-image: url(../images/backgroundoverlay2.webp);
    object-fit: cover;
}

.text-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    margin-right: 2rem;
}

.image {
    display: flex;
    width: 50%;
    justify-content: center;
    align-items: center;
}

.image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* texts */
h1 {
    font-size: 10rem;
    margin: 0;
    color: whitesmoke;
}

.subheader {
    font-size: 2.5rem;
    margin: 0;
    color: whitesmoke;
}

h2 {
    font-size: 2.5rem;
    margin: 0;
    color: whitesmoke;
}

h3 {
    font-size: 6rem;
    margin: 0;
}

.gallery h2 {
    text-align: center;
    padding-bottom: 1rem;
    text-decoration: underline;
    color: black;
}

.footer-section a {
    font-size: 2rem;
    line-height: 3rem;
    font-weight: 500;
    color: whitesmoke;
}

.footer-section h2 {
    font-size: 2rem;
    line-height: 3rem;
    font-weight: 500;
    color: whitesmoke;
}

.footer-section h3 {
    font-size: 4.5rem;
    line-height: 3rem;
    font-weight: 500;
    color: whitesmoke;
    padding-top: 2rem;
    text-decoration: underline;
}

/* about */
.about {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text {
    padding: none;
    text-align: center;
}

.description {
    font-size: 1.5rem;
    line-height: 3rem;
    font-weight: 500;
}

.button-container {
    margin: none;
}

.button {
    color: black;
    border: 2px solid black;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 2rem;
}

/* previous works */
.experience {
    text-align: center;
    background-image: url('../images/backgroundoverlay.webp');
    object-fit: cover;
    padding-bottom: 3rem;
}

.workedwith {
    font-size: 2.5rem;
    margin-bottom: 50px;
    margin-top: 100px;
    padding-top: 3rem;
}

.experience div {
    display: inline-block;
    width: 40%;
    margin: 0;
}

.experience img {
    width: 40%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 35px;
}

/* work gallery */
.gallery {
    padding: 2rem;
}

.work-gallery {
    position: relative;
    max-width: 65%;
    margin: 0 auto;
}

.slider {
    display: flex;
    height: 75%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
    border-radius: 0.5rem;
    position: relative;
}

.slider img {
    flex: 1 0 100%;
    scroll-snap-align: center;
    object-fit: contain;
}

/* footer */
footer {
    text-align: center;
    justify-content: center;
    background-image: url(../images/backgroundoverlay2.webp);
    padding: 25px;
    object-fit: cover;
}

footer div {
    margin-bottom: 20px;
}

.footer {
    font-size: 2rem;
    margin: 0;
}

.contact {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.footer-section img {
    max-height: 4rem;
}

/* Media Query for Tablet */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 4rem;
    }

    .about {
        flex-direction: column-reverse;
        align-items: center;
    }

    .text {
        width: 80%;
        padding: 2rem;
        text-align: center;
    }

    .image {
        width: 100%;
    }

    .work-gallery {
        max-width: 85%;
    }
}
/* Media Query for Mobile */
@media screen and (max-width: 540px) {

    li {
        list-style: none;
        margin: 0.5rem 2rem;
        font-size: 1rem;
    }

    .text-container {
        padding-left: 1.5rem;
    }

    .subheader {
        font-size: 1.5rem;
    }

    .about {
        flex-direction: column-reverse;
        align-items: center;
    }

    .text {
        width: 80%;
        padding: 2rem;
        text-align: center;
    }

    .image {
        width: 100%;
    }

    .experience div {
        width: 100%;
        margin: 0;
    }

    .work-gallery {
        max-width: 95%;
        max-height: fit-content;
    }
}