/* ===== ABOUT THE FIRST GROUP SECTION — GLOW EDITION ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.tfg-about {
  --navy: #04103a;
  --navy-2: #071a55;
  --blue: #2a7bff;
  --red: #ff1f2d;
  --green: #1fd06b;
  --orange: #ff8c1a;
  --text: #dce6ff;

  position: relative;
  overflow: hidden;
  font-family: 'Inter', Arial, sans-serif;
  color: #fff;
  /* YOUR BACKGROUND PICTURE */
  background: var(--navy) url('images/about-bg.jpg') center right / cover no-repeat;
}

/* dark fade on the left so text stays readable */
.tfg-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,16,58,.88) 0%, rgba(4,16,58,.5) 45%, rgba(4,16,58,0) 70%);
  pointer-events: none;
}

.tfg-about__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 40px 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: end;
}

/* ================= TEXT ================= */
.tfg-about__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.tfg-about__eyebrow em {
  color: var(--red);
  font-style: normal;
  text-shadow: 0 0 10px rgba(255,31,45,.8);
}
.tfg-about__eyebrow::after {
  content: "";
  width: 130px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  box-shadow: 0 0 8px rgba(255,31,45,.8);
}

.tfg-about__title {
  margin: 16px 0 18px;
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0,0,0,.45);
}
.tfg-about__title span {
  color: var(--blue);
  text-shadow: 0 0 18px rgba(42,123,255,.75), 0 0 40px rgba(42,123,255,.35);
}
.tfg-about__title b {
  color: var(--red);
  text-shadow: 0 0 14px rgba(255,31,45,.9);
}

.tfg-about__text {
  max-width: 560px;
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

/* ================= FEATURE CARDS (glowing) ================= */
.tfg-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 720px;
  margin-bottom: 34px;
}
.tfg-feature {
  --c: var(--blue);
  --glow: rgba(42,123,255,.55);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px 18px 18px;
  border: 1.5px solid var(--c);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 28%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, rgba(10,22,70,.85), rgba(4,12,40,.92));
  box-shadow:
    0 0 14px var(--glow),
    0 0 34px color-mix(in srgb, var(--c) 22%, transparent),
    inset 0 0 22px color-mix(in srgb, var(--c) 22%, transparent);
  backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
}
/* light sweep across the card on hover */
.tfg-feature::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
}
.tfg-feature:hover::after { left: 130%; }
.tfg-feature:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 22px var(--glow),
    0 0 60px color-mix(in srgb, var(--c) 40%, transparent),
    inset 0 0 28px color-mix(in srgb, var(--c) 30%, transparent);
}
.tfg-feature--red    { --c: var(--red);    --glow: rgba(255,31,45,.55); }
.tfg-feature--blue   { --c: var(--blue);   --glow: rgba(42,123,255,.6); }
.tfg-feature--green  { --c: var(--green);  --glow: rgba(31,208,107,.5); }
.tfg-feature--orange { --c: var(--orange); --glow: rgba(255,140,26,.55); }

/* glossy glowing icon tile */
.tfg-feature__icon {
  position: relative;
  flex: 0 0 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 75%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow:
    0 0 18px var(--glow),
    0 0 36px color-mix(in srgb, var(--c) 35%, transparent),
    inset 0 2px 3px rgba(255,255,255,.45),
    inset 0 -4px 8px rgba(0,0,0,.25);
  font-size: 26px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.8);
}
.tfg-feature__icon::before {          /* glass shine */
  content: "";
  position: absolute;
  inset: 3px 3px 50% 3px;
  border-radius: 13px 13px 40% 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));
}
.tfg-feature__body { flex: 1; min-width: 0; }
.tfg-feature__body strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 5px; white-space: nowrap; }
.tfg-feature__body small  { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.tfg-feature__arrow {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.18);
  color: var(--c);
  font-size: 22px;
  filter: drop-shadow(0 0 6px var(--c));
  transition: transform .3s;
}
.tfg-feature:hover .tfg-feature__arrow { transform: translateX(5px); }

