@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --page-bg: #f2f5fb;
  --resume-bg: #1f2e70;
  --panel-bg: #2b3f8e;
  --accent: #ffbf32;
  --accent-soft: #ffd86b;
  --text: #f4f7ff;
  --muted: rgba(244, 247, 255, 0.74);
  --line: rgba(255, 255, 255, 0.22);
  --card-shadow: 0 24px 58px rgba(8, 14, 40, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  padding: 28px 16px;
  background: radial-gradient(circle at top, #ffffff 0%, var(--page-bg) 48%, #e8eef8 100%);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume {
  width: min(1040px, 100%);
  margin: 0 auto;
  background: var(--resume-bg);
  box-shadow: var(--card-shadow);
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(270px, 31%) minmax(0, 1fr);
  border: 1px solid rgba(7, 11, 30, 0.05);
}

.resume .base,
.resume .func {
  min-width: 0;
}

.resume .base {
  padding: 30px 20px 28px;
  background: var(--panel-bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.resume .base > section,
.resume .func > section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px;
}

.resume .base .profile {
  margin: -30px -20px 12px;
  border-radius: 0;
  border: 0;
  background: var(--accent);
  color: #17245d;
  padding: 28px 20px 42px;
  position: relative;
}

.resume .base .profile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 36px;
  background: var(--panel-bg);
  transform: skewY(-5deg);
  z-index: 0;
}

.resume .base .profile > * {
  position: relative;
  z-index: 1;
}

.resume .base .profile .photo {
  width: 134px;
  height: 134px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(23, 36, 93, 0.15);
  border: 4px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 14px 36px rgba(23, 36, 93, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.resume .base .profile .photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.resume .base .profile .photo-image[src]:not([src=""]) {
  display: block;
}

.resume .base .profile .photo-image[src]:not([src=""]) + .fa-rocket {
  display: none;
}

.resume .base .profile .fa-rocket {
  font-size: 4.2rem;
  color: rgba(23, 36, 93, 0.85);
}

.resume .base .profile .info {
  margin-top: 16px;
  text-align: center;
}

.resume .base .profile .eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(23, 36, 93, 0.72);
  font-weight: 700;
}

.resume .base .profile .name {
  margin: 10px 0 4px;
  font-size: clamp(1.5rem, 3vw, 1.82rem);
  line-height: 1.15;
  color: #142054;
  font-weight: 800;
}

.resume .base .profile .job {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(20, 32, 84, 0.82);
  font-weight: 600;
}

.resume h3 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-soft);
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.resume h3 i {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #17245d;
  background: var(--accent);
  font-size: 0.88rem;
  box-shadow: 0 8px 20px rgba(255, 191, 50, 0.28);
}

.resume .base p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.63;
  color: var(--muted);
}

.resume .base .contact {
  display: grid;
  gap: 10px;
}

.resume .base .contact .address,
.resume .base .contact .email {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.resume .base .contact i {
  width: 20px;
  text-align: center;
  color: var(--accent-soft);
}

.resume .base .contact span,
.resume .base .contact a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f8faff;
  font-size: 0.9rem;
}

.resume .base .follow {
  display: grid;
  gap: 12px;
}

.resume .base .follow .box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resume .base .follow .box a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #17245d;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resume .base .follow .box a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(255, 191, 50, 0.26);
}

.resume .func {
  padding: 30px;
  background: var(--resume-bg);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resume .func > section {
  padding: 16px 16px 15px;
}

.resume .func .work,
.resume .func .edu {
  grid-column: span 1;
}

.resume .func .projects,
.resume .func .testimonials,
.resume .func .skills-prog,
.resume .func .skills-soft,
.resume .func .interests {
  grid-column: 1 / -1;
}

.resume .func .work > ul,
.resume .func .edu > ul,
.resume .func .projects > ul,
.resume .func .testimonials > ul {
  display: grid;
  gap: 12px;
}

.resume .func .work > ul > li,
.resume .func .edu > ul > li,
.resume .func .projects > ul > li,
.resume .func .testimonials > ul > li {
  position: relative;
  margin-left: 8px;
  padding-left: 20px;
  min-height: 28px;
}

.resume .func .work > ul > li::before,
.resume .func .edu > ul > li::before,
.resume .func .projects > ul > li::before,
.resume .func .testimonials > ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: var(--accent);
}

.resume .func .work > ul > li::after,
.resume .func .edu > ul > li::after,
.resume .func .projects > ul > li::after,
.resume .func .testimonials > ul > li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 18px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--line);
}

