/* ============================================
   AYLF — TEAM PAGE
   Theme: Navy blue + gold
   ============================================ */
body[data-theme="team"] { background: var(--white); }
body[data-theme="team"] .hero-image {
  background-image: url("../images/pages/aboutt.jpg");
  background-position: center 50%;
  background-size: cover;
  background-repeat: no-repeat;
}
body[data-theme="team"] .section-white { background: #ffffff; }
body[data-theme="team"] .section-soft { background: #f4f6f9; }
body[data-theme="team"] .section-blue { background: #0a1a33; color: #fff; }

body[data-theme="team"] .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
body[data-theme="team"] .team-card {
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, .08);
  box-shadow: 0 4px 18px rgba(10, 26, 51, .06);
}
body[data-theme="team"] .section-blue .team-card {
  background: #0f2545;
  border-color: rgba(212, 175, 55, .25);
}
body[data-theme="team"] .team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(10, 26, 51, .16);
  border-color: #2b5ea7;
}
body[data-theme="team"] .section-blue .team-card:hover {
  box-shadow: 0 24px 50px rgba(212, 175, 55, .18);
  border-color: #d4af37;
}
body[data-theme="team"] .team-card-image {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #e6e9ef;
}
body[data-theme="team"] .team-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  filter: saturate(.92);
}
body[data-theme="team"] .team-card:hover .team-card-image img {
  transform: scale(1.06);
  filter: saturate(1);
}
body[data-theme="team"] .team-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 26, 51, .9) 100%);
  pointer-events: none;
}
body[data-theme="team"] .team-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 22px;
  z-index: 2;
  color: #fff;
}
body[data-theme="team"] .team-card-overlay h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.04em;
  margin: 0 0 4px;
  color: #fff;
}
body[data-theme="team"] .team-card-overlay p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d4af37;
  margin: 0;
}
body[data-theme="team"] .team-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #faf9f6;
  border-top: 1px solid rgba(11, 11, 11, .08);
  color: #0a1a33;
  transition: background .25s, color .25s;
}
body[data-theme="team"] .section-blue .team-card-link {
  background: rgba(0, 0, 0, .25);
  border-top-color: rgba(212, 175, 55, .25);
  color: #d4af37;
}
body[data-theme="team"] .team-card:hover .team-card-link {
  background: #0a1a33;
  color: #d4af37;
}
body[data-theme="team"] .section-blue .team-card:hover .team-card-link {
  background: #d4af37;
  color: #0a1a33;
}

