/* ----- CONFIGURATION ----- */
:root {
  /* Primary, secondary colors */
  --color-brand: #2d7ae2;
  --color-brand-dark: #1e569e;
  --color-secondary: #051121;
  --color-tertiary: #091e38;

  /* Accent color */
  --color-accent: #363636;

  /* Off-white background(s) */
  --color-bg-alternate: #f8f8f8;
  --color-light-bg: #e4e4e4;
  --color-ligher-bg: #f7f7f7;

  /* Dark background for footer / sections */
  --color-dark-bg: #2f3833;

  /* Typography */
  --color-text: #1c1c1c;
  --color-muted: #6c757d;
  --color-page-heading: var(--color-ligher-bg);
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open-Sans", sans-serif;

  /* Other */
  --border-radius: 0.5rem;
  --border-radius-top-cap: 0.5rem 0.5rem 0 0;
  --primary-gradient: linear-gradient(
    0deg,
    var(--color-secondary) 0%,
    #12345e 100%
  );
  --transition: 0.25s ease;
}

/* ---- BASE STYLES ---- */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ---- HELPERS ---- */
.text-brand {
  color: var(--color-brand) !important;
}

.text-brand-dark {
  color: var(--color-brand-dark) !important;
}

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

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

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

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

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

.bg-light-alt {
  background-color: var(--color-light-bg) !important;
}

.border-radius-1 {
  border-radius: var(--border-radius) !important;
}

.border-radius-top-cap {
  border-radius: var(--border-radius-top-cap) !important;
}

/* ---- NAVBAR ---- */
.navbar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Navbar logo / brand text */
@media screen and (max-width: 415px) {
  .navbar-brand {
    width: 75%;
  }
}

/* Navigation links */
.navbar-nav {
  gap: 2rem;
}

@media screen and (max-width: 768px) {
  .navbar-nav {
    margin-top: 1.25rem;
    gap: 0.5rem;
  }
}

.navbar-nav .nav-link {
  color: var(--color-dark-bg);
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--border-radius);
  transition:
    color var(--transition),
    background var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-brand-dark);
}

/* Hamburger */
.navbar-toggler {
  border-color: var(--color-brand);
  border-radius: 2px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a5c3a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Linkedin btn */
.navbar .bi-linkedin {
  color: var(--color-brand);
  transition: 0.3s ease;
}

.navbar .bi-linkedin:hover {
  color: var(--color-brand-dark);
}

/* ---- HERO ---- */
.hero {
  background:
      linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.25) 100%),
      url("../assets/images/home-header-blue-circuits.jpg");
    background-size: auto, cover;
    background-position: center, right center;
    background-repeat: no-repeat;
    width: 100%;
    color: #fff;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 1200px) {
  .hero {
    background-position: center, right;
  }
}

@media screen and (max-width: 768px) 
{
  .hero {
      background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.25) 100%),
        url("../assets/images/home-header-blue-circuits-768.jpg");
        background-size: auto, cover;
          background-position: center;
          background-repeat: no-repeat;
    }
}

.hero h1 {
  color: #fff;
  font-size: clamp(3rem, 5vw, 3.4rem);
  max-width: 800px;
}

.hero p.lead {
  font-size: 1.2rem;
}

.hero-list {
  list-style: none;
}

.hero-list li {
  margin-bottom: 1rem;
}

.hero-list li::before {
  display: inline-block;
  font-family: "bootstrap-icons";
  font-size: 1rem;
  content: "\F272";
  margin-right: 10px;
  background: var(--color-brand);
  padding: 0 5px;
}

/* Hero SVG animation */
@media screen and (min-width: 1200px)
{
  .ultronix-banner-motion {
      position: relative;
      min-height: 520px;
      overflow: hidden;
      background: linear-gradient(90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05)), url('assets/ultronix-banner-image.png') center/cover no-repeat;
      font-family: Arial, Helvetica, sans-serif
    }
  
    .banner-motion-svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      pointer-events: none
    }
  
    .brand-blue-sweep {
      fill: none;
      stroke: rgba(77, 163, 255, .34);
      stroke-width: 3;
      stroke-linecap: round;
      stroke-dasharray: 160 900;
      stroke-dashoffset: 900;
      filter: drop-shadow(0 0 10px rgba(77, 163, 255, .35));
      animation: sweep 9s ease-in-out infinite
    }
  
    .brand-green-sweep {
      fill: none;
      stroke: rgba(46, 158, 68, .58);
      stroke-width: 4;
      stroke-linecap: round;
      stroke-dasharray: 130 850;
      stroke-dashoffset: 850;
      filter: drop-shadow(0 0 8px rgba(46, 158, 68, .42));
      animation: sweepGreen 10s ease-in-out infinite
    }
  
    .pcb-lines path {
      fill: none;
      stroke: rgba(255, 255, 255, .26);
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round
    }
  
    .pcb-signals path {
      fill: none;
      stroke: url(#blueSignal);
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 85 520;
      stroke-dashoffset: 520;
      opacity: 0;
      animation: signal 6.5s linear infinite
    }
  
    .pcb-signals .green {
      stroke: url(#greenSignal);
      animation-delay: 1.3s
    }
  
    .pcb-nodes circle {
      fill: rgba(255, 255, 255, .92);
      stroke: #2E9E44;
      stroke-width: 2.3;
      filter: drop-shadow(0 0 7px rgba(46, 158, 68, .7));
      animation: node 3.5s ease-in-out infinite
    }
  
    .pcb-nodes circle:nth-child(even) {
      stroke: #4DA3FF;
      filter: drop-shadow(0 0 7px rgba(77, 163, 255, .7));
      animation-delay: 1.1s
    }
  
    @keyframes signal {
      0% {
        stroke-dashoffset: 520;
        opacity: 0
      }
  
      14% {
        opacity: .9
      }
  
      76% {
        opacity: .9
      }
  
      100% {
        stroke-dashoffset: -220;
        opacity: 0
      }
    }
  
    @keyframes node {
  
      0%,
      100% {
        opacity: .45;
        transform: scale(1)
      }
  
      50% {
        opacity: .9;
        transform: scale(1.22)
      }
    }
  
    @keyframes sweep {
      0% {
        stroke-dashoffset: 900;
        opacity: 0
      }
  
      25% {
        opacity: .75
      }
  
      70% {
        opacity: .65
      }
  
      100% {
        stroke-dashoffset: -420;
        opacity: 0
      }
    }
  
    @keyframes sweepGreen {
      0% {
        stroke-dashoffset: 850;
        opacity: 0
      }
  
      30% {
        opacity: .78
      }
  
      72% {
        opacity: .66
      }
  
      100% {
        stroke-dashoffset: -360;
        opacity: 0
      }
    }
}

@media screen and (max-width: 992px) {
  .banner-motion-svg {
    display: none;
    visibility: hidden;
  }
}

/* ---- PAGE HEADING ---- */
.page-heading-wrapper {
  width: 100%;
  padding: 36px;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0.25) 100%),
    url("/assets/images/electronics-background.jpg");
  background-size: cover;
  background-position: center;
}

