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

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.light {
    background-color: #f9f9f9;
    color: #333;
}

body.dark {
    background-color: #333;
    color: #f9f9f9;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #0078d7;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    text-decoration: underline;
}

.navbar .theme-toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar .theme-toggle:hover {
    transform: scale(1.2);
}

/* Main Content */
main {
    flex-grow: 1;
    padding: 5rem 2rem 2rem; /* Adjusted for fixed navbar spacing */
    max-width: 1200px;
    margin: 0 auto;
}

/* Banner Section */
.banner {
    text-align: center;
    padding: 4rem 1rem;
    background-color: #e1e1e1;
    color: #333;
    border-radius: 10px;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.2rem;
}

/* Footer Styling */
.footer {
    background-color: #0078d7;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto; /* Ensures footer stays at the bottom */
}

.footer a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer a:hover {
    text-decoration: underline;
}

/* Dark Theme Overrides */
body.dark .navbar {
    background-color: #222;
}

body.dark .banner {
    background-color: #444;
}

body.dark .footer {
    background-color: #222;
}
