@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/poppins-300.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/poppins-800.woff2") format("woff2");
}

:root {
  --accent: #1c24f5;
  --text: #849799;
  --heading: #373737;
  --offwhite: #f5f7fb;
  --footer: #091a29;
  --footer-text: #a4a8cb;
  --border: #e7e7e7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--heading);
  text-decoration: none;
  transition: color 0.5s ease, background-color 0.5s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 600;
  margin-top: 0;
}

p {
  margin: 0 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-wrapper {
  background: var(--offwhite);
}

/* Header — transparent overlay on the hero, hanging logo plaque */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.main-header {
  background: transparent;
}

.header-inner {
  position: relative;
  min-height: 95px;
}

.ce-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 95px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.ce-logo img {
  max-width: 230px;
  width: 175px;
  height: auto;
}

/* Hero */
.main-slider {
  position: relative;
}

.slider-item {
  position: relative;
  min-height: 100vh;
  background: #222 url("../images/hero.jpg") center center / cover no-repeat;
}

.slider-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.slider-text {
  position: relative;
  z-index: 2;
  max-width: 768px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 15px 60px;
}

.slider-text h1 {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 62px;
  margin-bottom: 15px;
  text-shadow: 4px 5px 5px rgba(0, 0, 0, 0.2);
}

.slider-text p {
  font-size: 18px;
  line-height: 32px;
  color: #fff;
  margin: 0;
}

/* Sections */
.section {
  padding: 70px 0;
}

.bg-offwhite {
  background: var(--offwhite);
}

.bg-white {
  background: #fff;
}

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: 36px;
  line-height: 44px;
  margin-bottom: 20px;
  color: var(--heading);
}

.section-heading p {
  color: var(--text);
  font-size: 16px;
  margin: 0;
}

/* Services */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.service {
  flex: 1 1 33.333%;
  max-width: 33.333%;
  padding: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service:last-child {
  border-right: 0;
}

.service-inner {
  position: relative;
  overflow: hidden;
  padding: 30px 20px;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.service-inner::before,
.service-inner::after {
  content: "";
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  transition: all 0.6s ease;
  pointer-events: none;
}

.service-inner:hover {
  background: var(--accent);
  box-shadow: 0 4px 22px 5px rgba(0, 0, 0, 0.3);
}

.service-inner:hover::after {
  bottom: -50px;
  right: -50px;
}

.service-inner:hover::before {
  bottom: -65px;
  right: -65px;
}

.service-media {
  display: flex;
  align-items: flex-start;
}

.service-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin-right: 15px;
  margin-bottom: 20px;
  color: var(--accent);
  transition: color 0.5s ease;
}

.service-icon svg {
  width: 42px;
  height: 42px;
  display: block;
  fill: currentColor;
}

.service-inner:hover .service-icon,
.service-inner:hover h3,
.service-inner:hover p {
  color: #fff;
}

.service-body h3 {
  font-size: 22px;
  line-height: 28px;
  margin-bottom: 12px;
}

.service-body p {
  margin-bottom: 0;
  line-height: 25px;
}

/* Technicians / portfolio */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.tech-card {
  flex: 1 1 33.333%;
  max-width: 33.333%;
  padding: 0 15px;
  margin-bottom: 20px;
}

.ce-item {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.ce-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.ce-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 100%;
  background: rgba(28, 36, 245, 0.82);
  z-index: 1;
  transition: left 0.4s ease-out;
  pointer-events: none;
}

.ce-item:hover::before {
  left: 0;
}

.ce-item .box-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.ce-item .item-title,
.ce-item .ce-des {
  color: #fff;
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.35s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ce-item .item-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
}

.ce-item .ce-des {
  display: block;
  margin: 0;
  font-size: 15px;
}

.ce-item:hover .item-title,
.ce-item:hover .ce-des {
  opacity: 1;
  transform: translateX(0);
}

/* Testimonials */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.client-col {
  flex: 1 1 50%;
  max-width: 50%;
  padding: 0 15px;
}

.client-col + .client-col {
  margin-top: 0;
}

.testimonial {
  background: #fff;
  box-shadow: 0 0 40px -10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 30px 25px;
  display: flex;
  align-items: center;
  min-height: 100%;
}

.testimonial-img {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  margin: 0 28px 0 30px;
  position: relative;
}

.testimonial-img::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -5px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  z-index: 0;
}

