/* About: team image map and person profiles (#about) */

.about-group-section-left-box {
  width: 330px;
  font-size: 40px;
  font-weight: 600;
  margin: 0;
}

.about-group-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 60px;
}

.about-group-diagram-content {
  width: 64%;
}

.about-group-subheading {
  margin-right: 0;
  margin-left: auto;
  width: 20%;
  padding-right: 40px;
  padding-bottom: 20px;
}

.about-group-content {
  display: flex;
  padding-top: -35px;
}

/* Bottom divider */
.about-group-content-divider {
  background-color: var(--color-gray-100);
  display: flex;
  margin-top: 0;
  flex-shrink: 0;
  height: 5px;
  width: 95%;
}

.about-group-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
  color: var(--color-gray-700);
  width: 100%;
  max-width: 100%;
  padding-top: 150px;
}

.about-group-main-heading {
  width: 30%;
  font-size: 30px;
  font-weight: 400;
  align-self: start;
  z-index: 10;
  padding-left: 70px;
  padding-top: 35px;
}

.about-group-main-heading strong {
  font-weight: 600;
}

.about-group-section-left-box-description {
  color: var(--color-gray-900);
  font-size: 16px;
  align-self: stretch;
  margin-top: 10px;
  line-height: 24px;
}

/* Background color variants for about-me-person-background */
.about-me-person-background-purple {
  background-color: var(--color-purple-light);
  /* Original purple color */
  transition: background-color 0.3s ease;
}

.about-me-person-background-purple:hover {
  background-color: rgba(99, 88, 161, 1);
  /* Slightly darker purple on hover */
}

.about-me-person-background-blue {
  background-color: var(--color-blue);
  /* Blue color from logo */
  transition: background-color 0.3s ease;
}

.about-me-person-background-blue:hover {
  background-color: var(--color-blue-dark);
  /* Slightly darker blue on hover */
}

.about-me-person-background-green {
  background-color: var(--color-teal-dark);
  /* Green color from logo */
  transition: background-color 0.3s ease;
}

.about-me-person-background-green:hover {
  background-color: var(--color-green);
  /* Slightly darker green on hover */
}

/* This ensures the specific rules take precedence over the generic rule */
.about-me-person-background.about-me-person-background-green:hover {
  background-color: var(--color-green) !important;
}

.about-me-person-background.about-me-person-background-blue:hover {
  background-color: var(--color-blue-dark) !important;
}

.contact-us-image-container {
  max-width: 953px;
  position: relative;
  margin: 0 auto;
  margin-top: -25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: visible !important;
  /* Override to allow highlights to show beyond bounds */
}

.contact-us-image-container:focus-within {
  outline: none;
}

.contact-us-responsive-image {
  aspect-ratio: 1.46;
  object-fit: contain;
  object-position: center;
  width: 100%;
  transition: opacity 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.contact-us-responsive-image:hover {
  filter: brightness(1.05) contrast(1.02);
}

.contact-us-responsive-image:focus {
  outline: none;
}

.contact-us-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

/* Main wrapper */
.about-me-person-wrapper {
  padding-top: 139px;
  position: relative;
}

/* Person background container */
.about-me-person-background {
  background-color: var(--color-purple-light);
  display: flex;
  width: 100%;
  padding: 0 70px;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: background-color 0.3s ease;
}

/* Person content container */
.about-me-person-content {
  z-index: 10;
  margin: -139px 0 -155px 0;
  width: 1212px;
  max-width: 100%;
  position: relative;
}

/* Content grid layout */
.about-me-content-grid {
  gap: 20px;
  display: flex;
  align-items: center;
  min-height: 500px;
}

/* Testimonial column */
.about-me-testimonial-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: normal;
  width: 50%;
  margin-left: 0;
}

/* Testimonial quote styling */
.about-me-testimonial-quote {
  color: rgba(255, 255, 255, 1);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  margin: auto 0;
  align-self: stretch;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  quotes: """ """ "'" "'";
}

/* Image column */
.about-me-image-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: normal;
  margin-left: 200px;
  margin-right: 40px;
}

