:root {
  --thm-body-font-family: 'Rubik', sans-serif;
  --thm-heading-font-family: 'Rajdhani', sans-serif;
  --thm-primary-color: #fd7e14;
  --thm-secondary-color: #fd7e14;
  --thm-background-color: #262525;
  --thm-body-font-color: #BEBEBE;
  --thm-heading-font-color: #ffffff;
  --thm-paragraph-color: #BEBEBE;
  --thm-body-font-size: 16px;
  --thm-body-font-weight: 400;
  --thm-heading-font-weight: 700;
  --thm-body-background: #141416;
  --thm-black-bg: #1A1A1C;
  --thm-blue: #0d6efd;
  --thm-indigo: #6610f2;
  --thm-purple: #6f42c1;
  --thm-pink: #d63384;
  --thm-red: #dc3545;
  --thm-orange: #fd7e14;
  --thm-yellow: #ffc107;
  --thm-green: #198754;
  --thm-teal: #20c997;
  --thm-cyan: #0dcaf0;
  --thm-white: #ffffff;
  --thm-black: #141416;
  --thm-gray: #E3E3E3;
  --black-bg: #1A1A1C;
}

.blog-text-limit {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* show only 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  /* ✅ Standard property for new browsers */
  line-clamp: 3;
  box-orient: vertical;

  /* ✅ Ensures proper spacing */
  line-height: 1.6em;
  max-height: calc(1.6em * 3);
  word-break: break-word;
}

.project-card {
  height: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-img img {
  transition: transform 0.4s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 94, 0, 0.85), rgba(0, 0, 0, 0.85));
  opacity: 0;
  transform: translateY(60%);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Title Animation */
.project-title {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.project-card:hover .project-title {
  opacity: 1;
  transform: translateY(0);
}

/* Description Hidden Initially */
.project-desc {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.6s ease;
}

/* On Hover → Show full description */
.project-card:hover .project-desc {
  opacity: 1;
  /* max-height: 200px; */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Show only 2 lines */
  line-clamp: 2;
  /* Standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 5em;
  /* just in case fallback */
}

.project-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Show only 2 lines */
  line-clamp: 2;
  /* Standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 5em;
  /* just in case fallback */
}


/* Case Study Box */
.case-box {
  transition: all 0.3s ease-in-out;
  border-radius: 15px;
}

.case-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Image wrapper */
.case-img {
  width: 100%;
  height: 220px;
  /* ✅ same height for all */
  overflow: hidden;
}

.case-img-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ✅ keeps ratio like your screenshot */
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.case-box:hover .case-img-inner {
  transform: scale(1.05);
  /* subtle zoom effect */
}

/* Soft Badge */
.bg-soft-primary {
  background-color: rgba(59, 130, 246, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 6px 14px;
}