/**
 * Servenergy IT Consultancy
 * Blue / Black / White Theme
 * Custom CSS
 */

/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;

  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #111111;

  --accent-color: #0078d7;
  --accent-light: #0088e8;
  --accent-dark: #005fa8;

  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  --nav-color: #ffffff;
  --nav-hover-color: #0088e8;

  scroll-behavior: smooth;
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--default-color);
  background: var(--background-color);
  font-family: var(--default-font);
  overflow-x: hidden;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

button,
a {
  outline: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
  --background-color: #171717;
  --default-color: #ffffff;
  --heading-color: #ffffff;

  width: 100%;
  background: #171717;
  color: #ffffff;

  padding: 12px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  z-index: 997;

  transition: all 0.4s ease;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.header .logo img {
  max-height: 55px;
  width: auto;
  margin-right: 10px;
}

.header .logo h1 {
  margin: 0;
  color: #ffffff;
  font-size: 27px;
  font-weight: 700;
}

.header .logo span {
  color: var(--accent-color);
}


/* =========================================================
   HEADER SCROLL
   ========================================================= */

.scrolled .header {
  background: #111111;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

@media (min-width: 1200px) {

  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;

    list-style: none;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu > ul > li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu > ul > li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: rgba(255, 255, 255, 0.92);

    font-family: var(--nav-font);
    font-size: 15px;
    font-weight: 600;

    padding: 0 2px;

    transition: all 0.3s ease;
  }

  .navmenu a i {
    margin-left: 5px;
    font-size: 12px;
  }

  .navmenu > ul > li > a::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: -25px;

    width: 0;
    height: 3px;

    background: var(--accent-color);

    visibility: hidden;

    transition: all 0.3s ease;
  }

  .navmenu > ul > li > a:hover::before,
  .navmenu > ul > li:hover > a::before,
  .navmenu > ul > li > a.active::before {
    width: 100%;
    visibility: visible;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: #ffffff;
  }

  .navmenu li:hover > a {
    color: var(--accent-light);
  }


  /* =====================================================
     DROPDOWN
     ===================================================== */

  .navmenu .dropdown ul {
    position: absolute;

    left: 14px;
    top: 130%;

    min-width: 210px;

    margin: 0;
    padding: 10px 0;

    background: #ffffff;

    display: block;

    opacity: 0;
    visibility: hidden;

    border-radius: 5px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);

    transition: all 0.3s ease;
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    color: #222222;

    padding: 10px 20px;

    font-size: 14px;
    font-weight: 500;
  }

  .navmenu .dropdown ul a:hover {
    color: var(--accent-color);
    background: rgba(0, 120, 215, 0.06);
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 1199px) {

  .mobile-nav-toggle {
    color: #ffffff;

    font-size: 30px;

    cursor: pointer;

    transition: all 0.3s ease;
  }

  .mobile-nav-toggle:hover {
    color: var(--accent-light);
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;

    position: absolute;

    inset: 60px 20px 20px 20px;

    padding: 10px 0;
    margin: 0;

    list-style: none;

    background: #ffffff;

    border-radius: 6px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

    overflow-y: auto;
  }

  .navmenu a {
    color: #222222;

    padding: 12px 20px;

    font-family: var(--nav-font);

    font-size: 16px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navmenu a:hover,
  .navmenu .active {
    color: var(--accent-color);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #ffffff;

    position: absolute;

    right: 15px;
    top: 15px;

    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.85);
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  width: 100%;
  min-height: 100vh;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 100px 0;

  overflow: hidden;
}

.hero img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: 1;
}

.hero::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    rgba(0, 0, 0, 0.70),
    rgba(0, 0, 0, 0.72)
  );

  z-index: 2;
}

.hero::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(0, 72, 130, 0.15),
    transparent 50%,
    rgba(0, 120, 215, 0.08)
  );

  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;

  max-width: 1000px;

  color: #ffffff;

  font-family: var(--heading-font);

  font-size: 52px;

  line-height: 1.15;

  font-weight: 800;

  letter-spacing: 0.5px;
}

.hero h2 span {
  color: var(--accent-light);
}

