.profile-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 10%;
  background-color: #f8f8f8;
}

.profile-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  gap: 40px;
}

.profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-name {
  font-size: 2rem;
  font-weight: bold;
  font-family: var(--font-heading);
}

.profile-position {
  font-size: 1.2rem;
  font-weight: 500;
  font-family: var(--font-primary);
  margin-bottom: 15px;
}

.profile-message {
  font-style: italic;
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.profile-info h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 15px;
}

.profile-info p,
.profile-info ul {
  font-size: 1rem;
  color: #333;
}

.profile-info ul {
  padding-left: 20px;
}

.linkedin-link {
  margin-top: 20px;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  color: white;
  background: var(--blue);
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.linkedin-link:hover {
  background: var(--dark-blue);
}
/* Profile Image - Fixed with Margin */
.profile-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Keeps image at the top */
  position: sticky;
  top: 20px; /* Adjust this value to control the gap from the top */
  height: calc(100vh - 20px); /* Adjusts height dynamically */
}


.profile-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  color: var(--purple);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.linkedin-link i {
  margin-right: 8px;
  font-size: 22px;
  transition: color 0.3s ease-in-out;
}

/* Hover Effect */
.linkedin-link:hover,
.linkedin-link:hover i {
  color: red;
}


/* ========== Responsive Styles ========== */

/* 2560px and below */
@media (max-width: 2560px) {
  .profile-section {
    padding: 60px 5%;
  }
}

/* Tablets and small desktops */
@media (max-width: 1024px) {
  .profile-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .profile-image {
    position: relative;
    height: auto;
  }

  .profile-details {
    text-align: left;
  }

  .linkedin-link {
    justify-content: flex-start;
  }
}

/* Tablets and large phones */
@media (max-width: 768px) {
  .profile-name {
    font-size: 1.8rem;
  }

  .profile-position {
    font-size: 1rem;
  }

  .profile-message {
    font-size: 0.95rem;
  }

  .profile-info h4 {
    font-size: 1rem;
  }

  .profile-info p,
  .profile-info ul {
    font-size: 0.95rem;
  }

  .profile-image img {
    max-width: 320px;
  }
}

/* Mid-range phones */
@media (min-width: 425px) and (max-width: 690px) {
  .profile-name {
    font-size: 1.6rem;
  }

  .profile-position {
    font-size: 0.95rem;
  }

  .profile-message {
    font-size: 0.9rem;
  }

  .profile-info h4 {
    font-size: 0.95rem;
  }

  .profile-info p,
  .profile-info ul {
    font-size: 0.9rem;
  }

  .profile-image img {
    max-width: 280px;
  }
}

/* Small phones */
@media (min-width: 315px) and (max-width: 430px) {
  .profile-container {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
  }

  .profile-name {
    font-size: 1.4rem;
  }

  .profile-position {
    font-size: 0.9rem;
  }

  .profile-message {
    font-size: 0.85rem;
  }

  .profile-info h4 {
    font-size: 0.9rem;
  }

  .profile-info p,
  .profile-info ul {
    font-size: 0.85rem;
  }

  .profile-image img {
    max-width: 250px;
  }

  .linkedin-link {
    font-size: 16px;
  }

  .linkedin-link i {
    font-size: 20px;
  }
}