/* Team Page - iOS Dark Mode & Apple Design Language
   Modern card layout with incredible performance and scalability
*/

/* Global Resets & Base Styles */
* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0c1321;
  color: #f5f5f7;
  font-feature-settings:
    'kern' 1,
    'liga' 1,
    'calt' 1,
    'pnum' 1,
    'tnum' 0,
    'onum' 1,
    'lnum' 0,
    'dlig' 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  scroll-behavior: smooth;
  position: relative;
  overflow-x: hidden;
}

/* Fixed Background Orbs - Much brighter and stationary */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.25;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  will-change: auto;
}

/* Container - Optimized for 3-card grid */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 1068px) {
  .container {
    max-width: 960px;
    padding: 0 20px;
  }
}

@media (max-width: 734px) {
  .container {
    max-width: 100%;
    padding: 0 16px;
  }
}

/* Typography */
.gradient-text {
  background: linear-gradient(135deg, #0071e3 0%, #bf5af2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline;
}

/* Team Hero Section */
.team-hero {
  position: relative;
  background: rgba(0, 0, 0, 0);
  overflow: hidden;
  min-height: 100vh;
  padding: 120px 0 80px 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse 50% 80% at 50% 0%,
    hsla(217, 100%, 50%, 0.05) 0%,
    hsla(275, 86%, 67%, 0.02) 50%,
    transparent 100%
  );
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(245, 245, 247, 0.004) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 247, 0.004) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 1;
  mask: linear-gradient(
    180deg,
    transparent 0%,
    black 20%,
    black 80%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(
    180deg,
    transparent 0%,
    black 20%,
    black 80%,
    transparent 100%
  );
}

.hero-orbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  will-change: transform;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    hsla(217, 100%, 50%, 0.04) 0%,
    transparent 50%
  );
  top: -20%;
  left: -10%;
  animation: float 40s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    hsla(275, 86%, 67%, 0.04) 0%,
    transparent 50%
  );
  top: 30%;
  right: -5%;
  animation: float 35s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    hsla(248, 79%, 70%, 0.04) 0%,
    transparent 50%
  );
  bottom: -10%;
  left: 30%;
  animation: float 45s ease-in-out infinite;
}

.team-hero .container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-content {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 6rem;
  letter-spacing: -0.04em;
  color: #f5f5f7;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 500;
  color: #a1a1a6;
  line-height: 1.3;
  letter-spacing: -0.025em;
  max-width: 700px;
  margin: 0 auto;
}

/* Team Grid - Exactly 3 cards per row full width */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 4rem;
  width: 100%;
}

@media (max-width: 1068px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 734px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Team Card - Clear glass effect with smooth shadow */
.team-card {
  position: relative;
  background: transparent;
  border-radius: 32px;
  padding: 48px;
  overflow: hidden;
  will-change: transform, box-shadow;
  transform: translate3d(0, 0, 0);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
  /* Minimal backdrop filter for clearer glass */
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  /* Smooth anti-aliased rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
}

/* Add only where needed */
.team-card {
  transform: translate3d(0, 0, 0); /* Forces GPU rendering */
}

/* Inner glow effect using ::after - Smooth blurred edges */
.team-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(32px - 2px);
  z-index: 1;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.01) 40%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 40% at 50% 100%,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(255, 255, 255, 0.005) 50%,
      transparent 80%
    ),
    radial-gradient(
      ellipse 40% 80% at 0% 50%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 80% at 100% 50%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 60%
    );
  pointer-events: none;
  opacity: 0.6;
  /* Optimized: removed blur filter for performance */
  transform: translate3d(0, 0, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glass Filter Layer - Only distorts background, not the card itself */
.glass-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  overflow: hidden;
}

/* Glass Filter - More transparent with visible background distortion */
.glass-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  /* Optimized: composite layer instead of expensive backdrop-filter */
  background: rgba(0, 0, 0, 0.08);
  /* Reduced filter complexity for performance */
  filter: saturate(130%) brightness(1.2);
  /* Force GPU acceleration */
  transform: translate3d(0, 0, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glass Overlay Layer - Ultra minimal tint for maximum transparency */
.glass-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  background: rgba(255, 255, 255, 0.015);
  /* Optimized GPU acceleration */
  transform: translate3d(0, 0, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glass Specular Highlight Layer - Smooth blurred edges */
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.04) 15%,
      rgba(255, 255, 255, 0.015) 30%,
      rgba(255, 255, 255, 0.008) 50%,
      rgba(255, 255, 255, 0.015) 70%,
      rgba(255, 255, 255, 0.06) 100%
    ),
    radial-gradient(
      ellipse 60% 100% at 20% 0%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 40% 80% at 80% 100%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 50%
    );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.1),
    inset -1px -1px 0 rgba(255, 255, 255, 0.03);
  pointer-events: none;
  /* Optimized: removed blur filter for performance */
  transform: translate3d(0, 0, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hover Effect with smooth shadow */
.team-card:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.16),
    0 3px 12px rgba(0, 0, 0, 0.08);
}