.hero p {
  max-width: 850px;

  margin: 20px auto 0;

  color: rgba(255, 255, 255, 0.90);

  font-size: 20px;

  line-height: 1.7;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.btn-get-started {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 160px;

  padding: 13px 30px;

  background: var(--accent-color);

  color: #ffffff;

  border: 2px solid var(--accent-color);

  border-radius: 3px;

  font-family: var(--heading-font);

  font-size: 15px;

  font-weight: 700;

  letter-spacing: 0.4px;

  transition: all 0.3s ease;
}

.btn-get-started:hover {
  background: var(--accent-light);

  border-color: var(--accent-light);

  color: #ffffff;

  transform: translateY(-2px);

  box-shadow: 0 8px 25px rgba(0, 120, 215, 0.35);
}


/* =========================================================
   SECTIONS
   ========================================================= */

section,
.section {
  width: 100%;

  color: var(--default-color);

  background: var(--background-color);

  padding: 80px 0;

  scroll-margin-top: 72px;

  overflow: hidden;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {
  padding-bottom: 50px;

  position: relative;
}

.section-title h2 {
  position: relative;

  display: inline-block;

  margin: 0 0 20px;

  padding-bottom: 15px;

  color: #111111;

  font-size: 34px;

  font-weight: 800;
}

.section-title h2::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 55px;
  height: 4px;

  background: var(--accent-color);
}

.section-title p {
  margin: 0;

  color: #666666;

  font-size: 16px;

  line-height: 1.7;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
  background: #ffffff;
}

.about .content p {
  line-height: 1.8;
  font-size: 16px;
}

.about ul {
  margin: 25px 0 0;
  padding: 0;

  list-style: none;
}

.about ul li {
  display: flex;
  align-items: flex-start;

  padding-bottom: 14px;

  color: #444444;

  line-height: 1.6;
}

.about ul li i {
  flex-shrink: 0;

  margin-right: 10px;

  color: var(--accent-color);

  font-size: 20px;
}

.about .read-more {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin-top: 20px;

  padding: 12px 28px;

  background: var(--accent-color);

  color: #ffffff;

  border-radius: 3px;

  font-family: var(--heading-font);

  font-weight: 600;

  transition: all 0.3s ease;
}

.about .read-more:hover {
  background: var(--accent-light);

  color: #ffffff;

  transform: translateX(3px);
}

.about .read-more i {
  margin-left: 8px;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services {
  background: #f5f7fa;
}

.services .service-item {
  position: relative;

  height: 100%;

  padding: 40px 30px;

  background: #ffffff;

  border: 1px solid #e7e7e7;

  border-bottom: 4px solid transparent;

  border-radius: 6px;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);

  transition: all 0.35s ease;
}

.services .service-item:hover {
  transform: translateY(-8px);

  border-bottom-color: var(--accent-color);

  box-shadow: 0 15px 40px rgba(0, 120, 215, 0.14);
}

.services .service-item .icon {
  width: 65px;
  height: 65px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 22px;

  background: var(--accent-color);

  color: #ffffff;

  border-radius: 5px;

  font-size: 28px;

  transition: all 0.3s ease;
}

.services .service-item:hover .icon {
  background: var(--accent-light);

  transform: translateY(-3px);
}

.services .service-item h3 {
  margin: 0 0 15px;

  color: #222222;

  font-size: 21px;

  font-weight: 700;

  transition: all 0.3s ease;
}

.services .service-item:hover h3 {
  color: var(--accent-color);
}

.services .service-item p {
  margin: 0;

  color: #666666;

  font-size: 14px;

  line-height: 1.7;
}


/* =========================================================
   CALL TO ACTION
   ========================================================= */

.call-to-action {
  position: relative;

  padding: 100px 0;

  background: #111111;

  overflow: hidden;
}

.call-to-action img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: 1;
}

.call-to-action::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.88),
    rgba(0, 0, 0, 0.72)
  );

  z-index: 2;
}

.call-to-action .container {
  position: relative;

  z-index: 3;
}

.call-to-action h3 {
  margin-bottom: 15px;

  color: #ffffff;

  font-size: 30px;

  font-weight: 800;
}

.call-to-action p {
  margin: 0;

  color: rgba(255, 255, 255, 0.80);

  font-size: 16px;

  line-height: 1.7;
}

