body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Changed from center to flex-start for better mobile scroll */
    min-height: 100vh;
    text-align: center;
}

p {
    margin: 0px;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 0px;
    color: #555;
    font-weight: 350;


}

div.align-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
}

img.logo {
    display: block;
    margin: 0px;
    margin-left: 2rem;
    margin-right: auto;
    padding: 0;
    width: 5%;
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

.profile-img#contact-page-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 5rem;
    align-items: left;
}

h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
}

h2 {
    font-size: 1.8rem;
    font-weight: lighter;
    margin: 0.5rem 0;
    text-align: left;
}

h3 {
    font-size: 1.5rem;
    font-weight: lighter;
    margin: 0.5rem 0;
    text-align: left;
}

h4 {
    font-size: 1.3rem;
    font-weight: lighter;
    margin: 0.5rem 0;
    text-align: left;
}

h5 {
    font-size: 1.1rem;
    font-weight: lighter;
    margin: 0.5rem 0;
    text-align: left;
}

h6 {
    font-size: 0.9rem;
    font-weight: lighter;
    margin: 0.5rem 0;
    text-align: left;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    align-items: left;
    color: #111;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #007acc;
}

footer {
    position: static;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

#main-content {
    display: block;
    max-width: 700px;
    width: 90vw;
    /* Use viewport width for flexibility */
    margin: 40px auto;
    padding: 6vw 4vw;
    /* Responsive padding */
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: left;
}
.gif {
    display: block;
    margin: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: cover;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

img#front-page-image {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-img#contact-page-image {
    display: flex;
    justify-content: center;

}

div#index-page {
    display: flex;
    justify-content: left;
}

ul#home-page-list {
    list-style-type: none;
    font-weight: 300;
    padding: 0px;
    margin: 0;
    text-align: left;
}

ul {
    list-style-type: none;
    padding: 0px;
    padding-top: 5px;
    margin: 0;
    text-align: left;
}

li#home-page-list {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #333;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

i {
    font-size: 1.9rem;
    color: #111;
    transition: color 0.2s;
}
i#coffee{
    font-size: 0.9rem;
    color: #464646;
    padding: 0;
    padding-left: 0.2rem;
}
a {
    text-decoration: none;
}
a.no-underline {
    text-decoration: none;

}

/* Responsive adjustments */
@media (max-width: 500px) {
    #main-content {
        max-width: 98vw;
        padding: 5vw 2vw;
        border-radius: 0;
        box-shadow: none;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .nav-links {
        font-size: 1rem;
    }

    img.profile-img,
    img#front-page-image,
    .profile-img#contact-page-image {
        width: 40vw;
        max-width: 1.5rem;
        min-width: 40vw;
    }

    img.profile-img#contact-page-image {
        width: 30vw;
        max-width: 1rem;
        min-width: 21vw;
    }
}

/* Optional: Make nav horizontal on larger screens */
@media (min-width: 700px) {
    .nav-links {
        flex-direction: column;
        align-items: left;
        gap: 0.5rem;
    }

    ul#home-page-list {
        text-align: center;
        justify-content: center;
        width: 100%;
    }
}