body {
  font-family: 'Poppins', sans-serif;
  /* Softer radial gradient so text remains readable; keep a fallback color */
  background-color: #f4f6f5;
  background-image: radial-gradient(circle at 30% 20%, rgba(0,128,64,0.12) 20%, rgba(255,255,255,1) 100%);
  margin: 0;
  padding: 0;
  text-align: center;
  color: #222; /* ensure default text color */
}

header {
  margin-top: 60px;
}

h1 {
  font-size: 2.5em;
  color: #222;
}

h1 span {
  color: #007f3f;
}

p {
  color: #555;
  margin-bottom: 50px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
  padding: 0 20px 60px;
}

.skill {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.skill:hover {
  transform: translateY(-5px);
}

.skill img {
  width: 60px;
  height: 60px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.back-link {
  text-align: left;
  max-width: 1100px;
  margin: 0 auto 12px;
  padding: 0 20px;
}

.back-link a {
  color: #007f3f;
  text-decoration: none;
}

/* visually hidden helper for screen readers */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; /* added line */
}

/* Skip link for keyboard users */
.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  position: static;
  left: 0;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #007f3f;
  color: #fff;
  z-index: 9999;
  border-radius: 4px;
}

h3 {
  color: #333;
  margin-top: 10px;
}

.progress-bar {
  width: 100%;
  background: #e0e0e0;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
}

.progress {
  height: 12px;
  border-radius: 6px;
  transition: width 800ms cubic-bezier(.2,.9,.2,1);
}

.progress.html { width: 95%; background: #e44d26; }
.progress.css { width: 90%; background: #1572b6; }
.progress.js { width: 80%; background: #f7df1e; }
.progress.react { width: 75%; background: #61dbfb; }
.progress.git { width: 85%; background: #f1502f; }

/* Improve visibility for the yellow JS bar (contrast) */
.progress.js { box-shadow: inset 0 -2px 0 rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.06); }

/* make skill card images contained and centered */
.skill img { object-fit: contain; display: block; margin: 0 auto; }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2em; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
}
