/* ============================================================
   TEAM PAGE — Team.css (Standalone)
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --navy: #0a1931;
  --navy2: #050912;
  --gold: #ffc947;
  --gold2: #e5b43f;
  --cyan: #06b6d4;
  --cyan2: #0891b2;
  --white: #ffffff;
  --gray: #94a3b8;
  --slate: #0a0f1e;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-hover-bg: rgba(30, 41, 59, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(6, 182, 212, 0.3);
  --shadow-color: rgba(0, 0, 0, 0.5);
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--navy2);
}
::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 2px;
}

/* ── Animation ────────────────────────────────────────────── */
@keyframes moveBackground {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility Classes ──────────────────────────────────────── */
.text-cyan {
  color: var(--cyan);
}

.text-gold {
  color: var(--gold);
}

.text-center {
  text-align: center;
}

.m-auto {
  margin: 0 auto;
}

.mr-4 {
  margin-right: 4px;
}

.icon-small {
  width: 14px;
  height: 14px;
}

.icon-med {
  width: 18px;
  height: 18px;
}

.v-middle {
  vertical-align: middle;
}

.inline-block {
  display: inline-block;
}

.max-w-900 {
  max-width: 900px;
}

.px-4 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Section Labels ───────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--white);
}

.section-sub {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--cyan);
  color: white;
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
  background: var(--cyan2);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ── Embedded Back Button ── */
.embedded-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--cyan);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.embedded-back-btn:hover {
  background: rgba(6, 182, 212, 0.22);
  transform: translateX(-3px);
}

.embedded-back-btn svg {
  flex-shrink: 0;
}

/* ── TEAM HERO ────────────────────────────────────────────── */
#team-intro {
  position: relative;
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 2rem 1.5rem;
  background:
    linear-gradient(rgba(8, 15, 35, 0.55), rgba(8, 15, 35, 0.55)),
    url("../images/team-hero.jpg");
  background-position: center;
  background-size: 120% 120%;
  background-repeat: no-repeat;
  margin-top: 4rem;
  max-inline-size: 100%;
  animation: moveBackground 15s linear infinite;
}

@media (width < 760px) {
  #team-intro {
    background-size: cover;
    padding-top: 10px !important;
  }
}

#team-intro .attachments-highlight-header {
  width: 100%;
  height: 85%;
  max-width: 1100px;
  margin-inline: 5rem;
  margin-block: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 5;
  background-color: black;
  opacity: 0.7;
  padding: 2rem 2.5rem;
  border-radius: 1.5em;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (width < 760px) {
  #team-intro .attachments-highlight-header {
    margin-inline: 1.25rem;
    margin-block: 1.5rem;
    height: auto;
  }
}

#team-intro .attachments-badges {
  margin-top: 0.5rem;
}

.attachments-pre {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: rgba(255, 201, 71, 0.08);
  border: 1px solid rgba(255, 201, 71, 0.15);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.attachments-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--white);
}

.attachments-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto;
}

/* ── WHO WE ARE ── */
#who-we-are {
  padding: 4rem 0;
  background: var(--navy);
}

.team-copy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto 0 auto;
}

.team-copy-grid p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.team-copy-grid p:last-child {
  margin-bottom: 0;
}

/* ── STAFF PROFILES ── */
#staff-profiles {
  background: var(--navy2);
  padding: 4rem 0;
}

#staff-profiles .leadership-intro {
  max-width: 700px;
}

#staff-profiles .staff-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.75rem;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

#staff-profiles .staff-card {
  flex: 0 1 340px;
  max-width: 360px;
  height: 100%;
  min-height: 420px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

#staff-profiles .staff-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

#staff-profiles .staff-card .btn-primary {
  margin: 0.6rem auto 1rem auto;
}

.staff-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.staff-card:hover .staff-photo {
  transform: scale(1.05);
}

.staff-body {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.staff-body .staff-readmore-wrap {
  margin-top: auto;
  padding-top: 0.4rem;
}

.staff-name-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  row-gap: 0.2rem;
}

