/**
 * NextGen TechEdge Solutions - Dedicated Software Development Teams CSS
 * Stylesheet: css/dedicated-team.css
 * Meets WCAG 2.2 AA accessibility, responsive design, dark/light contrast,
 * and NextGen enterprise brand design language.
 */

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.dedicated-hero-section {
  background: linear-gradient(180deg, #0b0716 0%, #130c24 50%, #1a0f30 100%);
  color: #ffffff;
  padding: clamp(64px, 8vw, 100px) 0 clamp(48px, 6vw, 76px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(132, 38, 176, 0.22);
}

.dedicated-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 20%, rgba(132, 38, 176, 0.18) 0%, transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(0, 212, 170, 0.1) 0%, transparent 45%);
  pointer-events: none;
}

.dedicated-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dedicated-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dedicated-breadcrumb a:hover,
.dedicated-breadcrumb a:focus-visible {
  color: #00d4aa;
  text-decoration: underline;
}

.dedicated-breadcrumb .sep {
  color: #64748b;
  font-size: 0.8rem;
}

.dedicated-breadcrumb span[aria-current="page"] {
  color: #00d4aa;
  font-weight: 600;
}

.dedicated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.28);
  color: #00d4aa;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.dedicated-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00d4aa;
  box-shadow: 0 0 10px #00d4aa;
}

.dedicated-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.14;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.dedicated-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: #e879f9;
  line-height: 1.35;
  margin: 0 0 20px;
}

.dedicated-lead {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.75;
  color: #cbd5e1;
  max-width: 820px;
  margin: 0 0 28px;
}

.dedicated-lead p:last-child {
  margin-bottom: 0;
}

.dedicated-chips-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.dedicated-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  padding: 6px 14px;
  border-radius: 999px;
}

.dedicated-chip .check {
  color: #00d4aa;
  font-weight: 800;
}

.dedicated-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Two-column Hero Layout */
.dedicated-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.dedicated-hero-content {
  display: flex;
  flex-direction: column;
}

.dedicated-hero-media {
  position: relative;
  width: 100%;
}

.dedicated-hero-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(132, 38, 176, 0.32);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: #150d26;
  aspect-ratio: 16 / 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dedicated-hero-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 72px rgba(132, 38, 176, 0.28), 0 0 0 1px rgba(132, 38, 176, 0.45);
}

.dedicated-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.5s ease;
}

.dedicated-hero-frame:hover .dedicated-hero-img {
  transform: scale(1.025);
}

.dedicated-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 11px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 7, 22, 0.94) 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.hero-caption-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00d4aa;
  box-shadow: 0 0 8px #00d4aa;
  flex-shrink: 0;
}

.btn-dedicated-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #8426b0 0%, #d946ef 100%);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(132, 38, 176, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-dedicated-primary:hover,
.btn-dedicated-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(132, 38, 176, 0.45);
  color: #ffffff;
}

.btn-dedicated-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-dedicated-secondary:hover,
.btn-dedicated-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

/* ==========================================================================
   2. SECTION SHARED STYLES
   ========================================================================== */
.dedicated-section {
  padding: clamp(60px, 7vw, 92px) 0;
  position: relative;
}

.dedicated-section.bg-light {
  background: #ffffff;
}

.dedicated-section.bg-subtle {
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.dedicated-section.bg-dark {
  background: linear-gradient(180deg, #0e091b 0%, #150d26 50%, #1c0e30 100%);
  color: #ffffff;
  border-top: 1px solid rgba(132, 38, 176, 0.2);
  border-bottom: 1px solid rgba(132, 38, 176, 0.2);
}

.dedicated-section-header {
  max-width: 840px;
  margin: 0 auto 50px;
  text-align: center;
}

.dedicated-section-header.text-left {
  margin: 0 0 40px;
  text-align: left;
}

.dedicated-kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 10px;
}

.dedicated-section.bg-dark .dedicated-kicker {
  color: #00d4aa;
}

.dedicated-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

.dedicated-section.bg-dark .dedicated-title {
  color: #ffffff;
}

.dedicated-desc {
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

.dedicated-section.bg-dark .dedicated-desc {
  color: #cbd5e1;
}

/* ==========================================================================
   3. FOUR-STEP ENGINEERING MODEL GRID (PHOTOGRAPHIC CARDS)
   ========================================================================== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.model-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.model-card:hover {
  transform: translateY(-5px);
  border-color: rgba(132, 38, 176, 0.35);
  box-shadow: 0 16px 36px rgba(132, 38, 176, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.model-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.model-card-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.model-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.45s ease;
}

.model-card:hover .model-card-img {
  transform: scale(1.04);
}

.model-card-step {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(11, 7, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #00d4aa;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.model-card-content {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.model-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0 0 12px;
}

.model-card-text {
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--text-body);
  margin: 0;
  flex: 1;
}

/* ==========================================================================
   4. WHAT WE TAKE CARE OF (CAPABILITIES GRID)
   ========================================================================== */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.capability-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.capability-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-purple);
  box-shadow: 0 8px 24px rgba(132, 38, 176, 0.1);
}