.team-card:hover::after {
  opacity: 1;
}

/* ---------- Mobile performance overrides ---------- */
@media (max-width: 1068px) {
  /* Disable expensive filters */
  .team-card,
  .glass-layer::before,
  .glass-layer::after,
  .member-modal {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Drop glass pseudo layers */
  .team-card::before,
  .team-card::after,
  .glass-layer,
  .glass-layer::before,
  .glass-layer::after {
    display: none !important;
  }

  /* Simpler card base */
  .team-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 2px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
  }

  /* Diagonal sheen from top-right to bottom-right */
  .team-card::after {
    display: block !important;
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 5%,
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0) 65%,
        rgba(255, 255, 255, 0.05) 95%,
        rgba(255, 255, 255, 0.1) 100%
      ),
      radial-gradient(
        circle at 20% 30%,
        rgba(255, 255, 255, 0.04) 0%,
        transparent 32%
      ),
      radial-gradient(
        circle at 70% 60%,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 30%
      ),
      radial-gradient(
        circle at 45% 80%,
        rgba(255, 255, 255, 0.025) 0%,
        transparent 28%
      );
    mix-blend-mode: screen;
    opacity: 0.55;
  }

  /* Remove photo glow blur */
  .member-photo-glow {
    display: none !important;
    filter: none !important;
  }

  /* Stop animated blurred background orbs */
  .hero-background,
  .hero-orbs,
  .hero-orb {
    display: none !important;
  }

  /* Disable global blurred backdrop */
  body::before {
    display: none !important;
  }

  /* Hide SVG lens filter definitions */
  #lens-filter-defs {
    display: none !important;
  }
}

/* Card Content - Above glass layers and inner glow */
.team-card-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  pointer-events: auto;
}
/* Member Photo */
.member-photo-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 32px auto;
  flex-shrink: 0;
  /* Performance optimization */
  contain: layout style;
  transform: translate3d(0, 0, 0);
}

.member-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(29, 29, 31, 0.8);
  border: 0.5px solid rgba(245, 245, 247, 0.12);
  transition:
    border-color 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: translate3d(0, 0, 0);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 0 0 0.5px rgba(245, 245, 247, 0.08);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Performance: GPU accelerated transform */
  transform: translate3d(0, 0, 0);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.team-card:hover .member-photo {
  border-color: rgba(0, 113, 227, 0.2);
  transform: scale(1);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 0 0 0.5px rgba(0, 113, 227, 0.15),
    inset 0 0 0 0.5px rgba(245, 245, 247, 0.1);
  will-change: border-color, box-shadow;
}

.member-photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle,
    hsla(217, 100%, 50%, 0.05) 0%,
    hsla(275, 86%, 67%, 0.05) 50%,
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  filter: blur(20px);
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: -1;
  transform: translate3d(0, 0, 0) scale(0.8);
}

.team-card:hover .member-photo-glow {
  opacity: 0.8;
  transform: translate3d(0, 0, 0) scale(1.2);
  will-change: opacity, transform;
}

