/* =========================================================
   PROJECTS PAGE
   ========================================================= */

.projects-page {
  min-height: calc(100vh - 120px);
}

/* Secondary button on light backgrounds (Projects page) */
.projects-page .btn.secondary {
  color: var(--text-dark);
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.6);
}

.projects-page .btn.secondary:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 6px var(--accent-cyan-soft);
}

/* Hero */
.projects-hero {
  padding: 5rem 3rem 2rem;
}

.projects-hero-inner {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.projects-hero-text p {
  max-width: 720px;
  opacity: 0.85;
}

.projects-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* Secondary button on light backgrounds */
.projects-secondary {
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.55);
}

.projects-secondary:hover {
  border-color: rgba(0, 194, 255, 0.55);
  box-shadow: 0 0 0 6px var(--accent-cyan-soft);
}

/* Hero highlight card */
.projects-hero-card {
  border-radius: var(--radius);
  padding: 1.8rem;
}

.highlight-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.highlight-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.highlight-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 6px var(--accent-cyan-soft);
  margin-top: 0.4rem;
}

.highlight-item p {
  margin-bottom: 0;
  opacity: 0.8;
}

/* Toolbar */
.projects-toolbar {
  padding: 0 3rem 2rem;
  padding-top: 2.5rem;
  justify-content: center;
}

.projects-toolbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  max-width: 1200px;
}

.chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-liquid),
    border-color 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 194, 255, 0.45);
}

.chip.is-active {
  border-color: rgba(0, 194, 255, 0.55);
  box-shadow: 0 0 0 6px var(--accent-cyan-soft);
}

.hint {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Featured showcase */
.projects-featured {
  padding: 0 3rem 3rem;
  padding-top: 2.5rem;
}

.projects-featured-grid {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.featured-media {
  border-radius: var(--radius);
  height: 360px;

  /* IMAGE */
  background-image:
    radial-gradient(
      700px circle at 30% 25%,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.02)),
    url("imgs/table-shop/KMtables-homepage.png"); /* 👈 your image */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* premium polish */
  overflow: hidden;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

/* Featured text panel so it doesn't blend into the bg video */
.featured-content {
  border-radius: var(--radius);
  padding: 1.8rem;

  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);

  /* keeps shadows/overlays clean */
  position: relative;
  isolation: isolate;
}

.featured-content p {
  opacity: 0.85;
  max-width: 580px;
}

.projects-featured-grid {
  align-items: stretch;
}

.meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.tag {
  font-size: 0.82rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.45);
}

.featured-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Grid section */
.projects-grid-section {
  padding: 2rem 3rem 4rem;
}

.section-head p {
  opacity: 0.75;
  max-width: 680px;
}

.projects-grid {
  margin-top: 2rem;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;

  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);

  transition:
    opacity 420ms var(--ease-liquid),
    transform 420ms var(--ease-liquid),
    filter 420ms var(--ease-liquid);

  will-change: opacity, transform, filter;
}

.projects-grid.is-fading {
  opacity: 0;
  transform: translateY(6px) scale(0.995);
  filter: blur(2px);
  pointer-events: none;
}

.project-card-2 {
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 420ms var(--ease-liquid);
}

.projects-grid.is-fading .project-card-2 {
  transform: translateY(6px);
}

.thumb {
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-liquid);
}

.project-card-2:hover .thumb img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.2rem 1.2rem 1.3rem;
}

.card-body p {
  opacity: 0.8;
}

.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.link {
  text-decoration: none;
  color: var(--text-dark);
  opacity: 0.8;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  width: fit-content;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.link:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 194, 255, 0.55);
  opacity: 1;
}

/* CTA */
.projects-cta {
  padding: 0 3rem 5rem;
  padding-top: 2.5rem;
}

.projects-cta-card {
  max-width: 1200px;
  border-radius: var(--radius);
  padding: 2rem;
}

.projects-cta-card p {
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 1000px) {
  .projects-hero-inner,
  .projects-featured-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
