:root {
  /* Default Light Mode (Device Preference) */
  --bg: #f4f4f4;
  --text: #333333;
  --accent: #2ecc71;
  --card: #ffffff;
  --footer-text: #888888;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212; /* Not 000000 per your request */
    --text: #e0e0e0;
    --card: #1e1e1e;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-transform: lowercase; /* Forces everything to lowercase */
  font-family: 'Inter', -apple-system, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s ease;
}

/* Navigation */
nav {
  padding: 2rem;
  text-align: center;
}

nav a {
  text-decoration: none;
  color: var(--text);
  margin: 0 15px;
  font-weight: 500;
  opacity: 0.7;
  transition: 0.3s;
}

nav a:hover {
  opacity: 1;
}

/* Layout Containers */
main {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  /* This keeps the main content block centered in the browser */
  display: flex;
  flex-direction: column;
  align-items: center; 
}

/* Specific to the about page content */
.about-content {
  text-align: left; /* Aligns text to the left */
  max-width: 600px; /* Limits width so it doesn't look too stretched */
  width: 100%;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

/* Discord Presence Styles */
.profile-card {
  text-align: center;
  margin-top: 2rem;
}

.pfp-container {
  position: relative;
  display: inline-block;
}

#discord-pfp {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--card);
}

.status-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  background: #747f8d; /* Default gray */
}

/* Project Cards */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: scale(1.02); /* Scale only, no position change */
}

.project-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

/* Footer */
footer {
  padding: 2rem;
  text-align: center;
  color: var(--footer-text);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-links img {
  width: 24px;
  height: 24px;
  filter: invert(0.5);
  transition: 0.3s;
}

.social-links img:hover {
  filter: invert(1);
}

/* Responsive */
@media (max-width: 600px) {
  .project-card {
    flex-direction: column;
    text-align: center;
  }
}