/* DESIGN SYSTEM VARIABLES */
:root {
  --bg-primary: #0a0a0a;
  --bg-card: #111111;
  --text-main: #ffffff;
  --text-muted: #bbbbbb;
  --color-primary: #e31e24;
  --color-primary-dark: #b3161c;
  
  /* Badges & Icons */
  --badge-bg: #333333;
  --badge-text: #ffffff;
  
  --icon-mission-bg: #222222;
  --icon-mission-stroke: #e31e24;
  
  --icon-goals-bg: #222222;
  --icon-goals-stroke: #e31e24;
  
  --icon-why-us-bg: #222222;
  --icon-why-us-stroke: #e31e24;

  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.01);
}

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* SECTION STYLES */
.section-pillars {
  padding: 6rem 0 4rem 0;
}

.section-team {
  padding: 4rem 0 6rem 0;
  background-color: #f1f5f9; /* Subtle shift in background between sections */
  border-top: 1px solid #e2e8f0;
}

/* HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.badge {
  display: inline-block;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.section-title {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* CARDS COMMON */
.card {
  background-color: var(--bg-card);
  border-radius: 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* SECTION 1: PILLARS CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card-pillar {
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #222222;
}

.card-pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08);
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.icon-mission {
  background-color: var(--icon-mission-bg);
  color: var(--icon-mission-stroke);
}

.icon-goals {
  background-color: var(--icon-goals-bg);
  color: var(--icon-goals-stroke);
}

.icon-why-us {
  background-color: var(--icon-why-us-bg);
  color: var(--icon-why-us-stroke);
}

.card-title {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* SECTION 2: TEAM CARDS */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card-team {
  box-shadow: var(--shadow-premium);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
}

.card-team:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.member-image-container {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background-color: #cbd5e1;
  position: relative;
}

.member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transition: transform 0.5s ease;
}

.card-team:hover .member-image {
  transform: scale(1.04);
}

.member-info {
  padding: 2.25rem 2rem;
  text-align: center;
  background: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.member-name {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0b1329;
  margin-bottom: 0.5rem;
}

.member-role {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  display: block;
}

.member-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FLOATING WHATSAPP BUTTON */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  cursor: pointer;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover svg {
  transform: rotate(8deg);
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .cards-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Move one card to center on tablet */
  .cards-grid > div:last-child,
  .team-grid > div:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .section-pillars {
    padding: 4rem 0 3rem 0;
  }
  
  .section-team {
    padding: 3rem 0 4rem 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .cards-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cards-grid > div:last-child,
  .team-grid > div:last-child {
    grid-column: span 1;
    max-width: 100%;
  }
  
  .card-pillar {
    padding: 2.5rem 1.75rem;
  }
  
  .member-image-container {
    height: 300px;
  }
  
  .whatsapp-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 54px;
    height: 54px;
  }
}
