/* =============================
   NAVBAR
   ============================= */

.navbar {
  background-color: var(--primary);
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-link {
  position: relative;
  color: var(--light-color);
  transition: color 0.2s ease;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.dropdown > .dropdown-menu {
  background-color: white;
  border: none;
  border-radius: 10px;
  position: absolute;
  top: 100;
}

.dropdown > .dropdown-menu li:hover {
  background-color: var(--primary);
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background-color: var(--neutral-bg);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-dark);
}

.nav-link:hover::before {
  width: 100%;
}

.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar.bg-blue {
  background-color: var(--primary) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar.bg-white {
  background-color: #f5f5f5 !important;
}

.navbar.bg-blue .nav-link:hover,
.navbar.bg-blue .nav-link:focus {
  color: var(--light-color) !important;
  transform: none;
  text-decoration: none;
  transform: translateY(-3px);
}

.navbar.bg-white .nav-link {
  color: var(--primary) !important;
}

.navbar.bg-blue .nav-link {
  color: var(--light-color) !important;
}

.navbar .offcanvas {
  background-color: var(--primary);
  color: white;
}

.main-card {
  background: rgba(255, 255, 255, 0.9);
  border-top: 8px solid var(--primary);
  border-bottom: 8px solid var(--primary);
}

.project-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.equal-height {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.equal-height .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-section {
  position: relative;
  top: -250px;
  z-index: 2;
}

.image-section img,
.image-section-h-1000 img {
  width: 100%;
  object-fit: cover;
}

/* Default heights */
.image-section img {
  height: 700px;
}

.image-section-h-1000 img {
  height: 1000px;
}

.badge {
  border-radius: 10px;
  opacity: 0.9;
  transition: all 0.3s ease-in-out;
}

.badge:hover {
  opacity: 1;
  transform: scale(1.05);
}

.sub-heading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
}

.sub-heading {
  font-size: 2.5rem;
  color: black;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 10px;
  position: relative;
}

.sub-heading-line {
  width: 250px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent-color));
  border-radius: 2px;
}

.highlight {
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 3px;
  color: var(--primary);
  font-weight: 500;
}

.service-card {
  border: 3px solid var(--primary);
  border-radius: 1rem;
  box-shadow: 0px 1rem 3rem rgba(0, 0, 0, 0.175);
  padding: 1rem;
}

.styled-hr {
  border: none;
  height: 3px;
  background: linear-gradient(to right, #001f3f, #003366, #00509d);
  width: 50%;
  margin: 10px 0;
  border-radius: 5px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.tall {
  grid-row: span 2;
}

.wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tall,
  .wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 576px) {
  .image-section img,
  .image-section-h-1000 img {
    height: auto;
    object-fit: contain;
  }
  .card-section {
    position: relative;
    top: 0;
    z-index: 2;
  }
}
