/* ==========================================================================
   OUR TEAM & COMPANY CULTURE - Enhanced Stylesheet
   Page: ourteam.html
   Nandalala Infotech
   ========================================================================== */

/* -------------------- Variables & Theme Defaults -------------------- */
:root {
  --team-primary: #235bf3;
  --team-primary-rgb: 37, 99, 235;
  --team-secondary: #38BDF8;
  --team-dark: #0F172A;
  --team-card-bg: #FFFFFF;
  --team-border: #E2E8F0;
  --team-text-dark: #0F172A;
  --team-text-muted: #475569;
  --team-bg-light: #F1F5F9;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* -------------------- Badges -------------------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(35, 91, 243, 0.1) !important;
  color: var(--team-primary, #235bf3) !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 6px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(35, 91, 243, 0.25) !important;
}

/* -------------------- Hero Section -------------------- */
.team-hero-section {
  padding: 80px 20px 60px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%) !important;
  border-bottom: 1px solid var(--border-color, #E2E8F0);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.team-hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(35, 91, 243, 0.1) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.team-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.split-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  color: var(--team-text-dark, #0F172A) !important;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.split-heading .text-left {
  color: var(--team-text-dark, #0F172A) !important;
  opacity: 1 !important;
}

.split-heading .text-right {
  background: linear-gradient(135deg, #235bf3 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1 !important;
}

.team-hero-lead { font-size: 1.12rem; line-height: 1.75; color: var(--team-text-muted, #475569) !important; max-width: 680px; margin: 0 auto 35px; }

/* Stats Highlight Strip */
.team-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.team-stat-card {
  background: #FFFFFF !important;
  border: 1px solid var(--team-border, #E2E8F0) !important;
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--team-primary, #235bf3) !important;
  box-shadow: 0 12px 28px rgba(35, 91, 243, 0.15);
}

.team-stat-icon {
  font-size: 1.6rem;
  color: var(--team-secondary, #38BDF8);
  margin-bottom: 8px;
  display: inline-block;
}

.team-stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--team-text-dark, #0F172A) !important;
  line-height: 1.1;
  margin-bottom: 4px;
}

.team-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--team-text-muted, #475569) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* -------------------- Interactive Gallery (Bento Grid) -------------------- */
.team-gallery-section {
  padding: 80px 20px 90px;
  background: #FFFFFF;
}

.gallery-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.gallery-section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--team-text-dark);
  margin-bottom: 12px;
}

.gallery-section-desc {
  font-size: 1.05rem;
  color: var(--team-text-muted);
  margin: 0;
}

/* Bento Grid Layout */
.gallery-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #0B0F19;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

/* Overlay Details */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(11, 15, 25, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 24px;
  color: #FFFFFF;
  z-index: 2;
  transition: background 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(11, 15, 25, 0.96) 100%);
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.3;
}

.gallery-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}

/* Bento Column Spanning */
.gallery-span-12 {
  grid-column: span 12;
  height: 480px;
}

.gallery-span-7 {
  grid-column: span 7;
  height: 380px;
}

.gallery-span-5 {
  grid-column: span 5;
  height: 380px;
}

.gallery-span-6 {
  grid-column: span 6;
  height: 360px;
}

.gallery-span-4 {
  grid-column: span 4;
  height: 360px;
}

.gallery-span-8 {
  grid-column: span 8;
  height: 360px;
}

/* -------------------- Culture In Motion (Video Showcase) -------------------- */
.team-video-section {
  padding: 80px 20px;
  background: #0B0F19;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.team-video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 500px;
  height: 350px;
  background: radial-gradient(circle, rgba(35, 91, 243, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.team-video-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.team-video-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.team-video-desc {
  font-size: 1.05rem;
  color: #94A3B8;
  margin: 0;
}

.team-video-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(35, 91, 243, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000000;
  z-index: 1;
}

.team-video-wrapper video {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.team-video-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 18px 28px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-pulse-dot {
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.video-info-text {
  font-size: 0.92rem;
  color: #E2E8F0;
  font-weight: 500;
}

.video-info-badge {
  background: rgba(35, 91, 243, 0.25);
  color: #C084FC;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(35, 91, 243, 0.35);
}

/* -------------------- Core Values Section -------------------- */
.team-values-section {
  padding: 90px 20px;
  background: var(--team-bg-light);
}

.values-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.values-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--team-text-dark);
  margin-bottom: 12px;
}

.values-desc {
  font-size: 1.05rem;
  color: var(--team-text-muted);
  margin: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 34px 28px;
  border: 1px solid var(--team-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--team-primary);
  box-shadow: 0 16px 36px rgba(35, 91, 243, 0.12);
}

.value-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  transition: transform 0.3s ease;
}

.value-card:hover .value-icon-box {
  transform: scale(1.1);
}

.icon-purple {
  background: rgba(35, 91, 243, 0.1);
  color: var(--team-primary);
}

.icon-blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--team-secondary);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.icon-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.icon-teal {
  background: rgba(14, 165, 233, 0.1);
  color: #0EA5E9;
}

.icon-rose {
  background: rgba(244, 63, 94, 0.1);
  color: #F43F5E;
}

.value-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--team-text-dark);
  margin-bottom: 12px;
}

.value-text {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--team-text-muted);
  margin: 0;
}

/* -------------------- Engineering Divisions -------------------- */
.team-divisions-section {
  padding: 85px 20px;
  background: #FFFFFF;
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.division-card {
  background: #FAFAFD;
  border: 1px solid var(--team-border);
  border-radius: 18px;
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.division-card:hover {
  background: #FFFFFF;
  border-color: var(--team-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(35, 91, 243, 0.08);
}

.division-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.division-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(35, 91, 243, 0.1);
  color: var(--team-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.division-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--team-text-dark);
  margin: 0;
}

.division-card p {
  font-size: 0.92rem;
  color: var(--team-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.division-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.division-tag {
  font-size: 0.74rem;
  font-weight: 600;
  background: #EDF2F7;
  color: #4A5568;
  padding: 3px 10px;
  border-radius: 6px;
}

/* -------------------- Join Team CTA -------------------- */
.team-cta-section {
  padding: 50px 20px 90px;
  background: #FFFFFF;
}

.team-cta-box {
  max-width: 1140px;
  margin: 0 auto;
  background: linear-gradient(135deg, #102C57 0%, #0F172A 100%);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.team-cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.team-cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.team-cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--team-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.team-cta-title {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
  line-height: 1.25;
}

.team-cta-desc {
  font-size: 1.08rem;
  color: #CBD5E1;
  line-height: 1.7;
  margin-bottom: 32px;
}

.team-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-team-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--team-primary);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(35, 91, 243, 0.35);
  transition: all 0.3s ease;
}

.btn-team-primary:hover {
  background: #102C57;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 44, 87, 0.5);
  color: #FFFFFF !important;
}

.btn-team-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.btn-team-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 991px) {
  .team-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-span-12 {
    grid-column: span 12;
    height: 400px;
  }

  .gallery-span-7,
  .gallery-span-5,
  .gallery-span-6,
  .gallery-span-4,
  .gallery-span-8 {
    grid-column: span 12;
    height: 340px;
  }

  .values-grid,
  .divisions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-video-wrapper video {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .team-stats-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .values-grid,
  .divisions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-video-wrapper video {
    height: 280px;
  }

  .team-cta-box {
    padding: 40px 24px;
    border-radius: 20px;
  }

  .gallery-span-12,
  .gallery-span-7,
  .gallery-span-5,
  .gallery-span-6,
  .gallery-span-4,
  .gallery-span-8 {
    height: 280px;
  }
}
