.skills-grid {
  background: #0f0f0f;
  color: #f5f5f5;
  padding: 4rem 1rem;

}
.skills-grid .container {
  max-width: 1250px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.skills-grid .subtitle {
  color: var(--accent, #00ffd5);
  text-transform: uppercase;
  font-size: 1rem;
}
.skills-grid .title {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.3rem);
  margin-bottom: 1rem;
}
.skills-grid .info {
  color: #aaa;
  line-height: 1.6;
  font-size: 1.5rem;
}

/* card layout */

/* individual card */
.skill-card {
  background: #1a1a1a;
  padding: 1.8rem 1.2rem;
  border: 1px solid #222;          /* normal border */
  border-radius: 8px;
  text-align: center;
  position: relative;              /* for pseudo elements */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card .icon {
  font-size: 2.5rem;
  color: var(--accent, #00ffd5);
  margin-bottom: 0.8rem;
}

.skill-card .skill-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.skill-card .level {
  font-size: 0.95rem;
  color: #ccc;
  margin-top: 0.3rem;
}

/* pseudo-elements for diagonal border */
.skill-card::before,
.skill-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  pointer-events: none;
  transform: scaleX(0) scaleY(0);
  transition: transform 0.6s ease;
  box-sizing: border-box;
}

/* top-left border lines */
.skill-card::before {
  border-top-color: aquamarine;
  border-left-color: aquamarine;
  transform-origin: top left;
}

/* bottom-right border lines */
.skill-card::after {
  border-bottom-color: aquamarine;
  border-right-color: aquamarine;
  transform-origin: bottom right;
}

/* Hover effects */
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  /* keep original border intact */
}

/* Animate the diagonal borders on hover */
.skill-card:hover::before,
.skill-card:hover::after {
  transform: scaleX(1) scaleY(1);
}

/* Grid container */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}


@media (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, 1fr); /* ট্যাবলেটে ২টি */
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr; /* মোবাইলে ১টি */
  }
}

/* ———  SKILLS BAR ——— */
.about-stats {
  margin-top: 3rem;
  margin-left: 6rem;
  font-size: 25px;
}






article {
  text-align: center;
}

.title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.info {
  color: #aaa;
  line-height: 2;
  margin-left: 600px;
  font-size: 16px;
}

.stat-title {
  font-size: 3rem;
  color: var(--accent)

;
  margin-bottom: 1rem;
}

.progress-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 1.5rem;
}

.progress-bar {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progress-bar:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 255, 213, 0.15);
  /* border:2px solid aquamarine; */

}


.prog-title {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 20px;
}

.progress-con {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prog-text {
  font-size: 1.5rem;
  color: #ccc;
  min-width: 40px;
}

.progress {
  background: #333;
  flex: 1;
  height: 8px;
  border-radius: 50px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00ffd5, rgb(204, 238, 204));
}
.slide-down-box {
  overflow: visible;
}

@media (max-width: 768px) {
  .progress-bars {
    grid-template-columns: 1fr; /* মোবাইলে ১ কলাম */
  }

  .title {
    font-size: 1.75rem;
  }
}
/* ---------- responsive tweak ---------- */
@media (max-width: 768px) {
  .skills-container {
    gap: 2.2rem;
  }
  .progress-bars {
    grid-template-columns: 1fr;
  }
}
