.skills-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  background: rgba(207, 207, 207, 0.12);
  border-radius: 20px;
  border: 4px solid rgba(255, 255, 255, 1); /* ปรับเส้นขอบให้หนาขึ้นและเป็นสีขาว */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(231, 231, 231, 0.25);
  color: #1f1f1f;
  margin-top: 1rem;
}

.skills-box-home {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  background: rgba(207, 207, 207, 0.12);
  border-radius: 20px;
  border: 4px solid rgba(255, 255, 255, 1); /* ปรับเส้นขอบให้หนาขึ้นและเป็นสีขาว */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(231, 231, 231, 0.25);
  margin-top: 1rem;
}


.skills-box-home a {
  background-color: #111;
  color: #fff;
  text-decoration: none;
  
  justify-self: flex-start;
  align-self: flex-start;

  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-small);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);

  transition: 
    background-color 0.3s ease, 
    color 0.3s ease, 
    box-shadow 0.3s ease, 
    border-color 0.3s ease;
}

.skills-box-home a:hover,
.skills-box-home a:focus {
  background-color: #333;
  color: #ffd700; /* สีทองอ่อน เพิ่มความน่าสนใจ */
  border-color: #ffd700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
  outline: none;
}

.skills-box-home a:active {
  background-color: #555;
  box-shadow: 0 2px 6px rgba(0,0,0,0.7);
}



.skills-box a{
  background-color: #111;
  text-decoration: none;
  color: white;

  justify-self: flex-start;
  align-self: flex-start;

  padding: 0.75rem;
  border-radius: var(--radius-small);
  transition: background-color 0.3s ease;
}

.skills-box h2 {
  margin-top: 12px;
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}



.skill-category {
  background: rgba(255 255 255 / 0.25);
  border-radius: 16px;
  border: 2px solid rgba(0 120 255 / 0.6);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 2px 10px rgba(0, 120, 255, 0.12);
  transition: all 0.3s ease;
  cursor: default;
}

.skill-category:hover {
  border-color: #0078ff;
  box-shadow: 0 8px 25px rgba(0, 120, 255, 0.7);
  background: rgba(255 255 255 / 0.45);
  transform: translateY(-5px);
}

.skill-category h4 {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #004a99;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.skill-name {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #2c3e50; 
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.25rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.skill-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100px;
  height: 3px;
  background-color: #2980b9; 
  border-radius: 2px;
}

.skill-bar {
  background: rgba(0, 120, 255, 0.15);
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
  width: 100%;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.skill-level {
  height: 100%;
  background: linear-gradient(90deg, #0078ff, #00a2ff);
  border-radius: 10px 0 0 10px;
  transition: width 0.5s ease;
}
.section-title {
  padding: 3rem;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 2px;
  position: relative;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  user-select: none;
}

/* เส้นขีดใต้สวยๆ */
.section-title::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 7rem;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), #3b82f6);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(94, 94, 94, 0.6);
}

/* About text container */
.about-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

/* แต่ละย่อหน้าสวยๆ */
.about-text p {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--dark-color);
  margin-bottom: 30px;
  font-weight: 400;
  font-family: 'Open Sans', sans-serif;
  text-shadow: 0 0 2px rgba(0,0,0,0.05);
  transition: color 0.3s ease;
}

/* พอเอาเมาส์ไปวางเปลี่ยนสีอ่อนๆ */
.about-text p:hover {
  color: var(--primary-color);
  cursor: default;
}

.skill-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255 255 255 / 0.12);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.skill-text h5 {
  flex: 1 1 300px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  margin: 0;
}

.skill-text img {
  flex: 0 0 auto;
  width: 10rem;
  height: 10rem;
  display: flex;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.skill-text ul {
  list-style-type: disc; 
  padding-left: 1.5rem; 
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: #444; 
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.5;
}

.skill-text ul li {
  margin-bottom: 0.4rem; 
}


@media (max-width: 600px) {
  .skill-text {
    flex-direction: column;
    text-align: center;
  }

  .skill-text h5 {
    flex: unset;
  }

  .skill-text img {
    width: 60vw;
    margin-top: 1rem;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .skills-box {
    grid-template-columns: repeat(2, 1fr);
    height: fit-content;
    display: flex;
  }
}

@media (max-width: 480px) {
  .skills-box {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}