.resume .func .work > ul > li:last-child::after,
.resume .func .edu > ul > li:last-child::after,
.resume .func .projects > ul > li:last-child::after,
.resume .func .testimonials > ul > li:last-child::after {
  display: none;
}

.resume .func span,
.resume .func small {
  display: block;
}

.resume .func span {
  color: #f9fbff;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}

.resume .func small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.resume .func .entry-role {
  margin-top: 5px;
  color: #ffe6a8;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.resume .func .entry-detail {
  margin-top: 2px;
}

.resume .func .entry-meta {
  margin-top: 1px;
  color: #bfd0e8;
  font-size: 0.76rem;
  font-weight: 600;
}

.resume .func .entry-points {
  margin-top: 8px;
  display: grid;
  gap: 5px;
}

.resume .func .entry-points li {
  position: relative;
  margin: 0;
  min-height: 0;
  padding-left: 14px;
  color: rgba(224, 233, 248, 0.92);
  font-size: 0.77rem;
  line-height: 1.48;
}

.resume .func .entry-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 222, 141, 0.92);
}

.resume .func .entry-points li::after {
  display: none;
}

.resume .func .skills-prog ul {
  display: grid;
  gap: 10px;
}

.resume .func .skills-prog li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resume .func .skills-prog li span {
  width: 172px;
  max-width: 46%;
  margin: 0;
  font-size: 0.88rem;
}

.resume .func .skills-prog .skills-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.resume .func .skills-prog .skills-bar .bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffbf32, #ffd86b);
  box-shadow: 0 0 0 1px rgba(255, 216, 107, 0.16);
  transition: width 0.8s cubic-bezier(0.2, 0.85, 0.3, 1);
}

.resume .func .skills-soft ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.resume .func .skills-soft li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-height: 148px;
}

.resume .func .skills-soft svg {
  width: 94px;
  max-width: 100%;
  fill: transparent;
  transform: rotate(-90deg);
  flex: 0 0 auto;
}

.resume .func .skills-soft svg circle {
  stroke-width: 4px;
  stroke: rgba(255, 255, 255, 0.2);
}

.resume .func .skills-soft svg .cbar {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.resume .func .skills-soft li span,
.resume .func .skills-soft li small {
  position: static;
  width: 100%;
  transform: none;
}

.resume .func .skills-soft li span {
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 600;
  color: #f9fbff;
}

.resume .func .skills-soft li small {
  font-size: 0.76rem;
  color: var(--accent-soft);
  font-weight: 700;
}

.resume .func .interests-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.resume .func .interests-items > div {
  padding: 16px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  justify-items: center;
  gap: 7px;
}

.resume .func .interests-items .award-card {
  align-content: start;
  justify-items: start;
  text-align: left;
  gap: 5px;
  padding: 14px 12px;
}

.resume .func .interests-items .award-card i {
  font-size: 1.18rem;
}

.resume .func .interests-items .award-card span {
  font-size: 0.82rem;
  font-weight: 700;
}

.resume .func .interests-items .award-card .award-role,
.resume .func .interests-items .award-card .award-detail,
.resume .func .interests-items .award-card .award-meta {
  margin-top: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(204, 219, 242, 0.88);
  font-weight: 600;
}

.resume .func .interests-items .award-card .award-role {
  color: #ffe6a8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.resume .func .interests-items .award-card .award-points {
  margin-top: 4px;
  display: grid;
  gap: 4px;
}

.resume .func .interests-items .award-card .award-points li {
  position: relative;
  padding-left: 12px;
  font-size: 0.74rem;
  color: rgba(223, 232, 247, 0.9);
  line-height: 1.42;
}

.resume .func .interests-items .award-card .award-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 214, 120, 0.95);
}

.resume .func .interests-items i {
  color: var(--accent);
  font-size: 1.38rem;
}

.resume .func .interests-items span {
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.35;
}

@media screen and (max-width: 980px) {
  body {
    padding: 16px 12px;
  }

  .resume {
    border-radius: 18px;
    grid-template-columns: 1fr;
  }

  .resume .base {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .resume .func {
    grid-template-columns: 1fr;
    padding: 22px 16px;
  }

  .resume .func .work,
  .resume .func .edu,
  .resume .func .projects,
  .resume .func .testimonials,
  .resume .func .skills-prog,
  .resume .func .skills-soft,
  .resume .func .interests {
    grid-column: 1;
  }
}

@media screen and (max-width: 640px) {
  .resume .func .skills-prog li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .resume .func .skills-prog li span {
    width: 100%;
    max-width: 100%;
  }

  .resume .func .skills-soft ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume .func .interests-items {
    grid-template-columns: 1fr;
  }
}