/* ================= RED BUTTON (glowing pulse) ================= */
.tfg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 40px;
  border-radius: 8px;
  border: 1px solid rgba(255,120,120,.6);
  background: linear-gradient(180deg, #ff3b46 0%, var(--red) 55%, #c80c18 100%);
  box-shadow: 0 0 18px rgba(255,31,45,.6), 0 8px 26px rgba(255,31,45,.45), inset 0 1px 0 rgba(255,255,255,.35);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  animation: tfgPulse 2.6s ease-in-out infinite;
  transition: transform .3s;
}
.tfg-btn:hover { transform: translateY(-3px); }
.tfg-btn i { transition: transform .3s; }
.tfg-btn:hover i { transform: translateX(4px); }
@keyframes tfgPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255,31,45,.55), 0 8px 24px rgba(255,31,45,.4), inset 0 1px 0 rgba(255,255,255,.35); }
  50%      { box-shadow: 0 0 30px rgba(255,31,45,.9), 0 10px 36px rgba(255,31,45,.6), inset 0 1px 0 rgba(255,255,255,.35); }
}

/* ================= SLANTED DIVISION CARDS (glowing) ================= */
.tfg-divisions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-left: 34px;
}
.tfg-division {
  --c: var(--blue);
  position: relative;
  height: 210px;
  transform: skewX(-14deg);
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 0 10px rgba(160,200,255,.55),
    0 0 26px rgba(42,123,255,.35),
    inset 0 0 12px rgba(160,200,255,.25);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s;
}
.tfg-division:hover {
  transform: skewX(-14deg) translateY(-8px);
  border-color: var(--c);
  box-shadow:
    0 0 16px var(--c),
    0 0 44px color-mix(in srgb, var(--c) 55%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--c) 40%, transparent);
}
.tfg-division--red    { --c: var(--red); }
.tfg-division--blue   { --c: var(--blue); }
.tfg-division--green  { --c: var(--green); }
.tfg-division--orange { --c: var(--orange); }

.tfg-division__img {
  position: absolute;
  inset: 0 -34px 38% -34px;
  transform: skewX(14deg);            /* keeps the photo straight */
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}
.tfg-division__img::after {           /* soft blend into the label */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4,16,58,.75) 100%);
}
.tfg-division:hover .tfg-division__img { transform: skewX(14deg) scale(1.1); }

.tfg-division__label {
  position: absolute;
  left: -20px; right: -20px; bottom: 0;
  height: 40%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  background: linear-gradient(180deg, rgba(8,22,72,.96), rgba(4,14,48,.98));
  border-top: 1px solid rgba(160,200,255,.35);
  transform: skewX(14deg);
}
.tfg-division__label i,
.tfg-division__label svg {
  flex: 0 0 auto;
  font-size: 26px;
  width: 28px; height: 28px;
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(160,200,255,.8));
}
.tfg-division__label span {
  position: relative;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: .3px;
}
.tfg-division__label span::after {
  content: "";
  position: absolute;
  left: 0; bottom: -11px;
  width: 44px; height: 3px;
  border-radius: 3px;
  background: var(--c);
  box-shadow: 0 0 8px var(--c), 0 0 16px var(--c);
}

