/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background: linear-gradient(to right, #002244, #7777EE, #002244);
	color: white;
    text-align: center;
    padding: 2rem 0;
}

.header .name {
    font-size: 2.5rem;
    margin: 0;
}

.header .tagline {
    font-size: 1.2rem;
    margin: 0.5rem 0 0;
}

/* Navigation */
.navbar {
    background-color: #002244;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.navbar .nav-links li {
    margin: 0 1rem;
}

.navbar .nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #0073e6;
}

/* Section Styles */
.section {
    padding: 2rem 0;
    border-bottom: 1px solid #ddd;
}

.section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem; /* Space between the image and text */
}

.about .portrait {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    flex-shrink: 0; /* Prevent the image from shrinking */
}

.about-text {
    flex-grow: 1; /* Allow the text to take up the remaining space */
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.portfolio-item {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: center;
}

.portfolio-item img {
    max-width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: #002244;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

.contact-form {
    display: grid;
    grid-template-columns: 150px 1fr; /* Two columns: fixed width for labels, flexible width for inputs */
    gap: 10px 20px; /* Row and column gaps */
    max-width: 600px;
    margin: 0 auto;
}

.contact-form label {
    display: flex;
    align-items: center; /* Vertically center-align labels */
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%; /* Make inputs span the column */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical; /* Allow resizing vertically but not horizontally */
}

.contact-form button {
    justify-self: center; /* Align button with the start of the input column */
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0056b3;
}