:root {
  --primary: rgb(68, 52, 140);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.description {
  line-height: 1.6;
}

#header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  z-index: 1000;
}

#header-img {
  height: 50px;
}

#nav-bar {
  display: flex;
  gap: 15px;
  margin-right: 30px;
}

.nav-link, .link {
  text-decoration: none;
  font-size: 18px;
  color: white;
  transition: 0.3s;
}

.nav-link:hover, .link:hover {
  font-weight: bold;
  text-decoration: underline;
}

#main {
  text-align: center;
  padding: 10px;
}

.span-title {
  color: var(--primary);
  font-weight: bold;
}

.service {
  display: flex;
  align-items: center;
  padding: 10px;
  justify-content: left;
  border: 1px solid rgba(68, 52, 140, 0.3);
  border-radius: 8px;
  margin: 15px auto;
  max-width: 800px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.service:hover {
  transform: translateY(-5px);
}

i {
  color: rgba(68, 52, 140, 0.9);
  font-size: 50px;
  display: inline-block;
  padding: 12px;
}

.techno {
  border: 1px solid lightgray;
  background-color: rgba(68, 52, 140, 0.1);
  border-radius: 8px;
  padding: 4px 8px;
  margin: 4px;
  display: inline-block;
  transition: 0.3s;
}

.techno:hover {
  background-color: rgba(68, 52, 140, 0.2);
}

.service-description {
  display: inline-block;
  padding-left: 20px;
  text-align: left;
}

.service-title {
  color: rgba(68, 52, 140, 0.8);
}

#form {
  border: 1px solid var(--primary);
  border-radius: 5px;
  align-items: center;
  justify-content: center;
  padding: 15px;
  max-width: 600px;
  margin: auto;
  background: #fff;
}

#form input, #form select, #form textarea {
  display: block;
  margin: 10px auto;
  padding: 8px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  width: 80%;
  font-size: 16px;
}

#submit {
  background-color: var(--primary);
  color: white;
  width: 50%;
  height: 40px;
  border-radius: 5px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

#submit:hover {
  font-weight: bold;
  background-color: rgba(68, 52, 140, 0.9);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 20px auto;
  max-width: 800px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#footer {
  background-color: rgba(68, 52, 140, 0.7);
  text-align: center;
  padding: 20px;
  color: white;
}

#footer a {
  padding: 5px;
}

@media (max-width: 600px) {
  #header {
    flex-direction: column;
    align-items: center;
  }

  #nav-bar {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    margin-right: 0;
  }

  .service {
    flex-direction: column;
    text-align: center;
  }

  .service-description {
    padding-left: 0;
  }
}
