/* ==========================================================================
   Varsity-Style Hero to Awards & Recognitions Scroll Transition
   ========================================================================== */

:root {
  --hax-bg: #f8fafc;
  --hax-clean-bg: #f8fafc;
  --hax-text-dark: #121417;
  --hax-text-light: #ffffff;
  --hax-line-color: rgba(255, 255, 255, 0.4);
  --hax-font-display: 'Inter Tight', 'DM Sans', sans-serif;
  --hax-font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Company Logo Dull Blue, Gray & White Palette */
  --c-logo-blue: #233458;
  --c-logo-blue-mid: #3a4d70;
  --c-logo-blue-soft: #50658b;
  --c-logo-blue-ice: #8fa0bd;
  --c-white-pure: #ffffff;
  --c-white-silver: #e8edf4;
  --c-gray-slate: #475569;
  --c-gray-charcoal: #182235;
}

/* Master Scroll Pin Section */
.hero-awards-experience {
  position: relative;
  width: 100%;
  min-height: 380vh; /* Extended runway for cinematic, silky-smooth scrub */
  background: var(--hax-bg);
  overflow: visible;
}

/* Sticky Stage Container */
.hax-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--hax-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Clean background that fades in as user scrolls (flat matte, no radial shine) */
.hax-bg-clean {
  position: absolute;
  inset: 0;
  background: #f8fafc;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  will-change: opacity;
}

/* Inner zoom and scale viewport */
.hax-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
}

/* --------------------------------------------------------------------------
   Single Hero Background Photo Across Full Stage (Dull, Muted, Atmospheric)
   -------------------------------------------------------------------------- */
.hax-single-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('../images/achievments.jpg') no-repeat center center / cover;
  opacity: 0.5;
  filter: contrast(1.06) saturate(0.95);
  z-index: 2;
  pointer-events: none;
  will-change: opacity;
}

.hax-single-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 60%, rgba(248, 250, 252, 0.45) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, transparent 50%, rgba(255, 255, 255, 0.6) 100%);
}

/* --------------------------------------------------------------------------
   Morphing Grid Squares
   -------------------------------------------------------------------------- */
.hax-photo-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  z-index: 3;
  pointer-events: none;
}

