:root {
  --accent: #32cd32;
  --radius: 12px;

  --bg: #111315;
  --card: #212529;
  --text: #ffffff;
  --text-inverse: #2d3338;
  --muted: #a1a1aa;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --card: #eaeaea;
    --text: #44474a;
    --text-inverse: #ffffff;
    --muted: #2d3338;
  }
}

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

body {
  font-family: "Nunito", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Sections */
section {
  padding: 20px 0;
}

.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 20px;
}

/* Profile card */
.profile-card {
  background: var(--card);
  padding: 20px;
  margin-top: 20px;
  border-radius: var(--radius);
  text-align: center;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-weight: 700;
  margin-top: 8px;
}

.profile-role {
  font-size: 14px;
  color: var(--muted);
}

/* Socials */
.socials {
  display: flex;
  flex-wrap: wrap;           /* Allow wrapping */
  justify-content: flex-start; /* Default for large screens */
  gap: 8px;
  margin: 20px 0;
}

.socials img {
  width: 80px;
  height: 25px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s;
}

.socials img:hover {
  transform: scale(1.05);
}

.github img {
  content: url("assets/icons/github_white.png");
}

@media (prefers-color-scheme: light) {
  .github img {
    content: url("assets/icons/github_black.png");
  }
}

/* Center socials on mobile */
@media (max-width: 600px) {
  .socials {
    justify-content: center; /* Center icons on small screens */
  }
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent);
}

.screenshot {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.card-title {
  margin: 8px 0;
  font-size: 16px;
}

.card-text {
  font-size: 14px;
  color: var(--muted);
}

.links {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.chip {
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 20px;
  font-size: 13px;
  background: rgba(50, 205, 50, 0.1);
  border: 1px solid rgba(50, 205, 50, 0.3);
  color: var(--accent);
  font-weight: 600;
}

.chip:hover {
  transform: scale(1.05);
}

/* Full-width GitHub card */
.card-horizontal {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--card);
  color: var(--text);
  padding: 16px 20px;
  font-size: 14px;
  text-align: center;
  margin-top: 20px;
  transition: background 0.2s, border-color 0.2s;
}

.card-horizontal a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.card-horizontal:hover {
  background: rgba(50, 205, 50, 0.05);
  border-color: var(--accent);
}

/* Footer */
.footer {
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 920px) {
  .socials {
    flex-direction: row; /* Keep wrapping but don't force column */
  }
}

@media (max-width: 520px) {
  .section-title {
    font-size: 22px;
  }
}
