/* 
 * Engitech Theme for myTechs
 * A modern theme inspired by Engitech design
 * To be used alongside existing stylesheets
 */

/* Import Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Color Variables */
:root {
  --primary: #0e59f2;
  --primary-dark: #0b3edb;
  --navy: #0b1b2b;
  --navy-dark: #091623;
  --gray-bg: #f6f7fb;
  --text: #1f2937;
  --muted: #6b7280;
  --link-hover: #00d0ff;
  --white: #ffffff;
  --light: #f8f9fa;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-hover: rgba(14, 89, 242, 0.1);
}

/* Base Typography */
body {
  font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 48px;
  line-height: 1.2;
}

h2 {
  font-size: 36px;
  line-height: 1.2;
}

h2.titlelet {
  text-transform: uppercase;
  font-size: 38px;
  position: relative;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--navy);
}

h2.titlelet:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  transform: translateX(-50%);
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

p {
  margin-bottom: 20px;
  color: var(--muted);
}

a {
  color: var(--primary);
  transition: all 0.3s ease;
}

a:hover, a:focus {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Topbar */
.topbar {
  background-color: var(--navy);
  padding: 10px 0;
  font-size: 13px;
}

.topbar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.topbar p > i {
  margin-right: 8px;
  color: var(--primary);
}

/* Navbar */
header .navbar {
  min-height: 80px;
  padding: 0;
  background: var(--white);
  box-shadow: 0 3px 10px var(--shadow);
  transition: all 0.3s ease;
}

.navbar-brand {
  padding: 15px 0;
}

.navbar-brand img {
  height: 50px;
  transition: all 0.3s ease;
}

/* --- Logo hover swap (black to blue) --- */
.navbar-brand {
  position: relative;
  display: inline-block;
}

.navbar-brand .logo-default,
.navbar-brand .logo-hover {
  height: 50px;
  display: block;
}

/* hover variant sits on top but hidden until hover */
.navbar-brand .logo-hover {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.navbar-brand .logo-default {
  position: relative;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.navbar-brand:hover .logo-hover {
  opacity: 1;
}

.navbar-brand:hover .logo-default {
  opacity: 0;
}
header .navbar-nav > li > a {
  padding: 30px 15px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
}

header .navbar-nav > li > a:hover,
header .navbar-nav > li > a:focus,
header .nav li.active a {
  color: var(--primary);
}

header .navbar-nav > li > a:after {
  content: '';
  position: absolute;
  bottom: 25px;
  left: 15px;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

header .navbar-nav > li > a:hover:after,
header .nav li.active a:after {
  width: calc(100% - 30px);
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: var(--primary);
  background-color: transparent;
}

.dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: 0 5px 15px var(--shadow);
  padding: 10px 0;
}

.dropdown-menu li a {
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text);
  transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
  color: var(--white) !important;
  background-color: var(--primary) !important;
  padding-left: 25px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  padding: 12px 30px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.btn-primary {
  color: var(--white);
  background-color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
  color: var(--white);
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 89, 242, 0.3);
}

/* Flexslider */
#main-slider:before {
  content: '';
  width: 100%;
  height: 100%;
  background: rgba(11, 27, 43, 0.7);
  z-index: 1;
  position: absolute;
}

.flex-caption {
  bottom: 50%;
  transform: translateY(50%);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 30px;
}

.flex-caption h3 {
  color: var(--white);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.flex-caption p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Call to Action Section */
#call-to-action-2 {
  background-color: var(--primary);
  padding: 50px 0;
}

#call-to-action-2 h3 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 10px;
}

#call-to-action-2 p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-bottom: 0;
}

#call-to-action-2 .btn-primary {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
  margin-top: 15px;
}

#call-to-action-2 .btn-primary:hover {
  background-color: transparent;
  color: var(--white);
}

/* Content Section */
#content {
  padding: 80px 0 50px;
}

.section-padding.gray-bg {
  background-color: var(--gray-bg);
  padding: 80px 0;
}

.aligncenter {
  text-align: center;
}

/* Service Pods */
.mt-pods {
  margin-top: 50px;
}

.mt-pod {
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.mt-pod .textwidget {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  padding: 30px;
}

.mt-pod .textwidget:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-hover);
}

.mt-pod .img {
  margin-bottom: 25px;
  display: block;
  text-align: center;
}

.mt-pod .img img {
  max-height: 80px;
  transition: all 0.3s ease;
}

