.about-cover .text h1 {
  margin-bottom: 20px;
}

.about-cover .img1 {
  bottom: 10%;
}

.about-cover .img1 img {
  width: 45%;
}

.about-cover .img3 img {
  width: 21vw;
}

.about-cover .exps {
  color: var(--primary-color);
  width: 100vw;
  padding: 10px 100px;
  text-align: center;
}

.projects-main {
  margin: 50px 0;
  font-family: var(--font-family);
}

.projects-main .options-bar {
  width: 100%;
  /* Light gray background */
  padding: 0.5rem 1rem;
  /* Ensure it stays on top */
  display: flex;
  justify-content: end;
  gap: 1rem;
  margin-bottom: 30px;
}

.projects-main .options-bar button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  background-color: #3b82f6;
  /* Blue background */
  color: var(--primary-color);
  font-weight: 600;
  transition: background-color 0.2s ease-in-out;
}

.projects-main .options-bar button:hover {
  background-color: #2563eb;
  /* Darker blue on hover */
}

.projects-main .grid-container {
  display: grid;
  width: 100%;
  /* gap: 0.5rem;
    padding: 0.5rem; */
  /* Add padding around the grid */
  box-sizing: border-box;
}

/* 4 items per row grid layout */
.projects-main .grid-4-col {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  /* Responsive 4 columns */
  grid-auto-rows: 1fr;
  /* Ensure rows have equal height */
}

/* 2 items per row grid layout */
.projects-main .grid-2-col {
  grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
  /* Responsive 2 columns */
  grid-auto-rows: 1fr;
  /* Ensure rows have equal height */
}

/* Card layout */
.projects-main .card-layout {
  display: flex;
  /* Use flexbox for card layout */
  flex-direction: column;
  /* Stack items vertically */
  align-items: center;
  /* Center items horizontally */
  gap: 1rem;
  /* Gap between cards */
}

.projects-main .grid-item {
  text-decoration: none;
  color: var(--black-color);
  position: relative;
  /* Needed for absolute positioning of overlay */
  overflow: hidden;
  /* Hide parts of the image when scaled */
  cursor: pointer;
  /* Indicate clickable items */
  /* Rounded corners */
  background-color: var(--primary-color);
  /* White background for cards */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for cards */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Specific styles for card layout items */
.projects-main .card-layout .grid-item {
  width: 95%;
  /* Maximum width for cards */
  margin: 0 auto;
  /* Center the cards */
  display: flex;
  /* Use flex for content inside card */
  flex-direction: row;
  background: var(--primary-color);
  border-radius: 0.5rem;
}

.projects-main .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cover the area without distorting aspect ratio */
  /* Increased duration for smoother scale transition */
  transition: transform 0.5s ease-in-out;
  /* Rounded corners */
}

.projects-main .card-layout .grid-item img {
  height: auto;
  /* Auto height for images in card layout */
  max-height: 300px;
  /* Max height for images in card layout */
  /* Occupy most of the width */
  max-width: 400px;
}

.projects-main .card-layout .overlay {
  justify-content: start;
  text-align: left;
  align-items: end;
  position: relative;
  width: 100%;
  height: auto;
  /* Auto height for images in card layout */
  max-height: 300px;
  opacity: 1;
  display: flex;
  flex-direction: column;
  color: var(--black-color);
  padding: 1rem;
  box-sizing: border-box;
  background-color: var(--primary-color);
}

.projects-main .card-layout .overlay-content {
  opacity: 1;
}

.projects-main .overlay {
  color: var(--black-color);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(174 193 223);
  /* Blue overlay with opacity */
  opacity: 0;
  /* Hidden by default */
  /* Increased duration for smoother opacity transition */
  transition: opacity 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
  /* Rounded corners */
}

.projects-main .grid-item:hover img {
  transform: scale(1.2);
  /* Slightly increased scale for more noticeable effect */
}

.projects-main .grid-item:hover .overlay {
  opacity: 1;
  /* Show overlay on hover */
}

.projects-main .overlay-content {
  width: 100%;
  opacity: 0;
  /* Hidden by default */
  /* Adjusted delay and duration for a more staggered fade-in */
  transition: opacity 0.4s ease-in-out 0.2s;
}

.projects-main .grid-item:hover .overlay-content {
  opacity: 1;
  /* Show content on hover */
}

.projects-main .overlay-title {
  font-size: 1.5rem;
  /* Larger font for title */
  font-weight: 600;
  /* Semi-bold font */
  margin-bottom: 0.5rem;
}

.projects-main .overlay-text {
  font-size: 1rem;
  /* Standard font size for text */
  margin-bottom: 1rem;
}

.projects-main .expand-icon {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  /* Size of the icon */
  opacity: 0;
  /* Hidden by default */
  /* Adjusted delay and duration for a more staggered fade-in */
  transition: opacity 0.4s ease-in-out 0.2s;
}

.projects-main .grid-item:hover .expand-icon {
  opacity: 1;
  /* Show icon on hover */
}

button.learn-more {
  margin-top: 50px;
  width: 9rem;
  height: auto;
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

button.learn-more .circle {
  -webkit-transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #000;
  border-radius: 1.625rem;
  width: 100%;
}

button.learn-more .circle .icon {
  -webkit-transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: var(--primary-color);
}

button.learn-more .circle .icon.arrow {
  -webkit-transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

button.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.25rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid var(--primary-color);
  border-right: 0.125rem solid var(--primary-color);
  transform: rotate(45deg);
}

button.learn-more .button-text {
  -webkit-transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

/* Basic responsiveness for smaller screens */
@media (max-width: 1000px) {
  .projects-main {
    margin: 0;
  }

  .projects-main .grid-container {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on smaller screens */
    grid-template-rows: repeat(8, 1fr);
    /* 8 rows on smaller screens */
  }

  .projects-main .options-bar {
    display: none;
  }

  /* 2 items per row grid layout */
  .projects-main .grid-2-col {
    grid-template-columns: repeat(auto-fit, minmax(100vw, 1fr));
    /* Responsive 2 columns */
    grid-auto-rows: 1fr;
    /* Ensure rows have equal height */
  }

  .projects-main .grid-item {
    margin: 20px 20px 0 20px;
    background: var(--primary-color);
    border-radius: 0.5rem;
  }

  .projects-main .grid-item .overlay {
    opacity: 1;
    background: #b9b5cc54;
  }

  .projects-main .grid-item button {
    margin: 0;
  }

  .projects-main .grid-item .overlay .overlay-content {
    display: none;
  }

  .about-cover .exps {
    color: var(--primary-color);
    width: 100vw;
    padding: 10px 20px;
    text-align: center;
  }

  .about-cover .img1 img {
    width: 37%;
  }

  .about-cover .img3 img {
    width: 30vw;
  }

  .about-cover .img2 img {
    width: 27vw;
  }

  .about-cover .img2 {
    top: 20%;
  }
}
