.education-section {
  margin-bottom: 48px;
}

.education-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  padding: 24px 28px;
  border-radius: 20px;
  background: rgba(8, 14, 32, 0.95);
  border: 1px solid rgba(154, 209, 255, 0.18);
  box-shadow: 0 24px 60px rgba(4, 8, 18, 0.55),
              0 0 0 1px rgba(58, 42, 114, 0.3),
              0 0 40px rgba(58, 42, 114, 0.2),
              0 0 80px rgba(20, 40, 82, 0.15);
  isolation: isolate;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.education-card:hover {
  box-shadow: 0 24px 60px rgba(4, 8, 18, 0.75),
              0 0 0 1px rgba(58, 42, 114, 0.4),
              0 0 60px rgba(58, 42, 114, 0.3),
              0 0 100px rgba(20, 40, 82, 0.2);
  border-color: rgba(154, 209, 255, 0.3);
}

.education-card::after {
  content: '';
  position: absolute;
  inset: -40% -10%;
  background: radial-gradient(circle at 20% 20%, rgba(82, 140, 255, 0.18), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(56, 239, 125, 0.12), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.education-card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #e2e8f0;
}

.education-card__body h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f8fbff;
  text-transform: none;
  letter-spacing: normal;
  font-family: 'Poppins', Arial, sans-serif;
}

.education-card__body h3 span {
  font-size: 1.05rem;
  font-weight: 500;
  color: #7dd3fc;
  margin-left: 10px;
  text-transform: none;
  letter-spacing: normal;
}

.education-card__meta {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: rgba(203, 214, 230, 0.7);
}

.education-card__ib-logo {
  width: 72px;
  height: auto;
  vertical-align: middle;
  margin-left: 8px;
  display: inline-block;
}

.education-card__summary,
.education-card__ib {
  line-height: 1.7;
  font-size: 1.05rem;
}

.education-card__summary {
  color: #cbd5f5;
  margin-bottom: 15px;
}

.education-card__summary-highlight {
  color: #34d399;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 8px;
}

.education-card__ib strong {
  color: #9ad1ff;
  font-weight: 600;
}

.education-card__aside {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 2px;
  min-width: 220px;
}

.education-card__years {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e0f2fe;
  margin: 0;
}

.education-card__location {
  font-size: 0.95rem;
  color: rgba(203, 214, 230, 0.8);
  margin: 0;
}

.education-card__stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.education-card__stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(12, 24, 46, 0.7);
  border: 1px solid rgba(86, 142, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: #dbeafe;
  min-width: 0;
}

.education-card__stat--highlight {
  padding: 12px 16px;
  background: rgba(12, 24, 46, 0.75);
  border-color: rgba(56, 239, 125, 0.3);
}

.education-card__stat:not(.education-card__stat--highlight) {
  padding: 12px 16px;
  margin: 0;
}

.education-card__stat span:first-child {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(203, 214, 230, 0.85);
  flex: 1;
  min-width: 0;
  text-align: left;
}

.education-card__stat span:last-child {
  font-size: 1.5rem;
  font-weight: 700;
  color: #9ad1ff;
  flex-shrink: 0;
  white-space: nowrap;
}

.education-card__stat--highlight span:last-child {
  color: #38ef7d;
  text-shadow: 0 0 12px rgba(56, 239, 125, 0.35);
}

.education-card__stat--highlight span:first-child {
  color: rgba(203, 214, 230, 0.9);
}

.education-section + h2 {
  margin-top: 48px;
}

/* Skills Section Styling */
.skills-section {
  margin: 0 0 16px 0;
  width: 100%;
}

.skills-card {
  position: relative;
  display: flex;
  width: 100%;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(8, 14, 32, 0.95);
  border: 1px solid rgba(154, 209, 255, 0.18);
  box-shadow: 0 8px 24px rgba(4, 8, 18, 0.4),
              0 0 0 1px rgba(58, 42, 114, 0.3),
              0 0 20px rgba(58, 42, 114, 0.15);
  isolation: isolate;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.skills-card:hover {
  box-shadow: 0 12px 32px rgba(4, 8, 18, 0.5),
              0 0 0 1px rgba(58, 42, 114, 0.4),
              0 0 30px rgba(58, 42, 114, 0.25);
  border-color: rgba(154, 209, 255, 0.3);
}

.skills-card::after {
  content: '';
  position: absolute;
  inset: -20% -5%;
  background: radial-gradient(circle at 20% 20%, rgba(82, 140, 255, 0.12), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(56, 239, 125, 0.08), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.skills-card__body {
  position: relative;
  z-index: 1;
  width: 100%;
  color: #e2e8f0;
}

.skills-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  row-gap: 6px;
}

.skill-category-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7dd3fc;
  margin-right: 4px;
  font-family: 'Poppins', Arial, sans-serif;
}

.skill-category-label i {
  font-size: 0.9rem;
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro";
  font-weight: 900;
  font-style: normal;
  display: inline-block;
}

.skill-divider {
  color: rgba(154, 209, 255, 0.3);
  font-size: 0.9rem;
  margin: 0 2px;
  font-weight: 300;
}

.skill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5f5;
  background: rgba(12, 24, 46, 0.7);
  border: 1px solid rgba(86, 142, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform, background, border-color;
  white-space: nowrap;
}

.skill-item i {
  font-size: 0.9rem;
  color: #7dd3fc;
  transition: color 0.3s ease, transform 0.3s ease;
  font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free", "Font Awesome 6 Pro";
  font-weight: 400;
  font-style: normal;
  display: inline-block;
}

.skill-item:hover {
  background: rgba(12, 24, 46, 0.85);
  border-color: rgba(86, 142, 255, 0.4);
  transform: translateZ(0) translateY(-1px);
  box-shadow: 0 2px 8px rgba(86, 142, 255, 0.2),
              inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #e0f2fe;
}

.skill-item:hover i {
  color: #9ad1ff;
  transform: scale(1.1);
}

.skills-section + .section-title {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .skills-card {
    padding: 10px 16px;
  }

  .skill-item {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .skill-category-label {
    font-size: 0.8rem;
  }

  .skill-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .education-card {
    padding: 20px 22px;
  }

  .education-card__meta {
    letter-spacing: 0.05em;
  }

  .education-card__aside {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .education-card__stat {
    align-items: center;
  }

  .education-card__stat span:first-child {
    text-align: left;
  }

  .education-card__stat span:last-child {
    text-align: right;
  }
}

