:root {
  --color-theme: #8aa010;
  --color-secondary: #ffffff;
  --color-body: #a4acc4;
  --color-heading: #ffffff;
  --color-border: #2e4e32;
  --color-bg-body: #131418;
  --color-bg-dark: #0c0e16;
  --color-panel: #1a1d22;
  --color-panel-soft: #1f2329;
  --transition: all 0.4s ease-out;
  --header-width: 300px;
}

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

html {
  overflow-y: auto;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  line-height: 1.8rem;
  color: var(--color-body);
  background:
    radial-gradient(circle at top right, rgba(138, 160, 16, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(138, 160, 16, 0.08), transparent 32%),
    var(--color-bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  margin: 0;
}

h1 {
  font-size: 3.2857rem;
  line-height: 4rem;
  font-weight: 700;
}

h2 {
  font-size: 2.57rem;
  line-height: 3.2857rem;
}

h3 {
  font-size: 2rem;
  line-height: 2.7rem;
}

h4 {
  font-size: 1.71rem;
  line-height: 2.43rem;
}

h5 {
  font-size: 1.43rem;
  line-height: 2.14rem;
}

h6 {
  font-size: 1.14rem;
  line-height: 1.857rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--color-theme);
  color: #fff;
}

.color-theme {
  color: var(--color-theme);
}

.mi-wrapper {
  position: relative;
  min-height: 100vh;
  padding-left: var(--header-width);
}

.mi-main {
  position: relative;
  min-height: 100vh;
}

.mi-bglines {
  position: fixed;
  left: var(--header-width);
  top: 0;
  width: calc(100% - var(--header-width));
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.mi-bglines span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(46, 78, 50, 0.3);
}

.mi-bglines span:nth-child(1) {
  left: 20%;
}

.mi-bglines span:nth-child(2) {
  left: 40%;
}

.mi-bglines span:nth-child(3) {
  left: 60%;
}

.mi-bglines span:nth-child(4) {
  left: 80%;
}

.mi-header {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--header-width);
  height: 100vh;
  background: var(--color-panel);
  border-right: 1px solid var(--color-border);
  z-index: 20;
  transition: var(--transition);
}

.mi-header-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.mi-header-toggler {
  position: absolute;
  left: 100%;
  top: 20px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-border);
  border-left: 0;
  background: var(--color-panel);
  color: var(--color-heading);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.mi-header-image {
  width: 100%;
  padding: 20px 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.mi-header-image a {
  display: inline-block;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 50%;
  border: 7px solid var(--color-border);
}

.mi-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mi-header-menu {
  width: 100%;
  padding: 15px 5px;
  list-style: none;
}

.mi-header-menu li {
  text-align: center;
}

.mi-header-menu li:not(:last-child) {
  margin-bottom: 1px;
}

.mi-header-menu a {
  position: relative;
  display: block;
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-body);
  overflow: hidden;
  transition: var(--transition);
}

.mi-header-menu a::before {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  width: 0;
  background: rgba(138, 160, 16, 0.2);
  visibility: hidden;
  transition: var(--transition);
  z-index: -1;
}

.mi-header-menu a:hover,
.mi-header-menu a.is-active {
  color: #fff;
}

.mi-header-menu a:hover::before,
.mi-header-menu a.is-active::before {
  width: 100%;
  inset: 0;
  visibility: visible;
}

.mi-header-menu a.is-active::before {
  background: var(--color-theme);
}

.mi-header-copyright {
  width: 100%;
  margin: 0;
  padding: 15px 0;
  text-align: center;
  font-size: 1rem;
  border-top: 1px solid var(--color-border);
}

.page-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: none;
  opacity: 0;
  animation: fadeIn 0.45s ease-out forwards;
}

.page-section.is-active {
  display: block;
}

.mi-padding-top {
  padding-top: 120px;
}

.mi-padding-bottom {
  padding-bottom: 120px;
}

.mi-home-area {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mi-home-area::before,
.mi-home-area::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.mi-home-area::before {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(138, 160, 16, 0.18), transparent 70%);
}

.mi-home-area::after {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(138, 160, 16, 0.11), transparent 72%);
}

.mi-home-content {
  position: relative;
  text-align: center;
  padding: 50px 80px;
}

.mi-home-content p {
  margin-top: 15px;
  font-size: 1.25rem;
  line-height: 2rem;
}

.mi-home-content .mi-socialicons {
  margin-top: 24px;
}

.mi-socialicons {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.mi-socialicons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-body);
  transition: var(--transition);
}

.mi-socialicons a:hover {
  color: var(--color-theme);
}

.mi-socialicons-bordered a {
  width: 45px;
  height: 45px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  font-size: 1.1rem;
}

.mi-socialicons-bordered a:hover {
  border-color: var(--color-theme);
}

.mi-sectiontitle {
  position: relative;
  margin-bottom: 60px;
  z-index: 1;
}

.mi-sectiontitle span {
  position: absolute;
  left: 0;
  top: 100%;
  transform: translateY(-40%);
  font-size: 6rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(25, 29, 43, 0.44);
  user-select: none;
  white-space: nowrap;
  z-index: -1;
}

