/* ==========================================================================
   FIBER GROUP - Components (Buttons, Cards, Forms, Badges, Tabs)
   ========================================================================== */

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
  text-decoration: none;
  border: 2px solid transparent;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary */
.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(227, 174, 77, 0.20);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

/* Secondary */
.btn--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--secondary:hover {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

/* Ghost (for dark backgrounds) */
.btn--ghost {
  background-color: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.50);
  transform: translateY(-1px);
}

/* Ghost Dark */
.btn--ghost-dark {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost-dark:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- Project Gallery --- */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-4);
}

.project-gallery__item {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--color-surface);
  cursor: pointer;
}

.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slower) var(--ease-out);
}

.project-gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 36, 68, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
  color: #fff;
}

.project-gallery__item:hover img {
  transform: scale(1.08);
}

.project-gallery__item:hover .project-gallery__overlay {
  opacity: 1;
}

.project-gallery__overlay svg {
  transform: translateY(10px);
  transition: transform var(--t-base) var(--ease-out);
}

.project-gallery__item:hover .project-gallery__overlay svg {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .project-gallery {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
}

/* Sizes */
.btn--sm {
  padding: 0.5rem 1.125rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

/* Icon button */
.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Arrow arrow variant */
.btn .btn-arrow {
  transition: transform var(--t-base) var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  /* Softer initial shadow */
  overflow: hidden;
  transition:
    box-shadow var(--t-slower) var(--ease-out),
    transform var(--t-slower) var(--ease-out),
    border-color var(--t-slower) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
  /* Less aggressive hover */
  transform: translateY(-2px);
  /* Smaller lift */
  border-color: var(--color-border);
}

/* --- Project Card --- */
.project-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-dark);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slower) var(--ease-out);
}

.project-card:hover .project-card__image {
  transform: scale(1.06);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(12, 36, 68, 0.92) 0%,
      rgba(12, 36, 68, 0.35) 50%,
      rgba(12, 36, 68, 0.08) 100%);
  transition: opacity var(--t-slow) var(--ease-out);
}

.project-card:hover .project-card__overlay {
  background: linear-gradient(to top,
      rgba(12, 36, 68, 0.96) 0%,
      rgba(12, 36, 68, 0.60) 60%,
      rgba(12, 36, 68, 0.20) 100%);
}

.project-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-6);
  z-index: 2;
}

.project-card__badge {
  margin-bottom: var(--sp-4);
  transform: translateY(10px);
  opacity: 0;
  transition: all var(--t-base) var(--ease-out);
}

.project-card:hover .project-card__badge {
  transform: translateY(0);
  opacity: 1;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: var(--fw-bold);
  color: var(--color-text-inverse);
  margin-bottom: var(--sp-3);
  line-height: var(--lh-tight);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.project-card__meta {
  font-size: var(--text-sm);
  color: var(--color-text-inverse-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.project-card__meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.8;
}

.project-card__cta {
  margin-top: var(--sp-6);
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
  width: 80%;
}

.project-card:hover .project-card__cta {
  opacity: 1;
  transform: translateY(0);
}

/* --- News Card --- */
.news-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-card);
  transition:
    box-shadow var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.news-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface-2);
}

.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slower) var(--ease-out);
}

.news-card:hover .news-card__image {
  transform: scale(1.04);
}

.news-card__body {
  padding: var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__cat {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-3);
  transition: color var(--t-fast);
}

.news-card:hover .news-card__title {
  color: var(--color-accent);
}

.news-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  flex: 1;
}

.news-card__footer {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --- New Premium Product List Card --- */
.product-list-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    box-shadow var(--t-slower) var(--ease-out),
    transform var(--t-slower) var(--ease-out);
  cursor: pointer;
}

.product-list-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.product-list-card__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-2);
}

.product-list-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slower) var(--ease-out);
}

.product-list-card:hover .product-list-card__image {
  transform: scale(1.05);
}

.product-list-card__visual-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 36, 68, 0.04);
  transition: background var(--t-base);
}

.product-list-card:hover .product-list-card__visual-overlay {
  background: rgba(12, 36, 68, 0);
}

.product-list-card__body {
  padding: var(--sp-6) var(--sp-6) var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-list-card__category {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.product-list-card__category::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--color-accent);
}

.product-list-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-3);
  transition: color var(--t-base);
}

.product-list-card:hover .product-list-card__title {
  color: var(--color-accent);
}

.product-list-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
  flex: 1;
}

.product-list-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--sp-4);
  margin-top: auto;
}

.product-list-card__cta {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color var(--t-base);
}

.product-list-card:hover .product-list-card__cta {
  color: var(--color-accent);
}

.product-list-card__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base) var(--ease-out);
}

.product-list-card:hover .product-list-card__cta svg {
  transform: translateX(4px);
}

/* --- Advantage Card --- */
.advantage-card {
  padding: var(--sp-8) var(--sp-6);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-light));
  transition: height var(--t-slow) var(--ease-out);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

