/* Elite Team Section */
.team-expertise-section {
    padding: 100px 0;
    position: relative;
    background-color: #161623;
    overflow: hidden;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Remove the scrollbar styles since we're not scrolling anymore */
.expertise-grid::-webkit-scrollbar,
.expertise-grid::-webkit-scrollbar-track,
.expertise-grid::-webkit-scrollbar-thumb {
    display: none;
}

/* Simplified and elegant expertise card design */
.expertise-card {
    background: rgba(25, 25, 35, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 35px 25px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Top gradient border */
.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-purple));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Bottom radial gradient */
.expertise-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(126, 211, 33, 0.1) 0%, rgba(154, 122, 249, 0.05) 50%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.4;
    transition: all 0.4s ease;
}

/* Simple hover effects without excessive movement */
.expertise-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(126, 211, 33, 0.2);
    background: rgba(30, 30, 45, 0.8);
}

.expertise-card:hover::before {
    opacity: 1;
}

.expertise-card:hover::after {
    opacity: 0.7;
}

/* Enhanced icon styling */
.expertise-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.1), rgba(156, 39, 176, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Gradient background for icon */
.expertise-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #7ED321, #9c27b0);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

.expertise-icon i {
    font-size: 30px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Icon colors for each card */
.expertise-card:nth-child(1) .expertise-icon i { color: #7ED321; }
.expertise-card:nth-child(2) .expertise-icon i { color: #9c27b0; }
.expertise-card:nth-child(3) .expertise-icon i { color: #2196F3; }
.expertise-card:nth-child(4) .expertise-icon i { color: #FF9800; }

.expertise-card:hover .expertise-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.expertise-card:hover .expertise-icon::before {
    opacity: 1;
}

.expertise-card:hover .expertise-icon i {
    color: #ffffff;
}

.expertise-content {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.expertise-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    position: relative;
    transition: all 0.3s ease;
    padding-bottom: 10px;
    display: inline-block;
}

/* Animated underline for heading */
.expertise-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-purple));
    transition: all 0.4s ease;
}

.expertise-card:hover .expertise-content h3::after {
    width: 80px;
}

.expertise-content p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.expertise-card:hover .expertise-content p {
    color: rgba(255, 255, 255, 0.9);
}

.expertise-metric {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.metric-number {
    font-size: 34px;
    font-weight: 800;
    background: linear-gradient(90deg, #7ED321, #9c27b0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
    line-height: 1;
}

.metric-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.expertise-card:hover .metric-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Add subtle badge to the top right */
.expertise-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(126, 211, 33, 0.1);
    padding: 4px 8px;
    border-radius: 20px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.expertise-badge i {
    font-size: 8px;
}

.expertise-card:hover .expertise-badge {
    background: rgba(126, 211, 33, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* Background elements */
.team-expertise-section::before,
.team-expertise-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(126, 211, 33, 0.1) 0%, rgba(154, 122, 249, 0.05) 50%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
    filter: blur(40px);
}

.team-expertise-section::before {
    top: 100px;
    right: 50px;
}

.team-expertise-section::after {
    bottom: 100px;
    left: 50px;
}

/* Light Theme Styles for Elite Team Section */
.light-theme .team-expertise-section {
    background: linear-gradient(180deg, rgba(245, 245, 250, 0.5) 0%, rgba(245, 245, 250, 0.8) 100%);
}

.light-theme .team-expertise-section .section-title {
    color: #222222;
}

.light-theme .team-expertise-section .section-subtitle {
    color: #7ED321;
}

.light-theme .team-expertise-section .gradient-text {
    background: linear-gradient(90deg, #111111 0%, #7ED321 60%, #9c27b0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 800;
}

.light-theme .team-expertise-section .section-description,
.light-theme .team-expertise-section .team-description {
    color: rgba(0, 0, 0, 0.7);
}

.light-theme .expertise-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.light-theme .expertise-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(126, 211, 33, 0.3);
}

.light-theme .expertise-content h3 {
    color: #222222;
}

.light-theme .expertise-content p {
    color: rgba(0, 0, 0, 0.7);
}

.light-theme .expertise-card:hover .expertise-content h3 {
    color: #7ED321;
}

.light-theme .expertise-card:hover .expertise-content p {
    color: rgba(0, 0, 0, 0.9);
}

.light-theme .expertise-icon {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.05), rgba(156, 39, 176, 0.05));
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Fix icon colors in light mode */
.light-theme .expertise-card:nth-child(1) .expertise-icon i { color: #4CAF50; }
.light-theme .expertise-card:nth-child(2) .expertise-icon i { color: #9c27b0; }
.light-theme .expertise-card:nth-child(3) .expertise-icon i { color: #2196F3; }
.light-theme .expertise-card:nth-child(4) .expertise-icon i { color: #FF9800; }

.light-theme .expertise-card:hover .expertise-icon i {
    color: #ffffff;
}

.light-theme .expertise-badge {
    background: rgba(126, 211, 33, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

.light-theme .expertise-badge:hover {
    background: rgba(126, 211, 33, 0.2);
    color: rgba(0, 0, 0, 0.8);
}

.light-theme .expertise-content h3::after {
    background: linear-gradient(90deg, #4CAF50, #9c27b0);
}

.light-theme .expertise-metric {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .metric-label {
    color: rgba(0, 0, 0, 0.6);
}

.light-theme .expertise-card:hover .metric-label {
    color: rgba(0, 0, 0, 0.8);
}

/* Responsive Styles for Elite Team Section */
@media (max-width: 1200px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .expertise-card {
        padding: 30px 20px;
    }
    
    .expertise-content h3 {
      font-size: 18px;
      font-weight: 700;
    }
    
    .expertise-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .expertise-icon i {
        font-size: 26px;
    }
    
    .metric-number {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .team-expertise-section {
        padding: 80px 0;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .expertise-card {
        padding: 25px 20px;
    }
    
    .expertise-content h3 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .team-expertise-section {
        padding: 60px 0;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .expertise-card {
        padding: 20px 15px;
    }
    
    .expertise-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .expertise-icon i {
        font-size: 22px;
    }
    
    .expertise-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .expertise-content p {
        font-size: 14px;
    }
    
    .metric-number {
        font-size: 26px;
    }
    
    .metric-label {
        font-size: 12px;
    }
    
    .team-expertise-section .section-description,
    .team-expertise-section .team-description {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .team-expertise-section {
        padding: 50px 0;
    }
    
    .expertise-content h3 {
        font-size: 16px;
    }
    
    .expertise-content p {
        font-size: 13px;
    }
}

/* Keep the team members styling intact */
/* ===== Team Members Section ===== */

/* Team section variables */
:root {
  --team-primary-color: #7ED321;
  --team-secondary-color: #9c27b0;
  --team-accent-color: #FF6B6B;
  --team-gradient-start: #7ED321;
  --team-gradient-end: #9c27b0;
  --team-dark-bg: rgba(22, 22, 26, 0.95);
  --team-card-bg: rgba(30, 30, 35, 0.7);
  --team-card-border: rgba(255, 255, 255, 0.1);
  --team-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --team-text-color: #fff;
  --team-text-muted: rgba(255, 255, 255, 0.7);
  --team-transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.light-theme {
  --team-dark-bg: rgba(245, 245, 250, 0.95);
  --team-card-bg: rgba(255, 255, 255, 0.9);
  --team-card-border: rgba(0, 0, 0, 0.05);
  --team-text-color: #333;
  --team-text-muted: rgba(0, 0, 0, 0.6);
  --team-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Team Section Container */
.team-members-section {
  margin-top: 80px;
  position: relative;
  padding-bottom: 40px;
}

.team-members-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(126, 211, 33, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(156, 39, 176, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Team Grid Layout */
.team-members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
  position: relative;
}

/* Decorative elements for team section */
.team-members-grid::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(126, 211, 33, 0.05) 0%, transparent 70%);
  top: -50px;
  left: -50px;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: pulse-team 8s ease-in-out infinite alternate;
}

.team-members-grid::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(156, 39, 176, 0.05) 0%, transparent 70%);
  bottom: -30px;
  right: -30px;
  border-radius: 50%;
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
  animation: pulse-team 8s ease-in-out infinite alternate-reverse;
}

@keyframes pulse-team {
  0% {
    transform: scale(0.9) translate(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.1) translate(20px, 20px);
    opacity: 0.8;
  }
}

/* Team Member Card */
.team-member-card {
  background: transparent !important;
  border-radius: 20px;
  overflow: hidden;
  height: 450px;
  opacity: 1;
  transform: none;
  transition: none;
  border: none;
  box-shadow: none;
  position: relative;
}

.team-member-card::before {
  display: none !important;
}

.team-member-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.team-member-card.team-card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation delay for each card */
.team-members-grid .team-member-card:nth-child(1) {
  transition-delay: 0.1s;
}

.team-members-grid .team-member-card:nth-child(2) {
  transition-delay: 0.2s;
}

.team-members-grid .team-member-card:nth-child(3) {
  transition-delay: 0.3s;
}

.team-members-grid .team-member-card:nth-child(4) {
  transition-delay: 0.4s;
}

/* Card rotation effect */
.team-member-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: var(--team-transition);
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-member-card:hover .team-member-inner {
  transform: rotateY(180deg);
  box-shadow: var(--team-hover-shadow);
}

/* Card faces */
.team-member-front, .team-member-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.team-member-front {
  background: transparent;
}

.team-member-back {
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.95) 0%, rgba(22, 22, 26, 0.95) 100%);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4%;
  border: 5px solid rgba(126, 211, 33, 0.2);
}

.team-member-back::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, 
    rgba(126, 211, 33, 0.05) 0%, 
    rgba(156, 39, 176, 0.05) 50%, 
    transparent 70%);
  top: -25%;
  left: -25%;
  opacity: 0.6;
  animation: rotate-gradient 12s linear infinite;
}

@keyframes rotate-gradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


.team-member-image {
  position: relative;
  overflow: visible;
  height: auto;
  background: none !important;
}

.team-member-image::before {
  display: none !important;
}

.team-member-card:hover .team-member-image::before {
  display: none !important;
}

.team-member-image img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  filter: none !important;
  transition: none !important;
  background: none !important;
  opacity: 1 !important;
}

.team-member-card:hover .team-member-image img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

/* Image overlay gradient */
.team-member-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(to top, var(--team-dark-bg), transparent);
  opacity: 0.9;
  transition: var(--team-transition);
  z-index: 2;
}

.team-member-card:hover .team-member-overlay {
  opacity: 0.7;
  height: 100%;
}

/* Team member info */
.team-member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  padding-bottom: 20px;
  text-align: left;
  z-index: 3;
  transform: translateY(0);
  transition: var(--team-transition);
  display: flex;
  flex-direction: column;
}

.team-member-card:hover .team-member-info {
  transform: translateY(-10px);
}

.team-member-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--team-text-color);
  position: relative;
  padding-left: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.team-member-info h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 24px;
  background: linear-gradient(to bottom, var(--team-gradient-start), var(--team-gradient-end));
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(126, 211, 33, 0.4);
  transition: height 0.3s ease, transform 0.3s ease;
}

.team-member-card:hover .team-member-info h3::before {
  height: 32px;
  transform: translateY(-50%) scaleY(1.1);
}

.team-member-info .position {
  display: block;
  font-size: 15px;
  color: var(--team-text-muted);
  margin-bottom: 2px;
  padding-left: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.team-member-card:hover .team-member-info .position {
  color: var(--team-primary-color);
}

/* Social media icons */
.team-social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-left: 15px;
  opacity: 1;
  transition: all 0.5s ease;
  transform: translateY(0);
}

.team-member-card:hover .team-social-links {
  transform: translateY(-5px);
}

.team-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--team-text-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  overflow: hidden;
  position: relative;
}

.team-social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--team-gradient-start), var(--team-gradient-end));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.team-social-links a:hover {
  transform: translateY(-5px) scale(1.15);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.team-social-links a:hover::before {
  opacity: 1;
}

/* Social icons sequential hover animation */
.team-social-links a:nth-child(1) {
  transition-delay: 0.05s;
}

.team-social-links a:nth-child(2) {
  transition-delay: 0.1s;
}

.team-social-links a:nth-child(3) {
  transition-delay: 0.15s;
}

.team-social-links a:nth-child(4) {
  transition-delay: 0.2s;
}

/* Team member bio (back of card) */
.team-member-bio {
  text-align: left;
  padding: 25px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-member-bio::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(126, 211, 33, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.7;
}

.team-member-bio h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--team-text-color);
  background: linear-gradient(to right, var(--team-gradient-start), var(--team-gradient-end));
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.team-member-bio .position {
  display: block;
  font-size: 15px;
  color: var(--team-text-muted);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}

.team-member-bio .position::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--team-gradient-start), var(--team-gradient-end));
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(126, 211, 33, 0.3);
  transition: width 0.4s ease;
}

.team-member-card:hover .team-member-bio .position::after {
  width: 60px;
}

.team-member-bio p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--team-text-muted);
  margin-bottom: 20px;
  position: relative;
}