.mi-sectiontitle h2 {
  position: relative;
  padding-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.mi-sectiontitle h2::before,
.mi-sectiontitle h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  border-radius: 999px;
}

.mi-sectiontitle h2::before {
  width: 100px;
  background: rgba(138, 160, 16, 0.3);
}

.mi-sectiontitle h2::after {
  width: 35px;
  background: var(--color-theme);
}

.mi-about-image {
  position: relative;
}

.mi-about-image::before,
.mi-about-image::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 65%;
  background: rgba(138, 160, 16, 0.6);
}

.mi-about-image::before {
  left: 0;
  top: 0;
}

.mi-about-image::after {
  right: 0;
  bottom: 0;
}

.mi-about-image img {
  width: 100%;
}

.mi-about-image-button {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 4rem;
  opacity: 0;
  transition: var(--transition);
}

.mi-about-image:hover .mi-about-image-button {
  opacity: 1;
}

.mi-about-content h3 {
  margin-top: -8px;
  font-weight: 600;
}

.mi-about-content ul {
  list-style: none;
  margin-top: 1rem;
}

.mi-about-content li {
  display: flex;
}

.mi-about-content li:not(:last-child) {
  margin-bottom: 4px;
}

.mi-about-content b {
  position: relative;
  display: inline-block;
  min-width: 120px;
  margin-right: 8px;
}

.mi-about-content b::after {
  content: ":";
  position: absolute;
  right: 0;
}

.mi-button {
  display: inline-block;
  position: relative;
  height: 50px;
  line-height: 50px;
  margin-top: 18px;
  padding: 0 30px;
  background: var(--color-theme);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  z-index: 1;
  overflow: hidden;
  transition: var(--transition);
}

.mi-button::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: var(--transition);
}

.mi-button:hover::before {
  transform: scaleX(1);
}

.mi-service {
  height: 100%;
  padding: 30px;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-border);
  transition: var(--transition);
}

.mi-service:hover {
  border-top-color: var(--color-theme);
}

.mi-service-icon {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--color-theme);
  font-size: 2.5rem;
}

.mi-service h5 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
  font-weight: 600;
}

.mi-service h5::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--color-border);
}

.mi-progress-title {
  margin-bottom: 0;
  font-weight: 600;
}

.mi-skill-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.mi-skill-guide p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  padding: 14px 16px;
  background: rgba(26, 29, 34, 0.9);
  border: 1px solid var(--color-border);
}

.mi-skill-guide span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(138, 160, 16, 0.18);
  color: var(--color-theme);
  font-weight: 800;
}

.mi-skill-card {
  height: 100%;
  margin-top: 30px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(26, 29, 34, 0.95), rgba(19, 20, 24, 0.98));
  border: 1px solid var(--color-border);
  border-top: 4px solid rgba(138, 160, 16, 0.45);
  transition: var(--transition);
}

.mi-skill-card:hover {
  border-top-color: var(--color-theme);
  transform: translateY(-2px);
}

.mi-skill-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mi-skill-level {
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 1px solid rgba(138, 160, 16, 0.35);
  border-radius: 999px;
  color: var(--color-theme);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mi-progress-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mi-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}

.mi-progress-bar span {
  opacity: 0.8;
}

.mi-progress-bar.is-filled {
  border-color: rgba(138, 160, 16, 0.32);
  background: linear-gradient(135deg, rgba(138, 160, 16, 0.92), rgba(111, 130, 8, 0.92));
}

.mi-progress-bar.is-filled span {
  opacity: 1;
}

.mi-progress-bar:not(.is-filled) {
  color: rgba(255, 255, 255, 0.62);
}

.mi-smalltitle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mi-smalltitle h4 {
  font-weight: 700;
}

.mi-smalltitle-icon {
  color: var(--color-body);
  font-size: 1.71rem;
}

.mi-resume-wrapper {
  border-left: 3px solid var(--color-border);
}

.mi-resume {
  display: flex;
  margin-top: 30px;
}

.mi-resume-summary {
  position: relative;
  flex: 0 0 220px;
  max-width: 220px;
  padding-left: 20px;
}

.mi-resume-summary::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 15px;
  height: 15px;
  border: 3px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg-body);
}

.mi-resume-year {
  color: var(--color-body);
}

.mi-resume-details {
  position: relative;
  padding-left: 50px;
}

.mi-resume-details::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 30px;
  height: 1px;
  background: var(--color-border);
}

.mi-resume-details h5 {
  color: var(--color-theme);
  font-weight: 700;
}

.mi-resume-company {
  color: #fff;
}

.mi-portfolio {
  opacity: 1;
}

.mi-portfolio-image {
  position: relative;
  overflow: hidden;
}

.mi-portfolio-image::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 15px;
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  background: rgba(255, 255, 255, 0.9);
  transform: scaleX(0);
  transform-origin: left center;
  transition: var(--transition);
}

.mi-portfolio-image ul {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 14px;
  list-style: none;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.4s ease-in-out 0.2s;
}