/* ------------------------------------------------------------------
 *  Disable legacy sprite-shift that caused duplicate icons
 * ----------------------------------------------------------------*/
.mt-pods .mt-pod .img {          /* allow natural logo size */
  height: auto !important;
  overflow: visible !important;
}

.mt-pods .mt-pod .img img {      /* keep image in normal flow */
  position: static !important;
}

.mt-pods .mt-pod:hover .img img { /* stop upward shift on hover */
  top: 0 !important;
}

/* --- Service icon colorization (black → blue on hover) --- */
.mt-pod .img img {
  /* convert colored png/svg to black tone */
  filter: grayscale(1) brightness(0) contrast(100%);
  opacity: 0.9;
}

.mt-pod .textwidget:hover .img img {
  /* apply a filter approximating the brand blue (#0e59f2) */
  filter: invert(31%) sepia(97%) saturate(6692%) hue-rotate(210deg)
          brightness(95%) contrast(103%);
  opacity: 1;
}

.mt-pod .blck-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--navy);
  transition: all 0.3s ease;
}

.mt-pod .textwidget:hover .blck-title {
  color: var(--primary);
}

.mt-pod p {
  color: var(--muted);
  margin-bottom: 0;
}

/* About Section */
.about-text p {
  margin-bottom: 20px;
  color: var(--muted);
}

.about-text ul.withArrow li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text);
}

.about-text ul.withArrow li span {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 50%;
  height: 20px;
  width: 20px;
  line-height: 18px;
  text-align: center;
  font-size: 11px;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px var(--shadow);
}

/* Footer */
footer {
  background-color: var(--navy-dark);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

footer .widget h5.widgetheading {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

footer .widget h5.widgetheading:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

footer ul.link-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
}

footer ul.link-list li:first-child {
  padding-top: 0;
}

footer ul.link-list li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

footer ul.link-list li a:hover {
  color: var(--link-hover);
  padding-left: 5px;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
}

#sub-footer {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 60px;
}

#sub-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

ul.social-network {
  margin: 0;
  padding: 0;
}

ul.social-network li {
  display: inline-block;
  margin: 0 5px;
  /* remove legacy square container that was inherited
     from older theme layers */
  border: none !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
}

ul.social-network li a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

ul.social-network li a:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Scroll to Top */
.scrollup {
  position: fixed;
  width: 40px;
  height: 40px;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary);
  border-radius: 4px;
  text-align: center;
  color: var(--white);
  z-index: 999;
  transition: all 0.3s ease;
}

.scrollup:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

.scrollup i {
  line-height: 40px;
  color: var(--white);
}

/* Media Queries */
@media (max-width: 991px) {
  header .navbar-nav > li > a {
    padding: 20px 10px;
  }
  
  .navbar-brand {
    padding: 15px 0;
  }
  
  .flex-caption h3 {
    font-size: 40px;
  }
  
  .flex-caption p {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  header .navbar {
    min-height: 60px;
  }
  
  .navbar-brand {
    padding: 10px 15px;
  }
  
  header .navbar-nav > li > a {
    padding: 12px 15px;
  }
  
  header .navbar-nav > li > a:after {
    display: none;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    box-shadow: 0 5px 10px var(--shadow);
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .flex-caption {
    bottom: 30%;
    padding: 0 20px;
  }
  
  .flex-caption h3 {
    font-size: 30px;
  }
  
  .flex-caption p {
    font-size: 14px;
  }
  
  #content, .section-padding.gray-bg {
    padding: 50px 0;
  }
  
  footer {
    padding: 50px 0 0;
  }
  
  footer .widget {
    margin-bottom: 30px;
  }
}

/* ------------------------------------------------------------------
 *  Additional Engitech-like Elements
 * ----------------------------------------------------------------*/

/* ==========  Hero (Full-bleed)  ========== */
.hero-engitech {
  position: relative;
  width: 100%;
  min-height: 80vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-engitech:before {            /* dark overlay */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 27, 43, 0.65);
  z-index: 1;
}

.hero-engitech .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero-engitech .pretitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
  background-color: rgba(14, 89, 242, 0.15);
  color: var(--white);
  margin-bottom: 20px;
}

.hero-engitech h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 25px;
  color: var(--white);
}

.hero-engitech p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
}

/* ==========  Buttons  ========== */
.btn-outline {
  color: var(--primary);
  background-color: transparent;
  border: 2px solid var(--primary);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(14, 89, 242, 0.3);
  transform: translateY(-2px);
}

