:root {
  /* BRAND */
  --brand-red: #e53935;

  /* ACCENT SYSTEM */
  --accent-cyan: #00c2ff;
  --accent-blue: #3b82f6;

  /* BACKGROUNDS */
  --bg-dark: #0f1115;
  --bg-section: #121826;
  --bg-card: rgba(255,255,255,0.03);

  /* TEXT */
  --text-white: #e5e7eb;
  --text-red:var(--brand-red);
  --text-muted: #9ca3af;

  /* BORDERS */
  --border-subtle: rgba(255, 255, 255, 0.239);
  --bg-level-1: #0f1115;   /* Deep dark (hero / intro) */
--bg-level-2: #121826;   /* Mid dark (content sections) */
--bg-level-3: #0c0f14;   /* Slightly different dark (alt sections) */

}

/* GLOBAL */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
}

/* SECTION SPACING */
.section {
  padding: 50px 0;
}

/* UNIFIED DARK SECTION */
.section-dark {
  background: linear-gradient(180deg, #0f1115, #121826);
  position: relative;
}

/* SUBTLE GRID BACKGROUND */
.section-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.section-dark-blue {
  background: linear-gradient(180deg, #0e1628, #0a0c10);
}

/* ========================= */
/* 🔷 CARD SYSTEM (GLOBAL) */
/* ========================= */
.ui-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}

.ui-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,194,255,0.4);
  box-shadow: 0 20px 50px rgba(0,194,255,0.12);
}

.ui-card {
  position: relative;
  overflow: hidden;
}

/* LIGHT SWEEP EFFECT */
.ui-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(0,194,255,0.08),
    transparent
  );
  transition: all 0.6s ease;
}

.ui-card:hover::after {
  left: 120%;
}

/* ========================= */
/* ICON SYSTEM */
/* ========================= */
.icon-cyan {
  color: var(--accent-cyan);
}

.icon-white {
  color: #fff;
}

.icon-red {
  color: var(--brand-red);
}

/* ========================= */
/* TAG SYSTEM */
/* ========================= */
.tag {
  display: inline-block;
  padding: 6px 12px;
  margin: 5px;
  border-radius: 20px;
  font-size: 13px;

  background: rgba(0,194,255,0.08);
  border: 1px solid rgba(0,194,255,0.2);
  color: #7dd3fc;

  transition: all 0.25s ease;
}

.tag:hover {
  background: rgba(0,194,255,0.2);
  color: #fff;
}

.tag {
  transition: all 0.25s ease;
}

.tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,194,255,0.2);
}

/* ========================= */
/* BUTTON SYSTEM */
/* ========================= */
.btn-primary {
  background: linear-gradient(135deg,#e53935,#b71c1c);
  border: none;
}

.btn-outline-cyan {
  border: 1px solid rgba(0,194,255,0.4);
  color: #7dd3fc;
}

.btn-outline-cyan:hover {
  background: rgba(0,194,255,0.1);
  color: #fff;
}

/* ========================= */
/* TYPOGRAPHY */
/* ========================= */
h1, h2, h3, h4, h5 {
  color: #fff;
}

p {
  color: var(--text-muted);
}

/* ========================= */
/* NAVBAR */
/* ========================= */
.navbar.scrolled {
  background: rgba(15,17,21,0.85);
  backdrop-filter: blur(10px);
}

.nav-item .nav-link {
  transition: all 0.25s ease;
  margin-right: 5px;
}
.nav-item .nav-link:hover {
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Active navigation link */
.navbar .nav-link.active,
.navbar .nav-link.active:hover {
    color: var(--brand-red) !important;
    font-weight: 600;
}

/* Optional active underline */
.navbar .nav-link.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--brand-red);
    margin-top: 4px;
}
/* ========================= */
/* HERO */
/* ========================= */
.hero {
  padding: 160px 0;
  background: var(--bg-dark);
  background-image: url('/images/s2hero.jpg');
  background-size: cover;
  color: #fff;
}

.innerhero {
  position: relative;
  padding: 80px 0 20px;
  background-image: 
    linear-gradient(
      180deg,
      rgba(15,17,21,0.85) 0%,   /* dark overlay top */
      rgba(15,17,21,0.6) 40%,
      rgba(18,24,38,0.9) 75%,   /* blend color */
      #121826 100%              /* exact next section color */
    ),
    url('/images/aboutherobg2.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /*background-blend-mode: soft-light;*/
}

.innerhero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;

  background: linear-gradient(
    to bottom,
    rgba(18,24,38,0) 0%,
    #121826 100%
  );
}

.industry-bg {
  background: var(--bg-level-2);
}

.industry-bg .ui-card {
  background: rgba(255,255,255,0.02);
}

.why-dark {
  position: relative;
}

.why-dark::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    rgba(0,0,0,0.6)
  );
}

.why-dark {
  background: var(--bg-level-1);
}

.why-dark .ui-card {
  background: rgba(255,255,255,0.04);
}


.cta-card-enhanced {
  position: relative;
  border: 1px solid rgba(0,194,255,0.25);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.02)
  );
  box-shadow: inset 0 0 30px rgba(0,194,255,0.05);
}
.cta-card-enhanced::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,194,255,0.6), transparent 40%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}

.cta-card-enhanced:hover {
  border-color: rgba(0,194,255,0.6);
  box-shadow:
    0 0 0 1px rgba(0,194,255,0.2),
    0 20px 60px rgba(0,194,255,0.15);
}

/* ===========================
   Bootstrap Pagination Dark
=========================== */

.pagination {
    gap: .4rem;
}

.pagination .page-link {
    background: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--border-subtle);

    min-width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    transition: all .25s ease;
}

.pagination .page-link:hover {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    background: rgba(255,255,255,.03);
    color: var(--text-muted);
    border-color: var(--border-subtle);
    opacity: .5;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 .2rem rgba(229,57,53,.25);
}

.pagination .page-link:focus-visible {
    outline: none;
}

footer {
  background: linear-gradient(180deg, #0f1115, #0a0c10);
  position: relative;
  color: #9ca3af;
  padding: 70px 0 30px;
}

/* TOP BORDER GLOW */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,194,255,0.5),
    transparent
  );
}

footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.2;
  pointer-events: none;
}


/* HEADINGS */
footer h5,
footer h6 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 15px;
}

/* LINKS */
footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

footer a:hover {
  color: #fff;
  transform: translateX(4px);
}

/* LIST SPACING */
footer ul li {
  margin-bottom: 8px;
}

/* BRAND TEXT */
.footer-brand {
  font-size: 14px;
  line-height: 1.6;
}

/* DIVIDER */
footer hr {
  border-color: rgba(255,255,255,0.08);
}

/* BOTTOM BAR */
.footer-bottom {
  font-size: 13px;
  color: #6b7280;
}

footer i {
  font-size: 18px;
  color: #9ca3af;
  transition: 0.3s;
}

footer i:hover {
  color: var(--accent-cyan);
}

#backToTop {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    transform: translateY(-2px);
    transition: 0.2s ease;
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0;
    background-blend-mode: saturation;
  }
  .navbar-collapse {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 8px;
  }
}