body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212; /* Tumma taustaväri */
  color: #e0e0e0; /* Vaaleanharmaa teksti */
}


.about {
  background-color: #1e1e1e; /* Tummanharmaa header */
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.5); /* Sininen varjo */
  margin: 25px 25px;
  border-radius: 10px;
  padding-top: 1px;
  padding-bottom: 1px;
}

.about p, h1, h2 {
  margin: 20px 20px;
}

header {
  background-color: #1e1e1e; /* Tummanharmaa header */
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Kevyt varjo */
}

nav {
  flex-grow: 1;
  text-align: center;
}

nav a {
  color: #8ab6e9; /* Vaaleansininen linkkien väri */
  text-decoration: none;
  margin: 0 15px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s; /* Animaatio lisätty */
  font-weight: bold;
}

nav a:hover {
  background-color: #007bff; /* Kirkas sininen hover-väri */
  color: #ffffff;
  transform: scale(1.1); /* Suurennus-efekti */
}

.hero {
  display: flex; /* Flexbox-asettelu */
  align-items: center; /* Keskitetään pystysuunnassa */
  height: 60vh; /* Täysikokoinen korkeus */
  padding: 20px; /* Tilaa reunasta */
}

.hero-content {
  width: 50%; /* Teksti vie 50% tilasta */
  padding-right: 80px; /* Tilaa kuvan ja tekstin väliin */
  padding-left: 40px;
}

.hero-image {
  background: url(/images/kuva.jpg) no-repeat center center/cover; /* Taustakuva */
  width: 40%; /* Kuva vie 50% tilasta */
  height: 80%; /* Täysikokoinen korkeus */
  border-radius: 10px; /* Pyöristetyt kulmat */
}
.hero p {
  font-size: 1.5em;
  margin: 10px 0;
  background: #1e1e1e; /* Tummanharmaa taustaväri */
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.5); /* Sininen varjo */
  border-radius: 10px;
  padding: 1rem;
}

.services,
.faq,
.reviews {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}

.service-item,
.faq-item,
.review-item {
  background: #1e1e1e; /* Tummanharmaa taustaväri */
  border-radius: 10px;
  padding: 20px;
  margin: 10px;
  width: 30%;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.5); /* Sininen varjo */
  color: #e0e0e0; /* Vaaleanharmaa teksti */
  opacity: 0; /* Alkuperäinen näkyvyys 0 */
  transform: translateY(20px); /* Alkuperäinen sijainti */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Animaatio lisätty */
}

.carousel {
  position: relative;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.5); /* Sininen varjo */
  border-radius: 10px;
  background-color: #1e1e1e; /* Tummanharmaa taustaväri */
  color: #e0e0e0; /* Vaaleanharmaa teksti */
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 123, 255, 0.8); /* Kirkas sininen tausta */
  color: white; /* Valkoinen teksti */
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.section {
  padding: 40px 20px;
  text-align: center;
  opacity: 0; /* Alkuperäinen näkyvyys 0 */
  transform: translateY(20px); /* Alkuperäinen sijainti */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Animaatio lisätty */
}

.pricing-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 20px 0;
}

.pricing-item {
  background: #1e1e1e; /* Tummanharmaa taustaväri */
  border: 1px solid #007bff;
  border-radius: 8px;
  padding: 20px;
  margin: 10px;
  width: 20%; /* Voit säätää leveyttä tarpeen mukaan */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.pricing-item:hover {
  transform: scale(1.05); /* Suurentaa hover-tilassa */
}

.feature-list {
  list-style-type: none; /* Poistaa luettelomerkit */
  padding: 0;
  text-align: left;
}

.feature-list li {
  position: relative;
  padding: 10px 0; /* Ylä- ja alaväli */
  border-bottom: 1px solid #ddd; /* Viiva rivien väliin */
}

.feature-list li:last-child {
  border-bottom: none; /* Poistaa viimeisen rivin viivan */
}

.check-icon {
  color: green; /* Vihreä väri check-ikoneille */
  margin-right: 10px; /* Väli ikonille ja tekstille */
}

.uncheck-icon {
  color: red; /* Punainen väri uncheck-ikoneille */
  margin-right: 10px; /* Väli ikonille ja tekstille */
}

.price {
  font-size: 1.5em;
  color: #007bff;
  margin: 10px 0;
}

.tax {
  font-size: 0.7m;
  color: #ffffff;
  margin: 10px 0;
}

button {
  background: #007bff; /* Sininen tausta */
  color: white; /* Valkoinen teksti */
  border: none; /* Ei reunusta */
  padding: 10px 15px; /* Sisätilat */
  border-radius: 5px; /* Pyöristetyt kulmat */
  cursor: pointer; /* Kursorin muutos */
  transition: background 0.3s, transform 0.3s; /* Siirtymät */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Varjo */
}

button:hover {
  background: #0056b3; /* Tumma sininen hover-tilassa */
  transform: translateY(-2px); /* Nostaa nappia hiiriviennin aikana */
}

button:active {
  transform: translateY(0); /* Palauttaa napin alkuperäiseen paikkaan */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Pienempi varjo aktiivisessa tilassa */
}

nav a.active {
  font-weight: bold;
  text-decoration: underline;
}

.contact {
  padding: 40px 20px;
  text-align: left;
  background-color: #1e1e1e; /* Tummanharmaa taustaväri */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 80%;
  margin: 0 auto; /* Keskitään elementti */
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.5); /* Sininen varjo */
}

