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

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.75; /* Increased for better readability */
  padding-bottom: 40px;
}

/* Navbar */
.navbar {
  background-color: #2c3e50;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-title {
  font-weight: bold;
  font-size: 20px;
}

.navbar-links a {
  margin-left: 15px;
  color: white;
  text-decoration: none;
  font-size: 15px;
}

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

/* Profile section */
.profile-section {
  display: flex;
  flex-wrap: wrap;
  background: white;
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  gap: 30px; /* Added for spacing between img and text */
}

.profile-pic {
  width: 140px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 20px;
}

.profile-text {
  flex: 1;
  min-width: 250px;
}

.profile-text h1 {
  font-size: 26px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.profile-contact p,
.profile-contact a {
  margin: 5px 0; /* Tighter vertical spacing */
  display: block;
}

/* Content sections */
.content-section {
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
  font-size: 1.05rem;
}

.content-section h2 {
  font-size: 20px;
  color: #2c3e50;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.content-section p {
  margin-bottom: 20px;
}

.content-section ul {
  padding-left: 20px;
  margin-top: 10px;
}

.content-section li {
  margin-bottom: 10px;
}

/* Links */
a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

  .profile-pic {
    margin-right: 0;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-links {
    margin-top: 10px;
  }

  .navbar-links a {
    display: inline-block;
    margin: 5px 10px 0 0;
  }
}
