/* Reset some default browser styles */
body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    margin: 0;
    line-height: 1.6;
    background-color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Centered content for the home page */
.centered-content {
    display: flex;
    max-width: 1000px;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.left-aligned-content {
    padding: 1rem;
    max-width: 1000px;
    margin: 1rem auto;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

ul {
    padding-left: 25px; 
}

header {
    background-color: #004d66;
    color: white;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-weight: bold;
}

nav {
    background-color: #004d66;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
    background-color: #008080;
    transform: scale(1.05);
}

.about {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    text-align: center;
}

footer {
    background-color: #004d66;
    color: white;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

/* Sidebar styles */
.main-content {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 250px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    margin-bottom: 1rem;
    color: #004d66;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    color: #004d66;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.sidebar a:hover {
    background-color: #b3e6e6;
    transform: scale(1.05);
}

.content {
    flex: 1;
    padding: 15px;
}

/* Media Queries for Mobile */
@media (max-width: 800px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        box-shadow: none;
    }

    .sidebar h2, .sidebar ul {
        text-align: center;
    }

    .content {
        padding: 1rem;
    }

    .centered-content, .left-aligned-content {
        padding: 1rem;
        margin: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        margin: 0.5rem 0;
    }
}

/* Container for the profile photo */
.photo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Profile photo styling */
.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Button styles */
button {
    background-color: #004d66;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #008080;
    transform: scale(1.1);
}

.collapsible {
    cursor: pointer;
    font-weight: bold;
    padding: 0.5rem 0;
}

.collapsible:hover {
    color: #004d66;
}

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

footer a:hover {
    text-decoration: underline;
    color: #b3e6e6;
}

/* Impact list styling */
.impact-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.impact-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* LIGHT MODE (default) - CSS Variables */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --accent: #004d66;
  --accent-light: #008080;
  --text-muted: #666;
  --border-color: #ddd;
  --blockquote-bg: #f0fafa;
  --table-header-bg: #f5f5f5;
  --table-even-bg: #fafafa;
}

/* DARK MODE - CSS Variables */
[data-theme="dark"] {
  --bg: #121212;
  --fg: #eeeeee;
  --accent: #80cbc4;
  --accent-light: #4db6ac;
  --text-muted: #aaaaaa;
  --border-color: #333333;
  --blockquote-bg: #1e1e1e;
  --table-header-bg: #1e1e1e;
  --table-even-bg: #1a1a1a;
}

/* Light mode body */
html[data-theme="light"] body,
html:not([data-theme]) body {
  background-color: var(--bg);
  color: var(--fg);
}

/* Dark mode body */
html[data-theme="dark"] body {
  background-color: var(--bg);
  color: var(--fg);
}

html[data-theme="dark"] a {
  color: var(--accent);
}

html[data-theme="dark"] header,
html[data-theme="dark"] footer {
  background-color: #1e1e1e;
}

html[data-theme="dark"] .sidebar h2,
html[data-theme="dark"] .sidebar a {
  color: var(--accent);
}

html[data-theme="dark"] .sidebar a:hover {
  background-color: var(--accent-light);
}

html[data-theme="dark"] button {
  background-color: var(--accent);
}

html[data-theme="dark"] button:hover {
  background-color: var(--accent-light);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
  color: var(--fg);
}

html[data-theme="dark"] .tagline,
html[data-theme="dark"] p {
  color: var(--fg);
}

html[data-theme="dark"] p[style*="color: #666"],
html[data-theme="dark"] p[style*="color: #444"] {
  color: var(--text-muted) !important;
}

html[data-theme="dark"] p[style*="color: #004d66"],
html[data-theme="dark"] h2[style*="color: #004d66"] {
  color: var(--accent) !important;
}

html[data-theme="dark"] hr {
  border-top-color: var(--border-color);
}

html[data-theme="dark"] blockquote {
  background-color: var(--blockquote-bg);
  border-left-color: var(--accent-light);
  color: var(--fg);
}

/* LIGHT MODE - Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  color: var(--fg);
}

th {
  background-color: var(--table-header-bg);
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding: 0.75rem;
  text-align: left;
}

td {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem;
  text-align: left;
  background-color: transparent !important;
}

tr {
  background-color: transparent !important;
}

tr:nth-child(even) {
  background-color: var(--table-even-bg) !important;
}

/* DARK MODE - Table styling */
html[data-theme="dark"] table {
  color: var(--fg);
}

html[data-theme="dark"] th {
  background-color: var(--table-header-bg);
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

html[data-theme="dark"] td {
  border-bottom: 1px solid var(--border-color);
  background-color: transparent !important;
}

html[data-theme="dark"] tr {
  background-color: transparent !important;
}

html[data-theme="dark"] tr:nth-child(even) {
  background-color: var(--table-even-bg) !important;
}

/* Blockquote styling */
blockquote {
  border-left: 4px solid #008080;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  color: #444;
  font-style: italic;
  background-color: #f0fafa;
}

/* Horizontal rule styling */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}