* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}
body {
  background: #f9f9f9;
  color: #111;
  line-height: 1.6;
}
header {
  position: sticky;
  top: 0;
  background: #111;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  font-size: 1.1rem;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
nav a {
  color: #fff;
  text-decoration: none;
  transition: color .25s;
}
nav a:hover {
  color: #4dd0e1;
}
section {
  padding: 50px 20px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  display: block;
  margin: 0 auto 20px;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  color: #2196f3;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover {
  background: #eee;
  transform: scale(1.03);
}
.skills span {
  display: inline-block;
  background: #e0f7fa;
  margin: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: .95rem;
}
.projects,
.education-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px auto 0;
  width: min(1000px, 100%);
}
.project-card,
.edu-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  flex: 1 1 280px;
  min-width: 250px;
  max-width: 320px;
  text-align: left;
}
.project-card h3,
.edu-card h3 {
  color: #2196f3;
  margin-bottom: 10px;
}
.project-card a {
  color: #2196f3;
  text-decoration: none;
}
.project-card a:hover {
  text-decoration: underline;
}
footer {
  background: #111;
  color: #fff;
  padding: 18px;
  text-align: center;
}
@media (max-width: 700px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  nav {
    justify-content: center;
    margin-top: 12px;
  }
  section {
    padding: 38px 16px;
  }
  .project-card,
  .edu-card {
    max-width: 100%;
  }
}
