body {
    font-family: 'Open Sans', sans-serif;
    font-size: calc(16px + 0.5vw); /* text scales with viewport width */
    line-height: (1.1em+0.5vw);
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Change this from row to column */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    max-width: 70%; /* Set the max-width for the container */
    margin-left: auto; /* Center the container horizontally */
    margin-right: auto; /* Center the container horizontally */
    padding-top: 0.01vw; /* Add padding to the top */
}
.header-wrapper {
    text-align: center;
    width: 100%;
}
.profile-photo {
    max-width: 500px;
    width: 100%; /* Change this from 'width: auto;' to 'width: 100%;' */
    border-radius: 50%;
    display: block; /* Change this from 'display: inline-block;' to 'display: block;' */
    margin-left: auto; /* Add this line to center the photo */
    margin-right: auto; /* Add this line to center the photo */
}


h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0px 0;
    display: inline-block;
    position: relative;
    white-space: nowrap; /* Prevent the name from wrapping to the next line */
}

}

.profile-photo-wrapper {
    width: 100%;
    max-width: 40%;
    position: relative;
    text-align: center;
    margin-bottom: 15px; /* Add margin to the bottom */

}

p {
    font-weight: 300;
    margin: 5px 0;
}
.contact-info {
    margin-top: 10px; /* Add margin to the top */
}
a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline dotted;
}

.social-media a {
    margin: 0 5px;
}
.header-content {
    margin-bottom: 40px; /* Adjust this value to control the space between the text content and the portfolio grid */
}
/* Media queries to adjust the font size at smaller screen sizes */
@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
}
html {
    scroll-behavior: smooth;
}

/* Portfolio Section */
#portfolio {
    margin-top: 40px;
        clear: both; /* Add this line to position the grid below the text */

}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, calc(25% - 5px)); /* Adjust the grid-template-columns value */
    grid-gap: 5px;
    margin-left: 5%; /* Adjust the left margin */
    margin-right: 5%; /* Adjust the right margin */
}

.portfolio-item {
    padding-left: 2%; /* Add padding to the left */
    padding-right: 2%; /* Add padding to the right */
}

.portfolio-item img {
    width: 50%;
    height: auto;
    display: block;
      margin-left: auto;
    margin-right: auto;
}


    .portfolio {
        max-width: 800px;
        margin: 0 auto;
        padding: 2em;
        text-align: left;
    }

    .portfolio h1 {
        font-size: 1.5em;
    }

    .portfolio p {
        font-size: 0.7em;
        margin-bottom: 1em;
    }


    </style>