@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg-light: linear-gradient(135deg, #a8ff78, #78ffd6);
  --bg-dark: linear-gradient(135deg, #0f4037, #093028);
  --text-light: #222;
  --text-dark: #f0f0f0;
  --card-light: #ffffff;
  --card-dark: #1e1e1e;
  --accent: #2ecc71;
  --transition-speed: 0.4s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  line-height: 1.6;
  transition: background var(--transition-speed), color var(--transition-speed);
}

body.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

header {
  background: #1e1e1e;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-speed);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

nav a {
  color: #fff;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.8;
}

main {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

section {
  background: var(--card-light);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  transition: background var(--transition-speed);
}

body.dark section {
  background: var(--card-dark);
}

h1, h2 {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  background: #1e1e1e;
  color: #ccc;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  border-top: 2px solid rgba(255,255,255,0.1);
}

#theme-toggle {
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background var(--transition-speed), color var(--transition-speed);
}

#theme-toggle:hover {
  background: var(--accent);
  color: #fff;
}

.project-links {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.project-links li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0;
  font-size: 1rem;
}

.project-links img {
  width: 24px;
  height: 24px;
  display: inline-block;
}

.project-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.project-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: var(--card-light);
  color: var(--text-light);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, background 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

body.dark .card {
  background: var(--card-dark);
  color: var(--text-dark);
}

.card img {
  width: 40px;
  height: 40px;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--accent);
  color: #fff;
}

.card:hover span {
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  align-items: center;
  background: var(--card-light);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s, background 0.3s;
  text-decoration: none;
  color: inherit;
}

body.dark .project-card {
  background: var(--card-dark);
}

.project-card:hover {
  transform: translateY(-5px);
  background: var(--accent);
  color: #fff;
}

.project-card img {
  width: 32px;
  height: 32px;
  margin-right: 1rem;
}

.project-list {
  list-style: none;
  padding-left: 0;
  max-width: 600px;
  margin: 0 auto;
}

.project-list li {
  margin: 0.75rem 0;
}

.project-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-list a:hover {
  color: #007acc; /* or your theme's highlight color */
}

.icon {
  width: 24px;
  height: 24px;
  filter: invert(0.2) sepia(1) saturate(5) hue-rotate(180deg); /* optional for color tweak */
}

nav a[aria-current="page"] {
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: underline;
}

.cta-btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #2ecc71;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-family: 'Minecraftia', sans-serif;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background-color: #27ae60;
  color: #fff;
}

#commit-list li {
  background: #f7f7f7;
  margin: 0.5rem auto;
  padding: 1rem;
  border-radius: 8px;
  max-width: 600px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
  }

  nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
  }

  nav a {
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    flex: 1 1 auto;
    text-align: center;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    transition: background-color 0.3s ease;
  }

  nav a:hover {
    background-color: #27ae60;
  }

  main {
    padding: 1rem;
    margin: 0 1rem;
  }

  section {
    padding: 1rem;
    border-radius: 8px;
  }

  .card-grid, .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-list a {
    font-size: 1rem;
    gap: 8px;
  }

  #theme-toggle {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }

  footer {
    padding: 1rem;
    font-size: 0.8rem;
  }
}
