/* ==========================================================================
   WEBVIRE ABOUT PAGE — about.css
   Canvas-as-background approach: 3D scene IS the hero background
   Dedicated Responsive Layout for Desktop, Tablet, and Mobile
   ========================================================================== */

/* ============================================================
   HERO — Full-bleed layout, canvas is the background
   ============================================================ */
.about-hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Three.js canvas fills the ENTIRE hero as background */
#about-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* Content wrapper sits on top of canvas */
.about-hero-content {
  position: relative;
  z-index: 12;
  width: 100%;
  padding: 80px 0 90px 0;
  pointer-events: none; /* canvas can receive mouse events */
}

.about-hero-content * {
  pointer-events: auto;
}

/* Two-column on Desktop: text left 45%, transparent right 55% */
.about-hero-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 0;
  align-items: center;
  min-height: 460px;
}

.about-hero-text {
  padding-right: 30px;
}

/* Empty right column — 3D scene renders in canvas behind */
.about-hero-right {
  min-height: 420px;
  position: relative;
}

/* DOM cards that JS positions via THREE projection */
.about-orbit-card {
  position: absolute;
  background: rgba(7, 16, 48, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(32, 215, 255, 0.4);
  border-radius: 14px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  z-index: 4;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(32, 215, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  will-change: transform, opacity;
}

.about-orbit-card:hover {
  border-color: #20d7ff;
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(32, 215, 255, 0.55);
  transform: scale(1.07) translateY(-3px);
}

.about-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #20d7ff, #1769ff);
  display: grid;
  place-items: center;
  color: #050c24;
  font-size: 14px;
  box-shadow: 0 0 12px rgba(32, 215, 255, 0.5);
  flex-shrink: 0;
}

/* ============================================================
   HEADING & TEXT
   ============================================================ */
.about-hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  margin: 16px 0 18px 0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.about-hero p.hero-subtitle {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 520px;
}

/* ============================================================
   FEATURE PILLS BAR
   ============================================================ */
.feature-pills-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 30, 76, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 18px;
  backdrop-filter: blur(16px);
  max-width: 100%;
  flex-wrap: wrap;
}

.hero-pill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 13px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.hero-pill-item:hover {
  background: rgba(32, 215, 255, 0.15);
  border-color: #20d7ff;
  color: #fff;
  transform: translateY(-2px);
}

.hero-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #20d7ff, #1769ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #050c24;
  flex-shrink: 0;
}

/* ============================================================
   SECTION 2: OVERVIEW & ACCORDION (Light Clean Theme)
   ============================================================ */
.overview-section {
  background: #f8fafc;
  color: #0f172a;
  padding: 85px 0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.about-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.experience-gradient-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 28px;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
  transition: all 0.35s ease;
}

.experience-gradient-card:hover {
  border-color: #1769ff;
  box-shadow: 0 16px 40px rgba(23, 105, 255, 0.15);
}

.exp-badge-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.exp-big-number {
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #1769ff, #20d7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.exp-card-label strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f172a;
  margin-bottom: 3px;
}

.exp-card-label span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1769ff;
}

.overview-heading {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.25;
}

