:root {
  --primary-color: #6c32ac;
  --primary-light: #8b5dcf;
  --primary-dark: #4a2276;
  --bg-dark: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --border-color: #333333;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --card-width: 280px;
  --card-height: 400px;
  --profile-size: 120px;
}

/* ===== Global Styles ===== */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* ===== Animated Background Particles ===== */
.background-animation {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: linear-gradient(45deg, var(--primary-light), var(--primary-dark));
  animation: float 20s linear infinite;
}

.particle:nth-child(1) { width: 80px; height: 80px; top: 15%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 120px; height: 120px; top: 60%; left: 75%; animation-delay: -5s; }
.particle:nth-child(3) { width: 60px; height: 60px; top: 80%; left: 25%; animation-delay: -10s; }
.particle:nth-child(4) { width: 100px; height: 100px; top: 30%; left: 70%; animation-delay: -15s; }

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
  50% { opacity: 0.3; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1) rotate(0deg); opacity: 0.4; }
  100% { transform: scale(1.1) rotate(10deg); opacity: 0.1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
  max-width: 900px;
}

.title h1 {
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--primary-light);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  0% { filter: drop-shadow(0 0 20px var(--primary-light)); }
  100% { filter: drop-shadow(0 0 40px var(--primary-dark)); }
}

.description p {
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Team Section ===== */
.team-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 4rem;
  background: var(--primary-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Team Grid ===== */
.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--card-width), 1fr));
  gap: 2rem;
  justify-items: center;
}

/* ===== Team Card ===== */
.team-member {
  width: var(--card-width);
  height: var(--card-height);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: visible; /* Allow glow outside card */
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  animation: slideInUp 0.8s ease-out both;
}

.team-member::before {
  content: "";
  position: absolute;
  top: -10px; left: -10px;
  right: -10px; bottom: -10px;
  background: radial-gradient(circle, var(--primary-light), var(--primary-dark));
  opacity: 0;
  border-radius: 28px; /* slightly larger than card radius */
  filter: blur(20px);
  transition: opacity 0.4s ease;
  z-index: 0;
}

.team-member:hover::before {
  opacity: 0.2;
}

.team-member:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* smaller shadow to keep glow on edges */
}

/* ===== Profile Picture (keep border) ===== */
.team-image-container {
  position: relative;
  margin-bottom: 1.5rem;
  width: var(--profile-size);
  height: var(--profile-size);
  border-radius: 50%;
  overflow: hidden;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-color); /* keep border */
  transition: transform 0.4s ease;
  z-index: 2;
}

.team-member:hover .team-image {
  transform: scale(1.05); /* subtle zoom */
}


/* ===== Profile Picture ===== */
.team-image-container {
  position: relative;
  margin-bottom: 1.5rem;
  width: var(--profile-size);
  height: var(--profile-size);
  border-radius: 50%;
  overflow: hidden;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  transition: transform 0.4s ease;
  z-index: 2;
}

.team-member:hover .team-image {
  transform: scale(1.1);
}

/* ===== Text ===== */
.name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  text-align: center;
}

.position {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
}

.role-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 0.8rem;
  position: relative;
  z-index: 2;
}

.director { background: linear-gradient(135deg, var(--primary-light), var(--primary-color)); color: var(--text-primary); }
.executive { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); color: var(--text-primary); }
.manager { background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); color: var(--text-primary); }
.support { background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1)); color: var(--primary-light); border: 2px solid var(--primary-light); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .team-container { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  :root { --profile-size: 100px; --card-height: 350px; }
}

@media (max-width: 480px) {
  :root { --profile-size: 80px; --card-height: 320px; }
}