:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --muted: #e6edf3;
  --accent: #e9f0f6;
  --shimmer: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
  --radius: 8px;
  --gap: 18px;
  --line-height: 14px;
}

@media screen and (max-width:1650px) {
  html {
    font-size: 8px
  }
}

@media screen and (max-width:1000px) {
  html {
    font-size: 9px
  }
}

@media screen and (max-width:600px) {
  html {
    font-size: 8px
  }
}

*,
::after,
::before {
  box-sizing: inherit;
}

@media screen and (max-width:1650px) {
  html {
    font-size: 8px !important
  }
}

@media screen and (max-width:1000px) {
  html {
    font-size: 9px !important
  }
}

@media screen and (max-width:600px) {
  html {
    font-size: 8px !important
  }
}

::-moz-selection {
  background-color: #00c8aa;
  color: #fff
}

::selection {
  background-color: #00c8aa;
  color: #fff
}

::-webkit-scrollbar {
  background-color: #313b47;
  width: .9rem;
  height: 1rem
}

::-webkit-scrollbar-track {
  display: none;
  -webkit-box-shadow: inset 0 0 .6rem transparent;
  box-shadow: inset 0 0 .6rem transparent;
  border-radius: 1rem
}

::-webkit-scrollbar-thumb {
  border: 1px solid #425061;
  background-color: #425061;
  outline: 0
}

html {
  font-size: 10px;
  line-height: 1.15;
  -webkit-n-text-size-adjust: 100%
}

body {
  line-height: 1;
  font-weight: 400;
  color: #313b47;
  background-color: transparent;
  scrollbar-width: none;
}

body,
html {
  font-family: 'Ubuntu', sans-serif;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  text-rendering: optimizeLegibility;
  font-weight: 400 !important
}

html::before,
html::after {
  visibility: hidden;
  display: block;
  font-size: 0;
  /* content: " "; */
  clear: both;
  height: 0
}

a {
  margin-top: 0;
  font-family: "Ubuntu", sans-serif;
  line-height: 1.5;
  font-size: 2rem;
  text-decoration: none;
  color: #2679c7;
  outline: #2679c7;
  background-color: transparent;
  cursor: pointer;
  outline: 0;
  background-color: transparent
}

#main.mainDocument .document,
#main.mainDocument .container {
  position: relative;
  margin: 0 auto;
}

@media only screen and (max-device-width : 844px) {
  #main {
    padding-inline: 1rem !important;
  }

  #main.mainDocument .document,
  #main.mainDocument .container {
    transform: scale(0.9) translateY(-2%);
  }
}

div {
  padding: 0;
  margin: 0
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  position: relative;
  overflow-x: hidden !important
}

#main {
  width: 100%;
  height: 100vh;
  padding-block: 12rem;
  padding-inline: 8rem;
  background-color: #313b47;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


#main .document,
#main .container {
  max-width: 950px;
  /* min-width: 700px; */
  /* min-height: 1343px; */
  aspect-ratio: 1/1.414;
  /* min-height: 2686px; */
}

#main .document.cv {
  aspect-ratio: 0.5/1.414;
}

.document {
  position: relative;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
}

#viewerContainer {
  overflow: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: white;
}

#viewer {
  min-width: max-content;
  transform-origin: top left;
  visibility: hidden;
}

.pdfViewer.removePageBorders .page {
  margin: 0px !important;
}

.pdfViewer.removePageBorders .page:not(:last-child) .canvasWrapper {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3) !important;
}

.external {
  height: max-content;
  width: 48px;
  position: absolute;
  z-index: 10;
  top: 3rem;
  right: 3rem;
}

.btn-circle-download {
  display: block;
  position: relative;
  height: 48px;
  width: 48px;
  margin: auto;
  border-radius: 100%;
  background: #E8EAED;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.btn-circle-download:after {
  content: "";
  position: relative;
  display: block;
  width: 200%;
  height: 100%;
  background-image: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  transform: translateX(-100%);
}

.btn-circle-download svg {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.btn-circle-download svg#border {
  position: absolute;
  top: 0;
  left: 0;
  stroke: none;
  stroke-dasharray: 144;
  stroke-dashoffset: 144;
  transition: all 0.9s linear;
}