.team-member-bio p::first-letter {
  font-size: 130%;
  color: var(--team-primary-color);
}

/* Animation for the back card content */
.team-member-card .team-member-back .team-member-bio {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0.2s;
}

.team-member-card:hover .team-member-back .team-member-bio {
  opacity: 1;
  transform: translateY(0);
}

/* Skill badges on back of card - Hide completely */
.team-member-skills {
  display: none !important;
}

.skill-badge {
  display: none !important;
}

/* Light theme adjustments */
.light-theme .team-member-overlay {
  background: linear-gradient(to top, var(--team-dark-bg), transparent);
}

.light-theme .team-social-links a {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .team-member-back {
  background: linear-gradient(135deg, 
    rgba(245, 245, 250, 0.95) 0%, 
    rgba(240, 240, 245, 0.95) 100%);
}

.light-theme .team-member-bio {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-theme .team-member-info h3::before {
  box-shadow: 0 2px 8px rgba(126, 211, 33, 0.2);
}

.light-theme .team-member-bio p::first-letter {
  color: var(--team-primary-color);
}

/* Responsive styles */
@media (max-width: 1200px) {
  .team-members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .team-member-image {
    height: 280px;
  }
  
  .team-member-info h3 {
    font-size: 22px;
  }
}

@media (max-width: 992px) {
  .team-members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .team-member-image {
    height: 260px;
  }
  
  .team-member-info {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .team-members-section {
    margin-top: 60px;
  }
  
  .team-member-info h3 {
    font-size: 20px;
  }
  
  .team-member-info .position {
    font-size: 14px;
  }
  
  .team-member-bio h3 {
    font-size: 20px;
  }
  
  .team-member-bio p {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .team-members-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .team-member-image {
    height: 300px;
  }
  
  .team-member-card {
    height: 420px;
  }
}

/* Touch device support */
.team-member-card.touch-flip .team-member-inner {
  transform: rotateY(180deg);
}

/* Card hover effects */
.team-member-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--team-hover-shadow);
}

/* ===== TEAM SECTION CSS ===== */
.team-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.team-section .section-subtitle {
    display: inline-block;
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
    color: var(--primary-green, #7ED321);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
    position: relative;
    text-align: left;
    box-shadow: 0 5px 15px rgba(126, 211, 33, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
}

.team-section .section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-green), var(--primary-purple));
    transition: all 0.3s ease;
}

.team-section .section-subtitle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(30deg);
    animation: shine-effect 4s infinite linear;
    pointer-events: none;
}

