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

body {
  font-family: "Poppins", sans-serif;
  background: #f9fafb;
  color: #111827;
  line-height: 1.6;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

nav h1 {
  font-size: 1.3rem;
  color: #2563eb;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover,
.active {
  color: #2563eb;
}

.profile-card {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.profile-card figure img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-card nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-card nav a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.profile-card nav a:hover {
  color: #1e40af;
}

.profile-card section {
  background: #f9fafb;
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
}

.profile-card h3 {
  color: #2563eb;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.profile-card ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.profile-card li {
  background: #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .profile-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 2rem;
  }

  .profile-card figure {
    flex-shrink: 0;
  }

  .profile-card section {
    width: 100%;
  }
}

.time {
  margin-top: 0.5rem;
  color: #4b5563;
}

.skills,
.projects,
.experience,
.contact {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skills ul,
.experience ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skills li {
  background: #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.project {
  margin-bottom: 1rem;
}

input:focus,
textarea:focus,
button:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.about section {
  margin-bottom: 2rem;
  padding: 1rem 2rem;
}

.about h2,
.about h3 {
  color: #2563eb;
  margin-bottom: 0.75rem;
}

.about p {
  color: #374151;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.about {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project h4 {
  color: #2563eb;
  font-size: 1rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  width: 100%;
}

.error {
  color: red;
}

button {
  background: #2563eb;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #1e40af;
}

footer {
  text-align: center;
  padding: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }
}