.call-to-action .cta-btn {
  display: inline-block;

  padding: 13px 32px;

  background: var(--accent-color);

  color: #ffffff;

  border: 2px solid var(--accent-color);

  border-radius: 3px;

  font-family: var(--heading-font);

  font-size: 15px;

  font-weight: 700;

  transition: all 0.3s ease;
}

.call-to-action .cta-btn:hover {
  background: transparent;

  color: #ffffff;

  border-color: var(--accent-light);
}


/* =========================================================
   FEATURES
   ========================================================= */

.features {
  background: #ffffff;
}

.features .features-image {
  position: relative;

  min-height: 420px;

  overflow: hidden;

  border-radius: 5px;
}

.features .features-image img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.features .features-image:hover img {
  transform: scale(1.04);
}

.features .features-item {
  padding-right: 15px;
}

.features .features-item i {
  flex-shrink: 0;

  margin-right: 20px;

  color: var(--accent-color);

  font-size: 40px;

  line-height: 1;
}

.features .features-item h4 {
  margin: 0 0 8px;

  color: #222222;

  font-size: 20px;

  font-weight: 700;
}

.features .features-item p {
  margin: 0;

  color: #666666;

  font-size: 15px;

  line-height: 1.7;
}


/* =========================================================
   PROJECTS / PORTFOLIO
   ========================================================= */

.portfolio {
  background: #f5f7fa;
}

.portfolio .portfolio-content {
  position: relative;

  height: 100%;

  overflow: hidden;

  background: #ffffff;

  border-radius: 5px;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.portfolio .portfolio-content img {
  width: 100%;

  display: block;

  transition: transform 0.5s ease;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.06);
}

.portfolio .portfolio-info {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  padding: 22px;

  background: linear-gradient(
    transparent,
    rgba(0, 0, 0, 0.90)
  );

  opacity: 0;

  transform: translateY(20px);

  transition: all 0.35s ease;
}

.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;

  transform: translateY(0);
}

.portfolio .portfolio-info h4 {
  margin: 0 0 5px;

  color: #ffffff;

  font-size: 19px;

  font-weight: 700;
}

.portfolio .portfolio-info p {
  margin: 0;

  color: rgba(255, 255, 255, 0.80);

  font-size: 14px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  background: #ffffff;
}

.contact .info-item {
  height: 100%;

  padding: 25px;

  background: #f7f9fb;

  border-left: 4px solid var(--accent-color);

  border-radius: 4px;

  transition: all 0.3s ease;
}

.contact .info-item:hover {
  background: #ffffff;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

  transform: translateY(-4px);
}

.contact .info-item i {
  flex-shrink: 0;

  width: 48px;
  height: 48px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-right: 15px;

  background: var(--accent-color);

  color: #ffffff;

  border-radius: 50%;

  font-size: 20px;
}

.contact .info-item h3 {
  margin: 0 0 5px;

  color: #222222;

  font-size: 18px;

  font-weight: 700;
}

.contact .info-item p {
  margin: 0;

  color: #666666;

  font-size: 14px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  position: relative;

  padding: 50px 0 25px;

  background: #111111;

  color: #ffffff;

  text-align: center;
}

.footer h3 {
  margin: 0 0 15px;

  color: #ffffff;

  font-size: 30px;

  font-weight: 700;
}

.footer p {
  color: rgba(255, 255, 255, 0.70);

  font-size: 14px;
}

.footer .social-links {
  margin: 25px 0;
}

.footer .social-links a {
  width: 40px;
  height: 40px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin: 0 4px;

  background: #222222;

  color: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 50%;

  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  background: var(--accent-color);

  border-color: var(--accent-color);

  color: #ffffff;

  transform: translateY(-3px);
}

.footer .copyright {
  padding-top: 25px;

  border-top: 1px solid rgba(255, 255, 255, 0.10);

  color: rgba(255, 255, 255, 0.65);

  font-size: 13px;
}

.footer .credits {
  padding-top: 5px;

  color: rgba(255, 255, 255, 0.50);

  font-size: 12px;
}


/* =========================================================
   PRELOADER
   ========================================================= */

#preloader {
  position: fixed;

  inset: 0;

  z-index: 9999;

  background: #111111;

  transition: all 0.5s ease;
}