.staff-name-row h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--white);
}

.staff-name-row .staff-role {
  position: static;
  top: auto;
  left: auto;
  white-space: normal;
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 400;
  background: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0;
}

.staff-body h4 {
  min-height: auto;
  margin: 0;
}

.staff-body > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9rem;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── WHAT DRIVES US ── */
#what-drives-us {
  padding: 4rem 0;
  background: var(--navy);
}

.values-team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-inline: auto;
}

.values-team-grid .val-card {
  flex: 1 1 260px;
  max-width: 280px;
  padding: 1.6rem;
  background: var(--card-bg);
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 12px;
  transition: all 0.3s;
}

.values-team-grid .val-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
  transform: translateY(-3px);
}

.values-team-grid .val-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.values-team-grid .val-card-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.values-team-grid .val-card .val-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  flex-shrink: 0;
}

.values-team-grid .val-card .val-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan);
}

.values-team-grid .val-card p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

/* ── WORKING CULTURE ── */
#working-culture {
  padding: 4rem 0;
  background: var(--navy2);
}

/* ── FEEDBACK CTA ── */
#feedback-cta {
  background: var(--navy);
  padding: 3rem 0;
}

.feedback-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feedback-card-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), transparent 60%);
  pointer-events: none;
}

.feedback-card-cta:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 8px 40px rgba(6, 182, 212, 0.08);
}

.feedback-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.feedback-info .section-label {
  margin-bottom: 0.5rem;
}

.feedback-info h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.feedback-info p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 400px;
}

.feedback-action {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.feedback-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  background: var(--cyan);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
  white-space: nowrap;
}

.feedback-cta-btn:hover {
  background: var(--cyan2);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(6, 182, 212, 0.4);
}

@media (max-width: 768px) {
  .feedback-card-cta {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .feedback-info p {
    max-width: 100%;
    margin: 0 auto;
  }

  .feedback-cta-btn {
    white-space: normal;
    justify-content: center;
    width: 100%;
  }
}

/* ── TEAM PROFILE PAGE ── */
.team-hero-header {
  text-align: center;
  padding: 0 1.5rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid rgba(6, 182, 212, 0.35);
  flex-shrink: 0;
}

.profile-heading h3 {
  font-family: Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.profile-heading .profile-department {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.8rem;
}

.profile-heading .staff-role {
  position: static;
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 400;
  background: none;
  padding: 0;
  border-radius: 0;
}

.profile-heading .staff-social {
  margin-inline: 0;
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .profile-heading .staff-social {
    justify-content: center;
  }
}

.profile-body {
  max-width: 900px;
  margin: 0 auto;
}

.profile-section {
  margin-bottom: 2rem;
}

.profile-section h4 {
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.profile-section h4 svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
}

.profile-section p {
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.responsibility-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.responsibility-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.1);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
}

.responsibility-list li svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.profile-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .team-copy-grid {
    grid-template-columns: 1fr;
  }

  #staff-profiles .staff-grid {
    gap: 1.25rem;
    padding: 0 1rem;
  }
  
  #staff-profiles .staff-card {
    flex: 0 1 100%;
    max-width: 100%;
    min-height: auto;
  }
  
  .values-team-grid {
    padding: 0 1rem;
  }
  
  .values-team-grid .val-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .feedback-card-cta {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .feedback-info p {
    max-width: 100%;
    margin: 0 auto;
  }

  .feedback-cta-btn {
    white-space: normal;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  #team-intro .attachments-highlight-header {
    padding: 1.5rem 1rem;
    margin: 1rem;
  }
  
  .attachments-title {
    font-size: 1.5rem;
  }
  
  .attachments-desc {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .staff-body {
    padding: 1rem;
  }
  
  .staff-photo {
    height: 200px;
  }

  .profile-header {
    padding: 1rem;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .profile-heading h3 {
    font-size: 1.3rem;
  }

  .responsibility-list {
    grid-template-columns: 1fr;
  }
}