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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background: #1c1e28;
  color: #c9d1d9;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode .job-title {
  color: #e6edf3;
}

body.dark-mode .subtitle,
body.dark-mode .description,
body.dark-mode .about {
  color: #8b949e;
}

body.dark-mode h2 {
  border-bottom-color: #30363d;
}

body.dark-mode .tech-tag {
  background: #161b22;
  color: #8b949e;
}

body.dark-mode footer {
  border-top-color: #30363d;
  color: #6e7681;
}

body.dark-mode .date {
  color: #6e7681;
}

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

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none !important;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: #f0f0f0;
}

body.dark-mode .theme-toggle {
  border-color: #30363d;
}

body.dark-mode .theme-toggle:hover {
  background: #161b22;
}

.theme-toggle img {
  width: 25px;
  height: 25px;
  display: block;
  filter: brightness(0) saturate(100%);
  opacity: 0.6;
}

body.dark-mode .theme-toggle img {
  filter: brightness(0) saturate(100%) invert(1);
  opacity: 0.8;
}

header {
  margin-bottom: 60px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.links a {
  color: #89ddff;
  text-decoration: none;
  font-size: 0.95rem;
}

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

section {
  margin-bottom: 50px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #111;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.about {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
}

.experience-item {
  margin-bottom: 30px;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.job-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
}

.project-link {
  color: #89ddff !important;
  text-decoration: none;
}

.company {
  color: #89ddff;
  font-weight: 500;
}

.date {
  color: #888;
  font-size: 0.9rem;
}

.description {
  color: #555;
  margin-top: 8px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tech-tag {
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #555;
}

footer {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.social-icon {
  width: 25px;
  height: 25px;
  display: block;
  filter: brightness(0) saturate(100%) invert(91%) sepia(11%) saturate(7149%)
    hue-rotate(172deg) brightness(103%) contrast(103%);
}
