/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fcfcfc;
  color: #111111;
  line-height: 1.6;
}

/* Main container — full width like about.css */
main#main-content {
  width: 100%;
  padding: 2.5rem 0;          /* remove desktop inline gutters to use full width */
  color: #111111;
  box-sizing: border-box;
  scroll-margin-top: 80px;
}

/* Add small inline padding back on smaller viewports */
@media (max-width: 900px) {
  main#main-content { padding-inline: 3vw; }  /* logical padding for LTR/RTL */
}
@media (max-width: 600px) {
  main#main-content { padding-inline: 5vw; }
}

/* Skills header */
.skills-header {
  text-align: center;
  margin-bottom: 4rem;
}

.skills-header h2 {
  color: #000000;
  font-weight: 900;
  font-size: 3.2rem;          /* aligned with about.css */
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
  user-select: none;
  cursor: default;
  transition: color 0.3s ease;
}

.skills-header h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;                /* aligned with about.css underline width */
  height: 4px;
  background: linear-gradient(90deg, #000000 0%, #333333 100%);
  border-radius: 2px;
}

.skills-header h2:hover,
.skills-header h2:focus-within { color: #444444; }

.skills-subtitle {
  font-size: 1.2rem;
  color: #666666;
  font-style: italic;
  margin-top: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Skills showcase wrapper */
.skills-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3vw, 4rem); /* fluid gap */
  max-width: 1200px;
  margin: 0 auto;
}

/* Featured category */
.featured-category {
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 3rem);  /* fluid padding */
  margin-bottom: clamp(2rem, 4vw, 4rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  position: relative;
  overflow: hidden;
}

.featured-category::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, #000000 0%, #333333 100%);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-icon {
  font-size: 2.5rem;
  color: #333333;
}

.header-content h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);  /* fluid heading */
  font-weight: 800;
  color: #000000;
}

.proficiency-indicator {
  background: #f0f0f0;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  border: 2px solid #e0e0e0;
}

.proficiency-level {
  font-weight: 700;
  color: #333333;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Skills carousel */
.skills-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* intrinsic grid */
  gap: clamp(1rem, 2vw, 2rem);
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #f8f8f8;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.skill-item:hover {
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.skill-icon {
  width: 50px;
  height: 50px;
  background: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-icon i {
  color: #ffffff;
  font-size: 1.3rem;
}

.skill-info {
  flex: 1;
  min-width: 0;
}

.skill-name {
  font-weight: 700;
  color: #000000;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #000000 0%, #333333 100%);
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* intrinsic grid */
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.skill-category {
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(1.25rem, 2.5vw, 2.5rem);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: #f0f0f0;
  transition: background 0.3s ease;
}

.skill-category.frontend::before { background: linear-gradient(90deg, #000000 0%, #333333 100%); }
.skill-category.backend::before  { background: linear-gradient(90deg, #333333 0%, #000000 100%); }
.skill-category.tools::before    { background: linear-gradient(90deg, #000000 0%, #555555 100%); }
.skill-category.data::before     { background: linear-gradient(90deg, #555555 0%, #000000 100%); }

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0f0f0;
  color: #333333;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.skill-category h4 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: #000000;
  margin-bottom: 1.5rem;
}

.skills-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background: #f8f8f8;
  color: #333333;
  padding: 0.7rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  cursor: default;
  border: 1px solid #e8e8e8;
}

.skill-tag:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skill-tag.react:hover { background: #000000; }
.skill-tag.nodejs:hover { background: #333333; }

/* Soft skills section */
.soft-skills-section {
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  text-align: center;
}

.soft-skills-section h3 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #000000;
  margin-bottom: 2rem;
}

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* intrinsic grid */
  gap: clamp(0.9rem, 2vw, 1.5rem);
}

.competency-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.competency-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.competency-item i {
  font-size: 1.5rem;
  color: #333333;
}

.competency-item span {
  font-weight: 600;
  color: #000000;
}

/* Learning journey */
.learning-journey {
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid #e8e8e8;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

.learning-journey h3 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #000000;
  margin-bottom: 1rem;
}

.learning-journey p {
  font-size: 1.1rem;
  color: #666666;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.journey-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}

.stat-item { text-align: center; }

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #000000;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #666666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive design — unify breakpoints with about.css */
@media (max-width: 900px) {
  .skills-header h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }  /* fluid type */
  .category-header { justify-content: center; text-align: center; }
  .proficiency-indicator { margin-top: 0.5rem; }
  .skills-carousel { grid-template-columns: 1fr; }               /* single column */
  .skills-grid { grid-template-columns: 1fr; }                    /* single column */
  .journey-stats { grid-template-columns: 1fr; gap: 1.25rem; }    /* stack stats */
}

@media (max-width: 600px) {
  .skills-header h2 { font-size: 2.5rem; }

  .featured-category,
  .soft-skills-section,
  .learning-journey { padding: 1.5rem; }

  .category-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .skills-carousel { gap: 1rem; }
  .competencies-grid { grid-template-columns: 1fr; }
}

/* Focus accessibility */
.skill-category:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 4px;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