.btn-circle-download svg#arrow {
  position: absolute;
  top: 14px;
  left: 17px;
  stroke: #9098A9;
  transition: all 0.2s ease;
}

.btn-circle-download svg#check {
  position: absolute;
  top: 17px;
  left: 13px;
  stroke: white;
  transform: scale(0);
}

.btn-circle-download:hover {
  background: rgba(0, 119, 255, 0.2);
}

.btn-circle-download:hover #arrow path,
.btn-circle-download:hover #arrow polyline {
  stroke: #4f90cd;
}

.btn-circle-download.load {
  background: rgba(0, 119, 255, 0.2);
}

.btn-circle-download.load #arrow path,
.btn-circle-download.load #arrow polyline {
  stroke: #4f90cd;
}

.btn-circle-download.load #border {
  stroke: #4f90cd;
  stroke-dasharray: 144;
  stroke-dashoffset: 0;
}

.btn-circle-download.done {
  background: #4f90cd;
  animation: rubberBand 0.8s;
}

.btn-circle-download.done:after {
  transform: translateX(50%);
  transition: transform 0.4s ease;
  transition-delay: 0.7s;
}

.btn-circle-download.done #border,
.btn-circle-download.done #arrow {
  display: none;
}

.btn-circle-download.done #check {
  transform: scale(1);
  transition: all 0.2s ease;
  transition-delay: 0.2s;
}

.external.focus .btn-circle-download.alternate,
.external:hover .btn-circle-download.alternate {
  margin-block-start: 24px;
}

.btn-circle-download.alternate {
  z-index: -1;
  margin-block-start: -48px;
  line-height: 48px;
  font-size: large;
  font-weight: 600;
  text-align: center;
}


@keyframes rubberBand {
  from {
    transform: scale(1, 1, 1);
  }

  30% {
    transform: scale3d(1.15, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.15, 1);
  }

  50% {
    transform: scale3d(1.1, 0.85, 1);
  }

  65% {
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    transform: scale3d(1.05, 0.95, 1);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}


@media print {
  #resume-btn {
    display: none;
  }

  #main {
    background-color: transparent;
  }

  #main .document,
  #main .container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    transform: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  @page {
    size: A4 !important;
    margin: 0 !important;
  }
}

.container {
  position: absolute !important;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 28px;
  overflow: hidden;
}

/* shimmer animation */
.shimmer {
  position: relative;
  overflow: hidden;
  background: var(--muted);
}

.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 250%;
  height: 100%;
  background: var(--shimmer);
  transform: translateX(0);
  animation: shine 1.6s linear infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* layout skeleton elements */
.header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.title-group {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-line {
  height: 22px;
  width: 65%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.subtitle-line {
  height: 14px;
  width: 35%;
  border-radius: 6px;
}

.contact {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.contact .pill {
  height: 12px;
  width: 120px;
  border-radius: 6px;
}

.section {
  margin-top: 26px;
}

.section .heading {
  height: 18px;
  width: 220px;
  border-radius: 6px;
  margin-bottom: 14px;
}

/* multi-column skills */
.skills {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
}

.skill-col {
  flex: 1;
  min-width: 0;
}

.skill-line {
  height: 12px;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* experience list */
.exp-item {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.exp-date {
  flex: 0 0 110px;
}

.exp-body {
  flex: 1;
  min-width: 0;
}

.exp-title {
  height: 14px;
  width: 45%;
  border-radius: 6px;
  margin-bottom: 8px;
}

.exp-sub {
  height: 12px;
  width: 30%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.bullet {
  height: 12px;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* projects & others */
.project {
  margin-bottom: 14px;
}

.small-line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* compact grid for education/achievements */
.two-col {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
  align-items: center;
}

.ach-list .ach-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.ach-left {
  height: 12px;
  width: 60%;
  border-radius: 6px;
}

.ach-right {
  height: 12px;
  width: 100px;
  border-radius: 6px;
}

/* responsiveness */
@media (max-width:720px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .exp-item {
    flex-direction: column;
  }

  .exp-date {
    flex: none;
    width: 100%;
    height: 12px;
  }
}