/* ============================================================
   AUVELO — pages/skills.css
   Monochrome Glassmorphism, Plus Jakarta Sans, Full Motion
   ============================================================ */

/* Nav Logo Image Guard (Synced with index_3.html) */
.nav__logo-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
}

/* ============================================================
   SKILLS HERO & AMBIENT LIGHTING
   ============================================================ */
.skills-hero {
  position: relative;
  padding: 150px 0 var(--sp-2xl);
  overflow: hidden;
}

.skills-ambient-glow {
  position: absolute;
  top: -100px;
  right: -6%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(180, 180, 180, 0.03) 44%,
    rgba(0, 0, 0, 0) 72%
  );
  pointer-events: none;
  z-index: 0;
  animation: skillsAmbientFloat 9s ease-in-out infinite alternate;
}

@keyframes skillsAmbientFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.72;
  }
  100% {
    transform: translate(-28px, 20px) scale(1.07);
    opacity: 1;
  }
}

.skills-canvas {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.skills-container {
  position: relative;
  z-index: 2;
}

.skills-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.skills-hero-copy {
  max-width: 680px;
}

.skills-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--grey-c8);
  margin-bottom: 24px;
}

.skills-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 10px #ffffff;
}

.skills-hero-title {
  font-size: var(--text-5xl);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.skills-hero-title strong {
  display: block;
  font-weight: 700;
  color: var(--white);
}

.skills-hero-title span {
  display: block;
  font-weight: 300;
  color: var(--grey-78);
}

.skills-hero-desc {
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--grey-9a);
  line-height: 1.72;
  max-width: 540px;
}

/* Interactive Filter Pills */
.skills-filter-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 9999px;
  background: rgba(16, 16, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.filter-pill {
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-78);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.filter-pill:hover {
  color: var(--white);
}

.filter-pill.active {
  background: var(--white);
  color: var(--black-00);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.16);
}

/* ============================================================
   CATEGORY HEADERS & SKILL CARDS GRID
   ============================================================ */
.skills-group {
  margin-bottom: var(--sp-3xl);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.skills-group.is-hidden {
  display: none;
}

.cat-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--sp-xl);
}

.cat-head-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.cat-head-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cat-head-line {
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.cat-head-count {
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey-78);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 4-Column Glass Skill Cards */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-cell {
  position: relative;
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(
    145deg,
    rgba(22, 22, 22, 0.66) 0%,
    rgba(10, 10, 10, 0.8) 100%
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.32s var(--ease-out), border-color 0.32s, background 0.32s;
  overflow: hidden;
}

.skill-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.08),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.skill-cell:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-strong);
  background: rgba(26, 26, 26, 0.84);
}

.skill-cell:hover::before {
  opacity: 1;
}

.skill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.skill-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s;
}

.skill-icon {
  font-size: 1.3rem;
  color: var(--grey-c8);
  transition: color 0.3s, transform 0.3s;
}

.skill-cell:hover .skill-icon-box {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.06);
}

.skill-cell:hover .skill-icon {
  color: var(--white);
}

.skill-lvl {
  padding: 4px 11px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--grey-9a);
  letter-spacing: 0.01em;
}

.skill-lvl.expert {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.skill-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.skill-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.skill-pct-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--grey-78);
  font-variant-numeric: tabular-nums;
}

/* Sleek Progress Bar Inside Card */
.skill-progress {
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.skill-progress .progress-bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0%, #ffffff 100%);
  transition: width 1.6s var(--ease-out);
}

.skill-progress .progress-bar::after {
  display: none;
}

/* ============================================================
   PROFICIENCY OVERVIEW & ARCHITECTURE CAPABILITIES SPLIT
   ============================================================ */
.proficiency-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.proficiency-card,
.architecture-summary-card {
  border-radius: 24px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: linear-gradient(
    145deg,
    rgba(22, 22, 22, 0.7) 0%,
    rgba(10, 10, 10, 0.84) 100%
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bar-item {
  margin-bottom: 24px;
}

.bar-item:last-child {
  margin-bottom: 0;
}

.bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bar-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white-e8);
  letter-spacing: -0.01em;
}

.bar-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.proficiency-card .progress {
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.proficiency-card .progress-bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0%, #ffffff 100%);
  transition: width 1.8s var(--ease-out);
}

.proficiency-card .progress-bar::after {
  display: none;
}

/* Right Summary Panel */
.architecture-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.arch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.arch-card-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--white-e8);
}

.arch-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--white);
}

.arch-live-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 8px #ffffff;
  animation: dotPulse 2s infinite;
}

.arch-spec-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arch-spec-row {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.25s, background 0.25s;
}

.arch-spec-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.arch-spec-lbl {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey-9a);
}

.arch-spec-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-align: right;
}

/* ============================================================
   TOOLBOX GRID (6 Columns Desktop)
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tool-cell {
  position: relative;
  border-radius: 18px;
  padding: 24px 16px;
  background: linear-gradient(
    145deg,
    rgba(22, 22, 22, 0.62) 0%,
    rgba(10, 10, 10, 0.78) 100%
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
  overflow: hidden;
}

.tool-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(
    160px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.08),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tool-cell:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-strong);
  background: rgba(28, 28, 28, 0.85);
}

.tool-cell:hover::before {
  opacity: 1;
}

.tool-icon {
  font-size: 1.55rem;
  color: var(--grey-9a);
  transition: color 0.25s, transform 0.3s var(--ease-out);
}

.tool-cell:hover .tool-icon {
  color: var(--white);
  transform: scale(1.12);
}

.tool-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey-c8);
  text-align: center;
  transition: color 0.25s;
}

.tool-cell:hover .tool-name {
  color: var(--white);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1150px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proficiency-split {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  .skills-hero {
    padding: 120px 0 var(--sp-xl);
  }

  .skills-filter-bar {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}