:root {
  --primary-color: #2c3e50; /* Dark Slate */
  --secondary-color: #2980b9; /* Bright Blue */
  --accent-color: #3498db; /* Light Blue */
  --text-color: #2c3e50; /* Dark Slate */
  --background-color: #ecf0f1; /* Light Gray */
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: #ffffff; /* Updated font color to white */
}

.logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff; /* Updated font color to white */
}

.logo-img {
  height: 40px;
  width: auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav ul li {
  margin-left: 20px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

/* Style the Contact, Home, Services, and About links as buttons */
nav ul li:nth-child(1) a,
nav ul li:nth-child(2) a,
nav ul li:nth-child(3) a,
nav ul li:last-child a {
  background-color: transparent;
  color: #ffffff; /* same as company name color */
  border: 2px solid #ffffff;
  border-radius: 25px;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li:nth-child(1) a:hover,
nav ul li:nth-child(2) a:hover,
nav ul li:nth-child(3) a:hover,
nav ul li:last-child a:hover {
  background-color: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
}

.hero {
  background: url('images/consulting-hero.jpg') no-repeat center center/cover;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  text-align: center;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.cta-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  background-color: var(--accent-color);
}

.services {
  background-color: var(--primary-color);
  padding: 40px 20px;
  border-radius: 10px;
  color: var(--text-color);
  max-width: 1200px;
  margin: 2rem auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.services .section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #7f8c8d;
}

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

.service-card {
  background: var(--background-color);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.service-card i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.service-card p {
  color: #7f8c8d;
}

.about {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
  color: var(--text-color);
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: center;
}

.contact {
  background-color: var(--secondary-color);
  padding: 40px 20px;
  border-radius: 10px;
  color: var(--primary-color);
  text-align: center;
  max-width: 600px;
  margin: 3rem auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact .section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

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

.contact-form input,
.contact-form textarea {
  padding: 15px;
  margin-bottom: 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  color: var(--text-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.contact-form button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 15px;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

footer {
  background-color: var(--primary-color);
  color: #ffffff; /* Updated font color to white */
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}
