:root {
  --teal-1: #006d68;
  --teal-2: #00c6b3;
  --accent: #00e6c0;
  --glass: rgba(255, 255, 255, 0.06);
  --max-width: 1200px;
  --radius: 14px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

/* Page-wide resets */
body {
  margin: 0;
  color: #07323b;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* NAV */
.navbar {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.01)
  );
  transition: all 0.28s ease;
  position: sticky;
  top: 0;
  z-index: 1100;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.navbar.scrolled {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.6)
  );
  box-shadow: 0 6px 20px rgba(3, 18, 20, 0.06);
}

.navbar .logo {
  height: 44px;
  width: auto;
}

.brand-text {
  font-weight: 700;
  color: var(--teal-1);
  letter-spacing: 0.5px;
}

/* NAV links */
.nav-link {
  color: rgba(7, 50, 59, 0.85);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  transition: color 0.18s ease;
}
.nav-link:hover {
  color: var(--teal-1);
  font-weight: 600;
}

/* HERO */
.hero {
  /* min-height: 72vh; */
  min-height: 50vh;
  padding: 4rem 0;
  display: block;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-1) 0%, var(--teal-2) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  font-weight: 700;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.95);
  margin-top: 1rem;
  margin-bottom: 1.3rem;
}

/* CTA buttons */
.btn-cta {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.6rem 1.05rem;
  border-radius: 10px;
}
.btn-cta:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.95);
}

/* Sections */
section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.section-alt {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}

.hero-slider + section {
  padding-top: 2rem;
}

section h3 {
  color: var(--teal-1);
  font-weight: 700;
}

/* Image styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reveal animations (initial state) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: all 600ms cubic-bezier(0.16, 0.92, 0.35, 1);
}

/* When revealed */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Cards & lists */
ul {
  padding-left: 1.2rem;
}

/* Footer */
footer {
  background: linear-gradient(
    90deg,
    rgba(7, 50, 59, 0.03),
    rgba(7, 50, 59, 0.01)
  );
  color: rgba(7, 50, 59, 0.75);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .hero-visual img {
    display: none;
  }
}

/* Optional: hero background mobile/desktop */
.hero {
  background-image: url("hero-desktop.jpg");
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .hero {
    background-image: url("hero-mobile.jpg");
  }
}

/* small utility tweaks */
.container {
  max-width: var(--max-width);
}

/* subtle shadow for images */
.shadow-sm {
  box-shadow: 0 8px 22px rgba(6, 30, 30, 0.12);
  border-radius: 12px;
}

/* form inputs - slightly rounded */
.form-control {
  border-radius: 0.6rem;
}

/* small accent span */
.accent {
  color: #e9fff8;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
}

/* header sketch image style */
#header-sketch img {
  max-width: 680px;
  border: 1px solid rgba(7, 50, 59, 0.06);
  background: #fff;
  padding: 12px;
}

/* HERO SLIDER */
.hero-slider {
  position: relative;
  /* height: 75vh; */
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: absolute;
  top: 30%;
  max-width: 560px;
  left: 8%;
  color: #fff;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
  pointer-events: none;
  z-index: 1;
}

.slide-content {
  z-index: 2;
}

.circle-menu {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.circle-item {
  text-align: center;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.circle-item img {
  width: 60px;
  height: 60px;
  z-index: 5;
}

.circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(0, 255, 200, 0.15);
  position: absolute;
  top: -40px;
  left: -40px;
  z-index: 1;
}

/* Ripple Animation */
.ripple {
  animation: pulse 2.8s infinite ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.15);
    opacity: 0.25;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Slide bullets */
.slider-dots {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  pointer-events: auto;
}

.slider-dots .dot.active {
  background: #00e6c0;
}

/* Automation page specific styles */
.hero-inner {
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #006d68 0%, #00c6b3 100%),
    url("assets/automation-hero.jpg") center/cover no-repeat;
}

.service-card {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.service-card h5 {
  color: #006d68;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.brand-strip img {
  max-height: 48px;
  filter: grayscale(100%);
  opacity: 0.85;
}

/* Icon circle for Why Choose / Vision / Mission */
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 198, 179, 0.15);
  color: var(--teal-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}

/* Directional reveal animations (used WITH .reveal) */
.reveal-left {
  transform: translateX(-36px);
}

.reveal-right {
  transform: translateX(36px);
}

.reveal-scale {
  transform: scale(0.92);
}

/* Make sure these start hidden (same as .reveal) */
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
}

