:root {
  --bg: #090b0f;
  --bg-2: #101318;
  --bg-3: #151922;
  --card: rgba(21, 25, 34, 0.72);
  --card-solid: #171b24;
  --text: #f5f7fa;
  --muted: #aab2bf;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --accent: #d61f1f;
  --accent-2: #ff4040;
  --accent-soft: rgba(255, 64, 64, 0.18);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.24);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --nav-height: 88px;
  --container-max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 64, 64, 0.06), transparent 22%),
    linear-gradient(180deg, #08090d 0%, #0b0d11 100%);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
  max-width: 100%;
}

a {
  text-decoration: none;
}

.container {
  max-width: var(--container-max);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.6px;
}

.text-soft {
  color: #d7dbe3;
}

.section-space {
  padding: 110px 0;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01)),
    var(--bg-2);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 52px;
}

.section-kicker,
.hero-kicker {
  color: var(--accent-2);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.section-title-left {
  max-width: 620px;
}

.section-text {
  max-width: 760px;
  margin: 0 auto;
  color: #d3d7df;
  font-size: 1.06rem;
}

/* Top bar */
.top-bar {
  position: relative;
  z-index: 1031;
  background: rgba(8, 9, 13, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.top-bar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 8px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.header-info,
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #d0d5dd;
}

.header-link {
  transition: color 0.25s ease, transform 0.25s ease;
}

.header-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* Navbar */
.custom-navbar {
  min-height: var(--nav-height);
  background: rgba(11, 13, 17, 0.76);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  transition: background 0.35s ease, min-height 0.35s ease, box-shadow 0.35s ease;
}

.custom-navbar.scrolled {
  background: rgba(9, 11, 15, 0.92);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
}

.navbar-shell {
  position: relative;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  margin-right: 28px;
  padding: 0;
}

.nav-logo {
  display: block;
  height: 122px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.custom-navbar.scrolled .nav-logo {
  transform: scale(0.96);
}

.navbar .nav-link {
  position: relative;
  color: rgba(255,255,255,0.9);
  margin-left: 0.55rem;
  padding: 0.75rem 0.85rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.45rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active-link {
  color: #fff;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active-link::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 0.6rem 0.8rem;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(255, 64, 64, 0.18);
}

/* Buttons */
.btn-apex {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.92rem 1.6rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
  box-shadow: 0 14px 34px rgba(201, 31, 31, 0.26);
}

.btn-apex:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 18px 42px rgba(201, 31, 31, 0.34);
}

.btn-nav-cta {
  padding-inline: 1.45rem;
}

.btn-outline-ghost {
  border: 1px solid rgba(255,255,255,0.13);
  color: #fff;
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 0.92rem 1.55rem;
  font-weight: 600;
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.btn-outline-ghost:hover {
  color: #fff;
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}

/* Hero */
.hero-section {
  position: relative;
  min-height: calc(100vh - 44px);
  overflow: hidden;
  background: #090b0f;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,8,12,0.85) 0%, rgba(7,9,13,0.52) 48%, rgba(7,9,13,0.7) 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, rgba(255,64,64,0.12), transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06), transparent 20%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 44px);
  display: flex;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 90px;
}

.hero-copy {
  max-width: 760px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.95;
  margin-bottom: 18px;
}

.accent-text {
  color: var(--accent-2);
}

.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 610px;
  color: #d8dce4;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 36px;
  height: 58px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  background: rgba(255,255,255,0.03);
}

.scroll-indicator span {
  width: 6px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.9;
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 0.2; }
  35% { opacity: 1; }
  100% { transform: translateY(18px); opacity: 0; }
}

/* Stats */
.stats-section {
  position: relative;
  padding: 0 0 42px;
  margin-top: -52px;
  z-index: 3;
}

.stats-strip {
  background: rgba(18, 21, 28, 0.76);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.stat-box {
  height: 100%;
  padding: 1.8rem 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.stat-box h3 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.stat-box p {
  margin: 0;
  color: var(--muted);
}

/* Cards shared */
.service-card,
.why-card,
.about-image-wrap,
.contact-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow: var(--shadow-soft);
}

.service-card::before,
.why-card::before,
.contact-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at top right, rgba(255,64,64,0.11), transparent 28%);
  pointer-events: none;
}

.service-card,
.why-card {
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.service-card:hover,
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255,255,255,0.12);
}

