:root {
  --theme-color: rgba(253, 214, 4, 1);
  --theme-color-dark: rgba(168, 140, 0, 1);
  --bg-color: rgba(248, 248, 246, 1);
  --text-dark: #1a1a24;
  --text-muted: #5a5a66;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  padding: 24px 40px;
  overflow: visible;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--theme-color-dark);
}

/* Sticky Top Bar (home button stays pinned) */
.page-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-color);
  padding: 14px 0;
  margin-bottom: 12px;
}

/* Skills Grid — single row, 6 columns */
.skills-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: stretch;
}

/* Skill Card */
.skill-card {
  background: white;
  border-radius: 24px;
  padding: 22px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, border-top-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--theme-color);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
}

/* Pictogram */
.skill-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.skill-card:hover .skill-icon {
  filter: grayscale(0%) opacity(1) drop-shadow(0 3px 5px rgba(168, 140, 0, 0.45));
  transform: scale(1.06);
}

/* Skill Name */
.skill-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 14px 0 10px;
  line-height: 1.25;
}

/* Divider */
.skill-divider {
  width: 40px;
  height: 2px;
  background-color: var(--theme-color);
  border: none;
  border-radius: 2px;
  margin: 0 0 14px;
}

/* Keyword Chips */
.skill-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: rgba(253, 214, 4, 0.08);
  border: 1px solid rgba(168, 140, 0, 0.35);
  border-radius: 50px;
  padding: 5px 10px;
  line-height: 1.3;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.skill-card:hover .skill-chip {
  background-color: rgba(253, 214, 4, 0.18);
  color: var(--text-dark);
}

/* ===========================
   Scroll Animations
   =========================== */
.hidden-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.show-section {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
