/**************************
*       HERO SECTION      *
/**************************/
.hero-container {
  align-items: center;
  background-color: var(--main-black);
  background-image: url("/images/hero-background.svg");
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: row;
  height: 100vh;
  justify-content: center;
  padding: 150px 50px 50px 50px;
  width: 100%;
}

.hero-content-section {
  animation: hero-slide-in 0.8s ease-in-out;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.hero-taking-clients-container {
  align-items: center;
  background-color: var(--secondary-green);
  border-radius: 100px;
  display: flex;
  gap: 8px;
  height: 40px;
  justify-content: center;
  padding: 8px;
  width: 250px;
}

.hero-taking-clients-container p {
  color: var(--main-green) !important;
  display: flex;
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-pointed-checkmark-img {
  height: 20px;
  width: 20px;
}

.hero-content-section h1,
.hero-content-section p {
  color: var(--main-white);
  max-width: 720px;
}

.hero-content-section h1 {
  font-size: 4rem;
}

.hero-content-section p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  max-width: 580px;
}

.hero-tech-graphic {
  animation: hero-background-glow 0.6s ease-in-out;
  animation-delay: 0.7s;
  height: 100%;
  object-fit: contain;
  max-width: 700px;
  width: 50%;
}

/**************************
*   LEADERSHIP SECTION    *
/**************************/
.leadership-container {
  max-width: 655px;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  gap: 16px;
}

.leadership-title h2 {
  font-weight: 500;
  line-height: 1.2;
}

.team-statement h6 {
  color: var(--main-gray);
  font-weight: 600;
  max-width: 600px;
  margin: 0 auto;
}

/* Team Members Grid  */
.team-members {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 2 per row */
  gap: 40px;
  justify-content: center;
  margin: 60px auto;
  padding: 0 40px;
}

.member {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: rgba(5, 46, 22, 0.15) 0px 4px 12px;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-self: center;
  align-self: center;
  align-items: center;
  text-align: center;
  max-width: 380px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member:hover {
  transform: translateY(-6px);
  box-shadow: rgba(5, 46, 22, 0.25) 0px 6px 18px;
}

/* Profile Images */
.member img {
  width: 100%;
  max-width: 295px;
  height: auto;
  aspect-ratio: 295 / 425;
  border-radius: 20px;
  object-fit: cover;
}

/* Member Info */
.member-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left align all text */
  text-align: left;
  gap: 10px;
  margin-top: 14px;
  max-width: 280px;
}

.member-info h6 {
  font-weight: 700;
  font-size: 1.5rem; /* Increased from 1.25rem */
  color: var(--main-black);
}

.member-info label {
  color: var(--main-label-colour);
  font-size: 1.1rem; /* Increased from 1rem */
  font-weight: 600;
}

.member-info p {
  color: var(--main-gray);
  font-size: 1.05rem; /* Slightly larger text */
  line-height: 1.6;
}

/**************************
*   WHAT WE DO SECTION    *
/**************************/
.what-we-do-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  scroll-margin-top: 100px;
}

.page-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-header h1 {
  font-weight: 600;
  line-height: 1.2;
}

.page-header p {
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
  color: var(--main-gray);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}

/* Individual Service Card */
.service-card {
  background-color: #fff;
  border: 1px solid var(--secondary-gray);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transform: scale(1.03);
}

/* Icon Styling */
.service-card .icon {
  width: 64px;
  height: 64px;
  background-color: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--main-black);
}

/* Default icon color */
.service-card .icon svg path {
  stroke: #858ea0;
  transition: stroke 0.3s ease;
}

/* Hover icon color */
.service-card:hover .icon svg path {
  stroke: var(--main-button-colour);
}

/* Service Title */
.service-card h3 {
  font-weight: 500;
  font-size: 1.75rem;
  color: var(--main-black);
}

/* Service Description */
.service-card p {
  font-size: 1.1rem;
  color: var(--main-gray);
  line-height: 1.5;
}

.centred-text p {
  text-align: center;
}

/* Discuss Button stylin */
.cta-button {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.discuss-btn {
  background-color: transparent;
  border: 2px solid var(--main-button-colour);
  color: var(--main-black);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 100px; /* pill shape */
  cursor: pointer;
  transition: all 0.3s ease;
}

.discuss-btn:hover {
  background-color: var(--main-button-colour);
  color: var(--main-black);
  transform: scale(1.05);
}

@media only screen and (max-width: 1024px) {
  /* hero styles */
  .hero-content-section h1 {
    line-height: 3.5rem;
    font-size: 3.5rem;
  }

  /* leadership styles */
  main {
    padding: 40px 60px;
  }

  .team-members {
    gap: 32px;
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }

  .member-info p {
    font-size: 0.9rem;
  }

  /* what we do styles */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media only screen and (max-width: 768px) {
  /* hero styles */
  .hero-container,
  .hero-content-section {
    align-items: center;
  }

  .hero-container {
    flex-direction: column;
    height: auto;
    gap: 64px;
    justify-content: flex-start;
    padding: 175px 50px 25px 50px;
  }

  .hero-content-section {
    text-align: center;
  }

  .hero-tech-graphic {
    height: auto;
  }

  /* leadership styles */
  main {
    padding: 30px 20px;
  }

  h2 {
    font-size: 2.25rem;
  }

  h6,
  label,
  p {
    font-size: 1rem;
  }

  .team-members {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 16px;
  }

  .member img {
    width: 220px;
    height: 320px;
  }
}

@media only screen and (max-width: 450px) {
  /* hero styles */
  .hero-content-section h1 {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 2.5rem;
  }

  .hero-content-section p {
    font-size: 1rem;
  }

  .hero-tech-graphic {
    object-fit: contain;
    max-width: 700px;
    width: 75%;
  }

  /* leadership styles */
  .about {
    display: none;
  }

  .leadership-title h2 {
    font-size: 1.5rem;
    white-space: nowrap;
  }

  .team-statement h6 {
    font-size: 0.95rem;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .team-members {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 10px;
  }

  .member img {
    width: 180px;
    height: 260px;
  }

  .member-info h6 {
    font-size: 1.1rem;
  }

  .member-info label {
    font-size: 0.9rem;
  }

  .member-info p {
    font-size: 0.9rem;
  }

  /* what we do styles */
  .services-grid {
    grid-template-columns: 1fr;
    padding-left: 10px;
    padding-right: 10px;
  }

  .service-card {
    max-width: 100%;
    box-sizing: border-box;
  }

  .cta-button {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/**************************
*       ANIMATIONS        *
/**************************/

@keyframes hero-slide-in {
  from,
  0% {
    opacity: 0;
    position: relative;
    right: 24px;
  }

  to,
  100% {
    opacity: 1;
    position: relative;
    right: 0px;
  }
}

@keyframes hero-background-glow {
  from,
  0% {
    filter: drop-shadow(0px 0px rgba(255, 255, 255, 0.5));
  }

  50% {
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.5));
  }

  to,
  100% {
    filter: drop-shadow(0px 0px rgba(255, 255, 255, 0.5));
  }
}