/* When visible */
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

/* Footer – Dark Brand Background */
footer {
  background: linear-gradient(135deg, var(--teal-1), var(--teal-2));
  color: rgba(255, 255, 255, 0.92);
}

/* Footer headings */
footer h2,
footer h5 {
  color: #ffffff;
}

/* Footer paragraph text */
footer p,
footer small {
  color: rgba(255, 255, 255, 0.85);
}

/* Footer links */
footer .nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0;
  font-weight: 500;
}

footer .nav-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Divider line */
footer hr {
  border-color: rgba(255, 255, 255, 0.25);
}

footer img {
  opacity: 0.95;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 198, 179, 0.15);
  color: var(--teal-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--teal-1);
  color: #fff;
  transform: translateY(-3px);
}

/* Footer social icons – dark footer version */
footer .social-link {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

footer .social-link:hover {
  background: #ffffff;
  color: var(--teal-1);
}

footer .btn-cta {
  background: #ffffff;
  color: var(--teal-1);
  border: none;
  font-weight: 600;
}

footer .btn-cta:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal-1);
}

footer iframe {
  filter: brightness(0.95) contrast(1.05);
}

footer h2 {
  font-size: 1.6rem;
}

footer h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

footer p {
  margin-bottom: 0.4rem;
}

.section-alt .btn-cta,
section:not(.hero):not(.hero-inner) .btn-cta {
  background: linear-gradient(135deg, var(--teal-1), var(--teal-2));
  color: #ffffff;
  border: none;
}

.section-alt .btn-cta:hover,
section:not(.hero):not(.hero-inner) .btn-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Home Page Additions */

#core-solutions h4 {
  color: var(--teal-1);
  font-weight: 700;
}

#engineering-process .row > div {
  font-weight: 500;
  color: #07323b;
}

.partner-strip {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.partner-strip img {
  max-height: 48px;
  opacity: 0.8;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.partner-strip img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

.bg-fixed {
  position: relative;
  background: url("assets/factory-bg.jpg") center / cover no-repeat fixed;
  padding: 3.5rem 0;
  color: #ffffff;
}

.bg-fixed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35));
  z-index: 1;
}

.bg-fixed .container {
  position: relative;
  z-index: 2;
}

.bg-fixed {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .bg-fixed {
    background-attachment: scroll;
    padding: 3rem 1rem;
  }
}

/* Engineering Process Flow */
.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.process-step {
  display: flex;
  align-items: center;
}

.step-box {
  background: #ffffff;
  border: 2px solid var(--teal-1);
  border-radius: 14px;
  padding: 22px 26px;
  min-width: 200px;
  text-align: center;
  font-weight: 600;
  color: #07323b;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.step-box.wide {
  min-width: 260px;
}

.process-arrow {
  font-size: 26px;
  color: var(--teal-1);
  font-weight: 700;
  user-select: none;
}

/* Hover polish */
.step-box:hover {
  background: linear-gradient(135deg, var(--teal-1), var(--teal-2));
  color: #ffffff;
  transform: translateY(-3px);
  transition: all 0.25s ease;
}

/* Mobile stack */
@media (max-width: 992px) {
  .process-flow {
    flex-direction: column;
  }

  .process-arrow {
    transform: rotate(90deg);
  }
}

/* Process box inner layout */
.step-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Bigger, clean icons */
.step-icon {
  font-size: 30px;
  color: var(--teal-1);
}

/* Text */
.step-text {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* Hover polish */
.step-box:hover .step-icon {
  color: #ffffff;
}

@media (max-width: 768px) {
  #engineering-process {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .step-box {
    min-width: 240px;
    padding: 18px 20px;
  }

  .process-arrow {
    font-size: 22px;
    margin: 6px 0;
  }
}

/* Carousel */
/* Fixed hero links */
.hero-links {
  position: absolute;
  bottom: 90px;
  left: 8%;
  display: flex;
  gap: 24px;
  z-index: 3;
}

/* Individual link */
.hero-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.hero-link i {
  font-size: 22px;
  color: #00e6c0;
}

.hero-link:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-links {
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
    flex-direction: column;
    gap: 12px;
  }

  .hero-link {
    justify-content: center;
    width: 260px;
  }
}