.testimonial-img::after {
  content: "";
  position: absolute;
  bottom: -7px;
  right: 2px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 10px 2px rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.testimonial-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 100px;
  padding: 10px 6px 0 3px;
  background: #fff;
}

.testimonial-body {
  flex: 1 1 auto;
}

.testimonial-body strong {
  display: block;
  color: var(--accent);
  font-weight: 600;
  padding-top: 12px;
}

.testimonial-designation {
  font-size: 12px;
  margin-top: 0;
  color: var(--text);
}

.testimonial-designation a {
  color: inherit;
  text-decoration: none;
}

.testimonial-designation a:hover {
  color: var(--accent);
}

.testimonial-body p {
  font-size: 16px;
  margin: 12px 0 0;
}

/* Footer */
.main-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding: 70px 0 0;
}

.main-footer a {
  color: var(--footer-text);
}

.main-footer a:hover {
  color: var(--accent);
}

.footer-brand {
  max-width: 33.333%;
}

.footer-brand img {
  display: block;
  margin: 0 auto;
  width: 360px;
  max-width: 100%;
  height: auto;
}

.copyright-bar {
  margin-top: 50px;
  padding: 22px 0;
  text-align: center;
  border-top: 1px solid #102b44;
  font-size: 14px;
}

.copyright-bar .sep {
  margin: 0 6px;
}

.footer-game {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
}

.footer-game a {
  color: var(--footer-text);
}

.footer-game a:hover {
  color: #fff;
}

.footer-legal {
  margin: 0 0 12px;
  font-size: 13px;
}

/* 404 */
.breadcrumb-section {
  position: relative;
  padding: 220px 0 130px;
  background: #222 url("../images/breadcrumb.jpg") 0 0 / cover no-repeat;
}

.breadcrumb-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.breadcrumb-title {
  position: relative;
  z-index: 1;
  text-align: center;
}

.breadcrumb-title h1 {
  color: #fff;
  font-size: 42px;
  line-height: 50px;
  font-weight: 600;
  margin: 0;
}

.page-404 {
  background: #fff;
  text-align: center;
}

.heading-404 {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--heading);
}

.heading-404 span {
  font-size: 190px;
  line-height: 1.2;
}

.heading-404 .zero {
  color: var(--accent);
}

.page-404 h3 {
  font-size: 28px;
  margin: 0 0 24px;
}

.btn-home {
  display: inline-block;
  color: #fff;
  background: var(--accent);
  padding: 18px 35px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 3px;
  margin-top: 1.5rem;
}

.btn-home:hover {
  color: #fff;
  opacity: 0.92;
}

@media (max-width: 991.98px) {
  .ce-logo {
    width: auto;
    height: 90px;
    justify-content: flex-start;
  }

  .ce-logo img {
    width: 140px;
  }

  .header-inner {
    min-height: 90px;
  }

  .footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .slider-text h1 {
    font-size: 36px;
    line-height: 44px;
  }

  .slider-text p {
    font-size: 16px;
    line-height: 24px;
  }

  .service,
  .tech-card,
  .client-col {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .service {
    border-right: 0;
    border-bottom: 0;
  }

  .service-inner {
    border-bottom: 1px solid var(--border);
  }

  .client-col + .client-col {
    margin-top: 30px;
  }

  .testimonial {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-img {
    margin: 0 auto 18px;
  }

  .breadcrumb-section {
    padding: 160px 0 90px;
  }

  .breadcrumb-title h1 {
    font-size: 32px;
    line-height: 40px;
  }

  .heading-404 span {
    font-size: 100px;
    line-height: 1.5;
  }

  .page-404 h3 {
    font-size: 22px;
  }

  .copyright-bar {
    margin-top: 20px;
  }
}
