/* ==============================
   Hero Section
============================== */
.hero-section {
  padding: 150px 0 80px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid silver;
}

.hero-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

/* Text block */
.hero-text {
  text-align: center;
  flex: 1 1 350px; /* Allows hero-text to shrink */
  min-width: 300px; /*keep buttons from overlapping */
}

.hero-buttons {
  margin-top: 20px;
  display: inline-flex;
  gap: 10px;
}

.hero-text h5 {
  font-size: 1rem;
  color: #26729e;
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #222;
}

.hero-text .highlight {
  color: #26729e;
}

.hero-subtext {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 10px;
  max-width: 500px;
  margin: 0 auto 10px;
}

.hero-social i {
  color: #333;
  font-size: 18px;
  margin-right: 15px;
  transition: color 0.3s;
}

.hero-social i:hover {
  color: #26729e;
}

/* Profile & Skills Area */
.hero-personal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex: 1 1 300px;
}

.profile-picture {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #007BFF;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  margin: 0 auto;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Adjust this second percentage to move PROFILE PIC.*/

  object-position: 50% 8%;
}


.hero-skills ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero-skills li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 8px;
  font-weight: 500;
}

/* ========== Media Queries ========== */

/* Under 767px: stack columns vertically */
@media (max-width: 767px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
  }
  .hero-text,
  .hero-personal {
    width: 100%;
    flex: none;
  }
  .profile-picture {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
  .hero-skills ul {
    text-align: center;
  }
  /* Slightly reduce hero padding for smaller devices */
  .hero-section {
    padding: 120px 0 60px;
  }
}

/* Under 400px: further reduce fonts & image size */
@media (max-width: 400px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-buttons .btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  .hero-social i {
    font-size: 1rem;
  }
  .profile-picture {
    width: 150px;
    height: 150px;
  }
  .hero-skills ul {
    font-size: 0.9rem;
  }
  /* Further reduce hero padding on very narrow devices */
  .hero-section {
    padding: 100px 0 50px;
  }
}

/* Extra small (under 320px):
   let’s shrink the image if absolutely needed */
@media (max-width: 320px) {
  .profile-picture {
    width: 130px;
    height: 130px;
  }
  .hero-text h1 {
    font-size: 1.6rem;
  }
  .hero-section {
    padding: 80px 0 40px;
  }
}