.hax-cell {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Morphing fill squares inside specific cells */
.hax-cell-fill {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 3;
  border-radius: 4px;
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.hax-fill-blue-royal, .hax-fill-lime { background: #233458; }       /* Cell 0: Company Logo Dull Blue */
.hax-fill-white-pure, .hax-fill-bordeaux { background: #ffffff; }    /* Cell 1: Pure White */
.hax-fill-gray-slate, .hax-fill-pink { background: #475569; }        /* Cell 2: Slate Gray */
.hax-fill-blue-sky, .hax-fill-blue { background: #3a4d70; }          /* Cell 3: Soft Muted Slate Blue */
.hax-fill-gray-charcoal, .hax-fill-khaki { background: #182235; }    /* Cell 4: Deep Charcoal Slate */
.hax-fill-white-silver, .hax-fill-red { background: #e8edf4; }       /* Cell 5: Pale Slate White */

/* Grid divider lines completely removed as requested */
.hax-gridlines,
.hax-gl,
.hax-gl-v,
.hax-gl-h,
.hax-gl-h-2 {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Initial Hero Section Overlays
   -------------------------------------------------------------------------- */
.hax-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  font-family: var(--hax-font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hax-cell-tag {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hax-hero-title-wrap {
  position: relative;
  max-width: 980px;
  width: 92%;
  margin: 0 auto;
  z-index: 6;
  color: #222e40;
  pointer-events: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hax-hero-title {
  font-family: 'DM Sans', 'Inter Tight', sans-serif !important;
  font-size: clamp(2.5rem, 5.8vw, 4.6rem) !important;
  font-weight: 800 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.035em !important;
  color: #222e40 !important;
  text-transform: none !important;
  margin: 0 0 24px 0 !important;
  text-shadow: 0 2px 4px rgba(34, 46, 64, 0.04), 0 14px 30px rgba(34, 46, 64, 0.06);
}

.hax-hero-line {
  display: block;
  position: relative;
}

.hax-hero-line--1 {
  color: #0f172a;
}

.hax-hero-line--2 {
  display: inline-block;
  margin: 4px 0 6px;
}

.hax-hero-shimmer {
  font-style: normal;
  display: inline-block;
  background: linear-gradient(120deg, #222e40 0%, #1e40af 35%, #222e40 65%, #222e40 100%);
  background-size: 260% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: haxShimmerFlow 7s ease-in-out infinite;
}

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

.hax-hero-swoosh {
  display: block;
  width: min(100%, 280px);
  height: 18px;
  margin: -6px auto 0;
  overflow: visible;
}

.hax-hero-swoosh path {
  stroke-dasharray: 280;
  stroke-dashoffset: 0;
}

.hax-hero-line--3 {
  font-size: 0.92em;
  margin-top: 4px;
}

.hax-hero-line-prefix {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.82em;
  color: #64748b;
  letter-spacing: 0.02em;
  margin-right: 8px;
  vertical-align: middle;
}

.hax-hero-brand-name {
  color: #222e40;
  font-weight: 800;
  letter-spacing: -0.025em;
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, #222e40 0%, #161e29 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hax-hero-desc {
  font-family: 'DM Sans', sans-serif !important;
  font-size: clamp(1rem, 1.8vw, 1.18rem) !important;
  color: #475569 !important;
  max-width: 720px !important;
  margin: 0 auto 36px !important;
  line-height: 1.7 !important;
  text-shadow: none !important;
  font-weight: 400 !important;
  text-align: center;
}

/* Pill CTA Buttons matching About Company & Services */
.hax-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hax-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  background: #222e40 !important;
  color: #ffffff !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(34, 46, 64, 0.25);
  transition: all 0.25s ease;
}

.hax-btn-primary:hover {
  background: #18212e !important;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(34, 46, 64, 0.35);
  color: #ffffff !important;
}

.hax-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.85) !important;
  color: #222e40 !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 9999px;
  border: 1px solid rgba(34, 46, 64, 0.22);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(34, 46, 64, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.hax-btn-secondary:hover {
  background: #ffffff !important;
  border-color: #222e40;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(34, 46, 64, 0.14);
  color: #222e40 !important;
}

/* --------------------------------------------------------------------------
   Center Headline (AWARDS AND RECOGNITIONS)
   -------------------------------------------------------------------------- */
.hax-center-headline-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  width: min(850px, 86vw);
}

.hax-center-kicker {
  display: none !important;
}

.hax-center-headline {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #222e40;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hax-hl-row {
  display: block;
}

.hax-hl-amp {
  font-style: italic;
  font-size: 0.75em;
  line-height: 0.8;
  color: #1e40af;
  margin: 0.15rem 0;
}

.hax-center-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  color: #475569;
  max-width: 580px;
  margin: 1rem auto 0;
  line-height: 1.6;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Award Cards (Surrounding the central heading)
   -------------------------------------------------------------------------- */
.hax-cards-container {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}

.hax-award-card {
  position: absolute;
  top: 0;
  left: 0;
  width: min(305px, 21vw);
  background-color: #273246; /* Header Dark Blue Default */
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1.5px solid #364560;
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  will-change: transform, opacity, background-color;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
  transition: background-color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

/* Mouse Hover & Active State: Solid Matte White (#ffffff) — Zero Shine or Gloss */
.hax-award-card:hover,
.hax-award-card:active {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09) !important;
  z-index: 35 !important;
}

.hax-award-card:hover .hax-card-title,
.hax-award-card:active .hax-card-title {
  color: #171b22 !important;
}

.hax-award-card:hover .hax-card-year,
.hax-award-card:active .hax-card-year {
  color: #64748b !important;
}

.hax-award-card:hover .hax-card-desc,
.hax-award-card:active .hax-card-desc {
  color: #475569 !important;
}

.hax-award-card:hover .hax-card-img-wrap,
.hax-award-card:active .hax-card-img-wrap {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
}

.hax-award-card:hover .hax-card-pill,
.hax-award-card:active .hax-card-pill {
  background: #e2e8f0 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
}

.hax-award-card:hover .hax-pill-dot,
.hax-award-card:active .hax-pill-dot {
  background: #1e293b !important;
  box-shadow: none !important;
}

/* Pill badge on top of card (Matte Dark on Default) */
.hax-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 3px 10px 4px;
  border-radius: 20px;
  font-family: var(--hax-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #1a2332;
  color: #ffffff;
  border: 1px solid #334155;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hax-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: none !important;
  transition: background-color 0.25s ease;
}

/* Card Body Layout */
.hax-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hax-card-img-wrap {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  box-shadow: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hax-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hax-card-info {
  flex: 1;
  min-width: 0;
}

.hax-card-year {
  display: block;
  font-family: var(--hax-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #94a3b8; /* Muted Slate */
  text-transform: uppercase;
  margin-bottom: 2px;
  transition: color 0.25s ease;
}

.hax-card-title {
  font-family: var(--hax-font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff; /* Crisp White Default */
  margin: 0 0 3px 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.hax-card-desc {
  font-family: var(--hax-font-sans);
  font-size: 11.5px;
  color: #cbd5e1; /* Soft Silver Default */
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

/* --------------------------------------------------------------------------
   Floating Chips / Badges (Subtly Faded Ambient Tags)
   -------------------------------------------------------------------------- */
.hax-floating-chips {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
}

.hax-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--hax-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0.60; /* Faded ambient chip */
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

.hax-chip:hover {
  opacity: 0.95 !important;
}

.hax-chip-bordeaux { background: #233458; color: #ffffff; } /* Logo Dull Blue */
.hax-chip-lime     { background: #3a4d70; color: #ffffff; } /* Muted Slate Blue */
.hax-chip-pink     { background: #ffffff; color: #182235; border: 1px solid #cbd5e1; } /* Crisp White */
.hax-chip-blue     { background: #50658b; color: #ffffff; } /* Soft Dull Blue */
.hax-chip-khaki    { background: #475569; color: #ffffff; } /* Slate Gray */
.hax-chip-red      { background: #182235; color: #ffffff; } /* Charcoal Gray */

/* --------------------------------------------------------------------------
   Responsive Rules
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hax-award-card {
    width: min(275px, 24vw);
    padding: 12px 14px;
  }
  .hax-card-img-wrap {
    width: 44px;
    height: 44px;
  }
  .hax-card-title {
    font-size: 13px;
  }
  .hax-card-desc {
    font-size: 11px;
  }
  .hax-chip {
    font-size: 10px;
    padding: 3px 10px;
  }
}

@media (max-width: 900px) {
  .hax-center-headline {
    font-size: clamp(2rem, 5.2vw, 3.2rem);
  }
  .hax-award-card {
    width: min(240px, 26vw);
    padding: 10px 12px;
  }
  .hax-card-body {
    gap: 10px;
  }
  .hax-chip {
    font-size: 9px;
    padding: 3px 8px;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .hero-awards-experience {
    min-height: 320vh;
  }

  /* Hide decorative floating chips on mobile to eliminate clutter and guarantee ZERO overlap */
  .hax-floating-chips {
    display: none !important;
  }

  .hax-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .hax-hero-overlay {
    padding-top: clamp(82px, 13vh, 105px) !important;
    padding-bottom: clamp(16px, 3vh, 24px) !important;
    padding-left: clamp(12px, 4vw, 20px) !important;
    padding-right: clamp(12px, 4vw, 20px) !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .hax-hero-title-wrap {
    max-width: 92% !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
    margin: auto 0 !important;
  }

  .hax-hero-title {
    font-size: clamp(1.45rem, 6.2vw, 2.15rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 10px 0 !important;
  }

  .hax-hero-line--2 {
    margin: 2px 0 4px !important;
  }

  .hax-hero-swoosh {
    width: min(100%, 200px) !important;
    height: 12px !important;
    margin: -4px auto 0 !important;
  }

  .hax-hero-line--3 {
    font-size: 0.88em !important;
    margin-top: 2px !important;
  }

  .hax-hero-desc {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem) !important;
    line-height: 1.45 !important;
    max-width: 440px !important;
    margin: 0 auto 14px !important;
    color: #334155 !important;
  }

  .hax-hero-btns {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 280px !important;
    gap: 8px !important;
    margin: 0 auto !important;
  }

  .hax-btn-primary,
  .hax-btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 11px 22px !important;
    font-size: 0.88rem !important;
  }

  .hax-single-photo::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.65) 45%, rgba(255, 255, 255, 0.88) 100%) !important;
  }

  .hax-cell-tag {
    font-size: 9px;
    padding: 2px 7px;
  }

  /* Clean top headline placement on mobile */
  .hax-center-headline-wrap {
    top: 16% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 92vw !important;
    max-width: 400px !important;
  }

  .hax-center-kicker {
    font-size: 8.5px !important;
    letter-spacing: 0.22em !important;
    margin-bottom: 0.2rem !important;
  }

  .hax-center-headline {
    font-size: clamp(1.4rem, 5.8vw, 1.85rem) !important;
    line-height: 1.02 !important;
  }

  .hax-hl-amp {
    font-size: 0.7em !important;
    margin: 0.05rem 0 !important;
  }

  .hax-center-sub {
    font-size: 0.74rem !important;
    margin: 0.35rem auto 0 !important;
    line-height: 1.35 !important;
    max-width: 320px !important;
  }

  /* Compact 2-column mobile cards with ZERO overlap (Dark Blue Default, Flat Matte) */
  .hax-award-card {
    width: min(160px, 43vw) !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    gap: 6px !important;
    background-color: #273246 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    border: 1.5px solid #364560 !important;
  }

  .hax-award-card:active {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  }

  .hax-award-card:active .hax-card-title {
    color: #171b22 !important;
  }

  .hax-award-card:active .hax-card-year {
    color: #64748b !important;
  }

  .hax-award-card:active .hax-card-img-wrap {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
  }

  .hax-award-card:active .hax-card-pill {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
  }

  .hax-card-pill {
    padding: 2px 6px !important;
    font-size: 8px !important;
    gap: 4px !important;
    letter-spacing: 0.05em !important;
  }

  .hax-pill-dot {
    width: 4px !important;
    height: 4px !important;
  }

  .hax-card-body {
    gap: 8px !important;
  }

  .hax-card-img-wrap {
    width: 32px !important;
    height: 32px !important;
    padding: 3px !important;
    border-radius: 6px !important;
  }

  .hax-card-year {
    font-size: 7.5px !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 1px !important;
  }

  .hax-card-title {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .hax-card-desc {
    display: none !important;
  }
}

/* Extra Compact Phones (<= 380px) */
@media (max-width: 380px) {
  .hax-hero-title {
    font-size: 1.35rem !important;
  }

  .hax-hero-desc {
    font-size: 0.78rem !important;
    line-height: 1.38 !important;
    margin: 0 auto 10px !important;
  }

  .hax-hero-btns {
    max-width: 240px !important;
    gap: 6px !important;
  }

  .hax-btn-primary,
  .hax-btn-secondary {
    padding: 9px 16px !important;
    font-size: 0.82rem !important;
  }
  .hax-award-card {
    width: min(142px, 44vw) !important;
    padding: 6px 8px !important;
    gap: 4px !important;
  }

  .hax-card-img-wrap {
    width: 28px !important;
    height: 28px !important;
  }

  .hax-card-title {
    font-size: 10px !important;
  }

  .hax-center-headline {
    font-size: 1.3rem !important;
  }
}