.team-section .section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-align: left;
    color: #ffffff;
    position: relative;
    transition: all 0.4s ease;
}

.team-section .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-purple) 100%);
    transition: width 0.4s ease;
}

.team-section:hover .section-title::after {
    width: 100px;
}

.team-section .section-description,
.team-section .team-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 80%;
    text-align: left;
    transition: all 0.3s ease;
}

.team-section .gradient-text {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 800;
    position: relative;
}

.team-section .gradient-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
    z-index: -1;
    opacity: 0.5;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Light theme adjustments for header section */
.light-theme .team-section .section-subtitle {
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.15) 0%, rgba(154, 122, 249, 0.15) 100%);
    color: #518717;
    box-shadow: 0 5px 15px rgba(126, 211, 33, 0.05);
}

.light-theme .team-section .section-title {
    color: #333333;
}

.light-theme .team-section .section-description,
.light-theme .team-section .team-description {
    color: rgba(0, 0, 0, 0.7);
}

.team-members-section .section-subtitle {
    display: inline-block;
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
    color: #78e57e;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
    position: relative;
    text-align: left;
}

.team-members-section .section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-align: left;
    color: #ffffff;
}

.team-members-section .gradient-text {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 800;
}

.team-members-section .section-description,
.team-members-section .team-members-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 65%;
    text-align: left;
}

