/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #222;
}

/* CONTAINER */
.projects-container {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}

/* MAIN TITLE */
.main-title {
  color: #e60023;
  font-weight: bold;
  margin-bottom: 10px;
}

.sub-text {
  margin-bottom: 40px;
  color: #555;
}

/* HEADINGS */
h2 {
  color: #e60023;
  margin-top: 40px;
  display: inline-block;
  position: relative;
  font-weight: bold;
}

h2::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #e60023;
  display: block;
  margin: 5px auto 0;
}

/* GRID */
.grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.center {
  justify-content: center;
}

/* CARD */
.card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s ease;
  text-align: left;
}

.card:hover {
  transform: translateY(-5px);
}

/* IMAGE */
/* IMAGE BOX */
/* IMAGE BOX (IMPORTANT) */
.image-box {
  position: relative;   /* 🔥 required for badge positioning */
  width: 100%;
  height: 292px;
  overflow: hidden;
  border-radius: 6px;
}

/* IMAGE */
.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BADGE (ALWAYS VISIBLE) */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  font-size: 12px;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  z-index: 2;

  opacity: 1;              /* 🔥 force visible */
  visibility: visible;     /* 🔥 force visible */
}

/* STATUS COLORS */
.ready {
  background: #28a745;
}

.upcoming {
  background: #e60023;
}

/* CARD TEXT */
.card h3 {
  padding: 10px;
  font-size: 16px;
}

/* SITE SECTION */
.site-box {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.site-box div {
  padding: 20px 40px;
  border: 1px solid #e60023;
  border-radius: 5px;
  font-weight: bold;
}

.site-box span {
  font-size: 24px;
  color: #e60023;
}

.site-text {
  margin-top: 15px;
  color: #555;
}

/* CTA */
.cta {
  margin-top: 60px;
}

.cta h2 {
  margin-bottom: 15px;
}

.cta button {
  padding: 12px 30px;
  border: none;
  background: #e60023;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.cta button:hover {
  background: #c4001d;
}

.site-text {
  margin-top: 15px;
  color: #555;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================= */
/* 📱 TABLET (768px and below) */
/* ========================= */
@media (max-width: 768px) {

  .projects-container {
    padding: 15px;
  }

  /* GRID → 1 column */
  .grid.two {
    grid-template-columns: 1fr;
  }

  
  .image-box {
    height: 220px;   /* slightly smaller for mobile */
  }


  /* IMAGE HEIGHT SMALLER */
  .image-box img {
    height: 210px;
  }

  /* SITE BOX STACK */
  .site-box {
    flex-direction: column;
    gap: 10px;
  }

  .site-box span {
    display: none; /* hide + symbol for clean look */
  }

  /* TEXT ALIGN CENTER */
  .card {
    text-align: center;
  }

}


/* ========================= */
/* 📱 SMALL MOBILE (480px) */
/* ========================= */
@media (max-width: 480px) {

  .main-title {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  .sub-text {
    font-size: 14px;
  }

  /* CARD TEXT */
  .card h3 {
    font-size: 14px;
  }

  /* BADGE SMALLER */
  .badge {
    font-size: 10px;
    padding: 4px 8px;
  }

  /* BUTTON */
  .cta button {
    width: 100%;
    padding: 12px;
  }

}


/* CARD HOVER (SOFT RED SHADOW) */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(230, 0, 35, 0.15); /* 🔥 light red shadow */
}

/* IMAGE ZOOM ONLY */
.image-box img {
  transition: transform 0.4s ease;
}

.card:hover .image-box img {
  transform: scale(1.04); /* subtle zoom */
}