body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8f5;
    color: #333;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

header {
    background-color: #2e8b57;
    color: white;
    padding: 20px;
    transition: background-color 0.3s;
}

body.dark-mode header {
    background-color: #1b5233;
}

section {
    padding: 30px;
}

img {
    width: 250px;
    border-radius: 15px;
}

.card {
    background: white;
    margin: 20px auto;
    padding: 20px;
    width: 60%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .card {
    background-color: #2d2d2d;
    color: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

footer {
    background-color: #2e8b57;
    color: white;
    padding: 10px;
    margin-top: 30px;
    transition: background-color 0.3s;
}

body.dark-mode footer {
    background-color: #1b5233;
}

button {
    background-color: #3cb371;
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2e8b57;
}

.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 20px auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: #3d3d3d;
    color: #f0f0f0;
    border-color: #555;
}

.contact-form button {
    margin: 0;
}