#preloader::before {
  content: "";

  position: fixed;

  top: calc(50% - 25px);
  left: calc(50% - 25px);

  width: 50px;
  height: 50px;

  border: 5px solid rgba(255, 255, 255, 0.15);

  border-top-color: var(--accent-color);

  border-radius: 50%;

  animation: servenergy-preloader 1s linear infinite;
}

@keyframes servenergy-preloader {

  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }

}


/* =========================================================
   SCROLL TOP
   ========================================================= */

.scroll-top {
  position: fixed;

  right: 20px;
  bottom: 20px;

  width: 45px;
  height: 45px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: var(--accent-color);

  color: #ffffff;

  border-radius: 4px;

  visibility: hidden;

  opacity: 0;

  z-index: 99999;

  transition: all 0.3s ease;
}

.scroll-top i {
  color: #ffffff;

  font-size: 22px;

  line-height: 0;
}

.scroll-top:hover {
  background: var(--accent-light);

  color: #ffffff;

  transform: translateY(-3px);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}


/* =========================================================
   BOOTSTRAP BUTTON
   ========================================================= */

.btn-primary {
  background: var(--accent-color) !important;

  border-color: var(--accent-color) !important;

  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--accent-light) !important;

  border-color: var(--accent-light) !important;
}


/* =========================================================
   TEXT COLORS
   ========================================================= */

.text-primary {
  color: var(--accent-color) !important;
}

.bg-primary {
  background-color: var(--accent-color) !important;
}


/* =========================================================
   FORM
   ========================================================= */

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-color) !important;

  box-shadow: 0 0 0 0.15rem rgba(0, 120, 215, 0.15) !important;

  outline: none;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 991px) {

  .hero h2 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }

  section,
  .section {
    padding: 65px 0;
  }

  .features .features-image {
    min-height: 350px;
  }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .hero {
    min-height: 85vh;

    padding: 90px 20px;
  }

  .hero h2 {
    font-size: 34px;

    line-height: 1.2;
  }

  .hero p {
    font-size: 16px;

    line-height: 1.6;
  }

  .hero .d-flex {
    flex-direction: column;

    width: 100%;

    max-width: 220px;

    margin-left: auto;
    margin-right: auto;
  }

  .btn-get-started {
    width: 100%;
  }

  .section-title h2 {
    font-size: 29px;
  }

  .call-to-action {
    padding: 75px 0;
  }

  .call-to-action h3 {
    font-size: 26px;
  }
}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================= */

@media (max-width: 575px) {

  .hero h2 {
    font-size: 29px;
  }

  .hero p {
    font-size: 15px;
  }

  .section-title {
    padding-bottom: 35px;
  }

  .services .service-item {
    padding: 30px 25px;
  }

  .features .features-image {
    min-height: 280px;
  }

  .contact .info-item {
    padding: 20px;
  }
}
/* =========================================================
   HOMEPAGE TESTIMONIALS
========================================================= */

#testimonials {
    position: relative;
}

#testimonials .testimonial-home-description {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    line-height: 1.8;
}

#testimonials .testimonial-home-description p {
    margin-bottom: 0;
}

#testimonials .testimonial-home-rating {
    display: flex;
    gap: 5px;
    align-items: center;
}

#testimonials .testimonial-home-rating i {
    font-size: 18px;
}

#testimonials .testimonial-home-client {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#testimonials .testimonial-home-client strong {
    font-size: 17px;
}

#testimonials .testimonial-home-meta {
    font-size: 14px;
    opacity: 0.75;
}


/* =========================================================
   PREVIOUS / NEXT
========================================================= */

#testimonials .testimonial-navigation {
    display: flex;
    gap: 12px;
    align-items: center;
}

#testimonials .testimonial-nav-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#testimonials .testimonial-nav-btn:hover {
    background: #ffffff;
    color: #0b2340;
}

#testimonials .testimonial-nav-btn i {
    margin: 0 4px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1199px) {

    #testimonials .testimonial-navigation {
        justify-content: center;
    }

    #testimonials .cta-btn-container {
        margin-top: 25px;
    }

}


@media (max-width: 767px) {

    #testimonials .testimonial-home-description {
        font-size: 16px;
        line-height: 1.7;
    }

    #testimonials .testimonial-navigation {
        flex-wrap: wrap;
    }

    #testimonials .testimonial-nav-btn {
        padding: 9px 15px;
    }

}