/* ===== TEAM IMAGE PREMIUM SECTION ===== */
.team-image .team-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  background: #f8fafc; /* Fallback if image load fails */
  width: 100%;
  height: 100%; /* Adapts to parent container */
  min-height: 450px; /* Base height for mobile and desktop */
}

.team-image .team-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-image .team-image-wrapper:hover .team-main-image {
  transform: scale(1.05);
}

.team-image .team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  color: white;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.team-image .team-image-wrapper:hover .team-overlay {
  opacity: 1;
}

.team-image .team-overlay h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: #fff;
}

.team-image .team-overlay p {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.9;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s;
  color: #fff;
  line-height: 1.5;
}

.team-image .team-image-wrapper:hover .team-overlay h3,
.team-image .team-image-wrapper:hover .team-overlay p {
  transform: translateY(0);
}

/* ===== FIX IMAGE EXTRA SPACE ISSUE ===== */
.team-image,
.team-image .team-image-wrapper {
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  line-height: 0;
}

.team-image .team-main-image {
  flex-grow: 1;
  display: block;
  margin-bottom: 0;
  height: 100%;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-x: hidden;
  background: #ffffff;
  color: #1a1a1a;
}

:root {
  --primary: #0091ff;
  --secondary: #ff006e;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --white: #ffffff;
  --section-padding: var(--section-pad) 4rem;
  --border-radius: 20px;
}

/* Navigation styles moved to navbar.css */

/* About Hero Section */
.about-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
  padding-top: 100px;
}

.bg-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  animation: float 20s ease-in-out infinite;
}

.shape1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(45deg, #0091ff, #ff006e);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.shape2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(45deg, #ff006e, #0091ff);
  bottom: -150px;
  right: -150px;
  animation-delay: 3s;
}

.shape3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, #0091ff, #ff006e);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 6s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(50px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

.about-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(0, 145, 255, 0.08);
  border: 1px solid rgba(0, 145, 255, 0.2);
  border-radius: 50px;
  color: #0091ff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 145, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(0, 145, 255, 0);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(135deg, #0091ff, #ff006e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: #666;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* Common Section Styles */
.section {
  padding: var(--section-padding);
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(0, 145, 255, 0.08);
  color: #0091ff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-text {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: #666;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* Company Overview */
.company-overview {
  background: linear-gradient(
    135deg,
    rgba(0, 145, 255, 0.02),
    rgba(255, 0, 110, 0.02)
  );
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 145, 255, 0.08);
  border: 2px solid rgba(0, 145, 255, 0.1);
  transition: all 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 145, 255, 0.15);
  border-color: rgba(0, 145, 255, 0.3);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0091ff, #ff006e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  font-weight: 600;
}

/* Our Story */
.our-story {
  background: #ffffff;
}

.story-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.story-timeline {
  position: relative;
  padding-left: 3rem;
}

.story-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #0091ff, #ff006e);
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  animation: fadeInRight 0.8s ease-out;
}

.timeline-dot {
  position: absolute;
  left: -3.6rem;
  top: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #0091ff, #ff006e);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 4px rgba(0, 145, 255, 0.2);
}

.timeline-content h4 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0091ff, #ff006e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* Vision & Mission */
.vision-mission {
  background: linear-gradient(
    135deg,
    rgba(0, 145, 255, 0.03),
    rgba(255, 0, 110, 0.03)
  );
}

.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.vm-card {
  background: white;
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0, 145, 255, 0.1);
  border: 2px solid transparent;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.vm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 145, 255, 0.05),
    rgba(255, 0, 110, 0.05)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.vm-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 145, 255, 0.2);
  border-color: rgba(0, 145, 255, 0.3);
}

.vm-card:hover::before {
  opacity: 1;
}

.vm-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.vm-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.vm-text {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* What Makes Us Different */
.what-makes-different {
  background: #ffffff;
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.difference-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  border: 2px solid rgba(0, 145, 255, 0.1);
  box-shadow: 0 8px 30px rgba(0, 145, 255, 0.08);
  transition: all 0.4s ease;
}

.difference-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 145, 255, 0.3);
  box-shadow: 0 15px 45px rgba(0, 145, 255, 0.15);
}

.difference-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.difference-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.difference-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
}

/* Our Process */
.our-process {
  background: linear-gradient(
    135deg,
    rgba(0, 145, 255, 0.02),
    rgba(255, 0, 110, 0.02)
  );
}

