/* General styles */
body {
    font-family: Arial, sans-serif;
    /* Light mode gradient: orange → blue */
    background: linear-gradient(135deg, #ff8c00, #007bff);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    color: #333; /* Default text color for light mode */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body.dark-mode {
    /* Dark mode gradient: darker orange → darker blue */
    background: linear-gradient(135deg, #cc7000, #0056b3);
    color: #ecf0f1; /* Default text color for dark mode */
}

body.dark-mode header,
body.dark-mode footer {
    background-color: #0056b3; /* Dark blue */
}

body.dark-mode nav ul li a {
    color: #ecf0f1;
}

body.dark-mode .form-container,
body.dark-mode .service {
    background-color: #0056b3; /* Dark blue */
    color: #ecf0f1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header {
    background-color: #ff8c00; /* Orange */
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    flex-wrap: nowrap;
}

header .logo {
    height: 40px;
}

header h1 {
    margin: 0;
    font-size: 24px;
    flex-grow: 1;
    text-align: left;
    margin-left: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul li {
    display: inline;
}

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

main {
    flex: 1;
}

#content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#services {
    flex: 1;
    margin-right: 20px;
    text-align: left;
}

#forms {
    flex: 1;
    margin-left: 20px;
}

h2 {
    color: #007bff; /* Blue */
    margin-bottom: 20px;
}

button {
    background-color: #007bff; /* Blue */
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #0056b3; /* Darker blue */
}

.form-container {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    display: none;
    margin: 20px auto;
    animation: slide-down 0.3s ease-out;
    box-sizing: border-box;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.dark-mode .form-container {
    background-color: #0056b3; /* Dark blue */
    border: 1px solid #004494; /* Darker blue */
}

.active {
    display: block;
}

form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

label {
    margin-bottom: 8px;
    font-weight: bold;
    align-self: flex-start;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.service {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px 0;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

body.dark-mode .service {
    background-color: #0056b3; /* Dark blue */
    border: 1px solid #004494; /* Darker blue */
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 0;
}

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

footer ul li {
    display: inline;
}

footer ul li a {
    color: white;
    text-decoration: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: center;
    }

    header h1 {
        margin: 0 10px;
    }

    nav ul {
        gap: 10px;
    }

    #content {
        flex-direction: column;
    }

    #services, #forms {
        flex: 1 0 100%;
        margin: 0;
    }

    .form-container {
        padding: 20px;
        width: calc(100% - 40px);
    }

    .service {
        padding: 10px;
    }
}

