/* GLOBAL ------------------------------------------------------------ */

body {
  margin: 0;
  padding: 0;
  background: #111;
  font-family: Arial, sans-serif;
  color: white;
  overflow-x: hidden;
}

/* Animated machinery background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      #222 0px,
      #222 40px,
      #1a1a1a 40px,
      #1a1a1a 80px
    );
  animation: conveyor 12s linear infinite;
  opacity: 0.25;
  z-index: -2;
}

@keyframes conveyor {
  from { background-position: 0 0; }
  to { background-position: -400px 0; }
}

/* Subtle moving gear shadows */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,0,0,0.15), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(0,0,255,0.15), transparent 60%);
  animation: gears 10s linear infinite alternate;
  z-index: -1;
}

@keyframes gears {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(8deg) scale(1.05); }
}

/* HERO -------------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  border-bottom: 6px solid #444;
  box-shadow: 0 0 30px black inset;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.9);
}

.hero h1 {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  padding: 12px 30px;
  border: 3px solid #ff0000;
  color: #fff;
  font-size: 2.5rem;
  letter-spacing: 3px;
  text-shadow: 0 0 10px black;
}

/* PRODUCT ROWS ------------------------------------------------------ */

.product-row {
  display: flex;
  gap: 20px;
  padding: 25px;
  margin: 20px auto;
  width: 90%;
  background: #1a1a1a;
  border: 4px solid #333;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Animated mechanical border */
.product-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px dashed #555;
  animation: borderMove 4s linear infinite;
  pointer-events: none;
}

@keyframes borderMove {
  0% { transform: translate(0,0); }
  100% { transform: translate(20px,20px); }
}

.product-row:hover {
  transform: scale(1.02);
  border-color: #ff0000;
}

/* PRODUCT IMAGE ----------------------------------------------------- */

.product-image img {
  width: 150px;
  height: auto;
  border: 3px solid #666;
  background: #000;
  padding: 5px;
  box-shadow: 0 0 10px black;
}

/* PRODUCT TEXT ------------------------------------------------------ */

.product-text h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #ffea00;
  text-shadow: 0 0 5px black;
}

.product-text p {
  margin-top: 10px;
  color: #ddd;
  line-height: 1.4;
}

/* FOOTER ------------------------------------------------------------ */

footer {
  text-align: center;
  padding: 30px;
  background: #000;
  border-top: 4px solid #444;
}

footer a {
  color: #00aaff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   CSS GEARS — PURE CSS, NO IMAGES
   ============================================================ */

.gear-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 180px;
  height: 180px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

.gear {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #444;
  border: 6px solid #222;
  box-shadow: inset 0 0 10px #000;
  animation: spin 12s linear infinite;
}

.gear::before {
  content: "";
  position: absolute;
  inset: -18px;
  background:
    repeating-linear-gradient(
      0deg,
      #666 0px,
      #666 12px,
      #222 12px,
      #222 24px
    );
  border-radius: 50%;
  z-index: -1;
}

.gear::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: #ffea00;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #000;
}

.gear.small {
  width: 70px;
  height: 70px;
  top: 80px;
  left: -20px;
  background: #2a2a2a;
  border-color: #111;
  animation: spinReverse 8s linear infinite;
}

.gear.small::before {
  inset: -12px;
  background:
    repeating-linear-gradient(
      0deg,
      #555 0px,
      #555 10px,
      #111 10px,
      #111 20px
    );
}

.gear.small::after {
  width: 18px;
  height: 18px;
  background: #ff0000;
}

.gear.tiny {
  width: 45px;
  height: 45px;
  top: 20px;
  left: 90px;
  background: #1a1a1a;
  border-color: #000;
  animation: spin 5s linear infinite;
}

.gear.tiny::before {
  inset: -8px;
  background:
    repeating-linear-gradient(
      0deg,
      #777 0px,
      #777 8px,
      #000 8px,
      #000 16px
    );
}

.gear.tiny::after {
  width: 12px;
  height: 12px;
  background: #00aaff;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}