body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  scroll-behavior: smooth;
}

.navbar {
  position: fixed;
  width: 100%;
  background: #007BFF;
  padding: 10px 0;
  z-index: 100;
}
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.navbar ul li {
  margin: 0 15px;
}
.navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.navbar ul li a:hover {
  text-decoration: underline;
}

.hero {
  background-color: #007BFF;
  color: white;
  text-align: center;
  padding: 120px 20px 80px;
}

.hero .profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  margin-bottom: 20px;
}

.hero a.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: white;
  color: #007BFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.hero a.btn:hover { background-color: #e2e2e2; }

section {
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.project-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 20px rgba(0,0,0,0.2);
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
form input, form textarea, form button {
  padding: 10px;
  font-size: 16px;
  width: 100%;
  max-width: 500px;
  margin: auto;
  border-radius: 5px;
  border: 1px solid #ccc;
}
form button {
  background-color: #007BFF;
  color: white;
  border: none;
  cursor: pointer;
}
form button:hover { background-color: #0056b3; }
#formMessage { text-align: center; font-weight: bold; color: green; }

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #333;
  color: white;
}

/* Scroll animations */
.animate { opacity: 0; transform: translateY(50px); transition: opacity 1s, transform 1s; }
.animate.visible { opacity: 1; transform: translateY(0); }
