* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #080808;
}

#header {
  font-size: 25px;
  font-weight: bold;
  width: 100%;
  height: 100vh;
  background-image: url("Images/IMG_0893.jpeg"); /* Set background image */
  background-size: cover; /* Cover entire section */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Prevent repetition */
  display: flex;
  align-items: center; /* Center content vertically */
  justify-content: center; /* Center content horizontally */
  text-align: center; /* Align text properly */
  padding-bottom: 50px;
}
#header background-image {
  padding-top: 100px;
}
img {
  width: 20%;
}
.container {
  padding: 10px 10%;
}
nav {
  width: 100%;
  background: white; /* White navigation bar */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed; /* Keep nav fixed at the top */
  top: 0;
  left: 0;
  z-index: 1000; /* Ensure it stays above other elements */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0 40px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  display: inline-block;
  margin: 10px 20px;
}

nav ul li a {
  color: #080808; /* Keep text black for contrast */
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav ul li a::after {
  content: "";
  width: 0;
  height: 3px;
  background: #06802a; /* Green hover effect */
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}

nav ul li a:hover::after {
  width: 100%;
}

.header-text {
  margin-top: 20%;
  margin-right: 80px;
  font-size: 53px;
  color: #06802a;
}
.header-text h1 {
  color: #080808;
}

/* ------------------about------------------ */

#about {
  padding: 50px 20px;
  color: #080808;
}

.row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.aboutCol2 {
  padding: 20px;
}
.aboutCol2 h1 {
  white-space: nowrap;
  font-size: 40px !important;
  margin-right: 1300px;
  margin-top: 10px;
}
.aboutCol1,
.aboutCol2 {
  color: #080808;
  flex: 1;
  min-width: 300px; /* Prevents elements from becoming too narrow */
  text-align: center; /* Centers text on smaller screens */
}

.aboutCol1 img {
  margin-top: 80px;
  width: 60%;
  height: auto;
  border-radius: 10px;
  margin-top: 80px;
}

.aboutCol2 p {
  font-size: 15px; /* Increase size as needed */
  line-height: 1.6; /* Improve readability */
  margin-top: 30px;
}
.aboutCol2 b {
  color: #096926; /* Adjust the shade of green as needed */
}

.aboutCol2 .sub-title {
  font-size: 60px;
  margin-bottom: 15px;
}

.sub-title {
  font-size: 60px;
  font-weight: 600;
  color: #080808;
}
.tab-titles {
  display: flex;
  margin: 20px 0 40px;
}
.tab-links {
  margin-right: 50px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  display: inline-block;
}
.tab-links::after {
  content: "";
  width: 0;
  height: 3px;
  background: #06802a;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: width 0.5s ease;
}
.tab-links.active-link::after {
  width: 50%;
}
.tab-links:hover::after {
  width: 100%;
}
.tab-contents {
  list-style: none;
  margin: 10px 0;
}
.tab-contents ul li span {
  color: #06802a;
  font-size: 14px;
}
.tab-contents {
  display: none;
}
.tab-contents.active-tab {
  display: block;
}
/* ----------portfolio------------- */

#portfolio {
  margin-top: 150px; /* Reduce margin for better spacing */
  padding: 50px 20px;
}

/* Grid Layout: Single Row on Large Screens */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  justify-content: center;
}

/* Default: Ensure Images Fit Properly */
.projects {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image Styling */
.projects img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.5s;
}

/* Hover Effect */
.projects:hover img {
  transform: scale(1.05);
}

/* Overlay Layer */
.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), #06802a);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 20px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
}

/* Layer Hover Effect */
.projects:hover .layer {
  height: 100%;
}

/* Typography Adjustments */
.aboutCol3 h1 {
  margin-top: 30px;
  margin-bottom: 50px;
  font-size: 35px;
  text-align: center;
  white-space: nowrap; /* Prevents text from wrapping */
  margin-right: auto; /* Remove the large right margin */
  margin-left: auto; /* Center aligns */
  display: block; /* Ensures full width if needed */
}

.aboutCol3 p {
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 50px;
}
.aboutCol3 b {
  color: #096926;
}
.aboutCol4 p {
  color: #fff;
  font-size: 13px;
}
.aboutCol4 b {
  color: #080808;
}
.aboutCol4 h3 {
  color: #fff;
  font-size: 20px;
  text-decoration: underline;
}

/* Button & Links */
.layer a {
  margin-top: 15px;
  font-size: 16px;
  width: 50px;
  height: 50px;
  line-height: 50px;
}
.click {
  font-size: 6px;
  margin-right: 25px;
}

/* Large Screens: Display Images in One Row */
@media (min-width: 1024px) {
  .project-list {
    display: flex;
    flex-wrap: nowrap; /* Ensures a single row */
    gap: 20px;
  }

  .projects {
    flex: 1; /* Ensures equal sizing */
  }

  .projects img {
    width: 100%;
    height: 250px; /* Ensures uniform height */
  }
}

/* Medium Screens (Tablets) */
@media (max-width: 1024px) {
  .project-list {
    grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
  }

  .projects img {
    height: 200px;
  }

  .aboutCol3 h1 {
    font-size: 28px;
  }

  .aboutCol3 p {
    font-size: 13px;
  }
}

