html, body {
  background-image: url("images/header background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-image: url("images/header background.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

header .deerlogo a {
  background-image: url("images/Hart Controls Website Header.png");
  background-size: 160px 100px;
  background-repeat: no-repeat;
  display: inline-block;
  height: 100px;
  width: 160px;
  text-indent: -9999px;
  margin-top: 10px;
}

ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

li {
  margin-left: 20px;
}

header .nav a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

header .nav a:hover {
  text-decoration: underline;
  color: rgb(169, 135, 91);
}

section {
   background-color: white;
   padding: 60px 20px;
   text-align: center;
   display: flex;
   flex-direction: column;
   align-items: center;
}

section .home {
  background: rgb(169, 135, 91);
  width: 100%;
  margin: 80px auto 0;
  text-align: center;
}

.services-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.services-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-section .heading {
  font-size: 36px;
  font-weight: 700;
  color: black;
  margin-bottom: 30px;
}

.services-section .subheading {
  font-size: 18px;
  font-weight: 400;
  color: rgb(83, 82, 82);
  margin-bottom: 40px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.service-card i {
  font-size: 40px;
  color: black;
  margin-bottom: 15px;
}

.service-card h4 {
  font-size: 22px;
  font-weight: 600;
  color: black;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 16px;
  color: rgb(83, 82, 82);
  line-height: 1.5;
}

footer {
  background-image: url("images/header background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {


  header .deerlogo a {
    height: 100px;
    width: 160px;
  }

  section {
   padding: 40px 15px;
 }

  .services-section .heading {
    font-size: 28px;
  }

  .services-section .subheading {
    font-size: 16px;
  }

  .service-card {
    padding: 15px;
  }

  .service-card h4 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  header .nav a {
    font-size: 14px;
  }

  section {
   padding: 20px 10px;
 }

  .services-section .heading {
    font-size: 24px;
  }

  .service-card i {
    font-size: 30px;
  }

  .service-card p {
    font-size: 14px;
  }
}

/* Desktop Optimization */
@media (min-width: 1200px) {

  header .deerlogo a {
    height: 100px;
    width: 160px;
    margin-left: 90px;
  }


  .services-section .heading {
    font-size: 40px;
  }

  section {
   padding: 80px 40px;
 }

  .services-section .container {
    max-width: 1400px;
  }

  .service-card {
    padding: 30px;
  }

  footer {
    padding: 30px;
  }
}

