/* Basic Reset and Global Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8; /* Light gray background */
  color: #333;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
}

h3 {
  text-align: center;
  font-size: 1.5em;
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
  letter-spacing: 2px;
}

.content-section {
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Hero Section Styling --- */
.hero-section {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 100px 20px 180px; /* Large bottom padding */
  position: relative;
  overflow: hidden; /* To keep elements inside */
}

.logo {
  font-size: 30px;
  font-weight: bold;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  margin: 0 auto 10px;
}

.hero-content h1 {
  font-size: 1.2em;
  letter-spacing: 4px;
  margin-bottom: 5px;
}

.tagline {
  font-size: 0.8em;
  color: #aaa;
  margin-bottom: 40px;
}

.hero-content h2 {
  font-size: 3.5em;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 20px;
}

.logo-small {
  font-size: 0.6em;
  vertical-align: top;
  font-weight: normal;
  color: #ccc;
}

/* --- Navigation Bar Styling --- */
.main-nav {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky; /* Makes it stick to the top */
  top: 0;
  z-index: 100;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.main-nav li a {
  text-decoration: none;
  color: #333;
  padding: 15px 25px;
  display: block;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s;
}

.main-nav li a:hover {
  background-color: #f0f0f0;
}

/* --- About Section Styling --- */
.about-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 20px;
}

.profile-card {
  flex-basis: 300px; /* Fixed width for the card */
  flex-shrink: 0;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.profile-image {
  width: 100%;
  height: 200px; /* Placeholder for the image/name box */
  background-color: #333d47; /* Dark blue/gray */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
}

.about-text {
  flex-grow: 1;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 20px;
}

.expertise {
  background-color: #e6f7ff; /* Light blue background for the expertise list */
  padding: 10px;
  border-left: 5px solid #007bff;
  line-height: 1.6;
}

.about-text strong {
  color: #000;
}

/* --- Services Section Styling --- */
.services-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.service-card {
  flex-basis: calc(33.333% - 20px);
  background-color: #fff;
  padding: 30px;
  text-align: center;
  border: 1px solid #eee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

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

.service-card i {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.service-card h4 {
  font-size: 1.1em;
  margin-bottom: 10px;
}

/* Icon Colors (from the image) */
.icon-green {
  color: #5cb85c;
}
.icon-blue {
  color: #428bca;
}
.icon-sky-blue {
  color: #5bc0de;
}

/* --- Portfolio Section Styling --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns for the top row */
  gap: 20px;
  padding-top: 20px;
}

/* Adjusting the grid for the second row in a responsive way if needed, 
   but keeping 4 columns wide for the main row */
.portfolio-grid > div:nth-child(5),
.portfolio-grid > div:nth-child(6) {
  grid-column: span 1; /* Keep 1 column span */
}

.portfolio-item {
  padding: 40px 15px;
  text-align: center;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.portfolio-item h4 {
  font-size: 1.5em;
  margin-bottom: 5px;
  font-weight: 900;
}

.portfolio-item p {
  font-size: 0.9em;
  font-weight: 300;
}

/* Portfolio Item Colors (Approximate based on image) */
.item-blue {
  background-color: #428bca;
}
.item-green {
  background-color: #5cb85c;
}
.item-orange {
  background-color: #f0ad4e;
}
.item-purple {
  background-color: #6d649d;
} /* Darker/Muted Purple */
.item-dark-blue {
  background-color: #333d47;
} /* Same as profile card background */
.item-red {
  background-color: #d9534f;
}
