:root {
    --background-blue: #e6f4ff;     /* light background blue */
    --header-blue: #84c5f4;         /* brighter blue for header */
    --sidebar-blue: #a7d3f5;        /* sidebar blue */
    --navbar-bg: #d9efff;           /* navbar background */
    --text-light: #ffffff;          /* white text */
    --text-dark: #1e3d58;           /* dark blue for text */
    --footer-bg: #4a90e2;           /* footer background */
}  

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--background-blue);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-blue);
    color: var(--text-light);
    z-index: 1000;
    text-align: center;
    padding: 20px 0;
}

/* Container that holds both h1 and nav */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo on its own line */
h1 {
    font-size: 36px;
    font-weight: bold;
    margin: 0 0 12px 0;
}

/* Navbar on its own line */
.header-navbar {
    display: flex;
    gap: 30px;
    justify-content: center;
    background-color: var(--navbar-bg);
}

/* Navbar Links */
.header-navbar a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    padding: 8px 12px;
}

.header-navbar a:hover {
    text-decoration: underline;
}

/* Sidebar */
aside {
    min-height: calc(100vh - 60px);
    box-sizing: border-box;
    position: fixed;
    top: 100px;
    left: 0;
    bottom: 20px;
    width: 200px;
    background-color: var(--sidebar-blue);
    padding: 30px 20px 20px 20px;
    border-right: 2px solid #ccc;
    overflow-y: auto;
}

/* Main Content */
main {
    margin-left: 200px;
    padding-top: 120px;
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
}

h2 {
    text-align: center;
    color: var(--text-dark);
}

.image-container {
    width: 100%;
    height: 66.67vh;
    margin: 20px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    max-width: 75%;
    max-height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--footer-bg);
    color: var(--text-light);
    text-align: center;
    line-height: 60px;
    z-index: 1000;
}

/* Biography Section Layout */
.bio-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 30px 0;
}

.bio-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
}

.bio-text {
    max-width: 800px;
    font-size: 16px;
    color: var(--text-dark);
}

.bio-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.bio-text p {
    line-height: 1.6;
}

/* Contact Section */
#contact {
    background-color: var(--background-blue);
    padding: 40px 20px;
    text-align: center;
}

#contact h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Form styling */
form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--sidebar-blue);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    font-size: 16px;
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

input, textarea {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    line-height: 30px;
}

textarea {
    resize: vertical;
}

button {
    background-color: var(--header-blue);
    color: var(--text-light);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--footer-bg);
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 768px) {
    #contact {
        padding: 20px 10px;
    }

    form {
        padding: 15px;
    }

    input, textarea {
        font-size: 14px;
    }

    button {
        font-size: 16px;
    }

    .bio-container {
        flex-direction: column;
        align-items: center;
    }

    .bio-image {
        width: 150px;
        height: 150px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .bio-text {
        text-align: center;
    }
}

/* Mobile Devices */
@media screen and (min-width: 370px) and (max-width: 600px) {
    main {
        width: 50%;
        margin-left: 100px;
    }

    body {
        font-size: 110%;
    }

    .image-container {
        height: 30vh;
        width: 60vw;
    }

    aside {
        box-sizing: border-box;
        width: 110px;
        padding: 20px 10px 10px 10px;
        font-size: 70%;
    }
}

/* Tablet Devices */
@media screen and (min-width: 601px) and (max-width: 980px) {
    main {
        width: 60%;
    }

    body {
        font-size: 115%;
    }

    .image-container {
        height: 40vh;
        width: 70vw;
    }

    .header-navbar a {
        font-size: 14px;
    }
}

/* Laptops / Small Screens */
@media screen and (min-width: 981px) and (max-width: 1400px) {
    main {
        max-width: 1000px;
    }

    body {
        font-size: 120%;
    }

    .image-container {
        height: 50vh;
    }
}

