body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;

    background-color: var(--bg-color); 
    color: var(--text-color); 
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background-color: var(--header-footer-bg); 
    position: relative;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color); 
}

header #dark-mode-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    padding: 8px 12px;
    font-size: 0.9rem;
    background-color: var(--button-bg); 
    color: white;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

header #dark-mode-toggle:hover {
    background-color: var(--button-hover-bg); 
}


.contact-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-color: var(--main-bg); 
    border-radius: 8px;
    box-shadow: 0 0 10px var(--shadow-color); 
    margin-top: 20px;
    margin-bottom: 30px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color); 
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.row {
    display: flex;
    gap: 20px;
}

.field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color); 
}

input, textarea {
    padding: 10px;
    font-size: 1em;
    border: 1px solid var(--input-border); 
    border-radius: 4px;
    resize: vertical;
    background-color: var(--input-bg); 
    color: var(--text-color); 
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

textarea {
    width: 100%;
    min-height: 120px;
}

button {
    align-self: flex-start;
    padding: 12px 20px;
    background-color: var(--button-bg); 
    color: white;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--button-hover-bg); 
}

footer {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    background-color: var(--header-footer-bg); 
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

footer nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer nav a {
    text-decoration: none;
    color: var(--button-bg); 
    transition: color 0.3s ease;
}
footer nav a:hover {
    color: var(--button-hover-bg); 
}


@media (max-width: 600px) {
    .row {
        flex-direction: column;
    }
    header #dark-mode-toggle {
        position: static;
        transform: none;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}