.resume-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 24px 32px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.resume-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.resume-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 20, 0.72);
  backdrop-filter: blur(6px);
}

.resume-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  border-radius: 24px;
  border: 0.8px solid rgba(124, 134, 255, 0.3);
  background: linear-gradient(
    113deg,
    #0f0f23 0%,
    #111127 7%,
    #12122a 14%,
    #14142e 21%,
    #151532 28%,
    #171736 35%,
    #18183a 43%,
    #1a1a3e 50%,
    #18183a 57%,
    #171736 64%,
    #151532 71%,
    #14142e 79%,
    #12122a 86%,
    #111127 93%,
    #0f0f23 100%
  );
  box-shadow: 0 25px 25px rgba(97, 95, 255, 0.1);
  padding: 48.8px;
}

.resume-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32.8px;
  border-bottom: 0.8px solid rgba(124, 134, 255, 0.2);
}

.resume-name {
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1.5px;
  background: linear-gradient(90deg, #7c86ff, #c27aff, #fb64b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.resume-role {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 3vw, 24px);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.resume-role::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c86ff;
  opacity: 0.5;
  flex-shrink: 0;
}

.resume-close {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0.8px solid rgba(124, 134, 255, 0.3);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.resume-close:hover {
  background: rgba(124, 134, 255, 0.1);
  border-color: rgba(124, 134, 255, 0.5);
}

.resume-close img {
  display: block;
  width: 24px;
  height: 24px;
}

.resume-intro-wrap {
  padding: 48px 0;
  border-bottom: 0.8px solid rgba(124, 134, 255, 0.2);
}

.resume-intro {
  position: relative;
  padding: 32.8px;
  border-radius: 16px;
  border: 0.8px solid rgba(124, 134, 255, 0.2);
  background: linear-gradient(
    171deg,
    rgba(97, 95, 255, 0.05),
    rgba(173, 70, 255, 0.05)
  );
  overflow: hidden;
}

.resume-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    171deg,
    rgba(97, 95, 255, 0.1),
    rgba(173, 70, 255, 0.05),
    rgba(246, 51, 154, 0.1)
  );
  filter: blur(24px);
  pointer-events: none;
}

.resume-intro p {
  position: relative;
  margin: 0;
  font-size: 20px;
  line-height: 32.5px;
  color: rgba(255, 255, 255, 0.8);
}

.resume-intro strong {
  font-weight: 600;
  background: linear-gradient(90deg, #7c86ff, #c27aff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.resume-section {
  padding-top: 48px;
}

.resume-section:first-of-type {
  padding-top: 20px;
}

.resume-section-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 300;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: #fff;
}

.resume-section-title::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #7c86ff, #c27aff);
  flex-shrink: 0;
}

.resume-jobs {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.resume-job {
  position: relative;
  padding-left: 32px;
}

.resume-job::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    rgba(124, 134, 255, 0.4),
    rgba(194, 122, 255, 0.4),
    transparent
  );
}

.resume-job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.resume-job-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  background: linear-gradient(90deg, #7c86ff, #c27aff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.resume-job-date {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.resume-job ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resume-job li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.7);
}

.resume-job li::before {
  content: "•";
  color: #7c86ff;
  flex-shrink: 0;
}

.resume-skills-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.resume-skill-card {
  padding: 24.8px;
  border-radius: 16px;
  border: 0.8px solid rgba(124, 134, 255, 0.2);
  background: linear-gradient(
    158deg,
    rgba(97, 95, 255, 0.1),
    rgba(173, 70, 255, 0.05),
    transparent
  );
}

.resume-skill-card.tools {
  border-color: rgba(194, 122, 255, 0.2);
  background: linear-gradient(
    158deg,
    rgba(173, 70, 255, 0.1),
    rgba(246, 51, 154, 0.05),
    transparent
  );
}

.resume-skill-card h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  background: linear-gradient(90deg, #7c86ff, #c27aff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.resume-skill-card.tools h3 {
  background: linear-gradient(90deg, #c27aff, #fb64b6);
  -webkit-background-clip: text;
  background-clip: text;
}

.resume-skill-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, #7c86ff, #c27aff);
  flex-shrink: 0;
}

.resume-skill-card.tools h3::before {
  background: linear-gradient(90deg, #c27aff, #fb64b6);
}

.resume-skill-card p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.7);
}

.resume-edu-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.resume-edu-card {
  padding: 24.8px;
  border-radius: 16px;
  border: 0.8px solid rgba(124, 134, 255, 0.2);
  background: linear-gradient(
    174deg,
    rgba(97, 95, 255, 0.1),
    rgba(173, 70, 255, 0.05),
    transparent
  );
}

.resume-edu-card.alt {
  border-color: rgba(194, 122, 255, 0.2);
  background: linear-gradient(
    174deg,
    rgba(173, 70, 255, 0.1),
    rgba(246, 51, 154, 0.05),
    transparent
  );
}

.resume-edu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.resume-edu-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  background: linear-gradient(90deg, #7c86ff, #c27aff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.resume-edu-card.alt h3 {
  background: linear-gradient(90deg, #c27aff, #fb64b6);
  -webkit-background-clip: text;
  background-clip: text;
}

.resume-edu-date {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.resume-edu-school {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.6);
}

.resume-certs {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 16px;
}

.resume-cert {
  padding: 16.8px;
  border-radius: 16px;
  border: 0.8px solid rgba(124, 134, 255, 0.2);
}

.resume-cert-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.resume-cert h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.8);
}

.resume-cert-date {
  margin: 0;
  font-size: 12px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

.resume-cert-by {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  background: linear-gradient(90deg, #7c86ff, #c27aff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.resume-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .resume-panel {
    padding: 32px 20px;
  }

  .resume-skills-grid,
  .resume-certs {
    grid-template-columns: 1fr;
  }

  .resume-job-title {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .resume-modal {
    padding: 24px 12px 16px;
  }

  .resume-header {
    flex-direction: column;
    align-items: stretch;
  }

  .resume-close {
    align-self: flex-end;
  }
}
