/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  color: #333;
  background: #f9f9f9;
  overflow-x: hidden;
}

/* Projects Header Styling */
/* Header Section */
.projects-header {
  background-color: #151B54;
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
  /* border-radius: 0 0 20px 20px; */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

}

.projects-header h1 {
  margin-top: 50px;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.projects-header h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: #f1f1f1;
}

.projects-header p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.projects-header .explore-btn {
  padding: 0.8rem 2rem;
  background-color: #fff;
  color: #151B54;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.projects-header .explore-btn:hover {
  background-color: #151B54;
  color: #fff;
  border: 1px solid white;
}

.projects-header .explore-btn:focus {
  outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-header {
    padding: 2.5rem 1.2rem;
  }

  .projects-header h1 {
    font-size: 2.5rem;
  }

  .projects-header h2 {
    font-size: 1.6rem;
  }

  .projects-header p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .projects-header .explore-btn {
    padding: 0.7rem 1.5rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .projects-header h1 {
    font-size: 2rem;
  }

  .projects-header h2 {
    font-size: 1.4rem;
  }

  .projects-header p {
    font-size: 0.9rem;
  }

  .projects-header .explore-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}

/* Project Categories */
.project-categories {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.project-categories button {
  padding: 0.7rem 1.5rem;
  margin: 0 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: #151B54;
  color: #fff;
  border: none;
  border-radius: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-categories button.active,
.project-categories button:hover {
  background-color: #1e229f;
  transform: scale(1.1);
}

/* Project Gallery Layout */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  justify-items: center;
}

/* Individual Project Card */
.project-card {
  position: relative;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  will-change: transform, box-shadow;
}

/* Hover Effects on Project Card */
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0.95;
}

/* Project Link Styling */
.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
}

/* Project Image Styling */
.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 2px solid #eee;
  transition: opacity 0.3s ease;
  display: block;
}

/* Project Info Section */
.project-info {
  padding: 1.5rem;
  text-align: center;
  background-color: #fff;
}

.project-info h3 {
  font-size: 1.9rem;
  color: #333;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.project-info p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.8rem;
  text-align: justify;
}

.view-details {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #151B54;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/* View Details Button Hover Effects */
.view-details:hover {
  background-color: rgb(21, 113, 211);
}

.view-details:focus {
  outline: none;
}

/* Responsive Design for Tablets */
@media (max-width: 1024px) {
  .project-gallery {
    padding: 1.5rem;
  }

  .project-info h3 {
    font-size: 1.7rem;
  }

  .project-info p {
    font-size: 0.95rem;
  }
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
  .project-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 1.2rem;
  }

  .project-info h3 {
    font-size: 1.6rem;
  }

  .project-info p {
    font-size: 0.9rem;
  }

  .view-details {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

/* Additional Mobile Optimization */
@media (max-width: 480px) {
  .project-info h3 {
    font-size: 1.4rem;
  }

  .project-info p {
    font-size: 0.85rem;
  }

  .view-details {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .project-image {
    height: 200px;
  }
}

/* Section Padding and Margin Adjustments */
section {
  padding: 2rem;
  margin: 0 auto;
}

/* Improved Card Hover Effects and Transitions */
.project-card {
  transition: all 0.3s ease;
}

.project-card:hover .project-image {
  opacity: 0.8;
}


/* Call to Action */
/* CTA Section */
.cta {
  background-color: #f8f9fa;
  padding: 4rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.cta-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  padding: 1rem 2.5rem;
  background-color: #151B54;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  margin-top: 1rem;
}

.cta-btn:hover {
  background-color: #151B54;
  transform: translateY(-3px);
}

.cta-btn:focus {
  outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cta {
    padding: 3rem 1.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-btn {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .cta {
    padding: 2.5rem 1rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }
}




/* Gallery Section */
.gallery-section {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.gallery-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.gallery-header p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.filter-buttons {
  margin-bottom: 2rem;
}

.filter-btn {
  background-color: #151B54;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 25px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-right: 1rem;
}

.filter-btn:hover {
  background-color: rgb(18, 112, 211);
  transform: translateY(-3px);
}

.filter-btn:focus {
  outline: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.image-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0.5rem;
  border-radius: 5px;
  width: 90%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .image-overlay {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-header h2 {
    font-size: 2rem;
  }

  .gallery-header p {
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .filter-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .gallery-header h2 {
    font-size: 1.7rem;
  }

  .gallery-header p {
    font-size: 0.9rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .gallery-item img {
    height: 200px;
  }
}



/* Keyframes for Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}







/* Responsive Styles */

/* Adjust text and layout for smaller screens */
@media (max-width: 1200px) {
  .projects-header h1 {
    font-size: 2.5rem;
  }

  .projects-header p {
    font-size: 1.1rem;
    padding: 0 1.5rem;
  }

  .cta h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 992px) {
  .project-categories button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .projects-header h1 {
    font-size: 2.2rem;
        margin-top: 80px;
  }
}

@media (max-width: 768px) {
  .project-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .projects-header h1 {
    font-size: 2rem;
  }

  .projects-header p {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 576px) {
  .projects-header {
    padding: 2rem 1rem;
  }

  .project-categories {
    flex-direction: column;
    align-items: center;
  }

  .project-categories button {
    margin: 0.3rem 0;
    font-size: 0.9rem;
  }

  .project-info h3 {
    font-size: 1.3rem;
  }

  .project-info p {
    font-size: 0.85rem;
  }

  .cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .project-categories {
    flex-direction: column;
    padding: 1rem;
  }

  .project-categories button {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .cta .cta-btn {
    font-size: 0.9rem;
    padding: 0.8rem 1.8rem;
  }
}




/* Modal for Image Popup */
/* Modal for Image Popup */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 800px;
  background: transparent;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.modal-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background-color: transparent;
  border: none;
  padding: 5px 10px;
  outline: none;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ff0000;
}

/* Animation for Modal */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}