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

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  padding: 0;
  margin: 0;
}

/* ✅ NAVBAR */
.navbar {
  background-color: #0077ff;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 4px;
}

.navbar a:hover,
.navbar a.active {
  background-color: #005fcc;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  margin: 40px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-img {
  width: 200px;
  height: 340px;
  border-radius: 5%;
  object-fit: cover;
}

.profile-info .name {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.profile-info .role {
  color: #555;
  margin-bottom: 10px;
}

.profile-info .bio {
  color: #777;
  margin-bottom: 15px;
}

.hobbies {
  margin-bottom: 15px;
}

.hobbies h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.hobbies ul {
  margin-left: 20px;
  color: #555;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.social-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #0077ff;
}

.social-links a:hover {
  text-decoration: underline;
}

/* about page */
.about-section {
  max-width: 700px;
  margin: 40px auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-section h1 {
  margin-bottom: 15px;
  text-align: center;
}

.about-section p {
  line-height: 1.6;
  margin-bottom: 10px;
}

/* contact page */
.contact-section {
  max-width: 700px;
  margin: 40px auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-section h1 {
  margin-bottom: 20px;
}

form label {
  margin-top: 10px;
  margin-bottom: 5px;
  display: block;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  padding: 10px 15px;
  background-color: #0077ff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

form button:hover {
  background-color: #005fcc;
}

.success-message {
  margin-top: 15px;
  color: green;
  font-weight: bold;
}

.error {
  color: red;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  margin-bottom: 4px;
  padding: 8px;
  box-sizing: border-box;
}

input.error-border,
textarea.error-border {
  border: 1px solid red;
}

/* (Mobile view) */
@media (max-width: 600px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-img {
    margin-bottom: 15px;
    width: 150px;
    height: 200px;
  }

  .social-links {
    justify-content: center;
  }

  .hobbies ul {
    list-style-type: none;
    margin-left: 0;
  }

  .sections {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: start;
    gap: 10px;
  }
}
