body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #0073e6;
    color: #fff;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 10px 20px;
    margin: 0;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a.active {
    text-decoration: underline;
}

.hero, .about, .cv, .cover-letter, .portfolio, .contact {
    padding: 40px 20px;
    text-align: center;
}

.btn {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    background-color: #0073e6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background-color: #005bb5;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f2f2f2;
    margin-top: 40px;
}

.projects {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.project {
    margin: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    max-width: 300px;
}
.project img {
    width: 100%;         /* Fills the container */
    max-width: 300px;    /* Optional: prevents being too large */
    height: auto;        /* Maintains aspect ratio */
    border-radius: 10px; /* Slight rounded corners for style */
}
img {
    margin-left: auto;
    margin-right: auto;
    display: block;     /* Removes inline spacing issues */
    max-width: 50%;    /* Prevents overflow on small screens */
    height: auto;       /* Keeps aspect ratio */
}
.center-block {
    margin-left: auto;
    margin-right: auto;
    width: 50%; /* or any width you want */
}
/* ===== General Page Styles ===== */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== Page Header ===== */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: #1E40AF; /* Blue */
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 1.1rem;
    color: #555;
}

/* ===== Contact Form ===== */
.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #1E40AF;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1E40AF;
    outline: none;
}

.contact-form button {
    background-color: #1E40AF;
    color: #fff;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #2563EB; /* lighter blue */
}

/* ===== Contact Info ===== */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.contact-info .info-box {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex: 1 1 250px;
}

.contact-info .info-box h3 {
    margin-bottom: 10px;
    color: #1E40AF;
}

.contact-info .info-box p {
    color: #555;
    margin: 0;
}

/* ===== Map Section ===== */
.map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form {
        padding: 20px;
    }
}
