.projects-hero {
  background-image: url("images/galaxy.png"); /* Choose something fitting: futuristic, digital, blueprint, etc */
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.project-section {
  background-color: #f8f8ff;  
  padding: 100px 40px;
}


.project-card {
  display: flex;
  flex-wrap: wrap;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 60px;
  overflow: hidden;
  transition: transform 0.3s ease;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-video {
  flex: 1 1 500px;
  min-width: 300px;
}

.project-video iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
}

.project-info {
  flex: 1 1 500px;
  padding: 40px;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-wrap: break-word; /* 🔧 New: Force wrapping of long text */
  word-break: break-word;    /* 🔧 New: Additional safety for weird cases */
}

.project-info h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 20px;
  margin-bottom: 20px;
  color: #222;
  line-height: 1.4; /* 🔧 Prevent cramped stacking */
}

/* Mobile Fix */
@media (max-width: 768px) {
  .project-info h2 {
    font-size: 16px;
  }

  .project-info {
    padding: 20px;
  }

  .project-list li {
    font-size: 14px;
  }

  .project-card {
    margin: 20px;
  }
}


.project-info p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.project-links a {
  font-family: 'Montserrat', sans-serif;
  display: inline-block;
  margin-right: 15px;
  padding: 10px 20px;
  background-color: #0073e6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.project-links a:hover {
  background-color: #004f99;
}


.project-list {
  margin: 20px 0;
  padding-left: 20px;
  list-style-type: disc;
}

.project-list li {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 8px;
}

.home-img-link {
  display: block;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.home-img {
  width: 40px;
  height: 40px;
}