.overview-desc {
  color: #475569;
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.overview-desc strong {
  color: #0f172a;
}

.overview-cta-btn {
  box-shadow: 0 10px 25px rgba(23, 105, 255, 0.25);
}

/* Accordion Styles (Clean Light Cards) */
.about-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-box {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-box:hover {
  border-color: #1769ff;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(23, 105, 255, 0.1);
}

.accordion-box.active {
  border-color: #1769ff;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(23, 105, 255, 0.12);
}

.accordion-btn {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 15.5px;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

.acc-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.acc-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(23, 105, 255, 0.08);
  color: #1769ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.accordion-box.active .acc-icon-box {
  background: linear-gradient(135deg, #1769ff, #20d7ff);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(23, 105, 255, 0.3);
}

.acc-chevron {
  font-size: 13px;
  color: #64748b;
  transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-box.active .acc-chevron {
  transform: rotate(180deg);
  color: #1769ff;
}

/* Accordion Content Wrapper */
.accordion-content-wrapper {
  display: none;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.accordion-box.active .accordion-content-wrapper {
  display: block;
  opacity: 1;
  animation: accFadeIn 0.3s ease;
}

@keyframes accFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.accordion-content-inner {
  padding: 14px 20px 18px 20px;
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
}

/* ============================================================
   SECTION 3: EXCELLENCE (Clean Light Section)
   ============================================================ */
.dark-excellence-section {
  background: #f1f5f9;
  color: #0f172a;
  padding: 85px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.dark-excellence-section .section-head h2 { color: #0f172a !important; }
.dark-excellence-section .section-head p  { color: #475569 !important; }

.dark-excellence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.dark-excellence-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 34px 26px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.dark-excellence-card:hover {
  transform: translateY(-8px);
  border-color: #1769ff;
  box-shadow: 0 16px 40px rgba(23, 105, 255, 0.15);
  background: #ffffff;
}

.dark-icon-circle {
  width: 58px; height: 58px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #ffffff;
  background: linear-gradient(135deg, #1769ff, #20d7ff);
  box-shadow: 0 10px 25px rgba(23, 105, 255, 0.3);
}

.dark-excellence-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 12px; color: #0f172a; }
.dark-excellence-card p  { font-size: 13.5px; color: #475569; line-height: 1.6; }

/* ============================================================
   SECTION 4: CORE CAPABILITIES (Clean Light Cards)
   ============================================================ */
.core-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.capability-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
  transition: all 0.35s ease;
}

.capability-card:hover {
  transform: translateY(-5px);
  border-color: #1769ff;
  box-shadow: 0 12px 30px rgba(23, 105, 255, 0.12);
}

.capability-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(23, 105, 255, 0.08);
  color: #1769ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 16px;
}

.capability-card h3 { font-size: 16.5px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.capability-card p  { font-size: 13px; color: #475569; line-height: 1.55; }

/* ============================================================
   SECTION 5: METRICS STRIP (Corporate Navy Accent Banner)
   ============================================================ */
.metrics-strip-container {
  background: linear-gradient(135deg, #0b152e, #1769ff);
  border-radius: 20px;
  padding: 45px 30px;
  color: #ffffff;
  margin: 50px auto;
  box-shadow: 0 20px 50px rgba(23, 105, 255, 0.2);
}

.metrics-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.metric-strip-item { display: flex; flex-direction: column; align-items: center; }

.metric-strip-icon { font-size: 26px; color: #20d7ff; margin-bottom: 10px; }

.metric-strip-item strong { font-size: 42px; font-weight: 900; color: #ffffff; line-height: 1; margin-bottom: 6px; }

.metric-strip-item span { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }

/* ============================================================
   SECTION 6: TECH MATRIX (Light Clean Surface)
   ============================================================ */
.tech-matrix-section {
  background: #f8fafc;
  padding: 85px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.tech-matrix-section .section-head h2 { color: #0f172a !important; }
.tech-matrix-section .section-head p  { color: #475569 !important; }

.about-tech-matrix {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.about-tech-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-tech-card:hover {
  transform: translateY(-6px);
  border-color: #1769ff;
  box-shadow: 0 12px 30px rgba(23, 105, 255, 0.15);
}

.about-tech-card i    { font-size: 32px; margin-bottom: 10px; display: block; }
.about-tech-card span { font-size: 13px; font-weight: 800; color: #0f172a; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1199px) and (min-width: 992px) {
  .about-hero h1 { font-size: 40px; }
  .about-hero-grid { grid-template-columns: 48% 52%; }
}

@media (max-width: 991px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
  }
  .about-hero-text { padding-right: 0; }
  .about-hero-right { min-height: 380px; }
  .about-overview-grid { grid-template-columns: 1fr; }
  .dark-excellence-grid { grid-template-columns: 1fr; }
  .about-hero { min-height: 860px; }
  .about-hero-content { padding: 60px 0 40px 0; }
}

@media (max-width: 767px) {
  .about-hero {
    min-height: 850px;
    align-items: flex-start;
  }

  .about-hero-content {
    padding: 40px 0 30px 0;
    width: 100%;
  }

  .about-hero-text {
    width: 100%;
    box-sizing: border-box;
  }

  .about-hero h1 {
    font-size: 28px;
    line-height: 1.18;
    margin: 12px 0 14px 0;
    word-break: break-word;
  }

  .about-hero p.hero-subtitle {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .about-hero-right {
    min-height: 390px;
    margin-top: 15px;
  }

  /* Mobile Feature Pills: Clean 2-column Grid with min-width:0 to prevent any text overflow */
  .feature-pills-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
    padding: 8px 10px;
    box-sizing: border-box;
  }

  .hero-pill-item {
    font-size: 10.5px;
    padding: 6px 8px;
    gap: 6px;
    min-width: 0;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: flex-start;
  }

  .hero-pill-icon {
    width: 18px;
    height: 18px;
    font-size: 9px;
    flex-shrink: 0;
  }

  /* Compact cards on mobile to stay strictly inside screen bounds */
  .about-orbit-card {
    font-size: 10.5px;
    padding: 6px 9px;
    gap: 6px;
    border-radius: 8px;
    max-width: 140px;
  }

  .about-card-icon {
    width: 24px;
    height: 24px;
    font-size: 10px;
    border-radius: 6px;
  }

  .about-tech-matrix { grid-template-columns: repeat(3, 1fr); }
  .metrics-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 576px) {
  .about-hero { min-height: 840px; }
  .about-tech-matrix { grid-template-columns: repeat(2, 1fr); }
  .core-capabilities-grid { grid-template-columns: 1fr; }
  .dark-excellence-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .about-orbit-card { transition: none; }
}