/* Portfolio popup modal (team-specific) */
body[data-theme="team"] .aylf-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 26, 51, 0.9);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  padding: 24px; overflow-y: auto;
}
body[data-theme="team"] .aylf-modal-overlay.active { opacity: 1; visibility: visible; }
body[data-theme="team"] .aylf-modal-container {
  background: #fff; border-radius: 12px;
  max-width: 900px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(30px) scale(.97);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  border-top: 4px solid #d4af37;
}
body[data-theme="team"] .aylf-modal-overlay.active .aylf-modal-container { transform: translateY(0) scale(1); }
body[data-theme="team"] .aylf-modal-close {
  position: sticky; top: 12px; float: right;
  margin-right: 12px; width: 42px; height: 42px;
  border-radius: 50%; border: none;
  background: #0a1a33; color: #d4af37;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, transform .25s, color .25s;
  z-index: 10;
}
body[data-theme="team"] .aylf-modal-close:hover {
  background: #d4af37; color: #0a1a33; transform: rotate(90deg);
}
body[data-theme="team"] .aylf-modal-loader { padding: 100px 40px; text-align: center; }
body[data-theme="team"] .aylf-modal-loader p {
  margin-top: 22px; font-size: 14px; color: #5a6472; letter-spacing: .05em;
}
body[data-theme="team"] .aylf-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(10, 26, 51, .12);
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: aylf-spin .9s linear infinite;
  margin: 0 auto;
}
@keyframes aylf-spin { to { transform: rotate(360deg); } }
body[data-theme="team"] .aylf-modal-content { display: none; }
body[data-theme="team"] .aylf-modal-content.loaded { display: block; animation: aylf-fade-in .5s; }
@keyframes aylf-fade-in { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }
body[data-theme="team"] .aylf-profile-header {
  padding: 40px 50px 30px;
  background: linear-gradient(135deg, #f4f6f9 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(10, 26, 51, .08);
  display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap;
}
body[data-theme="team"] .aylf-profile-image {
  width: 180px; height: 180px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 4px solid #d4af37;
  box-shadow: 0 12px 32px rgba(10, 26, 51, .18);
  background: #0a1a33;
  display: grid; place-items: center;
  position: relative;
}
body[data-theme="team"] .aylf-profile-image img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; position: absolute; inset: 0;
}
body[data-theme="team"] .aylf-profile-image .aylf-initials {
  color: #d4af37; font-family: var(--font-display);
  font-size: 56px; font-weight: 800; line-height: 1;
}
body[data-theme="team"] .aylf-profile-titles { flex: 1; min-width: 260px; padding-top: 12px; }
body[data-theme="team"] .aylf-profile-titles h2 {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 700;
  letter-spacing: -.04em; color: #0a1a33;
  margin: 0 0 10px; line-height: 1.15;
}
body[data-theme="team"] .aylf-profile-titles h3 {
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #d4af37; margin: 0 0 16px; line-height: 1.4;
}
body[data-theme="team"] .aylf-role-badge {
  display: inline-block; background: #0a1a33;
  color: #d4af37; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 3px;
}
body[data-theme="team"] .aylf-profile-body {
  padding: 40px 50px 20px;
  font-size: 15px; line-height: 1.85; color: #3a4450;
}
body[data-theme="team"] .aylf-profile-body p { margin: 0 0 18px; }
body[data-theme="team"] .aylf-profile-body b,
body[data-theme="team"] .aylf-profile-body strong { color: #0a1a33; font-weight: 700; }
body[data-theme="team"] .aylf-profile-footer {
  padding: 24px 50px 32px;
  border-top: 1px solid rgba(10, 26, 51, .08);
  display: flex; gap: 14px; flex-wrap: wrap;
  background: #faf9f6;
}
body[data-theme="team"] .aylf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 24px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 3px; border: none; cursor: pointer;
  transition: background .25s, transform .25s, color .25s;
  text-decoration: none;
}
body[data-theme="team"] .aylf-btn-primary { background: #0a1a33; color: #d4af37; }
body[data-theme="team"] .aylf-btn-primary:hover { background: #d4af37; color: #0a1a33; transform: translateY(-2px); }
body[data-theme="team"] .aylf-btn-outline {
  background: transparent; color: #0a1a33;
  border: 1px solid rgba(10, 26, 51, .25);
}
body[data-theme="team"] .aylf-btn-outline:hover { background: #0a1a33; color: #d4af37; transform: translateY(-2px); }
body.aylf-modal-open { overflow: hidden; }

@media (max-width: 820px) {
  body[data-theme="team"] .team-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
  body[data-theme="team"] .team-card-image { height: 260px; }
  body[data-theme="team"] .aylf-modal-overlay { padding: 0; align-items: flex-start; }
  body[data-theme="team"] .aylf-modal-container { border-radius: 0; max-height: 100vh; min-height: 100vh; }
  body[data-theme="team"] .aylf-profile-header { padding: 28px 24px 22px; flex-direction: column; align-items: center; text-align: center; }
  body[data-theme="team"] .aylf-profile-image { width: 140px; height: 140px; }
  body[data-theme="team"] .aylf-profile-titles { min-width: 0; padding-top: 0; }
  body[data-theme="team"] .aylf-profile-titles h2 { font-size: 26px; }
  body[data-theme="team"] .aylf-profile-body { padding: 28px 24px 16px; font-size: 14px; }
  body[data-theme="team"] .aylf-profile-footer { padding: 20px 24px 28px; }
}