/* ===========================================================================
   NAVIGATION — Premium bottom bar + submenu system
   Bold, refined, with rich depth and micro-interactions
   =========================================================================== */


/* Standalone fixed logo — visible only on mobile */
.mobile-fixed-logo {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.mobile-fixed-logo:active {
  transform: scale(0.96);
}

.mobile-fixed-logo img {
  width: auto;
  height: auto;
  max-width: 40vw;
  max-height: 10vh;
  object-fit: contain;
  display: block;
}


/* ---------------------------------------------------------------------------
   Project List — grid of cards (2 cols desktop, 1 col mobile)
--------------------------------------------------------------------------- */
.project-list {
  list-style: none;
  padding: 10px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

/* ---------------------------------------------------------------------------
   Project Card — image-dominant vertical card with stagger entrance
--------------------------------------------------------------------------- */
.project-card {
  --card-accent: var(--cat-color, var(--primary));
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.25s ease;

  /* Stagger entrance */
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  animation: cardSlideUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.project-card:nth-child(1)  { animation-delay: 0.05s; }
.project-card:nth-child(2)  { animation-delay: 0.10s; }
.project-card:nth-child(3)  { animation-delay: 0.15s; }
.project-card:nth-child(4)  { animation-delay: 0.20s; }
.project-card:nth-child(5)  { animation-delay: 0.25s; }
.project-card:nth-child(6)  { animation-delay: 0.28s; }
.project-card:nth-child(n+7) { animation-delay: 0.30s; }

@keyframes cardSlideUp {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hover — lift with accent border */
.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: color-mix(in srgb, var(--card-accent) 30%, transparent);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.06);
}

.project-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.08s;
}

.project-card:focus-visible {
  outline: 2px solid var(--card-accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Card Hero — large image area
--------------------------------------------------------------------------- */
.card-hero {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--gray-100);
}

.card-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gradient overlay at bottom of image */
.card-hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-card:hover .card-hero-grad {
  opacity: 0.65;
}

/* Icon fallback hero */
.card-hero--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.card-hero--icon i {
  font-size: 2rem;
  opacity: 0.55;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.project-card:hover .card-hero--icon i {
  transform: scale(1.2) rotate(-5deg);
  opacity: 0.8;
}

/* ---------------------------------------------------------------------------
   Card Body — title + arrow
--------------------------------------------------------------------------- */
.card-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.card-title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.project-card:hover .card-title {
  color: var(--card-accent);
}

/* Arrow icon */
.card-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--card-accent) 10%, transparent);
  color: var(--card-accent);
  font-size: 0.65rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
  background: var(--card-accent);
  color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--card-accent) 35%, transparent);
}

.card-arrow i {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .card-arrow i {
  transform: translateX(2px);
}

