/* =============================================
   ABOUT PAGE - EDUCATION SECTION
   ============================================= */
.education-section {
  margin: 90px auto 60px;
  padding: 20px;
  max-width: 1100px;
  text-align: center;
  color: #FFFFFF;
}

.education-section h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #10B981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.education-section h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #F97316);
  border-radius: 2px;
  margin: 12px auto 0;
}

.education-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  position: relative;
}

.education-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.12);
  padding: 28px 24px;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  opacity: 0;
  transform: translateX(-40px);
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

/* Left accent bar */
.education-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #10B981, #F97316);
  border-radius: 4px 0 0 4px;
}

.education-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.1);
}

.education-item.visible {
  animation: eduSlideFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.education-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #10B981;
}

.education-item p {
  margin: 0;
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.6;
}

.edu-year {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  color: #F97316;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

@keyframes eduSlideFade {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =============================================
   PROGRESS CIRCLES
   ============================================= */
:root {
  --primary: #10B981;
  --secondary: #0f172a;
  --size: 130px;
  --glow: rgba(16, 185, 129, 0.6);
}

@property --percentage {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@keyframes progress {
  0% {
    --percentage: 0;
  }

  100% {
    --percentage: var(--value);
  }
}

.progress-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding: 10px 20px 40px;
}

.progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

[role="progressbar"] {
  --percentage: 0;
  animation: none;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 20px var(--glow), inset 0 0 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  background: rgba(10, 15, 30, 0.9);
}

[role="progressbar"].animate {
  animation: progress 2s 0.3s forwards;
}

[role="progressbar"]:hover {
  transform: scale(1.12);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 35px rgba(249, 115, 22, 0.4);
  cursor: pointer;
}

[role="progressbar"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(#10B981 calc(var(--percentage) * 1%), rgba(30, 41, 59, 0.4) 0);
  mask: radial-gradient(white 52%, transparent 0);
  -webkit-mask: radial-gradient(#0000 52%, #000 0);
}

[role="progressbar"]::after {
  counter-reset: percentage var(--value);
  content: counter(percentage) '%';
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #10B981;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  position: relative;
  z-index: 1;
}

.progress-heading {
  font-size: 2rem;
  font-weight: 800;
  color: #F1F5F9;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #10B981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.progress-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #F97316);
  border-radius: 2px;
  margin: 12px auto 0;
}

.progress-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.3px;
  text-align: center;
}

/* =============================================
   ACHIEVEMENTS / CERTIFICATES
   ============================================= */
.certificates-gallery {
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.title {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #10B981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 36px;
}

.title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #F97316);
  border-radius: 2px;
  margin: 12px auto 0;
}

.certificates-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  width: 100%;
  padding: 0 10px;
}

.certificate {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  perspective: 1000px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.certificate:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(3deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.certificate__content {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
}

.certificate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.certificate:hover img {
  transform: scale(1.1);
  filter: brightness(0.65);
}

.certificate__info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(5, 5, 9, 0.95) 60%, transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  text-align: center;
}

.certificate:hover .certificate__info {
  opacity: 1;
  transform: translateY(0);
}

.certificate__info h4,
.certificate__info h5 {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
  color: #10B981;
}

.certificate__info p {
  font-size: 0.8rem;
  margin: 4px 0 0;
  color: #94A3B8;
}

.view-more-btn {
  margin-top: 28px;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.view-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.4s ease;
}

.view-more-btn:hover::before {
  left: 100%;
}

.view-more-btn:hover {
  background: linear-gradient(135deg, #F97316, #ea580c);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

/* =============================================
   ACHIEVEMENTS MODAL
   ============================================= */
.modal-content.achievements-modal-content {
  background: rgba(10, 15, 30, 0.98);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 20px;
  padding: 36px 28px;
  max-width: 900px;
  width: 90%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.achievements-modal-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #10B981;
  margin-bottom: 28px;
}

.close-btn {
  float: right;
  font-size: 1.8rem;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.close-btn:hover {
  transform: rotate(90deg);
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.category {
  margin: 28px 0;
}

.category h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #10B981;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .title {
    font-size: 1.8rem;
  }

  .certificates-grid,
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .certificate__content {
    height: 160px;
  }

  .view-more-btn {
    font-size: 0.88rem;
    padding: 10px 24px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.5rem;
  }

  .certificate__content {
    height: 130px;
  }
}

/* =============================================
   LIGHT MODE OVERRIDES FOR ABOUT
   ============================================= */
.light-mode .education-section h3,
.light-mode .progress-heading,
.light-mode .title {
  color: #0F766E;
}

.light-mode .education-item {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.light-mode .education-item:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(245, 158, 11, 0.2);
}

.light-mode .education-item h4 {
  color: #0F766E;
}

.light-mode .education-item p {
  color: #4B5563;
}

.light-mode .edu-year {
  color: #D97706;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}

.light-mode [role="progressbar"] {
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: 0 0 15px rgba(15, 118, 110, 0.2);
  background: rgba(240, 253, 250, 0.9);
}

.light-mode [role="progressbar"]::before {
  background: conic-gradient(#0F766E calc(var(--percentage) * 1%), #E5E7EB 0);
}

.light-mode [role="progressbar"]::after {
  color: #0F766E;
  text-shadow: none;
}

.light-mode .progress-title {
  color: #374151;
}

.light-mode .certificate {
  border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .certificate:hover {
  border-color: rgba(15, 118, 110, 0.3);
}

.light-mode .achievements-modal-content {
  background: #F8FAFC;
  border-color: rgba(15, 118, 110, 0.15);
}

.light-mode .achievements-modal-content h3 {
  color: #0F766E;
}

.light-mode .category h4 {
  color: #0F766E;
  border-bottom-color: rgba(15, 118, 110, 0.15);
}