.light-theme .team-members-section .section-description,
.light-theme .team-members-section .team-members-description {
    color: rgba(0, 0, 0, 0.7);
}

/* Elite Team Section - Header Styles */
.team-expertise-section .section-subtitle {
    display: inline-block;
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
    color: var(--primary-green, #7ED321);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
    position: relative;
    text-align: left;
    box-shadow: 0 5px 15px rgba(126, 211, 33, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
}

.team-expertise-section .section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-green), var(--primary-purple));
    transition: all 0.3s ease;
}

.team-expertise-section .section-subtitle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(30deg);
    animation: shine-effect 4s infinite linear;
    pointer-events: none;
}

.team-expertise-section .section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-align: left;
    color: #ffffff;
    position: relative;
    transition: all 0.4s ease;
}

.team-expertise-section .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-purple) 100%);
    transition: width 0.4s ease;
}

.team-expertise-section:hover .section-title::after {
    width: 100px;
}

.team-expertise-section .section-description,
.team-expertise-section .team-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 80%;
    text-align: left;
    transition: all 0.3s ease;
}

.team-expertise-section .gradient-text {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 800;
    position: relative;
}

.team-expertise-section .gradient-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
    z-index: -1;
    opacity: 0.5;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Light theme adjustments for header section */
.light-theme .team-expertise-section .section-subtitle {
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.15) 0%, rgba(154, 122, 249, 0.15) 100%);
    color: #518717;
    box-shadow: 0 5px 15px rgba(126, 211, 33, 0.05);
}

.light-theme .team-expertise-section .section-title {
    color: #333333;
}

.light-theme .team-expertise-section .section-description,
.light-theme .team-expertise-section .team-description {
    color: rgba(0, 0, 0, 0.7);
}

/* Header spacing for Team Section */
.team-expertise-section .col-lg-6.p-0,
.team-section .col-lg-6.p-0,
.team-members-section .col-lg-6.p-0 {
    padding-left: 25px !important;
}

@media (max-width: 768px) {
    .team-expertise-section .col-lg-6.p-0,
    .team-section .col-lg-6.p-0,
    .team-members-section .col-lg-6.p-0 {
        padding-left: 15px !important;
    }
}

@media (max-width: 576px) {
    .team-expertise-section .col-lg-6.p-0,
    .team-section .col-lg-6.p-0,
    .team-members-section .col-lg-6.p-0 {
        padding-left: 10px !important;
    }
}