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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f6f9;
  color: #2c3e50;
  scroll-behavior: smooth;
}

/* --- Header --- */
header {
  background-color: #ffffff;
  padding: 1.2rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1f3c88;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: all 0.3s;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #1f3c88;
  transition: width 0.3s;
}

.nav-links li a:hover {
  color: #1f3c88;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* --- Sections --- */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

.home-content {
  max-width: 600px;
  margin: auto;
}

.profile-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid #1f3c88;
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1f3c88;
}

h2 {
  color: #1f3c88;
  margin-bottom: 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #f39c12;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: #e67e22;
  transform: scale(1.05);
}

/* --- Projects --- */
.project-gallery {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.project-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.project-card h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.95rem;
  color: #555;
}

.project-card a {
  display: inline-block;
  margin-top: 0.8rem;
  color: #1f3c88;
  font-weight: 500;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

/* --- Contact Form --- */
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #1f3c88;
  outline: none;
  background: #fdfdfd;
}

/* --- Footer --- */
footer {
  background: #1f3c88;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .project-gallery {
    flex-direction: column;
    align-items: center;
  }
}
