/* ========== Global Styles ========== */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure lazy-loaded images don't flash */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* ========== Navbar ========== */
.navbar {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.navbar-brand img {
  height: 40px;
  max-width: none;
  margin: 0;
  display: block;
  transition: transform 0.3s ease;
}
.navbar-brand img:hover,
.navbar-brand img:focus {
  transform: scale(1.05);
}
.nav-link {
  font-weight: 500;
  color: #333 !important;
  transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #0d6efd !important;
  outline: none;
}

/* ========== Banner ========== */
.banner-container {
  width: 100%;
  height: 64px;
  background-color: #129dd1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.banner-container .banner-img {
  height: 64px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

/* ========== Sections ========== */
.section-wrapper {
  margin-bottom: 4rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #0d6efd;
  position: relative;
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0d6efd;
  margin: 0.5rem auto 0;
}

/* ========== About & Team ========== */
.about-content,
.team-block {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-block:hover,
.team-block:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.team-block h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.team-block span {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

/* ========== Project Cards ========== */
.card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.card img {
  object-fit: cover;
  height: 220px;
  width: 100%;
  margin: 0 auto;      /* centers image if column wider */
  display: block;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}
.card-footer {
  background: #f8f9fa;
  font-size: 0.85rem;
  color: #555;
}

/* ========== Project Modal ========== */
.modal-body img {
  max-height: 500px;
  object-fit: cover;
}
.list-group-item {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Improve accessibility inside modal */
.modal-content:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* ========== Contact ========== */
.connect-section img {
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.connect-info h3 {
  font-weight: 700;
  margin-bottom: 1rem;
}
.connect-info a {
  color: #0d6efd;
  text-decoration: none;
}
.connect-info a:hover,
.connect-info a:focus {
  text-decoration: underline;
  outline: none;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 32px;
  }
  .banner-container {
    height: auto;
    padding: 0.5rem 1rem;
  }
  .banner-container .banner-img {
    height: 48px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .card img {
    height: 180px;
  }
}
@media (max-width: 576px) {
  .section-title {
    font-size: 1.3rem;
  }
  .about-content,
  .team-block {
    padding: 1.5rem;
  }
  .card img {
    height: 160px;
  }
}
