:root {
  --bg-color: #0f172a;
  --text-color: #f1f5f9;
  --accent: #38bdf8;
  --card-bg: #1e293b;
  --backImage-service-size: contain;
  --backImage-client-size: contain;
}

/* * {
  outline: 1px solid red;
} */

a,
a * {
  text-decoration: none !important;
  box-shadow: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 10px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  max-width: 1200px;
  min-width: 390px;
}

nav {
  display: flex;
  justify-content: left;
  align-items: left;
  padding: 1.5rem 10%;
  position: fixed;
  top: 0%;
  width: 100%;
  z-index: 9999;
  background-color: gray;
  border: 1px solid var(--bg-color);
  padding: 2%;
}

nav ul {
  display: block;
  list-style: none;
  margin: 0;
  gap: 15px;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-color);
  background-color: var(--bg-color);
  border-radius: 5px;
  padding: 2%;
}

header {
  width: 100%;
  margin-top: 100px;
}

header img {
  width: 100%;
  height: auto;
}

#services,
#contact,
#clients {
  padding: 0% 5%;
  padding-top: 15%;
}

.automation-style {
  background-image: url("/images/automation.webp");
  background-size: var(--backImage-service-size);
  background-repeat: no-repeat;
  background-position: center;
}

.web-development-style {
  background-image: url("/images/web_development.webp");
  background-size: var(--backImage-service-size);
  background-repeat: no-repeat;
  background-position: center;
}

.database-solutions-style {
  background-image: url("/images/database_solutions.webp");
  background-size: var(--backImage-service-size);
  background-repeat: no-repeat;
  background-position: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.services-grid a {
  color: rgba(0, 0, 0, 0.9);
  text-decoration: none;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.9);
  padding: 5%;
  border-radius: 15px;
  border-left: 6px solid rgba(100, 100, 100, 0.5);
  border-right: 6px solid rgba(100, 100, 100, 0.5);
  border-top: 35px solid rgba(100, 100, 100, 0.5);
  border-bottom: 60px solid rgba(100, 100, 100, 0.5);
}

.service-card h3 {
  color: rgba(0, 0, 0, 0.8);
  position: relative;
  top: -68px;
  z-index: 50;
}

.service-card p {
  color: rgba(0, 0, 0, 0.8);
  position: relative;
  text-align: center;
  bottom: -80px;
  z-index: 50;
  line-height: 1.1;
  padding: 1%;
  font-size: 1rem;
}

.blh-style {
  background-image: url("images/blh_Logo.webp");
  background-size: var(--backImage-client-size);
  background-repeat: no-repeat;
  background-position: center;
}

.atwood-style {
  background-image: url("images/logo_Atwood.webp");
  background-size: var(--backImage-client-size);
  background-repeat: no-repeat;
  background-position: center;
}

.fp-style {
  background-image: url("images/FPCB_Logo_BlackFont_TransparentBackground-withoutcity.png");
  background-size: var(--backImage-client-size);
  background-repeat: no-repeat;
  background-position: center;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  color: rgba(0, 0, 0, 0.9);
}

.client-card {
  background-color: rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.9);
  padding: 5%;
  border-radius: 15px;
  border-left: 6px solid rgba(100, 100, 100, 0.5);
  border-right: 6px solid rgba(100, 100, 100, 0.5);
  border-top: 35px solid rgba(100, 100, 100, 0.5);
  border-bottom: 60px solid rgba(100, 100, 100, 0.5);
  min-height: 125px;
}

.client-card a {
  z-index: 50;
  text-decoration: none;
  color: inherit;
}

.client-card h3 {
  color: rgba(0, 0, 0, 0.8);
  position: relative;
  top: -70px;
  z-index: 50;
  font-size: 1.1rem;
}

.client-card p {
  color: rgba(0, 0, 0, 0.8);
  position: relative;
  text-align: center;
  bottom: -80px;
  z-index: 50;
  line-height: 1.1;
  padding: 1%;
  font-size: 1rem;
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: rgba(255, 255, 255, 0.8);
  color: rgba(0, 0, 0, 0.81);
  font-weight: bold;
  font-size: large;
}

button {
  padding: 12px;
  background: var(--accent);
  border: none;
  font-weight: bold;
  font-size: larger;
  cursor: pointer;
  border-radius: 10px;
}

footer {
  padding: 5%;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-color);
  text-align: center;
}

@media screen and (min-width: 768px) {
  .brand {
    font-size: 1.6rem;
  }
  nav ul {
    display: flex;
  }

  nav a {
    font-size: 1.2rem;
  }
}

@media screen and (min-width: 1024px) {
  .brand {
    font-size: 1.8rem;
  }
  nav a {
    font-size: 1.4rem;
  }
}

@media screen and (min-width: 1440px) {
  .brand {
    font-size: 2rem;
  }
  nav a {
    font-size: 1.6rem;
  }
  header {
    padding: 0% 2%;
  }
  section {
    padding: 0% 5%;
    padding-top: 25%;
  }
}
