/* Telious Team Page — Modern AI-Themed Design */

/* ==================== CSS Variables ==================== */
:root {
  --primary-gold: #E8CE1D;
  --primary-olive: #5E650B;
  --light-beige: #DAD9BE;
  --dark-brown: #1a1410;
  --darker-brown: #2d2416;
  --light: #f8fafc;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gradient: linear-gradient(135deg, var(--primary-gold), var(--primary-olive));
  --gradient-dark: linear-gradient(135deg, #1a1410 0%, #2d2416 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(232, 206, 29, 0.15);
  --glow: 0 0 40px rgba(232, 206, 29, 0.3);
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== Reset ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  background: var(--light);
  color: var(--gray-800);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark-brown);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 2rem;
  margin-top: 80px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%),
    url('../assets/office-team-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 206, 29, 0.08), transparent);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(94, 101, 11, 0.06), transparent);
  bottom: 10%;
  right: 15%;
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, 30px);
  }
}

.ai-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 35%;
  right: 20%;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  bottom: 25%;
  left: 10%;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  bottom: 35%;
  right: 25%;
  animation-delay: 3s;
}

.particle:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-delay: 4s;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: var(--gray-800);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  color: var(--dark-brown);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  animation-delay: 0.2s;
}

.hero-content p {
  animation-delay: 0.4s;
}

/* ==================== LEADERSHIP SECTION ==================== */
.leadership-section {
  padding: 100px 0;
  background: var(--light);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ==================== PROFILE CARD ==================== */
.profile-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.profile-card p {
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.profile-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary-gold);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.profile-card:hover .profile-glow {
  opacity: 1;
  transform: scale(1.2);
}

.profile-image {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 3px solid var(--white);
  box-shadow: none;
  filter: grayscale(100%);
  transition: var(--transition);
}

.profile-card:hover .profile-image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* No hover effect for specific members - kept black and white */
.profile-card.no-hover:hover .profile-image img {
  filter: grayscale(100%);
}


.image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.profile-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(232, 206, 29, 0.2), transparent);
  border-radius: 50%;
  opacity: 0;
  filter: blur(20px);
  transition: var(--transition);
}

.profile-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
  position: relative;
  z-index: 1;
}

.profile-card .position {
  color: var(--primary-gold);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.profile-card .description {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Stagger animation */
.profile-card:nth-child(1) {
  animation-delay: 0.1s;
}

.profile-card:nth-child(2) {
  animation-delay: 0.2s;
}

.profile-card:nth-child(3) {
  animation-delay: 0.3s;
}

.profile-card:nth-child(4) {
  animation-delay: 0.4s;
}

.profile-card:nth-child(5) {
  animation-delay: 0.5s;
}

.profile-card:nth-child(6) {
  animation-delay: 0.6s;
}

.profile-card:nth-child(7) {
  animation-delay: 0.7s;
}

.profile-card:nth-child(8) {
  animation-delay: 0.8s;
}

/* ==================== JOIN SECTION ==================== */
.join-section {
  padding: 120px 2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #DAD9BE 0%, #f1f5f9 100%);
}

.join-bg {
  position: absolute;
  inset: 0;
  background: transparent;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(94, 101, 11, 0.06), transparent);
  top: -100px;
  left: -100px;
  animation-delay: 1s;
}

.orb-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 206, 29, 0.08), transparent);
  bottom: -50px;
  right: -50px;
  animation-delay: 3s;
}

.join-section>.section-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.join-title {
  color: var(--dark-brown);
  margin-bottom: 1.5rem;
}

.join-description {
  font-size: 1.1rem;
  color: #000000 !important;
  /* Force black for visibility */
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation-delay: 0.6s;
}

/* ==================== JOIN BUTTON ==================== */
.join-btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-brown);
  background: var(--gradient);
  border: 2px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  animation-delay: 0.8s;
  box-shadow: var(--shadow-lg);
}

.join-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.join-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--glow);
}

.join-btn:hover::before {
  opacity: 1;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero-section {
    min-height: 70vh;
    padding: 100px 2rem 60px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 60px 1.5rem 40px;
    margin-top: 70px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .profile-card {
    padding: 1.5rem;
  }

  .leadership-section {
    padding: 60px 0;
  }

  .join-section {
    padding: 80px 1.5rem;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 1rem 40px;
    margin-top: 60px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-card {
    padding: 1.5rem;
  }

  .join-btn {
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
    width: 100%;
  }

  .section-container {
    padding: 0 1rem;
  }
}