/* ===== Theme Variables ===== */
:root {
  --background-color: #f0f0f0;
  --card-background: #ffffff;
  --border-color: #ddd;
  --text-color: #000000;
  --subtext-color: #555555;
}

body.dark-mode {
  --background-color: #121212;
  --card-background: #1e1e1e;
  --border-color: #333333;
  --text-color: #ffffff;
  --subtext-color: #bbbbbb;
}

/* ===== General Body Styles ===== */
body {
    font-family: Inter, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s;
}

/* ===== Containers ===== */
.container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

/* ===== Profile Cards ===== */
.profile {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    width: 150px;
    padding: 10px;
    overflow: hidden;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    height: auto;
    flex: 0 1 auto;
}

.profile img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 0 auto 10px auto;
}

.profile:hover {
    transform: scale(1.1);
    z-index: 1;
}

/* ===== Info Text ===== */
.info h3 {
    margin: 10px 0 5px 0;
    font-size: 1rem;
    color: var(--text-color);
}

.info .role {
    margin-bottom: 4px;
    font-size: 0.9em;
    color: var(--subtext-color);
    font-weight: bold;
}

.info p {
    margin: 0;
    font-size: 0.9em;
    color: var(--subtext-color);
    transition: color 0.3s;
}

/* ===== Section Headers ===== */
.section-header {
    font-size: 2.25rem;
    text-align: center;
    margin: 60px 0 40px 0;
    color: var(--text-color);
    transition: color 0.3s;
}

.section-subheader {
    font-size: 1.5em;
    text-align: center;
    margin: 60px 0 40px 0;
    color: var(--text-color);
    transition: color 0.3s;
}

/* ===== Static Images ===== */
.static-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.static-image-container {
    text-align: center;
    width: calc(35% - 20px);
}

.static-image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 5px solid var(--text-color);
    box-shadow: 0 5px 4px rgba(0,0,0,0.1);
}

.static-image-container p {
    margin-top: 10px;
    font-size: 1em;
    color: var(--text-color);
    transition: color 0.3s;
}

@media (max-width: 768px) {
    .static-image-container {
        width: 100%;
    }
}

/* ===== Stats Section ===== */
.stats-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
}

.stats-header {
    font-size: 1.5em;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: var(--text-color);
}

.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-item {
    text-align: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.stat-item h3 {
    margin: 5px 0;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s;
    color: var(--text-color);
}

.stat-item p {
    margin: 0;
    font-size: 1em;
    color: var(--subtext-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
}

.stat-item:hover h3 {
    transform: scale(0);
    opacity: 0;
}

.stat-item:hover p {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.stat-item:active h3 {
    transform: scale(0);
    opacity: 0;
}

.stat-item:active p {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ===== Dark Mode Toggle Button ===== */
#darkModeToggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--text-color);
    color: var(--background-color);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s, color 0.3s;
}

#darkModeToggle:hover {
    background-color: var(--subtext-color);
}

#moon { display: block; }
#sun { display: none; }

.dark-mode #moon { display: none; }
.dark-mode #sun { display: block; }

/* ===== Year Buttons ===== */
.year-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  flex-wrap: wrap;
}

.year-buttons button {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid var(--text-color);
  background-color: transparent;
  color: var(--text-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.year-buttons button:hover {
  background-color: var(--text-color);
  color: var(--background-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
