body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

#projectsGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center; 
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 300px;
  min-height: 300px; /* Equal height to help center vertically */
  padding: 10px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 0px;
  text-decoration: none;
  color: inherit;
}

.project img {
  max-height: 200px;
  object-fit: contain; /* preserve aspect ratio */
  margin-bottom: 10px;
  text-decoration: none;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  width: 80%;
  max-width: 600px;
}

#closeModal {
  float: right;
  cursor: pointer;
}

.filter-bar {
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
  font-size: 16px;
  text-decoration: none;
}

.filter-bar a {
  text-decoration: none;
  padding: 8px 16px;
  background-color: #fff;
  border-radius: 20px;
  color: #333;
  transition: background 0.3s;
}

.filter-bar a:hover {
  background-color: #eee;
  text-decoration: none;
}

.filter-bar a.active {
  background-color: #333;
  color: white;
  text-decoration: none;
}

.filter-bar {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  font-size: 18px;
  font-weight: 400;
}

.filter-bar a {
  text-decoration: none;
  color: #333;
  position: relative;
  padding-bottom: 4px;
}

.filter-bar a::after {
  content: '';
  display: block;
  width: 0%;
  height: 1px;
  background: #333;
  transition: width 0.3s;
  position: absolute;
  bottom: 0;
  left: 0;
  text-decoration: none;
}

.filter-bar a:hover::after,
.filter-bar a.active::after {
  width: 100%;
  text-decoration: none;
}

.filter-bar a.active {
  font-weight: 500;
  text-decoration: none;
}

.project h3 {
  font-size: 16px;
  font-weight: normal;
  margin-top: 10px;
  text-align: center;
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.thumbnail {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s;
}

.thumbnail:hover {
  transform: scale(1.05);
}

#lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: row;
}

#lightboxImg {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3em;
  color: white;
  cursor: pointer;
  padding: 10px;
  z-index: 10000;
  user-select: none;
}

#prevArrow { left: 20px; }
#nextArrow { right: 20px; }

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.thumbnail {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
}

.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-logo {
  height: 50px;
}

.main-nav {
  flex: 2;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 18px;
  letter-spacing: 1px;
}


.main-nav a {
  text-decoration: none;
  color: black;
  font-weight: normal;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.main-nav a:hover {
  color: inherit;
  font-weight: bold;
}

.nav-search input {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
}


.project-detail {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.project-info {
  flex: 0 0 20%;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.project-info h2 {
  font-size: 18px;
  margin-bottom: 20px;
}

.project-image {
  flex: 1;
}

.project-image img {
  width: 80%;
  object-fit: cover;
  border-radius: 8px;
}


#loader {
  text-align: center;
  font-size: 14px;
  padding: 20px;
  color: grey;
  display: none;
}


input[type="text"] {
  border: none;
  outline: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 16px;
  color: inherit; /* Inherits text color from parent */
}