/* Small Screens (Mobile) */
@media (max-width: 768px) {
  .project-list {
    grid-template-columns: 1fr; /* Full-width images */
  }

  .projects img {
    height: 180px;
  }

  .aboutCol3 h1 {
    font-size: 24px;
  }

  .aboutCol3 p {
    font-size: 12px;
  }

  .layer {
    font-size: 12px;
    padding: 0 10px;
  }

  .layer a {
    font-size: 14px;
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
}

/* ----------------------------------contact------------------------------------ */
#contact {
  margin-top: 150px;
}
.contact-left {
  flex-basis: 35%;
}
.contact-left p {
  margin-top: 50px;
  font-size: 15px;
}
.contact-left b {
  color: #096926;
}
.contact-left h1 {
  margin-top: 150px;
  font-size: 40px;
  margin-right: 800px;
  white-space: nowrap;
}
.contact-left p i {
  color: #06802a;
  margin-right: 15px;
  font-size: 25px;
}
.social-icons {
  margin-top: 30px;
}
.social-icons a {
  text-decoration: none;
  font-size: 30px;
  margin-right: 15px;
  color: #ababab;
  display: inline-block;
  transition: transform 0.5s;
}
.social-icons a:hover {
  color: #06802a;
  transform: translateY(-5px);
}
.btn.btn2 {
  display: inline-block;
  background: #06802a;
}
.btn.btn3 {
  display: inline-block;
  background: #06802a;
  margin-left: 20px;
}
.copyright {
  width: 100%;
  text-align: center;
  padding: 25px 0;
  background: #262626;
  font-weight: 500;
  margin-top: 20px;
}
.copyright i {
  color: #06802a;
}
.copyright {
  color: #fff;
}

/* -------------css for small screen-------------- */
nav .fas {
  display: none;
}
@media (max-width: 768px) {
  #header {
    background-size: contain; /* Try 'contain' instead of 'cover' */
    min-height: 100vh;
  }
}

@media only screen and (max-width: 600px) {
  #header {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
  }
  .logo {
    width: 150px; /* Default size */
    height: auto; /* Maintain aspect ratio */
  }

  @media (max-width: 768px) {
    .logo {
      width: 200px; /* Increase size for smaller screens */
    }
  }

  @media (max-width: 480px) {
    .logo {
      width: 250px; /* Even larger for very small screens */
    }
  }

  .header-text {
    margin-top: 2vh;
    font-size: 5vw;
    font-style: italic;

    color: #06802a;
  }
  .header-text h1 span {
    font-size: 8vw;
  }

  #about {
    font-size: 4vw;
    margin-right: 20vw;
    padding: 2vh;
    width: 90vw;
  }
  #about h1 {
    margin-top: 15;
  }
  @media (max-width: 600px) {
    .projects:active img,
    .projects:focus img {
      transform: scale(1.1);
    }

    .projects:active .layer,
    .projects:focus .layer {
      height: 100%;
    }

    .btn:active,
    .btn:focus {
      background-color: #06802a;
      color: #fff;
    }
  }
  #contact {
    font-size: 4vw;
    margin-right: 20vw;
    padding: 2vh;
    width: 90vw;
  }
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .row {
      flex-direction: column; /* Stack items vertically */
    }

    .aboutCol1 {
      display: none;
    }

    .aboutCol2 p {
      font-size: 13px; /* Reduce text size slightly */
      line-height: 1.5;
    }
    .contact-left h1 {
      font-size: 30px;
    }
  }
  @media (max-width: 768px) {
    .aboutCol2 h1 {
      font-size: 8vw;
      margin-right: 0;
    }
  }
  @media (max-width: 768px) {
    .contact-left {
      flex-basis: 100%; /* Full width */
      text-align: center; /* Center text */
      margin-bottom: 20px;
    }

    .contact-left h1 {
      font-size: 8vw; /* Responsive font size */
      margin-right: 0; /* Remove large margin */
    }

    .contact-left p {
      font-size: 4vw;
      padding: 0 5%;
    }

    .row {
      flex-direction: column; /* Stack elements */
    }
  }

  nav .fas {
    display: block;
    font-size: 5vw;
  }

  nav ul {
    flex-direction: column;
    display: flex;
    background: #06802a;
    position: fixed;
    top: 0;
    right: -50vw;
    width: 50vw;
    height: 35vh;
    z-index: 2;
    transition: right 0.5s;
    align-items: center;
  }

  nav ul li {
    display: block;
    margin: 2vh;
  }

  nav ul .fas {
    position: absolute;
    top: 2vh;
    left: 5vw;
    cursor: pointer;
  }

  .sub-title {
    font-size: 8vw;
  }

  .aboutCol1,
  .aboutCol2 {
    flex-basis: 100%;
  }

  .aboutCol1 {
    margin-bottom: 5vh;
  }

  .aboutCol2 {
    font-size: 3vw;
  }

  .tab-links {
    font-size: 3.5vw;
    margin-right: 5vw;
  }
}

@media (max-width: 768px) {
  .aboutCol2 {
    text-align: left; /* Aligns text from left to right */
    width: 100%; /* Ensures full width */
    padding: 10px 20px; /* Adds some spacing on the sides */
  }

  .aboutCol2 p {
    text-align: left; /* Aligns paragraph text to the left */
    width: 100%; /* Ensures it fills the screen */
    margin: 0; /* Removes unwanted margin that may cause centering */
  }
}

@media (hover: hover) {
  #click\ me {
    display: none;
  }
}
