* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #07111f;
  color: #ffffff;
}

img {
  display: block;
  max-width: 100%;
}

/* TOP HEADER */
.top-header {
  background: #020617;
  display: flex;
  justify-content: center;
  padding: 18px 20px;
}

.top-header img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

/* NAV */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 16px 20px;
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
}

.main-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.main-nav a:hover {
  color: #38bdf8;
}

.contact-btn {
  background: #0ea5e9;
  color: white !important;
  padding: 11px 20px;
  border-radius: 5px;
}

/* HERO */
.hero {
  min-height: 780px;
  background:
    linear-gradient(to right, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.80), rgba(2, 6, 23, 0.25)),
    url("images/Hero-Machine.png");
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: center;
  padding: 90px 7%;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 900;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  margin: 18px 0 24px;
  text-transform: uppercase;
}

.hero p {
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1.65;
}

.buttons {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 28px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 4px;
}

.primary {
  background: #0ea5e9;
  color: white;
}

.secondary {
  border: 1px solid #38bdf8;
  color: white;
}

/* TRUST BAR */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #020617;
}

.trust-bar div {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.trust-bar h3 {
  color: #38bdf8;
  font-size: 28px;
  margin: 0 0 8px;
}

.trust-bar p {
  color: #cbd5e1;
  margin: 0;
}

/* SPECIALIZED */
.specialized {
  padding: 95px 7%;
  background: linear-gradient(135deg, #020617, #0f172a);
  text-align: center;
}

.specialized h2,
.services h2,
.split-content h2,
.why h2,
.contact h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  margin: 12px auto 24px;
  max-width: 1000px;
}

.specialized p {
  max-width: 1000px;
  margin: 0 auto;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.brand-grid {
  margin: 45px auto 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.brand-grid div {
  background: #172033;
  padding: 22px 15px;
  border-top: 4px solid #0ea5e9;
  font-weight: 900;
  font-size: 18px;
}

/* SERVICES */
.services {
  padding: 95px 7%;
  background: #0f172a;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.card {
  min-height: 460px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-top: 4px solid #0ea5e9;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.service-work { background-image: url("images/service.png"); }
.spindle-work { background-image: url("images/Spindle.png"); }
.alignment-work { background-image: url("images/Alignment.png"); }

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.95));
}

.card div {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.card h3 {
  font-size: 28px;
  margin: 0 0 12px;
}

.card p {
  color: #cbd5e1;
  line-height: 1.65;
}

/* SPLIT SECTIONS */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 660px;
}

.split-image {
  background-size: cover;
  background-position: center;
}

.inspection-image {
  background-image:
    linear-gradient(rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.55)),
    url("images/inspection.png");
}

.service-image {
  background-image:
    linear-gradient(rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.6)),
    url("images/Service-work.png");
}

.split-content {
  padding: 90px 10%;
  background: linear-gradient(135deg, #020617, #111827);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-content p,
.contact p {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.split-content ul {
  padding-left: 0;
  list-style: none;
  margin-top: 24px;
}

.split-content li {
  color: #e2e8f0;
  margin-bottom: 14px;
  padding-left: 30px;
  position: relative;
}

.split-content li::before {
  content: "✓";
  color: #38bdf8;
  font-weight: 900;
  position: absolute;
  left: 0;
}

/* WHY */
.why {
  padding: 95px 7%;
  background: #0f172a;
  text-align: center;
}

.why-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-grid div {
  background: #172033;
  padding: 30px;
  border-bottom: 4px solid #0ea5e9;
}

.why-grid p {
  color: #cbd5e1;
  line-height: 1.65;
}

/* CONTACT */
.contact {
  padding: 95px 7%;
  text-align: center;
  background: linear-gradient(135deg, #020617, #0f172a);
}

.contact-grid {
  max-width: 1050px;
  margin: 38px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-grid a {
  background: #172033;
  color: #cbd5e1;
  text-decoration: none;
  padding: 28px;
  border-top: 4px solid #0ea5e9;
}

.contact-grid strong {
  display: block;
  color: white;
  font-size: 20px;
  margin-bottom: 8px;
}

.contact-grid span {
  display: block;
}

.location {
  color: #94a3b8 !important;
}

/* FOOTER */
footer {
  background: #020617;
  text-align: center;
  padding: 22px;
  color: #94a3b8;
}

/* MOBILE */
@media (max-width: 1000px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split-image {
    min-height: 420px;
  }

  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .hero {
    min-height: 680px;
    text-align: center;
    background-position: center;
  }

  .buttons {
    justify-content: center;
  }

  .trust-bar,
  .brand-grid {
    grid-template-columns: 1fr;
  }
}