/* Member Info */
.member-info {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

.member-name {
  font-size: 2rem !important;
  font-weight: 400;
  color: #f5f5f7;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  /* Performance: no will-change needed for static text */
}

.member-position {
  font-size: 1rem;
  font-weight: 400;
  color: #0071e3;
  margin-bottom: 24px;
  text-transform: none;
  letter-spacing: -0.015em;
  line-height: 1.2;
  opacity: 1;
  /* Performance: no will-change needed for static text */
}

.member-bio {
  font-size: 1rem !important;
  line-height: 1.5;
  color: #a1a1a6;
  font-weight: 400;
  letter-spacing: -0.018em;
  text-align: left;
  flex: 1;
  display: block;
  overflow: visible;
  position: relative;
  margin-bottom: 2rem;
}

/* Bio truncation for desktop */
@media (min-width: 735px) {
  .bio-container {
    max-height: calc(1.5em * 9 + 64px);
  }

  .member-bio.truncated {
    max-height: calc(1.5em * 9);
    overflow: hidden;
  }
}

/* Mobile scrollable bio */
@media (max-width: 734px) {
  .bio-container {
    padding-bottom: 0;
  }

  .bio-container.is-truncated {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .member-bio {
    max-height: none;
    overflow: visible;
  }

  .member-bio.truncated {
    max-height: none;
    overflow: visible;
  }

  .member-bio::-webkit-scrollbar {
    width: 4px;
  }

  .member-bio::-webkit-scrollbar-track {
    background: transparent;
  }

  .member-bio::-webkit-scrollbar-thumb {
    background: rgba(245, 245, 247, 0.2);
    border-radius: 2px;
  }

  .member-bio::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 245, 247, 0.3);
  }
}

/* Read More Button */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(245, 245, 247, 0.06);
  border: 1px solid rgba(245, 245, 247, 0.12);
  border-radius: 999px;
  color: #e5e7ec;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  outline: none;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: none;
}

.read-more-btn:hover {
  background: rgba(245, 245, 247, 0.12);
  border-color: rgba(245, 245, 247, 0.2);
  transform: translate(-50%, -1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.read-more-btn:active {
  transform: translate(-50%, 0);
}

/* Show read more button only on desktop when bio is truncated */
@media (min-width: 735px) {
  .read-more-btn.show {
    display: inline-flex;
  }
}

@media (max-width: 734px) {
  .read-more-btn {
    position: static;
    transform: none;
    margin-top: 12px;
  }
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  33% {
    transform: translate3d(15px, -10px, 0);
  }
  66% {
    transform: translate3d(-10px, 5px, 0);
  }
}

.hero-orb-1 {
  animation: float 60s ease-in-out infinite;
}

.hero-orb-2 {
  animation: float 70s ease-in-out infinite reverse;
}

.hero-orb-3 {
  animation: float 80s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1068px) {
  .team-hero {
    padding: 96px 0 80px 0;
  }

  .hero-content {
    margin-bottom: 96px;
    padding-top: 4vh;
  }

  .hero-title {
    font-size: clamp(4.5rem, 9vw, 6rem) !important;
    margin-bottom: 48px;
  }

  .hero-subtitle {
    font-size: clamp(1.25rem, 3.5vw, 1.875rem);
  }

  .team-card {
    padding: 40px;
    min-height: 360px;
  }

  .member-photo-container {
    width: 130px;
    height: 130px;
    margin-bottom: 24px;
  }

  .member-name {
    font-size: 1.375rem;
    margin-bottom: 4px;
  }

  .member-position {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 734px) {
  .team-hero {
    padding: 80px 0 64px 0;
    min-height: 85vh;
  }

  .hero-content {
    margin-bottom: 80px;
  }

  .hero-title {
    font-size: clamp(3rem, 10vw, 5rem);
    margin-bottom: 32px;
    line-height: 1;
  }

  .hero-subtitle {
    font-size: clamp(1.125rem, 5vw, 1.5rem);
  }

  .team-card {
    padding: 32px;
    min-height: 340px;
    text-align: center;
  }

  .member-photo-container {
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
  }

  .member-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }

  .member-position {
    font-size: 0.875rem;
    margin-bottom: 16px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-orb-1,
  .hero-orb-2,
  .hero-orb-3 {
    animation: none !important;
  }

  .team-card:hover {
    transform: translateY(-4px) !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-card {
    border-width: 0.5px;
  }

  .member-photo {
    border-width: 0.5px;
  }
}

/* Print styles */
@media print {
  .team-hero {
    background: white !important;
    color: black !important;
    min-height: auto !important;
    padding: 32px 0 !important;
  }

  .team-card {
    background: white !important;
    border: 1px solid rgba(255, 255, 255, 1) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    break-inside: avoid;
    margin-bottom: 12px;
  }

  .hero-orb,
  .hero-gradient,
  .hero-grid {
    display: none !important;
  }

  .gradient-text {
    -webkit-text-fill-color: black !important;
    color: black !important;
  }

  .member-name,
  .member-position,
  .member-bio {
    color: black !important;
  }

  .member-position {
    color: #666 !important;
  }

  .member-bio {
    color: #333 !important;
  }
}

.bio-container {
  position: relative;
  width: 100%;
  transition: none;
  overflow: hidden;
}

@media (min-width: 735px) {
  .bio-container.is-truncated {
    -webkit-mask-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 35%,
      rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 35%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}

/* Modal Backdrop - Exact Match to Property Contact Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(15px) brightness(0.5);
  -webkit-backdrop-filter: blur(15px) brightness(0.5);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  /* Removed transitions - GSAP handles animation */
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Modal Container - Glass Effect Matching Team Cards */
.member-modal {
  border-radius: 1.5rem;
  background: transparent;
  width: 90%;
  max-width: 1200px;
  max-height: 95svh;
  height: auto;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.98);
  opacity: 0;
  /* Removed transitions - GSAP handles animation */
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
}

/* Modal Glass Filter Layer */
.member-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  filter: url(#lensFilter) saturate(130%) brightness(1.2);
  background: rgba(0, 0, 0, 0.08);
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: filter;
  pointer-events: none;
}

/* Modal Glass Specular Highlight Layer */
.member-modal::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.04) 15%,
      rgba(255, 255, 255, 0.015) 30%,
      rgba(255, 255, 255, 0.008) 50%,
      rgba(255, 255, 255, 0.015) 70%,
      rgba(255, 255, 255, 0.06) 100%
    ),
    radial-gradient(
      ellipse 60% 100% at 20% 0%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 40% 80% at 80% 100%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 50%
    );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.1),
    inset -1px -1px 0 rgba(255, 255, 255, 0.03);
  pointer-events: none;
  filter: blur(0.25px);
  -webkit-filter: blur(0.25px);
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.modal-backdrop.active .member-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Modal Card - Content Wrapper Matching Property Contact Modal */
.modal-card {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 3rem 3.5rem;
  position: relative;
  z-index: 2;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.modal-card::-webkit-scrollbar {
  width: 2px;
  background: transparent;
}

.modal-card::-webkit-scrollbar-track {
  background: transparent;
  margin: 0 20%;
}

.modal-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  transition: background 0.4s ease;
}

.modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Modal Content - Two Column Layout */
.modal-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: start;
  text-align: left;
  align-items: center;
  justify-content: center;
}

