* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

header {
    background-color: #1e3a5f;
    color: white;
    padding: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

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

main {
    padding: 2rem;
}

main .intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-preview {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 2rem 0;
}

.project-preview > div {
    background-color: #e0e6ed;
    padding: 1rem;
    flex: 1;
    text-align: center;
    border-radius: 8px;
}

.project-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

.project-section:nth-child(even) {
    flex-direction: row-reverse;
    background-color: #e6ecf2;
}

.project-section:nth-child(odd) {
    background-color: #ffffff;
}

.about-content {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    align-items: center;
}

.about-content p {
    flex: 2;
}

.about-content img {
    flex: 1;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: #1e3a5f;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #335a8f;
}

footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer div {
    margin: 1rem 0;
}
input.error,
textarea.error {
    border: 2px solid red;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
