
/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
   font-family: 'Poppins', sans-serif;
}
.projects-section {
  padding: 80px 20px;
  color: white;
  max-width: 1440px;
  margin: auto;
}

.projects-heading h5 {
  color: #ABFF25;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-size: 1.5rem;
  text-align: center;
}

.projects-heading h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.projects-heading h2 span {
  color: #ABFF25;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  padding: 0 20px;
}

.project-card {
  background: #0a0f0a;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  border-radius: 0;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
  text-align: center;
}

.project-info .category {
  color: #ABFF25;
  font-size: 14px;
  margin-bottom: 5px;
}

.project-info h3 {
  font-size: 1rem;
  color: white;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .project-info h3 {
    font-size: 1rem;
  }
  .project-card img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .projects-heading h2 {
    font-size: 1.7rem;
  }
  .project-card {
    width: 100%;
  }
  .project-card img {
    height: 300px;
  }
  .project-info h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .projects-heading h2 {
    font-size: 1.5rem;
  }
  .project-card img {
    height: 320px;
  }
  .project-info h3 {
    font-size: 0.9rem;
  }
}

@media (max-width: 375px) {
  .project-card img {
    height: 330px;
  }
}
@media (min-width: 600px) and (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: center;
  }

  .project-card {
    width: 100%;
    max-width: 400px;
    margin: auto;
  }

  .project-card img {
    height: 350px;
  }

  .project-info h3 {
    font-size: 1.1rem;
  }
}
@media (max-width: 800px) {
  .project-grid {
    display: grid !important; /* force grid */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 10px;
  }
}
@media (max-width: 450px) {
  .project-grid {
    display: grid !important; /* force grid */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 10px;
  }
  .project-card img{
    height: 120px;
    width: 130px;
  }
}
/* === Fix 2: Hero section font size === */
@media (max-width:400px) {
  .hero-text h2 {
  font-size: 1.3rem !important;
  line-height: 1.4;
}
.hero-text p {
  font-size: 0.9rem !important;
}

}
@media (max-width:1000px) {
  .hero-text h2 {
    text-align: left;
  font-size: 1.3rem !important;
  line-height: 1.4;
}
.hero-text p {
  text-align: left;
  font-size: 0.9rem !important;
}

}
/* === Fix 3: Projects section card layout === */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 10px;
}
.project-info h3 {
  font-size: 0.9rem;
  word-wrap: break-word;
  line-height: 1.2;
  max-width: 200px;
  margin: 0 auto;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .project-info h3 {
    font-size: 0.85rem;
  }
}
@media(max-width:350px){
  .footer-bottom p{
    font-size: 0.70rem;
  }
}

/*Home Page Css*/
.c1{
    color: #abff25;;
}
#c2 a{
    color: white; 
    text-decoration: none;
}

.c3 li{
    color: white; 
    text-decoration: none;
}
.c4 {
width: 25rem !important;
 height: 15rem;
}


#p1 a{
  text-decoration: none;

}