/* Close Button - Exact Match to Property Contact Modal */
.modal-close {
  position: absolute;
  top: -2rem;
  right: -2.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 55, 0.01);
  backdrop-filter: blur(10px);
  border: 0.0625rem solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 10;
  font-size: 1.5rem;
  font-weight: 100;
  overflow: hidden;
}

.modal-close:hover {
  background: rgba(60, 60, 60, 0.7);
  transform: scale(1.05);
}

.modal-close svg {
  width: 1rem;
  height: 1rem;
  stroke: white;
  stroke-width: 2;
}

/* Modal Left Column */
.modal-left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: sticky;
  top: 0;
  flex: 0 0 320px;
  min-width: 320px;
}

/* Modal Photo - Cleaner Design */
.modal-photo-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px auto;
  position: relative;
}

.modal-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.15);
}

.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle,
    hsla(217, 100%, 50%, 0.06) 0%,
    hsla(275, 86%, 67%, 0.06) 50%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
}

/* Modal Text Content - Matches Property Modal */
.modal-member-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
}

.modal-member-position {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0071e3;
  margin-bottom: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
}

/* Modal Right Column */
.modal-right-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0.5rem;
  flex: 1;
  min-width: 0;
}

.modal-member-bio {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  letter-spacing: normal;
  text-align: left;
  max-width: 100%;
  margin: auto 0;
  height: 100%;
}

/* Modal Responsive - Matches Property Modal */
@media (max-width: 1068px) {
  .member-modal {
    max-width: 95%;
  }

  .modal-card {
    padding: 2.5rem 2rem;
  }

  .modal-content {
    flex-direction: column;
    gap: 2rem;
  }

  .modal-left-column {
    position: relative;
  }

  .modal-photo-container {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
  }

  .modal-member-name {
    font-size: 1.5rem;
  }

  .modal-member-position {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .modal-member-bio {
    font-size: 0.95rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 734px) {
  /* Hide modal on mobile - use scrollable bio instead */
  .member-modal {
    display: none;
  }

  .modal-backdrop {
    display: none;
  }

  .read-more-btn {
    display: none !important;
  }
}