/* ==========  CTA Bar  ========== */
.cta-bar-engitech {
  background-color: var(--primary);
  padding: 60px 0;
  text-align: center;
}

.cta-bar-engitech h3 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 20px;
}

.cta-bar-engitech .btn-primary {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.cta-bar-engitech .btn-primary:hover {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ------------------------------------------------------------------
 *  Header – persistent hamburger (upper-right) & always-collapsed menu
 * ----------------------------------------------------------------*/

/* Ensure brand stays left and burger right on all viewports */
.navbar-header {
  width: 100%;
}

.navbar-brand {
  float: left;
}

.navbar-toggle {
  display: block;
  float: right;
  margin: 22px 0;
  border: none;
  background: transparent;
}

.navbar-toggle .icon-bar {
  background: var(--navy);
  height: 2px;
}

/* ---------------------------------------------------------------
 *  Remove gray square on burger hover/focus & keep clean look
 * ------------------------------------------------------------- */
.navbar-toggle,
.navbar-default .navbar-toggle {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.navbar-toggle:hover,
.navbar-toggle:focus,
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Maintain dark bar color even after Bootstrap overrides */
.navbar-toggle .icon-bar {
  background: var(--navy) !important;
}

/* Hide full nav until toggled – even on desktop */
@media (min-width: 768px) {
  .navbar-collapse.collapse {
    display: none !important;
  }
  .navbar-collapse.collapse.in {
    display: block !important;
  }

  /* Dropdown-style panel for collapsed nav on larger screens */
  .navbar-collapse {
    position: absolute;
    right: 15px;
    top: 80px;
    background: var(--white);
    min-width: 280px;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow);
    padding: 10px 0;
  }

  /* Force vertical list */
  .navbar-collapse .nav,
  .navbar-collapse .navbar-nav {
    float: none !important;
  }
  .navbar-collapse .navbar-nav > li {
    float: none !important;
  }
  .navbar-collapse .navbar-nav > li > a {
    padding: 12px 20px;
    display: block;
  }
}

/* Mobile tweaks */
@media (max-width: 767px) {
  .navbar-toggle {
    margin: 14px 0;
  }

  /* Ensure vertical stacking in mobile collapsed panel */
  .navbar-collapse .navbar-nav {
    float: none !important;
  }
  .navbar-collapse .navbar-nav > li {
    float: none !important;
  }
}

/* ------------------------------------------------------------------
 *  Footer – contact band & service links menu (Engitech style)
 * ----------------------------------------------------------------*/

.footer-top {
  background: var(--navy-dark);
  padding: 50px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contacts .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contacts .contact-item i {
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  margin-top: 3px;
}

.footer-contacts .contact-item h5 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 5px;
  font-weight: 600;
}

.footer-contacts .contact-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.footer-brand-menu {
  align-items: center;
  margin-top: 20px;
}

.footer-logo img {
  height: 40px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
  justify-content: flex-end;
}

.footer-menu li a {
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
}

.footer-menu li a:hover {
  color: var(--link-hover);
}

@media (max-width: 767px) {
  .footer-menu {
    justify-content: flex-start;
    margin-top: 15px;
  }
}

/* ------------------------------------------------------------------
 *  Utility helpers for simplified footer & logo
 * ----------------------------------------------------------------*/

/* Center footer menu when using the compact footer layout */
.footer-menu-centered {
  justify-content: center;
}

/* Top-center footer logo spacing */
.footer-logo {
  display: inline-block;
  margin: 0 auto 15px;
}

/* ------------------------------------------------------------------
 *  Disable legacy logo hover-swap (always show single blue logo)
 * ----------------------------------------------------------------*/

.navbar-brand .logo-hover,
.navbar-brand .logo-default {
  opacity: 1 !important;
  position: static !important;
  transition: none !important;
}

.navbar-brand:hover .logo-hover,
.navbar-brand:hover .logo-default {
  opacity: 1 !important;
}

/********************************************************************
 *  Footer contact info row (centered, icon above value, label below)
 ********************************************************************/
.footer-contacts {
  margin: 40px 0 20px;
}

.footer-contacts .contact-item {
  /* force vertical stack & center */
  display: block;
  text-align: center;
}

.footer-contacts .contact-item i {
  display: block;
  font-size: 38px;
  color: var(--primary);
  margin: 0 auto 12px;
}

.footer-contacts .contact-value {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.footer-contacts .contact-value a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-contacts .contact-value a:hover {
  color: var(--link-hover);
}

.footer-contacts .contact-label {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}
