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

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

/* Light mode */
@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;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: center;
}

/* Socials */
.socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  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");
  }
}
@media (max-width: 600px) {
  .socials {
    flex-direction: column;
  }
}

/* Intro */
.intro-title {
  font-size: 24px;
  margin-bottom: 8px;
}
.intro-text {
  color: var(--muted);
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: #28b428;
}

/* Profile card */
.profile-card {
  background: var(--card);
  padding: 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);
}

/* 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;
  border: 1px solid transparent;
  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;
  border: 1px solid transparent;
  font-size: 14px;
  text-align: center;
  margin-top: 20px;
  transition: background 0.2s, border-color 0.2s;
}

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

/* Hover effect for GitHub card */
.card-horizontal:hover {
  background: rgba(50, 205, 50, 0.05);
  border-color: var(--accent);
}

/* Responsive for small screens */
@media (max-width: 600px) {
  .card-horizontal {
    padding: 12px 16px;
    font-size: 13px;
  }
}

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

/* Responsive */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .intro-text {
    text-align: left;
  }
}
@media (max-width: 520px) {
  .intro-title {
    font-size: 20px;
  }
  .section-title {
    font-size: 22px;
  }
}
