/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f8fa;
  color: #222;
  line-height: 1.6;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: #1a1a40;
  padding: 1rem 0;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  margin: 0;
  font-size: 1.75rem;
}
nav {
  margin-top: 0.5rem;
}
.nav_list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}
.nav_list li a {
  color: #eee;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.nav_list li a:hover {
  color: #8a2be2;
}

/* Hero */
.hero {
  text-align: center;
  margin: 3rem 0 4rem 0;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #1a1a40;
}
.hero p {
  font-size: 1.1rem;
  margin: 0.3rem 0 1.5rem 0;
}
.hero_img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #8a2be2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.btn-primary {
  background-color: #8a2be2;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: #6a1bd2;
}

/* Sections */
section {
  margin-bottom: 3rem;
}
h2 {
  color: #1a1a40;
  margin-bottom: 1rem;
  border-bottom: 3px solid #8a2be2;
  padding-bottom: 0.3rem;
  font-weight: 700;
}

/* About */
.about p {
  max-width: 650px;
  margin-bottom: 1rem;
}

/* Projects */
.projects {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.project_card {
  background: white;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 3px 8px rgb(138 43 226 / 0.15);
}
.project_card h3 {
  margin-top: 0;
  color: #6a1bd2;
}
.btn-secondary {
  background-color: #eee;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
  transition: background-color 0.3s ease;
}
.btn-secondary:hover {
  background-color: #ddd;
}

/* Open Source */
.opensource p {
  margin-bottom: 1rem;
}
.opensource a {
  margin-right: 1rem;
}

/* Contact */
.contact_form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}
.contact_form label {
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.contact_form input,
.contact_form textarea {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
.contact_form button {
  align-self: flex-start;
  background-color: #8a2be2;
  color: white;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}
.contact_form button:hover {
  background-color: #6a1bd2;
}

/* Footer */
.footer {
  background-color: #1a1a40;
  color: #eee;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .nav_list {
    flex-direction: column;
    gap: 0.75rem;
  }
  .projects {
    gap: 1rem;
  }
}

