/* ========================================================================== 
   Project Section Styling with Multicolor Background
   ========================================================================== */

/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ------------------- Section Container ------------------- */
.project-modern {
  padding: 70px 20px;
  background: linear-gradient(
    135deg,
    #f9f9f9 0%,
    #eef2f7 25%,
    #e0f7fa 50%,
    #fff0f5 75%,
    #faf9e6 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

/* Optional subtle gradient overlay */
.project-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 204, 128, 0.1),
    rgba(128, 204, 255, 0.1),
    rgba(204, 128, 255, 0.1)
  );
  pointer-events: none;
  z-index: 0;
}

/* ------------------- Section Title ------------------- */
.project-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
  background: linear-gradient(90deg, #0f3076, #0f3076);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

/* Decorative line under section header */
.project-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 10px auto 0;
  background: #ead57b; /* Sand Yellow accent */
  border-radius: 2px;
}

/* ------------------- Section Description ------------------- */
.section-header p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* ------------------- Project Grid ------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  position: relative;
  z-index: 1; /* Cards above background */
}

/* ------------------- Project Card ------------------- */
.project-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* ------------------- Project Image ------------------- */
.project-img {
  position: relative;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  overflow: hidden;
  border-bottom: 4px solid #ead57b;
}

.project-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease, filter 0.4s ease;
  display: block;
  margin: 0 auto;
}

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

/* Optional overlay on hover */
.project-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(30, 50, 92, 0.5),
    rgba(30, 50, 92, 0)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-img::after {
  opacity: 1;
}

/* ------------------- Project Info ------------------- */
.project-info {
  padding: 22px 20px;
  text-align: left;
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1e325c;
  transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
  color: #ead57b;
}

.project-info p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* Fancy divider under project title */
.project-info h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #4c6b9e;
  margin-top: 6px;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

.project-card:hover .project-info h3::after {
  width: 60px;
  background: #ead57b;
}

/* ------------------- Responsive ------------------- */
@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
