/* =========================
   Global (page-only)
   ========================= */
:root {
  --bg-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gold: #ffd700;
  --gold-2: #ffed4e;
  --text-0: #fff;
  --text-1: #ddd;
  --text-2: #ccc;
  --text-3: #aaa;
  --ink: #333;
  --card: rgba(255, 255, 255, 0.95);
  --glass-1: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  --glass-2: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  --accent-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-2: 0 15px 40px rgba(0, 0, 0, 0.3);
  --radius-1: 1rem;
  --radius-2: 1.5rem;
  --radius-3: 2rem;
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg-grad);
}
section {
  min-height: 100vh;
  padding: 2rem 9%;
}

.heading {
  font-size: 4rem;
  color: #fff;
  font-weight: 800;
  text-align: center;
  padding-top: 8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}
.heading span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================
   Stats (top counters)
   ========================= */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
}
.stat-box {
  background: var(--card);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-1);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.stat-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent-grad);
}
.stat-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2);
}
.stat-box i {
  font-size: 4rem;
  color: #667eea;
  margin-bottom: 1rem;
}
.stat-box h3 {
  font-size: 4rem;
  color: #333;
  font-weight: 700;
  margin: 1rem 0;
}
.stat-box p {
  font-size: 1.6rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================
   Filters (chips bar)
   ========================= */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 4rem auto;
  max-width: 1200px;
}
.filter-btn {
  padding: 1.2rem 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.filter-btn i {
  font-size: 1.8rem;
}
.filter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #fff;
}
.filter-btn.active {
  background: var(--accent-grad);
  color: #fff;
  border-color: #fff;
  transform: scale(1.05);
}

/* =========================
   Skills grid (categories)
   ========================= */
#skillsContainer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 0;
}
.category-section {
  margin-bottom: 4rem;
  opacity: 0;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 3rem;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-1);
  color: #fff;
}
.category-header i {
  font-size: 3rem;
}
.category-header h3 {
  font-size: 2.8rem;
  font-weight: 700;
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.category-header .skill-count {
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem;
}
.skill-card {
  background: var(--card);
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
  text-align: center;
  transition: 0.3s;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
}
.skill-card:hover::before {
  left: 100%;
}
.skill-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.skill-icon {
  margin-bottom: 1.5rem;
}
.skill-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
  transition: 0.3s;
}
.skill-card:hover .skill-icon img {
  transform: scale(1.2) rotate(5deg);
}
.skill-name {
  font-size: 1.7rem;
  font-weight: 600;
  color: #333;
  margin-top: 1rem;
}

/* Back button */
.viewall {
  text-align: center;
  margin: 5rem 0;
}
.viewall .btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 4rem;
  background: var(--card);
  color: #667eea;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50px;
  transition: 0.3s;
  box-shadow: var(--shadow-1);
}
.viewall .btn:hover {
  background: #fff;
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 991px) {
  section {
    padding: 2rem 4%;
  }
  .heading {
    font-size: 3.5rem;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
@media (max-width: 768px) {
  .heading {
    font-size: 3rem;
  }
  .filter-container {
    gap: 1rem;
  }
  .filter-btn {
    padding: 1rem 2rem;
    font-size: 1.4rem;
  }
  .category-header h3 {
    font-size: 2.2rem;
  }
  .stats-container {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 450px) {
  .heading {
    font-size: 2.5rem;
    padding-top: 7rem;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .stat-box h3 {
    font-size: 3rem;
  }
  .filter-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.3rem;
  }
}

/* Accessibility prefs */
@media (hover: none) and (pointer: coarse) {
  .filter-btn {
    padding: 1.6rem 3.2rem;
  }
  .viewall .btn {
    padding: 1.7rem 4.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
  .stat-box:hover,
  .skill-card:hover,
  .viewall .btn:hover {
    transform: none !important;
  }
}
@media (prefers-contrast: more) {
  .filter-btn.active {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
  }
}