/* How We Work - Cinematic Sticky Notes */
.our-process {
  background: #fdfdff;
  overflow: hidden;
}

.sticky-notes-wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 60px auto 0;
  padding: 40px 0;
}

/* Connecting Line SVG */
.connecting-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 200px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.connecting-line path {
  stroke: rgba(0, 145, 255, 0.15);
  stroke-width: 2.5;
  stroke-dasharray: 8 8;
  fill: none;
}

.note-card {
  position: relative;
  width: 22%;
  min-height: 240px;
  background: #ffffff;
  padding: 2.5rem 1.8rem;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(0, 18, 46, 0.06);
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 145, 255, 0.05);
}

.note-card:hover {
  transform: translateY(-10px) rotate(0deg) !important;
  box-shadow: 0 25px 60px rgba(0, 145, 255, 0.12);
  z-index: 10;
}

/* Zigzag Staggering */
.note-card.step-down {
  transform: translateY(30px) rotate(-2deg);
}

.note-card.step-up {
  transform: translateY(-30px) rotate(2deg);
}

/* Pin Icon */
.pin-icon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #ee5253);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-icon::after {
  content: "";
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

/* Card Content */
.note-step {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.note-card.blue .note-step {
  color: #0091ff;
}
.note-card.purple .note-step {
  color: #7b2fff;
}
.note-card.pink .note-step {
  color: #ff006e;
}

.note-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.note-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.62;
  margin: 0;
}

/* Card Accent Tints */
.note-card.blue {
  background: rgba(0, 145, 255, 0.02);
}
.note-card.purple {
  background: rgba(123, 47, 255, 0.02);
}
.note-card.pink {
  background: rgba(255, 0, 110, 0.02);
}

.note-card.blue .pin-icon {
  background: radial-gradient(circle at 30% 30%, #0091ff, #0056b3);
}
.note-card.purple .pin-icon {
  background: radial-gradient(circle at 30% 30%, #7b2fff, #4a148c);
}
.note-card.pink .pin-icon {
  background: radial-gradient(circle at 30% 30%, #ff006e, #ad1457);
}

/* --- Responsive How We Work --- */
@media (max-width: 992px) {
  .sticky-notes-wrapper {
    flex-wrap: wrap;
    gap: 3rem;
  }
  .note-card {
    width: 45%;
    transform: none !important;
  }
  .connecting-line {
    display: none;
  }
}

@media (max-width: 768px) {
  .our-process {
    padding: 80px 1.5rem;
  }
  .note-card {
    width: 100%;
    min-height: auto;
  }
}

/* Our Values */
.our-values {
  background: #ffffff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: linear-gradient(
    135deg,
    rgba(0, 145, 255, 0.05),
    rgba(255, 0, 110, 0.05)
  );
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  border: 2px solid rgba(0, 145, 255, 0.1);
  transition: all 0.4s ease;
}

.value-card:hover {
  transform: translateY(-10px);
  background: white;
  border-color: rgba(0, 145, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 145, 255, 0.15);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.value-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.value-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

/* Meet Our Team */
.meet-team {
  background: linear-gradient(
    135deg,
    rgba(0, 145, 255, 0.03),
    rgba(255, 0, 110, 0.03)
  );
}

.team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.team-text h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.team-text p {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.team-features {
  list-style: none;
  margin-top: 2rem;
}

.team-features li {
  font-size: 1.05rem;
  color: #1a1a1a;
  font-weight: 600;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 145, 255, 0.1);
}

.team-image {
  background: white;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 145, 255, 0.1);
}

.team-placeholder {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 145, 255, 0.05),
    rgba(255, 0, 110, 0.05)
  );
  border-radius: 20px;
  border: 2px dashed rgba(0, 145, 255, 0.2);
}

.team-icon {
  font-size: 6rem;
  margin-bottom: 1rem;
}

.team-placeholder p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #666;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #0091ff, #ff006e);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotateCTA 15s linear infinite;
}

@keyframes rotateCTA {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn-primary {
  padding: 1rem 2.5rem;
  background: white;
  color: #0091ff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  padding: 1rem 2.5rem;
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: white;
  color: #0091ff;
  transform: translateY(-3px);
}

/* Scroll Animations */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal-left.active,
.reveal-right.active,
.reveal-fade.active {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .overview-grid,
  .story-wrapper,
  .team-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .difference-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 2rem;
  }

  nav {
    padding: 1rem 2rem;
  }

  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .vm-grid,
  .difference-grid,
  .process-timeline,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .overview-stats {
    grid-template-columns: 1fr;
  }

  .process-step::after {
    display: none;
  }
}

