@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');

/* Reset & base */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}
body {
  background-color: #121212;
  color: #e5e7eb;
  font-family: 'Orbitron', sans-serif;
  line-height: 1.6;
}
a {
  color: #8b5cf6;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Neon Button */
.neon-button {
  background: transparent;
  border: 2px solid #8b5cf6;
  color: #8b5cf6;
  padding: 12px 28px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 8px #8b5cf6;
  transition: 0.3s ease-in-out;
  text-transform: uppercase;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.neon-button:hover {
  background: #8b5cf6;
  color: #121212;
  box-shadow: 0 0 20px #8b5cf6, 0 0 30px #8b5cf6;
}

/* Header / Hero */
header {
  text-align: center;
  padding: 80px 20px 40px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 0 30px #8b5cf6;
}
header h1 {
  font-size: 3rem;
  margin-bottom: 0.3em;
  text-shadow: 0 0 12px #8b5cf6;
}
header p {
  font-size: 1.3rem;
  color: #a78bfa;
  margin-bottom: 1.5em;
}

/* Sections */
section {
  margin-bottom: 60px;
}
section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  border-bottom: 3px solid #8b5cf6;
  display: inline-block;
  padding-bottom: 6px;
  box-shadow: 0 0 10px #8b5cf6;
}

/* Skills */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.skill-item {
  background: #27272a;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 0 8px #8b5cf6;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Projects */
.projects-list {
  list-style: none;
  padding-left: 0;
}
.projects-list li {
  margin-bottom: 18px;
  padding: 15px;
  background: #27272a;
  border-radius: 12px;
  box-shadow: 0 0 12px #8b5cf6;
  transition: transform 0.2s ease;
  word-wrap: break-word;
}
.projects-list li:hover {
  transform: scale(1.03);
}
.projects-list a {
  font-weight: 700;
  font-size: 1.1rem;
  word-break: break-word;
}

/* Contact */
.contact-links {
  display: flex;
  gap: 20px;
  font-size: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-links a {
  color: #8b5cf6;
  word-break: break-word;
}
.contact-links a:hover {
  color: #a78bfa;
}

/* Responsive Media Queries */

/* Tablet */
@media (max-width: 900px) {
  header h1 {
    font-size: 2.6rem;
  }
  header p {
    font-size: 1.2rem;
  }
  section h2 {
    font-size: 1.8rem;
  }
  .neon-button {
    padding: 10px 24px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
  }
  section h2 {
    font-size: 1.6rem;
  }
  .neon-button {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  .skills-list {
    justify-content: center;
    gap: 8px;
  }
  .skill-item {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
  .projects-list a {
    font-size: 1rem;
  }
  .contact-links {
    gap: 12px;
    font-size: 1.1rem;
  }
}

.skill-category {
  margin-bottom: 40px;
}

.skill-category h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #c4b5fd; /* สีม่วงอ่อน ๆ */
  text-shadow: 0 0 6px #8b5cf6;
  border-left: 4px solid #8b5cf6;
  padding-left: 12px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