.capability-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(132, 38, 176, 0.08);
  border: 1px solid rgba(132, 38, 176, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
  margin-bottom: 16px;
}

.capability-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px;
  line-height: 1.35;
}

.capability-desc {
  font-size: 0.91rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

/* ==========================================================================
   5. SECURITY & QUALITY GRID
   ========================================================================== */
.security-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sec-pillar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.sec-pillar-card:hover {
  transform: translateY(-3px);
  border-color: #00d4aa;
  background: rgba(255, 255, 255, 0.06);
}

.sec-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4aa;
  margin-bottom: 16px;
}

.sec-pillar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.35;
}

.sec-pillar-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
}

/* ==========================================================================
   6. NEXGUARD LABS INTEGRATION SECTION
   ========================================================================== */
.nexguard-feature-box {
  background: linear-gradient(135deg, rgba(20, 14, 38, 0.95) 0%, rgba(32, 16, 56, 0.95) 100%);
  border: 1px solid rgba(132, 38, 176, 0.35);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 0 20px 50px rgba(11, 7, 22, 0.4);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.nexguard-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.nexguard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: #00d4aa;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nexguard-h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.25;
}

.nexguard-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0 0 24px;
}

.nexguard-capabilities-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.nexguard-cap-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #f1f5f9;
  line-height: 1.5;
}

.nexguard-cap-item svg {
  flex-shrink: 0;
  color: #00d4aa;
  margin-top: 2px;
}

.nexguard-panel-visual {
  background: rgba(11, 7, 22, 0.65);
  border: 1px solid rgba(132, 38, 176, 0.25);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nexguard-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nexguard-metric-label {
  font-size: 0.86rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nexguard-metric-val {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #00d4aa;
}

/* ==========================================================================
   7. PROVEN CLIENT ENGAGEMENTS
   ========================================================================== */
.client-engagements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.client-engagement-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.client-engagement-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-purple);
  box-shadow: 0 12px 32px rgba(132, 38, 176, 0.12);
}

.client-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.client-brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.client-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(132, 38, 176, 0.08);
  border: 1px solid rgba(132, 38, 176, 0.2);
  color: var(--brand-purple);
}

.client-engagement-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #64748b;
  margin: 0 0 14px;
  line-height: 1.4;
}

.client-engagement-desc {
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--text-body);
  margin: 0 0 20px;
  flex: 1;
}

.client-case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-purple);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.client-case-link:hover,
.client-case-link:focus-visible {
  color: #581a7a;
  gap: 9px;
  text-decoration: underline;
}

/* ==========================================================================
   8. WHY CHOOSE NEXTGEN & ENGAGEMENT FLEXIBILITY
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-purple);
}

.why-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 10px;
  line-height: 1.35;
}

.why-card-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
}

.flexibility-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: clamp(30px, 4vw, 44px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.flexibility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.flex-dimension-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 18px;
}

.flex-dimension-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px;
}

.flex-dimension-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .dedicated-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .dedicated-hero-media {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }
  .dedicated-hero-frame {
    aspect-ratio: 16 / 9;
  }
  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .security-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nexguard-feature-box {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flexibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .model-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .model-card-content {
    padding: 22px 20px 26px;
  }
  .client-engagements-grid {
    grid-template-columns: 1fr;
  }
  .security-pillars-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .flexibility-grid {
    grid-template-columns: 1fr;
  }
  .dedicated-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-dedicated-primary,
  .btn-dedicated-secondary {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 580px) {
  .model-grid {
    grid-template-columns: 1fr;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .client-card-header {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .model-card-content,
  .client-engagement-card,
  .flexibility-box {
    padding: 20px 16px;
  }
}
