body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fafbfc;
  margin: 0;
  color: #222;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 48px;
  background: none;
  font-weight: bold;
}
.logo {
  font-weight: bold;
  font-size: 1.6rem;
}
nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: #222;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #2563eb;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

nav a:hover {
  color: #2563eb;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px;
  gap: 48px;
}
.intro h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  font-weight: bold;
}
.intro p {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: #444;
}
.btn {
  background: #2563eb;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: background 0.2s;
  display: inline-block;
}
.btn:hover {
  background: #1742a0;
}
.profile-img img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid #eee;
  background: #fff;
}
main {
  padding: 0 48px 48px 48px;
}
section {
  margin-bottom: 40px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: bold;
}
.skills {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.skills span {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.projects {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 24px;
  width: 220px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
}
.card p {
  margin: 0 0 16px 0;
  color: #444;
}
.card a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.card a:hover {
  text-decoration: underline;
}
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 18px 0;
  font-size: 1rem;
  margin-top: 150px;
}
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  main {
    padding: 0 16px 32px 16px;
  }
  .projects {
    flex-direction: column;
    gap: 16px;
  }
}
.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 18px 0;
  font-size: 1rem;
  margin-top: 300px;
}