.advantage-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(227, 174, 77, 0.20);
}

.advantage-card:hover::before {
  height: 100%;
}

.advantage-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  transition: background-color var(--t-base) var(--ease-out);
}

.advantage-card:hover .advantage-card__icon {
  background: var(--color-accent-muted);
}

.advantage-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.advantage-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--sp-3);
}

.advantage-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

/* --- Certificate / Document Card --- */
.cert-card {
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  transition:
    box-shadow var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
}

.cert-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.cert-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.cert-card__icon svg {
  width: 22px;
  height: 22px;
}

.cert-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.cert-card__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* --- Stat Card --- */
.stat-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--fw-extrabold);
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  display: block;
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-inverse-sec);
  letter-spacing: var(--ls-wide);
  margin-top: var(--sp-3);
  line-height: var(--lh-snug);
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge--ongoing {
  background: var(--badge-ongoing-bg);
  color: var(--badge-ongoing-color);
  border-color: var(--badge-ongoing-border);
}

.badge--completed {
  background: var(--badge-done-bg);
  color: var(--badge-done-color);
  border-color: var(--badge-done-border);
}

.badge--category {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  border-color: rgba(37, 99, 235, 0.16);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  transition:
    border-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-muted);
  outline: none;
}

.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238098AE'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 18px;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ============================================================
   TABS
   ============================================================ */

.tabs-nav {
  display: flex;
  gap: var(--sp-2);
  background: var(--color-surface);
  padding: var(--sp-2);
  border-radius: var(--radius-xl);
  margin-bottom: var(--sp-10);
  width: fit-content;
  margin-inline: auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--color-border-light);
}

.tab-btn {
  padding: 0.875rem 2.5rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  letter-spacing: 0.01em;
  border: none;
  background: none;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.7);
}

.tab-btn.active {
  background: var(--color-white);
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.tab-pane {
  display: none;
  animation: tabReveal var(--t-slow) var(--ease-out) both;
}

.tab-pane.active {
  display: block;
}

@keyframes tabReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumb__item:not(:last-child)::after {
  content: '/';
  opacity: 0.4;
}

.breadcrumb__item a {
  color: var(--color-text-secondary);
  transition: color var(--t-fast);
}

.breadcrumb__item a:hover {
  color: var(--color-accent);
}

.breadcrumb__item:last-child {
  color: var(--color-accent);
  font-weight: var(--fw-medium);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-3) 100%);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(227, 174, 77, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .breadcrumb {
  color: var(--color-text-inverse-muted);
  margin-bottom: var(--sp-5);
}

.page-hero .breadcrumb__item a {
  color: var(--color-text-inverse-sec);
}

.page-hero h1 {
  color: var(--color-text-inverse);
  margin-bottom: var(--sp-5);
}

.page-hero p {
  color: var(--color-text-inverse-sec);
  font-size: var(--text-md);
  max-width: 600px;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-12);
}

.pagination__btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  transition:
    color var(--t-fast),
    border-color var(--t-fast),
    background var(--t-fast);
}

.pagination__btn:hover,
.pagination__btn.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* ============================================================
   VIDEO CARD
   ============================================================ */

.video-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-dark);
  aspect-ratio: 16 / 9;
}

.video-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slower) var(--ease-out);
}

.video-card:hover .video-card__thumb {
  transform: scale(1.04);
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 36, 68, 0.40);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  transition: background var(--t-slow) var(--ease-out);
}

.video-card:hover .video-card__overlay {
  background: rgba(12, 36, 68, 0.55);
}

.video-card__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(227, 174, 77, 0.40);
  transition:
    transform var(--t-base) var(--ease-spring),
    box-shadow var(--t-base) var(--ease-out);
}

.video-card__play svg {
  width: 24px;
  height: 24px;
  color: #fff;
  margin-left: 3px;
}

.video-card:hover .video-card__play {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(227, 174, 77, 0.50);
}

.video-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: #fff;
  text-align: center;
  padding-inline: var(--sp-4);
}

/* ============================================================
   TAG / FILTER PILL
   ============================================================ */

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.filter-pill {
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  transition:
    color var(--t-fast),
    border-color var(--t-fast),
    background var(--t-fast);
}

.filter-pill:hover,
.filter-pill.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
/* --- Project Gallery --- */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

.project-gallery__item {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-surface-2);
  cursor: pointer;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}

.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slower) var(--ease-out);
}

.project-gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 36, 68, 0.8), rgba(12, 36, 68, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
  color: #fff;
}

.project-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-gallery__item:hover img {
  transform: scale(1.08);
}

.project-gallery__item:hover .project-gallery__overlay {
  opacity: 1;
}

.project-gallery__overlay svg {
  transform: translateY(12px);
  transition: transform var(--t-base) var(--ease-out);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.project-gallery__item:hover .project-gallery__overlay svg {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .project-gallery {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
}