/* Person image styling */
.about-me-person-image {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  width: 100%;
  border-radius: 50%;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-me-person-image.loaded {
  opacity: 1;
  transform: translateY(0);
}

.about-me-person-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.about-me-person-image:focus {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

/* Info section */
.about-me-info-section {
  display: flex;
  padding-left: 70px;
  margin-top: 50px;
  width: 595px;
  max-width: 100%;
  flex-direction: column;
  align-items: stretch;
  color: rgba(83, 83, 83, 1);
}

/* Info content container */
.about-me-info-content {
  display: flex;
  flex-direction: column;
}

/* Section title */
.about-me-section-title {
  font-size: 30px;
  font-weight: 500;
  align-self: flex-start;
  margin: 0;
  color: rgba(83, 83, 83, 1);
  transition: color 0.3s ease;
}

.about-me-section-title:hover {
  color: var(--color-purple-light);
}

/* Section description */
.about-me-section-description {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.about-me-section-description:hover {
  color: rgba(63, 63, 63, 1);
}

/* Social icons container */
.about-me-social-icons {
  position: absolute;
  right: 60px;
  top: 62%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 20;
}

/* Individual social icon */

.about-me-social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.about-me-social-icon:active {
  transform: scale(0.95);
}

/* Tooltip for social icons */
.about-me-social-icon .tooltip {
  position: absolute;
  right: 50px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.about-me-social-icon:hover .tooltip {
  opacity: 1;
  right: 55px;
}

.about-me-keyboard-navigation *:focus {
  outline: 2px solid var(--color-purple-light);
  outline-offset: 2px;
}

/* Add this to your CSS */

/* This ensures that the profile is visible when shown */
.about-group-container[data-view-state="profile"] .about-me-person-wrapper,
.about-group-container[data-view-state="profile"] .about-me-person-wrapper[style*="display:none"],
.about-group-container[data-view-state="profile"] .about-me-person-wrapper[style*="display: none"] {
  display: flex !important;
  /* The !important is needed to override inline styles */
}

/* Add to your CSS */
.profile-hidden {
  display: none !important;
}

.about-group-container[data-view-state="profile"] .about-me-person-wrapper:not(.profile-hidden) {
  display: flex !important;
}

/* Add this to your style.css */
.about-group-container[data-view-state="profile"] .about-me-person-wrapper {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  opacity: 1;
  animation: fadeIn 0.4s ease-in-out;
  cursor: pointer;
}

/* Add a subtle hover effect */
.about-group-container[data-view-state="profile"] .about-me-person-wrapper:hover {
  opacity: 0.95;
}

/* Add a small hint text at the bottom of profile */
.about-group-container[data-view-state="profile"] .about-me-person-wrapper::after {
  content: "Click anywhere to close";
  display: block;
  text-align: center;
  padding: 8px;
  color: #666;
  font-size: 14px;
  font-style: italic;
  margin-top: 10px;
}

/* Override the base background color for specific color variants */
.about-me-person-background.about-me-person-background-green {
  background-color: var(--color-teal-dark) !important;
  /* Green color */
}

.about-me-person-background.about-me-person-background-blue {
  background-color: var(--color-blue) !important;
  /* Blue color */
}

.about-me-person-background.about-me-person-background-purple {
  background-color: var(--color-purple-light) !important;
  /* Purple color */
}

/* Base styling for the LinkedIn icon without color specifics */
.about-me-social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-decoration: none;
}

/* Remove the purple color from base class */
.about-me-social-icon i {
  font-size: 20px;
  /* Color removed from here */
}

/* Enhanced LinkedIn icon styling to override browser defaults */
.about-me-social-icon i.fab.fa-linkedin-in {
  color: inherit !important;
  /* Force inherit color from parent */
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Make sure the LinkedIn icon gets the correct color */
.about-me-person-background-purple + .about-me-info-section + .about-me-social-icons .about-me-social-icon i {
  color: var(--color-purple-light) !important;
  /* Purple color */
}

.about-me-person-background-green + .about-me-info-section + .about-me-social-icons .about-me-social-icon i {
  color: var(--color-teal-dark) !important;
  /* Green color */
}

.about-me-person-background-blue + .about-me-info-section + .about-me-social-icons .about-me-social-icon i {
  color: var(--color-blue) !important;
  /* Blue color */
}

/* Hover states for the icons */
.about-me-person-background-purple + .about-me-info-section + .about-me-social-icons .about-me-social-icon:hover i {
  color: rgba(99, 88, 161, 1) !important;
  /* Darker purple on hover */
}

.about-me-person-background-green + .about-me-info-section + .about-me-social-icons .about-me-social-icon:hover i {
  color: var(--color-green) !important;
  /* Darker green on hover */
}

.about-me-person-background-blue + .about-me-info-section + .about-me-social-icons .about-me-social-icon:hover i {
  color: var(--color-blue-dark) !important;
  /* Darker blue on hover */
}

@media (max-width: 1025px) {
  .about-group-section {
    height: unset;
  }
}

@media (max-width: 991px) {
  .about-group-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
  }

  .about-group-section {
    height: unset;
    padding-left: 60px;
    padding-right: 0;
    padding-top: 50px;
  }

  .about-group-main-heading {
    width: unset;
    max-width: 100%;
    font-size: 30px;
    margin-left: 0;
    padding-bottom: 0;
    padding-left: 0px;
  }

  .contact-us-responsive-image {
    max-width: 100%;
  }

  .contact-us-image-container {
    margin: 0 16px;
  }

  .about-me-person-wrapper {
    padding-top: 100px;
  }

  .about-me-person-background {
    max-width: 100%;
    padding: 0 20px;
  }

  .about-me-person-content {
    margin-bottom: 10px;
    margin-top: 0px;
  }

  .about-me-content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: auto;
  }

  .about-me-testimonial-column {
    width: 100%;
  }

  .about-me-testimonial-quote {
    max-width: 100%;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
  }

  /* Section title and description sizes for tablets */
  .about-me-section-title {
    font-size: 26px;
  }

  .about-me-image-column {
    width: 100%;
    margin-left: 0;
  }

  .about-me-person-image {
    max-width: 100%;
    margin-top: 40px;
  }

  .about-me-info-section {
    margin: 40px 20px 0 20px;
    width: auto;
  }

  .about-me-section-description {
    line-height: 1.5;
    max-width: 100%;
    font-size: 20px;
  }

  .about-me-social-icons {
    right: 20px;
    top: auto;
    bottom: 20px;
    flex-direction: row;
  }

  .about-me-social-icon .tooltip {
    right: auto;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
  }

  .about-me-social-icon:hover .tooltip {
    right: auto;
    bottom: 55px;
  }

  .about-group-content {
    flex-direction: column;
  }
}

@media (max-width: 855px) {
  .about-group-subheading {
    width: 70%;
    padding-right: 0;
    padding-top: 10px;
  }
}

@media (max-width: 768px) {
  .contact-us-image-container:hover {
    transform: none;
    box-shadow: none;
  }

  .contact-us-image-overlay {
    display: none;
  }
}

@media (max-width: 480px) {
  .about-me-info-section {
    margin-top: 20px !important;
    margin-right: 50px !important;
    padding-left: 0px !important;
  }

  .about-me-social-icons {
    right: 0 !important;
    left: auto;
  }

  .about-me-testimonial-quote {
    font-size: 14px;
    /* Further reduced size for smallest screens */
    line-height: 1.4;
  }

  /* Smaller section title and description for mobile phones */
  .about-me-section-title {
    font-size: 22px;
    line-height: 1.1;
  }

  .about-me-section-description {
    font-size: 16px;
    line-height: 1.4;
  }

  .about-group-diagram-content {
    margin-top: 20px;
    width: 110%;
  }

  .about-group-subheading {
    width: 70%;
    padding-right: 0;
    padding-top: 10px;
  }

  .about-group-content {
    flex-direction: column;
  }
}

@media (max-width: 394px) {
  .about-group-subheading {
    width: 100%;
  }
}

@media (max-width: 350px) {

  .about-group-section {
    padding-top: 10px;
    padding-left: 50px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-contrast: high) {
  .contact-us-image-container:focus-within {
    outline: 3px solid #000;
    outline-offset: 2px;
  }

  .about-me-person-background {
    background-color: rgba(0, 0, 0, 1);
  }

  .about-me-testimonial-quote {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(0, 0, 0, 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-us-image-container,
  .contact-us-responsive-image,
  .contact-us-image-overlay {
    transition: none;
  }

  .contact-us-image-container:hover {
    transform: none;
  }

  .about-me-person-image:hover {
    transform: none;
  }
}

@media print {
  .about-me-person-wrapper {
    padding-top: 0;
  }

  .about-me-person-background {
    background-color: transparent;
    border: 1px solid #000;
  }

  .about-me-testimonial-quote {
    color: #000;
  }
}

/* Team image map: hover highlights and tooltips created by about.js */
.contact-us-highlight-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 50;
  overflow: visible;
}

.contact-us-area-highlight {
  position: absolute;
  border: 4px solid var(--color-blue);
  background-color: rgba(65, 184, 232, 0.2);
  border-radius: 50%;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 100;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.contact-us-area-highlight:hover {
  opacity: 1;
}

/* Make sure tooltips transition smoothly too */

.contact-us-area-tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 100;
}

/* Profile view: back button and "click outside" hint created by about.js */
.about-me-back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 15px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 30;
}

.about-me-back-button:hover {
  background-color: #f5f5f5;
}

.exit-profile-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 25;
}
