/* skills page specific styles */

.skills-page {
  background: var(--bg);
  min-height: 100vh;
  padding: 8rem 8% 5rem;
  margin-top: 6.5rem;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-header .heading {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.skill-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  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, 122, 24, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 0;
}

.skill-card:hover {
  background: rgba(255, 122, 24, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(255, 122, 24, 0.4);
  transform: translateY(-8px);
}

.skill-card:hover::before {
  left: 100%;
}

.skill-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading);
  text-align: center;
  position: relative;
  z-index: 1;
}

.skill-card.frontend {
  border-color: rgba(34, 211, 238, 0.3);
}

.skill-card.frontend:hover {
  border-color: rgb(34, 211, 238);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
}

.skill-card.backend {
  border-color: rgba(52, 211, 153, 0.3);
}

.skill-card.backend:hover {
  border-color: rgb(52, 211, 153);
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.08);
}

.skill-card.database {
  border-color: rgba(168, 85, 247, 0.3);
}

.skill-card.database:hover {
  border-color: rgb(168, 85, 247);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.08);
}

.skill-card.cloud {
  border-color: rgba(251, 146, 60, 0.3);
}

.skill-card.cloud:hover {
  border-color: rgb(251, 146, 60);
  box-shadow: 0 0 30px rgba(251, 146, 60, 0.5);
  background: rgba(251, 146, 60, 0.08);
}

.skill-card.language {
  border-color: rgba(250, 204, 21, 0.3);
}

.skill-card.language:hover {
  border-color: rgb(250, 204, 21);
  box-shadow: 0 0 30px rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.08);
}

.skill-card.tools {
  border-color: rgba(100, 116, 139, 0.3);
}

.skill-card.tools:hover {
  border-color: rgb(100, 116, 139);
  box-shadow: 0 0 30px rgba(100, 116, 139, 0.5);
  background: rgba(100, 116, 139, 0.08);
}

.back-button {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.back-button .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 122, 24, 0.6);
}

.back-button .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255, 122, 24, 0.8);
}

/* media queries */
@media screen and (max-width: 1024px) {
  .skills-page {
    padding: 7rem 5% 3rem;
  }

  .page-header .heading {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

  .skill-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .skill-name {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 600px) {
  .skills-page {
    padding: 6rem 4% 2rem;
  }

  .page-header .heading {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }

  .skill-card {
    padding: 1.2rem;
    gap: 0.8rem;
  }

  .skill-icon {
    width: 3rem;
    height: 3rem;
  }

  .skill-name {
    font-size: 1rem;
  }

  .back-button .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
}
