/* General Reset and Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #004d40;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-left h1 {
    font-size: 1.8rem;
    margin: 0;
}

.nav-right ul {
    list-style: none;
    display: flex;
}

.nav-right ul li {
    margin: 0 10px;
}

.nav-right ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.nav-right ul li a:hover {
    text-decoration: underline;
}

.profile-container {
    margin-top: 20px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
}

.tagline {
    font-size: 1.2rem;
    margin-top: 10px;
    font-style: italic;
}

section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    border-bottom: 2px solid #004d40;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #004d40;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-template-rows: repeat(2, auto); /* Two rows for the grid */
}

.portfolio-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.portfolio-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

footer {
    background-color: #004d40;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.social-media {
    margin-top: 10px;
}

.social-media a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.2rem;
}

.social-media a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-right ul {
        flex-direction: column;
        align-items: center;
    }

    .nav-right ul li {
        margin: 5px 0;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .tagline {
        font-size: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto); /* One item per row for smaller screens */
    }
}