/* Services */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.service-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 1.1rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,64,64,0.18), rgba(255,64,64,0.09));
  color: var(--accent-2);
  font-size: 1.45rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.service-card h4 {
  margin-bottom: 1rem;
  font-size: 1.9rem;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.service-list {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.4rem;
  padding-left: 1.2rem;
  text-align: left;
  color: #e4e8ef;
}

.service-list li + li {
  margin-top: 0.45rem;
}

.service-cta {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

/* About */
.about-image-wrap {
  padding: 0.8rem;
}

.about-image {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
  object-fit: cover;
}

.feature-box {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  color: #eef2f7;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-box:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.feature-box i {
  color: var(--accent-2);
  font-size: 1.1rem;
}

/* Why */
.why-card {
  padding: 2rem;
  height: 100%;
}

.why-card h4 {
  margin-bottom: 0.95rem;
  font-size: 1.7rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
}

/* Gallery */
.gallery-link {
  display: block;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--card-solid);
  box-shadow: var(--shadow-soft);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--shadow-card);
}

.gallery-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.75);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: flex-start;
  padding: 22px;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 8, 12, 0.82) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Contact */
.contact-shell {
  padding: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #eaeef4;
}

.contact-item i {
  color: var(--accent-2);
  font-size: 1.1rem;
}

.contact-link {
  color: #eaeef4;
  transition: color 0.25s ease;
}

.contact-link:hover {
  color: #fff;
}

.contact-form-wrap {
  width: 100%;
}

.lead-form-embed {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(0,0,0,0.18);
}

.leadconnector-frame {
  width: 460px;
  max-width: 100%;
  height: 660px;
  display: block;
  border: none;
  background: #0f1114;
}

/* Footer */
.footer {
  padding: 24px 0 30px;
  background: #090b10;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: #b4bcc8;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer a {
  color: #d8dde5;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: #fff;
}

/* Reveal system */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 0.85s cubic-bezier(.2,.65,.18,1),
    opacity 0.85s cubic-bezier(.2,.65,.18,1);
}

.reveal-up {
  transform: translateY(34px);
}

.reveal-left {
  transform: translateX(-34px);
}

.reveal-right {
  transform: translateX(34px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

/* Desktop polish */
@media (min-width: 992px) {
  .contact-shell .col-lg-5 {
    padding-right: 24px;
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  :root {
    --nav-height: 82px;
  }

  .section-space {
    padding: 88px 0;
  }

  .hero-content {
    min-height: auto;
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .stats-section {
    margin-top: -34px;
  }

  .contact-shell {
    padding: 28px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

  .top-bar-left,
  .top-bar-right {
    justify-content: center;
  }

  .header-info,
  .header-link {
    font-size: 0.84rem;
  }

  .custom-navbar {
    min-height: 88px;
    background: rgba(10, 12, 16, 0.94);
  }

  .navbar-brand {
    margin-right: 0;
  }

  .nav-logo {
    height: 88px;
  }

  .navbar-collapse {
    margin-top: 12px;
    padding: 14px 0 8px;
    background: rgba(10, 12, 16, 0.98);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 24px 50px rgba(0,0,0,0.24);
  }

  .navbar .nav-link {
    margin-left: 0;
    padding: 0.8rem 1rem;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 100px;
    text-align: center;
  }

  .hero-copy {
    margin-inline: auto;
  }

  .hero-text {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .scroll-indicator {
    display: none;
  }

  .stats-section {
    margin-top: -12px;
    padding-bottom: 24px;
  }

  .stats-strip {
    padding: 14px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .service-card,
  .why-card {
    padding: 1.5rem;
  }

  .service-list {
    margin-inline: auto;
  }

  .feature-box {
    justify-content: center;
    text-align: center;
  }

  #about .row,
  #contact .row {
    text-align: center;
  }

  .contact-item {
    justify-content: center;
    text-align: center;
  }

  .contact-shell {
    padding: 22px 18px;
  }

  .lead-form-embed {
    margin: 10px auto 0;
    padding: 14px;
  }

  .leadconnector-frame {
    width: 100%;
    height: 700px;
  }

  .footer-inner,
  .footer-links {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .section-space {
    padding: 74px 0;
  }

  .hero-title {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .gallery-card img {
    height: 280px;
  }

  .nav-logo {
    height: 76px;
  }

  .leadconnector-frame {
    height: 730px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}