.mi-portfolio-image a,
.mi-portfolio-image button {
  width: 45px;
  height: 45px;
  border: 1px solid var(--color-body);
  border-radius: 50%;
  background: var(--color-body);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mi-portfolio-image a:hover,
.mi-portfolio-image button:hover {
  border-color: var(--color-theme);
  background: var(--color-theme);
}

.mi-portfolio:hover .mi-portfolio-image::before {
  transform: scaleX(1);
}

.mi-portfolio:hover .mi-portfolio-image ul {
  opacity: 1;
}

.mi-portfolio h5 {
  margin-top: 15px;
  margin-bottom: 0;
  font-weight: 700;
}

.mi-portfolio h5 a:hover {
  color: var(--color-theme);
}

.mi-portfolio h6 {
  color: var(--color-body);
}

.mi-contact-info {
  margin-top: -30px;
}

.mi-contact-infoblock {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  padding: 30px;
  background: var(--color-panel);
}

.mi-contact-infoblock-icon {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-heading);
  font-size: 1.5rem;
}

.mi-contact-infoblock h6 {
  margin-top: -5px;
}

.mi-contact-infoblock p {
  margin-bottom: 0;
}

.mi-contact-infoblock a:hover {
  color: var(--color-theme);
}

.mi-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
  list-style: none;
}

.mi-pill-list li {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(138, 160, 16, 0.08);
  font-size: 0.95rem;
  line-height: 1.4rem;
}

.mi-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 14, 22, 0.95);
  z-index: 50;
  padding: 40px;
}

.mi-lightbox.is-open {
  display: flex;
}

.mi-lightbox img {
  max-width: min(1100px, 88vw);
  max-height: 85vh;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.mi-lightbox-close,
.mi-lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mi-lightbox-close:hover,
.mi-lightbox-nav:hover {
  border-color: var(--color-theme);
  color: var(--color-theme);
}

.mi-lightbox-close {
  top: 24px;
  right: 24px;
}

.mi-lightbox-prev {
  left: 24px;
}

.mi-lightbox-next {
  right: 24px;
}

.mt-30 {
  margin-top: 30px;
}

.mt-30-reverse {
  margin-top: -30px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1199.98px) {
  :root {
    --header-width: 260px;
  }

  .mi-home-content {
    padding: 50px 0;
  }
}

@media (max-width: 991.98px) {
  :root {
    --header-width: 250px;
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2.9857rem;
    line-height: 3.4rem;
  }

  h2 {
    font-size: 2.37rem;
    line-height: 3.0857rem;
  }

  .mi-wrapper {
    padding-left: 0;
  }

  .mi-bglines {
    left: 0;
    width: 100%;
  }

  .mi-header {
    transform: translateX(-100%);
  }

  .mi-header.is-visible {
    transform: translateX(0);
  }

  .mi-header-toggler {
    display: inline-flex;
  }

  .mi-header-image a {
    width: 150px;
    height: 150px;
  }

  .mi-padding-top {
    padding-top: 100px;
  }

  .mi-padding-bottom {
    padding-bottom: 100px;
  }

  .mi-about-content {
    margin-top: 30px;
  }

  .mi-contact-info {
    margin-top: 50px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.6857rem;
    line-height: 3.1rem;
  }

  h2 {
    font-size: 2.17rem;
    line-height: 2.857rem;
  }

  h3 {
    font-size: 1.91rem;
    line-height: 2.357rem;
  }

  h4 {
    font-size: 1.51rem;
    line-height: 2.13rem;
  }

  h5 {
    font-size: 1.23rem;
    line-height: 2.04rem;
  }

  h6 {
    font-size: 1.04rem;
    line-height: 1.657rem;
  }

  .mi-padding-top {
    padding-top: 80px;
  }

  .mi-padding-bottom {
    padding-bottom: 80px;
  }

  .mi-home-content p {
    font-size: 1.08rem;
    line-height: 1.55rem;
  }

  .mi-sectiontitle {
    margin-bottom: 40px;
  }

  .mi-sectiontitle span {
    font-size: 3.8rem;
  }

  .mi-about-image-button {
    font-size: 2.8rem;
  }

  .mi-about-content b {
    min-width: 95px;
  }

  .mi-service,
  .mi-contact-infoblock,
  .mi-skill-card {
    padding: 20px;
  }

  .mi-skill-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mi-progress-container {
    gap: 6px;
  }

  .mi-progress-bar {
    min-height: 36px;
  }

  .mi-contact-infoblock {
    flex-wrap: wrap;
  }

  .mi-contact-infoblock-icon {
    width: 55px;
    height: 55px;
    flex-basis: 55px;
  }

  .mi-resume {
    flex-wrap: wrap;
  }

  .mi-resume-summary {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .mi-resume-details {
    padding-left: 20px;
  }

  .mi-resume-details::before {
    left: 3px;
    top: -15px;
    width: 12px;
  }

  .mi-lightbox {
    padding: 20px;
  }

  .mi-lightbox-prev,
  .mi-lightbox-next {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .mi-home-content h1 span {
    display: block;
  }

  .mi-sectiontitle span {
    font-size: 3.2rem;
  }

  .mi-socialicons {
    gap: 10px;
  }

  .mi-socialicons-bordered a {
    width: 38px;
    height: 38px;
  }
}