/* Changes header based on screen width */
@media screen and (max-width: 600px) {
    header {
        padding: 10px 0;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .header-navbar {
        gap: 0.1vw;
        padding: 10px 0;
    }

    .header-navbar a {
        font-size: 12px;
    }
}

details.active-service {
    background-color: var(--navbar-bg);
    border: 2px solid var(--header-blue);
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/* Sidebar Interactions */
#toggle-spotlight, #toggle-fastfact {
    background-color: var(--header-blue);
    color: var(--text-light);
    border: none;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#toggle-spotlight:hover, #toggle-fastfact:hover {
    background-color: var(--footer-bg);
}

/* === DARK MODE STYLES === */
body.dark-mode {
    background-color: #1e1e1e;
    color: #ffffff;
}

/* Header */
body.dark-mode header {
    background-color: #2c2c2c;
    color: #ffffff;
}

body.dark-mode .header-navbar {
    background-color: #333333;
}

body.dark-mode .header-navbar a {
    color: #ffffff;
}

body.dark-mode .header-navbar a:hover {
    color: #80bfff;
}

/* Sidebar */
body.dark-mode aside {
    background-color: #2c2c2c;
    color: #ffffff;
}

body.dark-mode aside a {
    color: #80bfff;
}

body.dark-mode aside a:hover {
    color: #ffffff;
}

/* Main Content */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode p,
body.dark-mode label,
body.dark-mode li {
    color: #ffffff;
}

/* Footer */
body.dark-mode footer {
    background-color: #2c2c2c;
    color: #ffffff;
}

body.dark-mode footer a {
    color: #80bfff;
}

body.dark-mode footer a:hover {
    color: #ffffff;
}

/* Buttons */
body.dark-mode button {
    background-color: #444;
    color: #fff;
    border: 1px solid #666;
}

body.dark-mode button:hover {
    background-color: #666;
    color: #fff;
}

/* Forms */
body.dark-mode input,
body.dark-mode textarea {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #555;
}

/* Bio Section */
body.dark-mode .bio-text {
    color: #ffffff;
}

/* Fast Fact and Spotlight Buttons */
body.dark-mode #toggle-spotlight,
body.dark-mode #toggle-fastfact {
    background-color: #444;
    color: #fff;
}

body.dark-mode #toggle-spotlight:hover,
body.dark-mode #toggle-fastfact:hover {
    background-color: #666;
}

/* Apply dark background to entire body and children */
body.dark-mode,
body.dark-mode main,
body.dark-mode footer,
body.dark-mode html {
    background-color: #1e1e1e !important;
}

/* Light mode footer base */
footer {
    background-color: var(--footer-bg);
    color: #1e1e1e;
}

footer a {
    color: #003366;
    text-decoration: none;
    font-weight: normal;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #555555;  /* same as dark mode hover */
    font-weight: bold;
    text-decoration: underline;
}

footer p {
    color: #1e1e1e;
}



/* Light mode button hover effect */
#toggle-footer-theme {
    background-color: var(--header-blue);
    color: #ffffff;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
}

#toggle-footer-theme:hover {
    background-color: #003366; /* Darker blue on hover */
    color: #ffffff;
}

/* Optional: Add subtle hover effect for <p> (if needed) */
footer p:hover {
    color: #000000;
    transition: color 0.3s ease;
}

/* Dark mode footer fix: make text clearly visible */
body.dark-mode footer {
    background-color: #1a1a1a !important;
    color: #000000 !important; /* Set main footer text to black */
}

/* All inner elements (links, buttons, etc.) */
body.dark-mode footer * {
    background-color: transparent !important;
    color: #000000 !important; /* Black text for all elements */
}

/* Paragraphs */
body.dark-mode footer p {
    color: #000000 !important;
}

/* Links */
body.dark-mode footer a {
    color: #ffffff !important;
    font-weight: bold;
}

body.dark-mode footer a:hover {
    color: #555555 !important;
}

/* Toggle button */
body.dark-mode #toggle-footer-theme {
    background-color: #333333 !important;
    color: #ffffff !important;
    border: 1px solid #777;
}

body.dark-mode #toggle-footer-theme:hover {
    background-color: #555555 !important;
}