/* ========================================
   MODERN TEAM SECTION - ANIMATED CARDS
   ======================================== */

.modern-team-section {
  padding: var(--section-padding);
  background: linear-gradient(
    135deg,
    rgba(0, 145, 255, 0.02),
    rgba(255, 0, 110, 0.02)
  );
  position: relative;
  overflow: hidden;
}

/* Animated Background Decoration */
.team-bg-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.team-float-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 145, 255, 0.08),
    rgba(255, 0, 110, 0.08)
  );
  filter: blur(80px);
  animation: teamFloatShape 20s ease-in-out infinite;
}

.team-shape-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.team-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation-delay: 5s;
}

.team-shape-3 {
  width: 450px;
  height: 450px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

@keyframes teamFloatShape {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -40px) scale(1.1);
  }

  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* Team Cards Grid */
.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

/* Individual Team Card */
.team-card {
  position: relative;
  height: 480px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card.reveal-fade.active {
  opacity: 1;
  transform: translateY(0);
}

.team-card:nth-child(1) {
  transition-delay: 0.1s;
}

.team-card:nth-child(2) {
  transition-delay: 0.2s;
}

.team-card:nth-child(3) {
  transition-delay: 0.3s;
}

.team-card:nth-child(4) {
  transition-delay: 0.4s;
}

/* Card Inner Container */
.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 15px 50px rgba(0, 145, 255, 0.12);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-card-inner {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 70px rgba(0, 145, 255, 0.25);
}

/* Image Wrapper */
.team-image-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.team-member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(20%);
}

.team-card:hover .team-member-image {
  transform: scale(1.15);
  filter: grayscale(0%);
}

/* Dark Overlay */
.team-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  transition: background 0.6s ease;
}

.team-card:hover .team-image-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 145, 255, 0.2) 0%,
    rgba(0, 145, 255, 0.4) 50%,
    rgba(0, 145, 255, 0.95) 100%
  );
}

/* Social Links (Top Right - Visible on Hover) */
.team-social-links {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-social-links {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: white;
  color: #0091ff;
  transform: scale(1.15) rotate(5deg);
}

/* Hover Content Section */
.team-hover-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 2;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-hover-content {
  transform: translateY(0);
}

.team-info {
  color: white;
}

/* Team Name */
.team-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-name {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* Team Position */
.team-position {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-position {
  opacity: 0.9;
  transform: translateY(0);
  transition-delay: 0.15s;
}

/* Divider Line */
.team-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.3));
  border-radius: 10px;
  margin-bottom: 1rem;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-divider {
  opacity: 1;
  transform: scaleX(1);
  transition-delay: 0.2s;
}

/* Team Description */
.team-description {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-description {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

/* Team Stats */
.team-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-stats {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.team-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Button */
.team-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.8rem;
  background: white;
  color: #0091ff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.team-card:hover .team-contact-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.team-contact-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
}

.team-contact-btn svg {
  transition: transform 0.3s ease;
}

.team-contact-btn:hover svg {
  transform: translateX(5px);
}

/* Gradient Border Effect on Hover */
.team-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  padding: 3px;
  background: linear-gradient(135deg, #0091ff, #ff006e, #0091ff);
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: gradientBorderMove 3s ease infinite;
  z-index: 1;
}

.team-card:hover .team-card-inner::before {
  opacity: 1;
}

@keyframes gradientBorderMove {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Shine Effect on Hover */
.team-card-inner::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.team-card:hover .team-card-inner::after {
  left: 100%;
  top: 100%;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .team-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .team-card {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .modern-team-section {
    padding: 60px 2rem;
  }

  .team-cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-card {
    height: 420px;
  }

  .team-name {
    font-size: 1.5rem;
  }

  .team-position {
    font-size: 0.9rem;
  }

  .team-description {
    font-size: 0.9rem;
  }

  /* On mobile, show content by default (no hover) */
  .team-hover-content {
    transform: translateY(0);
  }

  .team-name,
  .team-position,
  .team-divider,
  .team-description,
  .team-stats,
  .team-contact-btn {
    opacity: 1;
    transform: translateY(0);
  }

  .team-social-links {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .team-card {
    height: 400px;
  }

  .team-hover-content {
    padding: 1.5rem;
  }

  .team-stats {
    gap: 1.5rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}
