.hero-section {
  min-height: 100vh;

  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("/assets/images/group-analysts-communicating-morning-meeting.jpg")
      center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
}

/* ============================================
   FILTER SECTION STYLES
============================================ */

.filter-section {
  background: var(--text-white);
  padding: 30px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.filter-container {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 10px 0;
  cursor: grab;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.filter-container::-webkit-scrollbar {
  display: none;
}

.filter-container:active {
  cursor: grabbing;
}

.filter-label {
  font-size: var(--font-size-16);
  font-weight: 600;
  color: var(--text-dark);
  margin-right: 10px;
  flex-shrink: 0;
}

.filter-pill {
  font-family: var(--mulish);
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--border-color);
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-size: var(--font-size-15);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-pill i {
  font-size: var(--font-size-14);
  transition: transform 0.3s ease;
}

.filter-pill:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(21, 105, 253, 0.3);
}

.filter-pill:hover i {
  transform: scale(1.1);
}

.filter-pill.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-white);
  box-shadow: 0 5px 15px rgba(11, 60, 93, 0.3);
}

/* Hidden section by default */
.team-section {
  display: none;
}

.team-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeUp 0.6s ease forwards;
}

/* Show all sections when 'all' filter is active */
.all-team .team-section {
  display: block;
}

/* Section Divider */
.section-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-color),
    transparent
  );
  margin: 0;
  display: none;
}

.all-team .section-divider {
  display: block;
}

/* ============================================
   ANIMATION KEYFRAMES
============================================ */

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   HERO SECTION STYLES
============================================ */

.team-section {
  position: relative;
  overflow: hidden;
  padding: 60px 0;

  /* Fade-up initial state */
  opacity: 0;
  transform: translateY(40px);
}

/* Alternating Backgrounds */
#teamSection > section.team-section:nth-of-type(odd) {
  background: linear-gradient(
    135deg,
    rgba(21, 105, 253, 0.05) 0%,
    rgba(11, 60, 93, 0.05) 100%
  );
}

#teamSection > section.team-section:nth-of-type(even) {
  background: #ffffff;
}

.team-section::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 5%;
  width: 300px;
  height: 300px;
  background-image:
    radial-gradient(circle, #d4e8e2 2px, transparent 2px),
    radial-gradient(circle, #d4e8e2 2px, transparent 2px);
  background-size: 40px 40px;
  background-position:
    0 0,
    20px 20px;
  opacity: 0.4;
  z-index: 0;
}

.team-section::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 200px;
  height: 200px;
  background-image:
    radial-gradient(circle, #d4e8e2 2px, transparent 2px),
    radial-gradient(circle, #d4e8e2 2px, transparent 2px);
  background-size: 40px 40px;
  background-position:
    0 0,
    20px 20px;
  opacity: 0.4;
  z-index: 0;
}

.team-section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ============================================
   TEXT CONTENT STYLES
============================================ */

.team-section-content-text {
  max-width: 550px;
}

.team-section-content-text-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 1.25rem;
  background: rgba(21, 105, 253, 0.1);
  border-left: 3px solid var(--primary-color);
  color: var(--secondary-color);
  font-size: var(--font-size-16);
  font-weight: 600;
  margin-bottom: 20px;
}

.team-section-content-text-tag i {
  color: var(--primary-color);
  font-size: var(--font-size-18);
}

/* UPDATED: Name Styling - Larger and More Prominent */
.team-section-content-text-title {
  font-family: var(--font-heading);
  font-size: 3.5rem; /* Increased from var(--heading-lg) */
  font-weight: 800; /* Bolder weight */
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 10px; /* Reduced spacing */
  letter-spacing: -0.02em; /* Tighter letter spacing for modern look */
}

.team-section-content-text-title .highlight {
  color: var(--secondary-color);
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* UPDATED: Position Styling - Smaller and Subtle */
.team-member-position {
  font-family: var(--font-primary);
  font-size: 1.125rem; /* Smaller than name */
  font-weight: 500;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(21, 105, 253, 0.2);
}

.team-section-content-text-description {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--text-lg-weight);
  line-height: var(--text-lg-line);
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* ============================================
   BUTTON STYLES
============================================ */

.team-section-content-text-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.team-section-content-text-primary-btn {
  font-family: var(--mulish);
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: var(--font-size-18);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 5px 15px rgba(21, 105, 253, 0.3);
}

.team-section-content-text-primary-btn i {
  font-size: var(--font-size-16);
  transition: transform 0.3s ease;
}

.team-section-content-text-primary-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 60, 93, 0.4);
}

.team-section-content-text-primary-btn:hover i {
  transform: translateX(5px);
}

.team-section-content-text-secondary-btn {
  font-family: var(--mulish);
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-size: var(--font-size-18);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.team-section-content-text-secondary-btn:hover {
  background: var(--secondary-color);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(11, 60, 93, 0.3);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--text-white);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: var(--font-size-18);
}

.social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(21, 105, 253, 0.3);
}

.social-link.github:hover {
  background: #333;
  border-color: #333;
}

.social-link.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.social-link.twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
}

.social-link.portfolio:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* ============================================
   IMAGE SECTION STYLES
============================================ */
.team-section-content-images {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}
/* Main Large Circle Image */
.image-circle-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 400px;
  border-radius: 150px;
  overflow: hidden;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.image-circle-large:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.image-circle-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-circle-large:hover img {
  transform: scale(1.1);
}

/* ============================================
   BADGE STYLES
============================================ */

