:root {
  /* Color Variables */
  --bizify-blue: rgb(3, 39, 95);
  --bizify-orange: rgb(245, 162, 8);
  --bizify-light-blue: rgb(230, 239, 246);
  --text-dark: #000;
  --text-light: #fff;
  --link-color-footer: #ccc;
  --link-hover-color-footer: #fff;
  --icon-color-footer: #ffa500; /* Matching the orange in your images */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: sans-serif;
}

#top-bar {
  width: 100%;
  height: 25px;
  background-color: var(--bizify-blue);
}

#top-header {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-top: 10px; */
  padding: 0 100px;
  background-color: var(--text-light);
  z-index: 1000;
  top: 0;
  position: sticky;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#logo-name {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

#logo-image {
  width: 50px;
  height: 50px;
}

#company-name {
  font-size: 16px;
  font-weight: bold;
  color: var(--bizify-blue);
}

#top-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

#top-nav-bar-ul {
  display: flex;
  list-style-type: none;
  gap: 20px;
}

.top-nav-bar-item {
  cursor: pointer;
  color: var(--bizify-blue);
  font-size: 15px;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.1s ease;
}

.top-nav-bar-item:hover {
  color: var(--bizify-orange);
  transform: scale(1.02);
}

#contact-button {
  width: 130px;
  height: 40px;
  background: linear-gradient(
    to left,
    var(--bizify-blue) 50%,
    var(--bizify-orange) 50%
  );
  background-size: 200% 100%;
  background-position: right;
  font-size: 15px;
  color: var(--text-light);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background-position 0.6s ease;
}

#contact-button:hover {
  background-position: left;
}

/* Container Flexbox */
#first-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--text-light);
  padding: 50px;
  gap: 90px;
  flex-wrap: wrap;
}

/* Text Column */
.text-content {
  flex: 1;
  margin-left: 100px;
}

/* Title Styling */
.section-title {
  font-size: 32px;
  color: var(--bizify-orange);
  font-weight: 800;
  text-shadow: 1px 1px 0 rgba(3, 39, 95, 0.2);
  position: relative;
}

/* Article Text */
article {
  font-size: 17px;
  font-weight: bolder;
  line-height: 1.6;
  color: var(--bizify-blue);
}

#About-Button {
  width: 90px;
  height: 35px;
  font-size: 15px;
  background-color: var(--text-light);
  color: var(--bizify-blue);
  border-radius: 10px;
  border: 2px solid var(--bizify-blue);
  cursor: pointer;
  transition: transform 0.3s ease;
}

#About-Button:hover {
  transform: scale(1.05);
}

.image-wrapper {
  flex: 1;
  min-width: 300px;
  position: relative;
  margin-right: 30px;
  background-size: 40px 40px;
  background-attachment: local;
  background-repeat: repeat;
  border-radius: 12px;
}

/* Image Style */
#about-section-img {
  width: 90%;
  height: 500px;
  display: block;
  border-radius: 10px;
}

/* --- Optimized Sections Styling --- */

.service-section {
  padding: 60px 40px;
  text-align: center;
}

.service-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.service-title::after {
  content: "";
  width: 60px;
  height: 3px;
  display: block;
  margin: 10px auto 0;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-card {
  width: 200px;
  height: 180px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card img {
  width: 100px;
  height: 100px;
  /* margin-bottom: 15px; */
  /* Uncomment and adjust if icons need color inversion for visibility */
  /* filter: brightness(0) invert(1); */
}

.service-card p {
  font-size: 16px;
  font-weight: 500;
}

/* Theme-specific styles */
.theme-primary {
  background-color: var(--bizify-light-blue);
}

.theme-primary .service-title {
  color: var(--text-dark);
}

.theme-primary .service-title::after {
  background-color: var(--text-dark);
}

.theme-primary .service-card {
  background-color: var(--bizify-blue);
  color: var(--text-light);
}

.theme-secondary {
  background-color: var(--text-light);
}

.theme-secondary .service-title {
  color: var(--text-dark);
}

.theme-secondary .service-title::after {
  background-color: var(--text-dark);
}

.theme-secondary .service-card {
  background-color: var(
    --bizify-orange
  ); /* Changed to orange for the alternate theme */
  color: var(--text-light);
}

/* --- Footer Section --- */
.main-footer {
  background-color: var(--bizify-blue);
  color: var(--text-light);
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-columns-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  width: 100%;
}

.footer-column {
  flex: 1;
  min-width: 180px;
  padding: 10px;
}

.footer-column h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--icon-color-footer);
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: var(--link-color-footer);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--link-hover-color-footer);
  text-decoration: underline;
}

.footer-contact-info {
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1200px;
  width: 100%;
}

.footer-contact-info h3 {
  font-size: 20px;
  color: var(--icon-color-footer);
  margin-bottom: 15px;
}

.footer-contact-info p {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.footer-contact-info p i {
  margin-right: 8px;
  color: var(--icon-color-footer);
}

.footer-contact-info p a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-info p a:hover {
  color: var(--icon-color-footer);
  text-decoration: underline;
}

.footer-bottom-bar {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  color: var(--link-color-footer);
  max-width: 1200px;
  width: 100%;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  #top-header {
    padding: 0 20px; /* Adjust padding for smaller screens */
  }

  #top-nav-bar-ul {
    display: none; /* Hide navigation items on smaller screens, consider a hamburger menu */
  }

  #contact-button {
    width: auto; /* Adjust button width */
    padding: 10px 15px;
  }

  #first-section {
    flex-direction: column; /* Stack elements vertically */
    padding: 30px;
    margin-left: 0;
    margin-right: 0;
    gap: 30px;
  }

  .text-content {
    margin-left: 0;
    text-align: center;
  }

  .image-wrapper {
    margin-right: 0;
  }

  #about-section-img {
    width: 100%;
    height: auto;
  }

  .service-section {
    padding: 40px 20px;
  }

  .service-card {
    width: 160px; /* Adjust card width for smaller screens */
    height: 160px;
  }

  .footer-columns-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    min-width: 100%;
    text-align: center;
  }
}
