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

#background {
  position: fixed;
  object-fit: cover;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
}

body {
  background-position: center;
  background-repeat: no-repeat; 
  background-attachment: fixed;
  background-size: cover;
  font-family: Arial, Helvetica, sans-serif;
}

header {
  background: #0c3940;
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.bars {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  height: 65px;
}

#dahua{
  height: 45px;
  opacity: 0.75;
  margin-right: 80px;
}

#hikvision{
  height: 45px;
  opacity: 0.75;
}

#satel{
  height: 45px;
  opacity: 0.75;
  margin-left: 80px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #ffd700;
}


section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.textbox {
  background: rgba(24, 24, 24, 0.9);
  background-size: cover;
  color: rgb(255, 255, 255);
  text-align: center;
  margin-top: 20px;
}

#home {
  background-size: cover;
  color: rgb(255, 255, 255);
  text-align: center;
  padding-top: 90px;
  margin-top: 120px;
}

#home h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-grid {

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0.3rem 0;
}

.service-card {

  color: rgb(255, 255, 255);
  text-align: center;
  padding: 2rem;
  background: rgba(24, 24, 24, 0.9);
  border-radius: 10px;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 30px #01382fd0;

}

.service-card i {
  font-size: 2.5rem;
  color: #004d40;
  margin-bottom: 1rem;
}

.contact-form {

  max-width: 600px;
  margin: 0 auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

button {
  background: #004d40;
  color: white;
  padding: 1rem;
  border: auto;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #00695c;
}

footer {
  background: #0c3940;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    margin-top: 1rem;
    flex-direction: column;
  }

  #home {
    padding: 100px 20px;
  }
}

#hamburger-icon {
  margin: auto 0;
  display: none;
  cursor: pointer;
  float: right;
}

#hamburger-icon div {
  width: 48px;
  height: 6px;
  background-color: white;
  margin: 11px 0;
  transition: 0.4s;
}

.open .bar1 {
  -webkit-transform: rotate(-45deg) translate(-12px, 12px);
  transform: rotate(-45deg) translate(-12px, 12px);
}

.open .bar2 {
  opacity: 0;
}

.open .bar3 {
  -webkit-transform: rotate(45deg) translate(-12px, -16px);
  transform: rotate(45deg) translate(-12px, -12px);
}

.open .mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 87px;
  left: 0;
  height: auto;
  width: 100%;
  background: #0c39407e;
}

.mobile-menu li {
  margin-bottom: 10px;
}

#logomobile{
  display: none;
}

@media only screen and (max-width: 600px) {
  header nav {
    display: none;
  }
  header{
    height: 103px;
   
  }
  #logomobile{
    float: left;
    display: inline;
  }
  #hamburger-icon {
    display: flex;
    float: right;
  }
}

#contact a {
  color: #ffffff;
}
#about a {
  color: #ffffff;
}
#services a {
  color: #ffffff;
}
#home a {
  color: #ffffff;
}