.badge {
  position: absolute;
  background: var(--text-white);
  padding: 6px 15px 6px 7px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--font-size-15);
  font-weight: 600;
  color: var(--text-dark);
  z-index: 6;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.badge-icon {
  width: 30px;
  height: 30px;
  background: var(--secondary-color);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon i {
  font-size: var(--font-size-16);
}

/* Badge Positions */
.badge-professional {
  top: 15%;
  right: 30px;
}

.badge-professional:hover {
  animation: floatBadge 2s ease-in-out infinite;
}

.badge-pricing {
  bottom: 20%;
  left: 0px;
}

.badge-pricing:hover {
  animation: floatBadge 2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE STYLES
============================================ */

/* Large Tablets and Small Desktops (991px - 1200px) */
@media (max-width: 1200px) {
  .team-section-content-text-title {
    font-size: 3rem;
  }

  .team-member-position {
    font-size: 1rem;
  }

  .team-section-content-images {
    padding-left: 0px;
  }

  .image-circle-large {
    width: 240px;
    height: 340px;
  }

  .badge-professional {
    right: 18%;
  }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
  .team-section-content-text-title {
    font-size: 2.5rem;
  }

  .team-member-position {
    font-size: 0.95rem;
  }

  .team-section-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  /* Ensure text comes first on mobile */
  .team-section-content-text {
    max-width: 100%;
    text-align: center;
    order: 1;
  }

  .team-section-content-images {
    order: 2;
  }

  .team-section-content-text-tag {
    display: inline-flex;
  }

  .team-section-content-text-btns {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .team-section-content-images {
    min-height: 450px;
    margin: 0 auto;
    max-width: 580px;
    padding-left: 0;
  }

  .image-circle-large {
    width: 280px;
    height: 320px;
    left: 10%;
    top: 50%;
  }

  .badge-professional {
    top: 0%;
    right: -10%;
  }

  .badge-pricing {
    bottom: 0%;
    left: -10%;
  }
}

/* Small Tablets (600px - 768px) */
@media (max-width: 768px) {
  .team-section-content-text-title {
    font-size: 2.25rem;
  }

  .team-member-position {
    font-size: 0.9rem;
  }

  .team-section {
    padding: 60px 0;
  }

  .team-section-content {
    gap: 50px;
  }

  .team-section-content-text-primary-btn,
  .team-section-content-text-secondary-btn {
    font-size: var(--font-size-16);
  }

  .team-section-content-text-primary-btn {
    padding: 0.875rem 1.75rem;
  }

  .team-section-content-text-secondary-btn {
    padding: 0.75rem 1.5rem;
  }

  .team-section-content-images {
    min-height: 400px;
    max-width: 500px;
  }

  .image-circle-large {
    width: 240px;
    height: 280px;
    left: 8%;
    top: 50%;
  }

  .badge {
    padding: 8px 16px 8px 8px;
    font-size: var(--font-size-14);
    gap: 8px;
  }

  .badge-icon {
    width: 34px;
    height: 34px;
  }

  .badge-icon i {
    font-size: var(--font-size-15);
  }

  .badge-professional {
    top: 0%;
    right: -10%;
  }

  .badge-pricing {
    bottom: 0%;
    left: -10%;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-16);
  }
}

/* Large Mobile (480px - 600px) */
@media (max-width: 600px) {
  .team-section-content-text-title {
    font-size: 2rem;
  }

  .team-member-position {
    font-size: 0.85rem;
  }

  .team-section-content-images {
    min-height: 360px;
    max-width: 450px;
  }

  .image-circle-large {
    width: 210px;
    height: 250px;
    left: 5%;
  }

  .badge-professional {
    top: 0%;
    right: -40%;
  }

  .badge-pricing {
    bottom: 0%;
    left: -40%;
  }
}

/* Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
  .team-section-content-text-title {
    font-size: 1.75rem;
  }

  .team-member-position {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }

  .container {
    padding: 0 15px;
  }

  .filter-section {
    padding: 20px 0;
  }

  .filter-label {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    font-size: var(--font-size-15);
  }

  .filter-pill {
    font-size: var(--font-size-13);
    padding: 0.5rem 1.2rem;
  }

  .team-section {
    padding: 50px 0;
  }

  .team-section-content-text-btns {
    flex-direction: column;
    width: 100%;
  }

  .team-section-content-text-primary-btn,
  .team-section-content-text-secondary-btn {
    width: 100%;
    justify-content: center;
  }

  .team-section-content-images {
    min-height: 340px;
    max-width: 100%;
    padding: 0 5px;
  }

  .image-circle-large {
    width: 190px;
    height: 230px;
    left: 2%;
    top: 48%;
  }

  .badge {
    padding: 7px 14px 7px 7px;
    font-size: var(--font-size-12);
    gap: 6px;
  }

  .badge-icon {
    width: 30px;
    height: 30px;
  }

  .badge-icon i {
    font-size: var(--font-size-14);
  }

  .badge-professional {
    top: 1%;
    right: -10%;
  }

  .badge-pricing {
    bottom: 1%;
    left: -8%;
  }

  .social-links {
    gap: 10px;
  }

  .social-link {
    width: 38px;
    height: 38px;
    font-size: var(--font-size-14);
  }
}

/* Extra Small Mobile (Below 375px) */
@media (max-width: 375px) {
  .team-section-content-text-title {
    font-size: 1.5rem;
  }

  .team-member-position {
    font-size: 0.75rem;
  }

  .team-section-content-images {
    min-height: 320px;
  }

  .image-circle-large {
    width: 170px;
    height: 210px;
    left: 0%;
  }

  .badge {
    padding: 6px 12px 6px 6px;
    font-size: var(--font-size-10);
  }

  .badge-icon {
    width: 28px;
    height: 28px;
  }

  .badge-icon i {
    font-size: var(--font-size-12);
  }

  .badge-professional {
    top: 0%;
    right: 0%;
  }

  .badge-pricing {
    bottom: 0%;
    left: 0%;
  }
}
