/*************************************************************
  COLORS & VARIABLES
*************************************************************/
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --gradient-start: #6a82fb;
  --gradient-end: #fc5c7d;
}

/*************************************************************
  NAVBAR
*************************************************************/
.navbar-light {
  background-color: #ffffff;
}

/* Navbar Links */
.nav-link {
  color: var(--secondary-color);
  transition: color 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

/* Logo brand text as H1 */
.navbar-brand h1 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin: 0;
}

/*************************************************************
  HERO SECTION
*************************************************************/
/* HERO SECTION FIX */
.hero-section {
  position: relative;
  width: 100%;
  height: auto;
}

.hero-img-limited {
  width: 100%;
  height: auto;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: white;
  max-width: 40%;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5); /* Slight background to make text readable */
  border-radius: 10px;
}

/* Text scaling for responsiveness */
.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: bold;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-content {
    max-width: 80%; /* Allow more space on small screens */
    left: 10%;
    padding: 1rem;
  }
}

/*************************************************************
  SOLUTIONS SECTION (Gradient)
*************************************************************/
.solutions-section {
  background-image: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  padding: 4rem 0;
  text-align: center;
}
.solutions-section h2,
.solutions-section p {
  color: #fff;
}

/*************************************************************
  BUTTONS
*************************************************************/
.btn-primary {
  background-image: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  border: none;
  transition: 0.3s ease;
}
.btn-primary:hover {
  opacity: 0.9;
}

/*************************************************************
  CARD & SECTION STYLING
*************************************************************/
.card {
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}
.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
section h2 {
  font-weight: 700;
  color: var(--dark-color);
  font-size: 2rem;
}
/* Overwrite solutions-section's h2 color, since it's on a gradient background */
.solutions-section h2 {
  font-size: 2.5rem;
  color: #fff;
}

/*************************************************************
  FOOTER
*************************************************************/
footer {
  background: var(--dark-color);
}
footer p {
  margin: 0;
  font-size: 0.9rem;
}
.is-invalid {
  border: 2px solid red !important;
}

/*************************************************************
  MOBILE NAVIGATION FIX
*************************************************************/
@media (max-width: 991px) {
  .navbar-collapse {
    text-align: center;
  }

  .navbar-nav {
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link, .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
  }
}
.service-img {
  width: 100%;
  height: auto;
  max-width: 500px; /* Adjust if needed */
  object-fit: contain;
}
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
  color: black;
}
