/* 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 */
main#main-content {
  max-width: 1300px;
  width: 100vw;
  margin: 0 auto;
  padding: 3rem 4vw;
}

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

.skills-header h2 {
  font-size: 3.5rem;
  font-weight: 900;
  color: #000000;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
}

.skills-header h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #000000 0%, #555555 100%);
  border-radius: 2px;
}

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

/* Featured category */
.featured-category {
  background: #ffffff;
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 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;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #000000 0%, #333333 100%);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

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

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

.header-content h3 {
  font-size: 2.2rem;
  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(250px, 1fr));
  gap: 2rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  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;
}

.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));
  gap: 2rem;
  margin-bottom: 4rem;
}

.skill-category {
  background: #ffffff;
  border-radius: 16px;
  padding: 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;
  top: 0;
  left: 0;
  width: 100%;
  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: 1.6rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 2rem;
}

.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: 3rem;
  margin-bottom: 3rem;
  text-align: center;
}

.soft-skills-section h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 2rem;
}

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 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: 3rem;
  border: 1px solid #e8e8e8;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

.learning-journey h3 {
  font-size: 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: 2rem;
}

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

.stat-number {
  font-size: 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 */
@media (max-width: 900px) {
  main#main-content {
    padding: 2rem 6vw;
  }

  .skills-header h2 {
    font-size: 2.8rem;
  }

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

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .journey-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  main#main-content {
    padding: 1.5rem 8vw;
  }

  .skills-header h2 {
    font-size: 2.2rem;
  }

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

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

  .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;
}