.contact-info {
  margin-bottom: 40px;
}

.contact-info h2 {
  margin-bottom: 15px;
  color: #ffffff;
}

.contact-form h2 {
  margin-bottom: 15px;
  color: #007bff;
}

.form-group {
  margin-bottom: 20px;
  margin-right: 30px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.contact a {
  color: #ffffff;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border 0.3s;
}

.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
  border-color: #007bff;
  outline: none;
}

.contact-form button {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.contact-form button:hover {
  background: #0056b3;
}

.maintenance-checkbox {
  display: flex;
  flex-direction: column; /* Muutetaan suunta pystysuuntaiseksi */
  align-items: flex-start; /* Kohdistaa vasemmalle */
}

.maintenance-checkbox input {
  margin-top: 5px; /* Lisää tilaa tekstin ja valintaruudun väliin */
  width: auto;
}

.portfolio {
  padding: 40px 20px;
  text-align: center;
}

.portfolio-category {
  margin-bottom: 40px;
}

.portfolio-category h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.portfolio-items {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* Salli useamman rivin */
}

.portfolio-item {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  margin: 10px;
  width: 30%; /* Voit säätää leveyttä tarpeen mukaan */
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.5); /* Sininen varjo */
}

.portfolio-item:hover {
  transform: scale(1.2);
}

.portfolio-item img {
  width: 100%;
  border-radius: 10px;
}

.portfolio-item h3 {
  margin: 15px 0 5px;
}

.portfolio-item p {
  color: #ffffff;
}

.portfolio-item a {
  text-decoration: none; /* Poistaa alleviivauksen linkeistä */
  color: inherit; /* Varmistaa, että väri periytyy */
}

.portfolio-item img {
  width: 100%; /* Kuvan kokoaminen */
  border-radius: 10px;
}

footer {
  background-color: #1e1e1e; /* Tummanharmaa footer */
  text-align: left;
  padding: 1rem;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2); /* Kevyt varjo */
}

/* Animaatio näkyvyyteen */
.section.visible,
.service-item.visible,
.faq-item.visible,
.review-item.visible {
  opacity: 1; /* Näkyvyys 1 */
  transform: translateY(0); /* Sijainti takaisin */
}


/* Mobiililaitteet */
@media (max-width: 768px) {
  /* Hero-osio */
  .hero {
      flex-direction: column; /* Asettelu pystysuunnassa */
      height: auto; /* Poista kiinteä korkeus */
  }

  .hero-content, .hero-image {
      width: 100%; /* Molemmat vievät koko leveys */
      padding-right: 0; /* Poista oikea tyhjennys */
      padding-left: 0; /* Poista vasen tyhjennys */
  }

  /* Palvelumme, usein kysytyt kysymykset ja hinnaston kortit */
  .services, .faq, .pricing-table {
      flex-direction: column; /* Asettelu pystysuunnassa */
      align-items: center; /* Keskitetään elementit */
  }

  .service-item, .faq-item, .pricing-item {
      width: 90%; /* Korteille 90% leveys */
      margin: 10px 0; /* Lisätään ylä- ja alaväli */
  }

  /* Navigointipalkki */
  nav {
      flex-direction: column; /* Asettelu pystysuunnassa */
  }

  nav a {
      margin: 15px 0; /* Lisätään väli linkkien väliin */
  }
}