:root {
  --bg: #05080b;
  --card: #101820;
  --card2: #151f29;
  --green: #21c335;
  --green2: #57e65f;
  --text: #ffffff;
  --muted: #a9b3bd;
  --line: rgba(255,255,255,0.12);
}

/* RESET */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  z-index: 1000;

  padding: 0 48px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(5, 8, 11, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav a {
  color: #fff;
  opacity: .92;
}

.nav a.active,
.nav a:hover {
  color: var(--green2);
}

.quote-btn {
  background: linear-gradient(135deg, var(--green), #129322);
  color: #fff;
  padding: 15px 28px;
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.menu-btn {
  display: none;
  background: none;
  color: white;
  border: 0;
  font-size: 30px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

/* HERO SLIDER */

.hero-slider {
  position: relative;
  height: 610px;
  margin-top: 82px;
  overflow: hidden;
  background: #05080b;
}

.slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  visibility: hidden;

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  transition: opacity 900ms ease, visibility 900ms ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slider-btn {
  display: none !important;
}

.slider-dots {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);

  display: flex;
  gap: 10px;
}

.dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  cursor: pointer;
}

.dot.active {
  background: var(--green);
}

.diy-slide,
.pcb-slide,
.proto-slide,
.print-slide {
  background-position: center center;
}

/* FEATURES */

.features {
  background: rgba(5, 10, 14, .97);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 70px;
  gap: 30px;
}

.features div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 16px;
  align-items: center;
}

.features span {
  grid-row: span 2;
  color: var(--green);
  font-size: 28px;
}

.features strong {
  font-size: 15px;
  color: #fff;
}

.features small {
  color: var(--muted);
}

/* SERVICES */

.service-grid {
  padding: 34px 46px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 300px;
  padding: 34px 30px;
  border-radius: 12px;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.54) 50%, rgba(0,0,0,.25) 100%),
    linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.88) 100%);

  z-index: 0;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(0,0,0,.32);
}

#printing {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.35)),
    url("../assets/3d.png");
}

#pcb {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.35)),
    url("../assets/hero_pcb.png");
}

#diy {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.35)),
    url("../assets/diy.png");
}

.service-card h3 {
  margin: 24px 0 14px;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #fff;
}

.service-card p {
  max-width: 420px;
  color: #e8eef2;
  line-height: 1.6;
  font-size: 16px;
}

.service-card a {
  display: inline-block;
  margin-top: 26px;
  color: var(--green2);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 14px;
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}

.green { background: #19b92e; }
.blue { background: #2c7be5; }
.purple { background: #7b4de8; }

/* PRODUCTS HOME */

.products {
  color: #111;
  padding: 10px 56px 34px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-title h2 {
  font-size: 28px;
  text-transform: uppercase;
  color: #071017;
}

.section-title a {
  color: var(--green);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 360px));
  justify-content: center;
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  transition: .25s;
  display:flex;
    flex-direction:column;
    min-height:430px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.product-img {
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
}

.product-card h3 {
  margin: 14px 0 8px;
  font-size: 15px;
  color: #071017;
}

.product-card p {
  color: #ffb400;
  font-size: 13px;
}



.product-card p span {
  color: #777;
}

.product-card strong {
  display: block;
  color: var(--green);
  font-size: 19px;
  margin: 10px 0;
}

.cart-btn {
  display: block;
  text-align: center;
  background: var(--green);
  color: #fff;
   margin-top:auto;
  padding: 10px;
  border-radius: 5px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

/* TRUST */

.trust-row {
  background: #070d12;
  padding: 36px 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.trust-row div {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 18px;
}

.trust-row span {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  background: rgba(33,195,53,.12);
  color: var(--green);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
}

.trust-row h4 {
  color: #fff;
}

.trust-row p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

/* FOOTER */

.footer {
  background: #05080b;
  padding: 46px 58px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 46px;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-logo img {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer p,
.footer a {
  color: var(--muted);
  display: block;
  margin-top: 12px;
  line-height: 1.6;
  font-size: 15px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 16px;
}

.footer a:hover {
  color: var(--green2);
}

.stripe-note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.stripe-note strong {
  color: #9b7cff;
  font-size: 24px;
}

/* FORMS BASE */

input,
select,
textarea {
  width: 100%;
  background: #0d141c;
  border: 1px solid var(--line);
  color: white;
  padding: 15px;
  border-radius: 7px;
  outline: none;
}

textarea {
  resize: vertical;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  .nav,
  .quote-btn {
    display: none;
  }
  
  .product-grid{
      grid-template-columns:repeat(2,1fr);
  }

  .menu-btn {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    top: 82px;
    left: 0;
    width: 100%;
    z-index: 999;

    background: #05080b;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .mobile-nav.show {
    display: flex;
  }

  .mobile-nav a {
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-nav a.active,
  .mobile-nav a:hover {
    color: var(--green2);
  }

  .service-grid,
  .product-grid,
  .features,
  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-slider {
    height: 500px;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .site-header {
    padding: 0 20px;
  }

  .logo img {
    height: 42px;
  }
  
   .product-grid{
      grid-template-columns:1fr;
  }

  .hero-slider {
    height: 380px;
  }

  .features,
  .service-grid,
  .product-grid,
  .trust-row,
  .footer {
    grid-template-columns: 1fr;
    padding-left: 22px;
    padding-right: 22px;
  }

  .service-card {
    min-height: 250px;
    padding: 28px 24px;
  }

  .products {
    padding-left: 22px;
    padding-right: 22px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .footer-logo img {
    width: 200px;
  }
}