/* ================= BOTTOM VALUES BAR (glowing) ================= */
.tfg-values {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, rgba(6,20,70,.92), rgba(3,11,40,.96));
  backdrop-filter: blur(8px);
}
/* glowing light line on top */
.tfg-values::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue) 15%, #8fc0ff 50%, var(--blue) 85%, transparent);
  box-shadow: 0 0 12px var(--blue), 0 0 26px rgba(42,123,255,.7);
}
.tfg-value {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 28px 20px;
}
.tfg-value + .tfg-value::before {     /* glowing divider */
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(160,200,255,.55), transparent);
}
.tfg-value__icon {
  position: relative;
  flex: 0 0 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(80,150,255,.85);
  background: radial-gradient(circle at 50% 35%, rgba(60,130,255,.45), rgba(6,20,70,.95) 70%);
  box-shadow:
    0 0 16px rgba(42,123,255,.7),
    0 0 36px rgba(42,123,255,.35),
    inset 0 0 16px rgba(42,123,255,.6);
  font-size: 28px;
  color: #fff;
  text-shadow: 0 0 10px rgba(160,200,255,.9);
  animation: tfgRing 3s ease-in-out infinite;
  transition: transform .35s;
}
.tfg-value:nth-child(2) .tfg-value__icon { animation-delay: .4s; }
.tfg-value:nth-child(3) .tfg-value__icon { animation-delay: .8s; }
.tfg-value:nth-child(4) .tfg-value__icon { animation-delay: 1.2s; }
.tfg-value:hover .tfg-value__icon { transform: scale(1.08) rotate(-4deg); }
@keyframes tfgRing {
  0%, 100% { box-shadow: 0 0 14px rgba(42,123,255,.6), 0 0 30px rgba(42,123,255,.3), inset 0 0 14px rgba(42,123,255,.5); }
  50%      { box-shadow: 0 0 24px rgba(42,123,255,.95), 0 0 50px rgba(42,123,255,.5), inset 0 0 20px rgba(42,123,255,.8); }
}
.tfg-value strong { display: block; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.tfg-value small  { font-size: 15px; color: #a9b9e0; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .tfg-about__inner { grid-template-columns: 1fr; }
  .tfg-divisions { padding-left: 24px; }
  .tfg-values { grid-template-columns: repeat(2, 1fr); }
  .tfg-value:nth-child(3)::before { display: none; }
  .tfg-value:nth-child(n+3) { border-top: 1px solid rgba(160,200,255,.15); }
}
@media (max-width: 1280px) and (min-width: 1101px) {
  .tfg-feature__body strong { white-space: normal; }
}
@media (max-width: 680px) {
  .tfg-feature__body strong { white-space: normal; }
  .tfg-about { background-position: 70% center; }
  .tfg-about::before { background: rgba(4,16,58,.78); }
  .tfg-about__inner { padding: 50px 16px 40px; }
  .tfg-features { grid-template-columns: 1fr; }
  .tfg-divisions { grid-template-columns: repeat(2, 1fr); padding-left: 14px; gap: 18px; }
  .tfg-division { height: 170px; }
  .tfg-division__label span { font-size: 12px; }
  .tfg-values { grid-template-columns: 1fr; }
  .tfg-value { justify-content: flex-start; }
  .tfg-value + .tfg-value::before { display: none; }
  .tfg-value + .tfg-value { border-top: 1px solid rgba(160,200,255,.15); }
}
@media (prefers-reduced-motion: reduce) {
  .tfg-btn, .tfg-value__icon { animation: none; }
}

/* =====================================================
   RUNNING TEXT GLOW ANIMATIONS
   ===================================================== */

/* 1) Headline: white text with a light beam sweeping across */
.tfg-about__title {
  background: linear-gradient(110deg, #ffffff 0%, #ffffff 40%, #9fc8ff 48%, #ffffff 52%, #ffffff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.45));
  animation: tfgSweep 4.5s linear infinite;
}

/* 2) "reliability": flowing blue/cyan gradient + breathing glow */
.tfg-about__title span {
  background: linear-gradient(90deg, #1e6bff, #4fb3ff, #9fe2ff, #4fb3ff, #1e6bff, #4fb3ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: tfgFlow 4s linear infinite, tfgBlueGlow 2.4s ease-in-out infinite;
}

/* 3) Red dot: blinking glow */
.tfg-about__title b {
  -webkit-text-fill-color: var(--red);
  animation: tfgRedBlink 1.6s ease-in-out infinite;
}

/* 4) Eyebrow: red "A" glow pulse + light running along the line */
.tfg-about__eyebrow { position: relative; }
.tfg-about__eyebrow em { animation: tfgRedBlink 2s ease-in-out infinite; }
.tfg-about__eyebrow::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 26px; height: 4px;
  margin-top: -2px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 16px var(--red), 0 0 26px var(--red);
  animation: tfgRunLine 2.6s ease-in-out infinite;
}

/* 5) Card titles: shine sweeping through, one after another */
.tfg-feature__body strong,
.tfg-value strong,
.tfg-division__label span {
  background: linear-gradient(110deg, #ffffff 0%, #ffffff 42%, var(--shine, #8fc0ff) 50%, #ffffff 58%, #ffffff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tfgSweep 5s linear infinite;
}
.tfg-feature--red    .tfg-feature__body strong { --shine: #ff8a90; animation-delay: 0s; }
.tfg-feature--blue   .tfg-feature__body strong { --shine: #8fc0ff; animation-delay: .6s; }
.tfg-feature--green  .tfg-feature__body strong { --shine: #8ff0b8; animation-delay: 1.2s; }
.tfg-feature--orange .tfg-feature__body strong { --shine: #ffc58a; animation-delay: 1.8s; }
.tfg-division--red    .tfg-division__label span { --shine: #ff8a90; animation-delay: .3s; }
.tfg-division--blue   .tfg-division__label span { --shine: #8fc0ff; animation-delay: .9s; }
.tfg-division--green  .tfg-division__label span { --shine: #8ff0b8; animation-delay: 1.5s; }
.tfg-division--orange .tfg-division__label span { --shine: #ffc58a; animation-delay: 2.1s; }
.tfg-value:nth-child(2) strong { animation-delay: .5s; }
.tfg-value:nth-child(3) strong { animation-delay: 1s; }
.tfg-value:nth-child(4) strong { animation-delay: 1.5s; }

/* 6) Division underline: light running through the colored bar */
.tfg-division__label span::after {
  background: linear-gradient(90deg, var(--c) 0%, var(--c) 35%, #fff 50%, var(--c) 65%, var(--c) 100%);
  background-size: 300% 100%;
  animation: tfgFlow 2.2s linear infinite;
}

/* 7) Values top line: light beam travelling left to right */
.tfg-values::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 180px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 14px #8fc0ff, 0 0 28px var(--blue);
  animation: tfgBeam 5s linear infinite;
}

/* 8) Value icons: glowing icon flicker */
.tfg-value__icon i { animation: tfgIconGlow 3s ease-in-out infinite; }
.tfg-value:nth-child(2) .tfg-value__icon i { animation-delay: .4s; }
.tfg-value:nth-child(3) .tfg-value__icon i { animation-delay: .8s; }
.tfg-value:nth-child(4) .tfg-value__icon i { animation-delay: 1.2s; }

/* ---------- Keyframes ---------- */
@keyframes tfgSweep {
  0%   { background-position: 100% 0; }
  100% { background-position: -150% 0; }
}
@keyframes tfgFlow {
  0%   { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}
@keyframes tfgBlueGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(42,123,255,.55)); }
  50%      { filter: drop-shadow(0 0 16px rgba(79,179,255,.95)) drop-shadow(0 0 30px rgba(42,123,255,.5)); }
}
@keyframes tfgRedBlink {
  0%, 100% { text-shadow: 0 0 6px rgba(255,31,45,.6); opacity: 1; }
  50%      { text-shadow: 0 0 14px rgba(255,31,45,1), 0 0 28px rgba(255,31,45,.8); opacity: .75; }
}
@keyframes tfgRunLine {
  0%   { right: 130px; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { right: 0; opacity: 0; }
}
@keyframes tfgBeam {
  0%   { left: -180px; }
  100% { left: 100%; }
}
@keyframes tfgIconGlow {
  0%, 100% { text-shadow: 0 0 6px rgba(160,200,255,.6); }
  50%      { text-shadow: 0 0 14px #fff, 0 0 26px rgba(79,179,255,.9); }
}

@media (prefers-reduced-motion: reduce) {
  .tfg-about *, .tfg-about *::before, .tfg-about *::after,
  .tfg-about__title, .tfg-values::after { animation: none !important; }
}

/* keep the full title visible inside the shine effect */
.tfg-feature__body strong { display: inline-block; font-size: 15.5px; padding-right: 2px; }
.tfg-feature__body small  { display: block; }

/* ===== WIDER DIVISION CARDS ===== */
.tfg-about__inner {
  max-width: 1680px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: 24px;
  padding-left: 60px;
  padding-right: 40px;
}
.tfg-divisions {
  gap: 18px;
  padding-left: 40px;
  margin-right: -10px;
}
.tfg-division { height: 240px; }
.tfg-division__label { padding: 0 30px 0 36px; gap: 12px; }
.tfg-division__label span { font-size: 14px; }
.tfg-division__label i,
.tfg-division__label svg { font-size: 30px; width: 32px; height: 32px; }

@media (max-width: 1750px) {
  .tfg-about__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); padding-left: 40px; }
  .tfg-divisions { padding-left: 30px; gap: 14px; }
}
@media (max-width: 1400px) {
  .tfg-about__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding-left: 40px; }
  .tfg-division__label span { font-size: 12.5px; }
}
@media (max-width: 1100px) {
  .tfg-about__inner { grid-template-columns: 1fr; }
  .tfg-divisions { margin-right: 0; padding-left: 28px; }
}
@media (max-width: 680px) {
  .tfg-about__inner { padding: 50px 16px 40px; }
  .tfg-divisions { padding-left: 14px; }
  .tfg-division { height: 180px; }
}