.page-heading {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.services-heading {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

/* ---- SECTIONS ---- */
section {
  padding: 3rem 0;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0 0 2rem;
}

.section-bg-alternate {
  background: var(--color-bg-alternate);
}

/* ---- CARDS ---- */
.service-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
  background: #fff;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius);
  background: rgba(26, 92, 58, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-brand);
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--color-muted);
  margin: 0;
}

/* ---- TESTIMONIAL CARD ---- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background: var(--color-ligher-bg);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  border: 2px solid var(--color-light-bg);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.testimonial-card p {
  font-style: italic;
  color: var(--color-text);
}

.testimonial-card .reviewer {
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  color: var(--color-brand);
  margin-top: 1rem;
  display: block;
}

.stars {
  color: #e8b217;
  letter-spacing: 0.1em;
}

/* Owl carousel */

/* Force owl-stage to flex so items share height */
.testimonials-carousel .owl-stage {
  display: flex;
}

.testimonials-carousel .owl-stage .owl-item {
  display: flex;
}

/* Stretch the wrapper to fill owl-item */
.testimonials-carousel .owl-stage .owl-item .single-testimonial {
  display: flex;
  width: 100%;
}

/* Card fills the full height of its wrapper */
.testimonials-carousel .owl-stage .owl-item .single-testimonial .testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Active dot color */
.testimonials-carousel .owl-dots button.owl-dot.active span {
  background: var(--color-brand-dark) !important;
}

/* ---- GENERAL CARD ---- */
.page-content-card {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background: var(--color-ligher-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 2px solid var(--color-light-bg);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.page-content-card .subheading {
  color: var(--color-brand);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background:
    linear-gradient(
      0deg,
      var(--color-secondary) 0%,
      rgba(18, 52, 94, 75%) 100%
    ),
    url("../assets/images/circuits-bg.jpg");
  color: #fff;
  text-align: center;
  padding: 4.5rem 1rem;
}

.cta-banner h3 {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.cta-banner p {
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.btn-accent {
  background: var(--color-brand);
  color: #fff;
  border: 2px solid var(--color-brand);
  padding: 0.65rem 2rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  transition:
    background var(--transition),
    color var(--transition);
}

.btn-accent:hover {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--color-brand);
  color: var(--color-light-bg);
}

/* ---- SERVICE DETAILS ---- */
.service-details {
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 992px) {
  .service-details {
    width: 75%;
    margin: 0 auto;
  }
}

.service-details-body {
  flex: 1;
}

.service-details-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1.3rem;
}

/* ---- CONTACT FORM ---- */
.contact-form {
  border: 2px solid var(--color-light-bg);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--border-radius);
  background: rgba(26, 92, 58, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-brand);
}

.form-control,
.form-select {
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 0.2rem rgba(26, 92, 58, 0.15);
}

/* ---- BUTTONS ---- */
.btn-brand {
  background-color: var(--color-brand);
  color: #fff;
  border: 2px solid var(--color-brand);
  border-radius: var(--border-radius);
  padding: 0.6rem 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    background var(--transition),
    color var(--transition);
}

.btn-brand:hover {
  background-color: transparent;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
  border-radius: var(--border-radius);
}

.btn-outline-brand {
  background-color: transparent;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
  border-radius: var(--border-radius);
  padding: 0.6rem 1.6rem;
  font-weight: 600;
  transition:
    background var(--transition),
    color var(--transition);
}

.btn-outline-brand:hover {
  background-color: var(--color-brand);
  color: #fff;
}

/* ---- FOOTER ---- */
footer {
  background: var(--color-secondary);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

footer a {
  color: rgba(255, 255, 255, 0.6);
}

footer a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #fff;
}

.footer-brand span {
  color: var(--color-accent);
}

.footer-blurb {
  max-width: 350px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding: 1.2rem 0;
  font-size: 0.85rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  margin-right: 0.4rem;
  transition:
    background var(--transition),
    color var(--transition);
}

.social-links a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}