/* HERO */
.hero {
  background: linear-gradient(rgba(11,19,43,0.7), rgba(28,28,28,0.7)),
              url('../images/projects.JPG') no-repeat center center/cover;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: 36px;
  color: #00F5D4;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* SECTION */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.case-studies-header {
  text-align: center;
  margin-bottom: 40px;
}
.case-studies-header h2 {
  font-size: 2rem;
  color: #6C63FF;
}
.case-studies-header p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

/* PROJECT CONTAINER */
.project {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.project:hover { transform: translateY(-5px); }

/* ✅ MANUAL ALTERNATION */
.project.left { flex-direction: row; }
.project.right { flex-direction: row-reverse; }

/* CONTENT */
.project-content {
  flex: 1;
  padding: 20px;
}
.project-content h3 {
  color: #6C63FF;
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.project-content p,
.project-content ul li {
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 10px;
}
.project-content ul {
  margin: 10px 0;
  padding-left: 20px;
}

/* IMAGES (smooth fade + zoom) */
.project-images {
  flex: 1;
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
}
.project-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease-in-out, transform 5s ease;
}
.project-images img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* SCADA (single image fix) */
.project-images img:only-child {
  position: relative;
  opacity: 1;
  transform: scale(1);
  width: 100%;
  height: auto;
}

/* VIDEO LINKS */
.video-link-section {
  margin: 40px 0;
  text-align: center;
}
.video-link-section h4 {
  color: #6C63FF;
  margin-bottom: 10px;
}
.video-link-section a {
  color: #00F5D4;
  font-weight: bold;
  text-decoration: underline;
}
.video-link-section a:hover { color: #6C63FF; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .project {
    flex-direction: column !important;
  }
  .project-content {
    width: 100%;
    padding: 20px;
    text-align: left;
  }
  .project-images {
    width: 100%;
    height: 250px;
  }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .project-content h3 { font-size: 18px; }
  .project-content p, .project-content ul li { font-size: 14px; }
  .project-images { height: 200px; }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
