@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  font-family: 'Poppins', sans-serif, Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

header {
  background-color: #f0f0f0;
  width: 100%;
  position: fixed;
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 10px 50px; /* Adjusted padding */
  justify-content: space-between; /* Re-added justify-content */
}

.logo {
  text-decoration: none;
  color: #4e4b4b;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.6em;
}

.navigation {
  display: flex;
}

.navigation a {
  color: #4e4b4b;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  padding-left: 30px;
}

.navigation a:hover {
  color: #601cfc;
}

.header-right {
  display: flex;
  align-items: center;
}

.main-btn {
  color: #ffffff; /* White text color */
  background-color: #4e4b4b; /* Black background color */
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 600;
  display: inline-block;
  padding: 0.9375em 2.1875em;
  letter-spacing: 1px;
  border-radius: 15px;
  margin-bottom: 20px;
  transition: 0.7s ease;
}

.main-btn:hover {
  background-color: #4e4b4b; /* Black background color on hover */
  transform: scale(1.1);
}

.social-icons a {
  color: #fff;
  font-size: 1.5em;
  padding-right: 15px; /* Adjusted spacing */
  align-items: center;
}

.image-placeholders {
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between the image containers */
  margin-top: 20px; /* Space above the image containers */
}

.image-placeholder {
  width: 150px; /* Width of each image container */
  height: 150px; /* Height of each image container */
  border-radius: 8px; /* Rounded corners */
  overflow: hidden; /* Ensures image doesn't overflow */
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder img {
  width: 100%; /* Scale image to fit container width */
  height: 100%; /* Scale image to fit container height */
  object-fit: cover; /* Cover the container while maintaining aspect ratio */
}

section {
  padding: 100px 200px;
}

.main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: left;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 50px;
  z-index: 1; /* Ensure content is above the pseudo-element */
}

.main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* Cover the entire container */
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
  z-index: -1; /* Place behind content */
}

.main::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(Images/IMG_9769.jpg) no-repeat;
    background-size: cover;
    background-position: center calc(20% - 20px);
    z-index: -2;
    transform: scaleX(-1);
}

.main h2 {
  color: #fff;
  font-size: 1.2em;
  font-weight: 500;
}

.main h2 span {
  display: inline-block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 2.0em;
  font-weight: 600;
}

.main h3 {
  color: #fff;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 10px;
  margin-bottom: 30px;
}

.title {
  display: flex;
  justify-content: center;
  color: #4e4b4b;
  font-size: 2.2em;
  font-weight: 800;
  margin-bottom: 30px;
}

.content {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.card {
  background-color: #fff;
  width: 21.25em;
  box-shadow: 0 5px 25px rgba(1, 1, 1, 0.15);
  border-radius: 10px;
  padding: 25px;
  margin: 15px;
  transition: 0.7s ease;
}

.card:hover {
  transform: scale(1.1);
}

.card .icon {
  color: #4e4b4b;
  font-size: 8em;
  text-align: center;
}

.info {
  text-align: center;
}

.info h3 {
  color: #4e4b4b;
  font-size: 1.2em;
  font-weight: 700;
  margin: 10px;
}

.projects {
  background-color: #4e4b4b;
}

.projects .title {
  color: #ffffff; /* Replace with your desired color */
  font-size: 2.2em;
  font-weight: 800;
  display: flex;
  justify-content: center;
  margin-bottom: 70px; /* Further reduce the space below the title */
  margin-top: 10px; /* Keep the space above the title unchanged */
}

.projects .content {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
  grid-template-rows: repeat(3, auto); /* Three rows with automatic height based on content */
  gap: 20px; /* Space between cards */
  margin-top: 0; /* No extra space above the content */
}

/* Ensure all project cards have consistent sizing */
.project-card {
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 10px;
  margin: 0; /* Remove margin if using grid layout */
  overflow: hidden;
  transition: 0.7s ease;
  display: flex;
  flex-direction: column; /* Ensure vertical alignment */
  align-items: center; /* Center items horizontally */
  justify-content: center; /* Center items vertically */
}

/* Adjust the size of images or videos inside the project cards */
.project-image img,
.project-image video {
  width: 100%; /* Ensure media fits within the card */
  height: auto; /* Maintain aspect ratio */
}

/* Adjust title and info positioning inside each card */
.project-info {
  padding: 1em;
  text-align: center;
}

.project-category {
  font-size: 0.8em;
  color: #4e4b4b;
}

.project-title {
  display: flex;
  justify-content: center; /* Center title horizontally */
  text-transform: uppercase;
  font-weight: 800;
  margin-top: 10px;
}

.more-details {
  text-decoration: none;
  color: #4e4b4b;
}

.more-details:hover {
  color: #601cfc;
}

.contact .icon {
  font-size: 4.5em;
}

.contact .info h3 {
  color: #4e4b4b;
}

.contact .info p {
  font-size: 1.5em;
}

.footer {
  background-color: #4e4b4b;
  color: #fff;
  padding: 2em;
  display: flex;
  justify-content: space-between;
}

.footer-title {
  font-size: 1.3em;
  font-weight: 600;
}

.footer-title span {
  color: #4e4b4b;
}

.footer .social-icons a {
  font-size: 1.3em;
  padding: 0 12px 0 0;
}

@media (max-width: 1023px) {
  header {
    padding: 12px 20px;
  }

  .navigation a {
    padding-left: 10px;
  }

  .title {
    font-size: 1.8em;
  }

  section {
    padding: 80px 20px;
  }

  .main {
    flex-direction: column;
    padding: 30px 20px;
  }

  .main::after {
    background-size: cover;
  }

  .main h2 {
    font-size: 1em;
  }

  .main h2 span {
    font-size: 1.5em;
  }

  .main h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .projects .content {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px; /* Adjust spacing */
  }
}

@media (max-width: 767px) {
  .logo {
    font-size: 1.2em;
  }

  .navigation {
    display: none;
  }

  .header-right {
    justify-content: space-between;
    width: 100%;
  }

  .main-btn {
    font-size: 0.8em;
    padding: 0.7em 1.5em;
    margin-bottom: 0;
  }

  .image-placeholders {
    flex-direction: column; /* Stack the image containers vertically */
    gap: 10px; /* Adjust spacing */
  }

  .image-placeholder {
    width: 100%; /* Full width for each container */
    height: auto; /* Adjust height to maintain aspect ratio */
  }

  .title {
    font-size: 1.5em;
  }

  .projects .title {
    font-size: 1.5em;
    margin-bottom: 30px;
  }

  .project-category {
    font-size: 0.7em;
  }

  .project-title {
    font-size: 0.9em;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-title {
    margin-bottom: 1em;
  }

  .footer .social-icons {
    justify-content: center;
    margin-top: 1em;
  }
}
