:root {
  --bg-color: #0d1117;
  --text-color: #c9d1d9;
  --accent-color: #58a6ff;
  --card-bg: #161b22;
  --border-color: #30363d;
}

/* Light Mode */
body.light-mode {
  --bg-color: #ffffff;
  --text-color: #222222;
  --card-bg: #f5f5f5;
  --accent-color: #0056b3;
  --border-color: #ddd;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

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

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

h1, h2, h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

main {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

.hero {
  text-align: center;
  padding: 80px 20px 40px;
  position: relative;
}

.hero .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  margin-bottom: 20px;
}

.hero-links a {
  margin: 0 10px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.hero-links a:hover {
  text-decoration: underline;
}

#theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  padding: 6px 10px;
}

section {
  margin-top: 40px;
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.skills li {
  margin-bottom: 6px;
}

.date {
  font-style: italic;
  color: #999;
}

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

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

footer {
  text-align: center;
  padding: 30px;
  font-size: 0.9em;
  color: #777;
}

.accent {
  color: var(--accent-color);
}
#tech-stack {
  margin-top: 40px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.tech-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tech-item i {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
