/* Bootstrap container */
@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600,700|Roboto:400,500,700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #6c6c6f;
  background-color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 27px;
}

a {
  transition: all 300ms ease-in-out;
}

a:hover,
a:focus {
  text-decoration: none;
  outline: 0px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #112e41;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* Banner section */
.banner {
  background-color: #f7f7f7;
  padding: 13% 0 10%;
}

.banner .content-box h2 {
  font-size: 60px;
  line-height: 70px;
  margin-bottom: 30px;
}

.banner .content-box p {
  margin-bottom: 50px;
}

/* Button styles */
.btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  line-height: 0.8;
  text-transform: capitalize;
  padding: 20px 40px;

  border-radius: 50px;
}

.btn:hover {
  box-shadow: 0 0 30px 5px rgba(0, 0, 0, 0.05);
}
.btn-warning {
  color: #fff;
  background-color: #ff7214;
}
.btn-warning:hover {
  background-color: #ff6600;
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .banner .content-box h2 {
    font-size: 38px;
    line-height: 50px;
  }
}

@media screen and (max-width: 767px) {
  .banner .ban-img {
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 479px) {
  .banner .content-box h2 {
    font-size: 30px;
    line-height: 40px;
  }
}

.top-10 {
  top: 10px;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-top: 50px;
  margin-bottom: 50px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  .top-10 {
    top: 50px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  .top-10 {
    top: 30px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Optional: container-fluid if needed */
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.align-items-center {
  -ms-flex-align: center !important;
  align-items: center !important;
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: 15px;
  margin-left: 15px;
}

@media (min-width: 768px) {
  .order-md-0 {
    -ms-flex-order: 0;
    order: 0;
  }
}

@media (min-width: 768px) {
  .col-md-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.order-1 {
  -ms-flex-order: 1;
  order: 1;
}

@media (min-width: 768px) {
  .order-md-0 {
    -ms-flex-order: 0;
    order: 0;
  }
}

a {
  text-decoration: none;
}

/* Boom Barrier Styles */
.ban-img {
  position: relative;
  overflow: visible;
}

.barrier-system {
  position: absolute;
  bottom: 35%;
  left: 15%;
  width: 70%;
  z-index: 2;
}

.motor-housing {
  position: absolute;
  left: -38px;
  bottom: -64px;
  width: 138px;
  height: 60px;
  min-height: 8px;
  background: #444;
  border-radius: 4px 4px 0 0;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);

  background-image: url(https://amposys.com/assets/img/icons/amposys.png);
  background-size: contain;
  background-repeat: no-repeat;

  padding: 10px;
  /* Adds space inside the div */
  background-origin: content-box;
  /* Ensures image respects padding */
  background-position: center;
  /* Keeps it centered */

  transform: rotate(90deg);
}

.support-pole {
  position: absolute;
  right: 5%;
  bottom: -100px;
  width: 3%;
  height: 120px !important;
  /* max-height: 80px;
      min-height: 40px; */
  background: #666;
  border-radius: 3px 3px 0 0;
}

.boom-arm {
  position: absolute;
  left: 8%;
  bottom: 0;
  z-index: -1;
  width: 85%;
  height: 0.8vw;
  min-height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #ff0000,
    #ff0000 10px,
    #ffffff 10px,
    #ffffff 20px
  );
  transform-origin: left center;
  animation: raiseBarrier 6s infinite ease-in-out;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}

@keyframes raiseBarrier {
  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-80deg);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .barrier-system {
    bottom: 30%;
    left: 10%;
    width: 80%;
  }

  .support-pole {
    height: 10vw;
    min-height: 35px;
  }

  .boom-arm {
    height: 1.2vw;
    min-height: 5px;
  }
}

@media (max-width: 480px) {
  .barrier-system {
    bottom: 25%;
    left: 5%;
    width: 90%;
  }

  .support-pole {
    height: 12vw;
    min-height: 30px;
  }
}

.scanner-pole {
  position: absolute;
  left: 26px !important;
  bottom: 0;
  width: 15px;
  height: 264px !important;
  background: #555;
  border-left: 2px solid #333;
  border-right: 2px solid #333;
  z-index: -2;
}

.rfid-scanner {
  position: absolute;
  left: -5px !important;
  bottom: 202px !important;
  width: 80px !important;
  height: 80px !important;
  background: #e1e1e1;
  border: 2px solid #2222220a;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.rfid-scanner::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #00ff00;
  font-size: 12px;
  font-family: monospace;
}

.camera-housing {
  /* position: absolute;
      left: 21px !important;
      bottom: 160px;
      width: 30px;
      height: 30px;
      background: #444;
      border: 2px solid #222;
      border-radius: 50%;
      animation: cameraPan 6s infinite alternate;
      z-index: 4; */
  position: absolute;
  left: 19px;
  bottom: 160px;
  width: 30px;
  height: 30px;
  background: #444;
  border: 2px solid #222;
  border-radius: 50%;
  animation: cameraPan 6s infinite alternate;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-lens {
  /* position: absolute; */
  /* top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 15px;
      height: 15px;
      background: radial-gradient(circle at 30% 30%, #00ff00 10%, #005500 90%);
      border-radius: 50%;
      animation: cameraPulse 2s infinite; */
  position: relative;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at center, #00ff00 15%, #003300 90%);
  border-radius: 50%;
  box-shadow: 0 0 5px #00ff00, 0 0 10px rgba(0, 255, 0, 0.5);
  animation: cameraPulse 2s infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.scan-beam {
  position: absolute;
  left: 30%;
  bottom: 40%;
  width: 29%;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 0, 0) 0%,
    rgba(0, 255, 0, 0.8) 50%,
    rgba(0, 255, 0, 0) 100%
  );
  animation: plateScan 2.5s infinite;
  filter: blur(1px);
}

/* Enhanced Animations */
@keyframes cameraPan {
  0% {
    transform: rotate(-25deg);
  }

  50% {
    transform: rotate(25deg);
  }

  100% {
    transform: rotate(-25deg);
  }
}

@keyframes cameraPulse {
  0%,
  100% {
    opacity: 0.8;
    filter: brightness(1);
  }

  50% {
    opacity: 1;
    filter: brightness(1.5);
  }
}

@keyframes plateScan {
  0% {
    opacity: 0;
    transform: translateX(-50%);
  }

  30% {
    opacity: 1;
    transform: translateX(0%);
  }

  70% {
    opacity: 1;
    transform: translateX(100%);
  }

  100% {
    opacity: 0;
    transform: translateX(150%);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .scanner-pole {
    height: 100px;
    left: 15%;
  }

  .rfid-scanner {
    bottom: 100px;
    left: 12%;
    width: 60px;
    height: 30px;
  }

  .camera-housing {
    position: absolute;
    left: 21px;
    bottom: 160px;
    width: 30px;
    height: 30px;
    background: #444;
    border: 2px solid #222;
    border-radius: 50%;
    animation: cameraPan 6s infinite alternate;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .camera-lens {
    position: relative;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at center, #00ff00 15%, #003300 90%);
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff00, 0 0 10px rgba(0, 255, 0, 0.5);
    animation: cameraPulse 2s infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .camera-gloss {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
  }

  .scan-beam {
    bottom: 35%;
  }
}

@media (max-width: 480px) {
  .scanner-pole {
    height: 80px;
    left: 10%;
  }

  .rfid-scanner {
    bottom: 80px;
    left: 5%;
  }

  .camera-housing {
    bottom: 100px;
    left: 12%;
  }
}

@keyframes cameraPan {
  0% {
    transform: rotate(-20deg);
  }

  50% {
    transform: rotate(20deg);
  }

  100% {
    transform: rotate(-20deg);
  }
}

@keyframes cameraPulse {
  0%,
  100% {
    opacity: 0.8;
    filter: brightness(1);
  }

  50% {
    opacity: 1;
    filter: brightness(1.5);
  }
}

/* Scanner LED blinking effect */
.scanner-led {
  position: absolute;
  bottom: 13px;
  left: 33px;
  width: 10px;
  height: 3px;
  background: red;
  animation: ledBlink 1s infinite alternate;
  box-shadow: 0 0 5px red;
}

@keyframes ledBlink {
  0% {
    background: red;
    box-shadow: 0 0 10px red;
  }

  100% {
    background: green;
    box-shadow: 0 0 10px green;
  }
}

/* Scanner UI */
.scanner {
  border: 2px solid lime;
  padding: 12px;
  left: 50%;
  width: 160px;
  text-align: left;
  font-size: 8px;
  line-height: 1.5;
  box-shadow: 0 0 10px lime;
  background: rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  top: -327px;
  height: 122px;
}

/* Blinking Cursor Effect */
.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: lime;
  animation: blink 0.6s infinite alternate;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* Seat Belt Warning */
.seatbelt {
  color: red;
  animation: warningBlink 1s infinite alternate;
}

@keyframes warningBlink {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

/* Scanning Bar Effect */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: lime;
  animation: scanMove 2s linear infinite;
}

@keyframes scanMove {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

.car-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.car {
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
}

@keyframes moveCar {
  0% {
    transform: translate(-10%, -50%) scale(0.3);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* ease-out-quad */
  }

  25% {
    transform: translate(-40%, -35%) scale(0.6);
    opacity: 0.6;
    animation-timing-function: cubic-bezier(0.39, 0.58, 0.57, 1);
    /* ease-in-out */
  }

  100% {
    transform: translate(-50%, 50%) scale(1.5);
    opacity: 0;
  }
}

.grd-bkgd-01 {
  background: linear-gradient(to bottom right, #fff, #d7d5d5);
}

.grd-bkgd-02 {
  background: linear-gradient(to bottom left, #d7d5d5, #eee);
}

.grd-bkgd-03 {
  background: linear-gradient(to bottom, #d7d5d5, #fff);
}

@media (max-width: 768px) {
  .mobile-hide {
    display: none;
  }
}
