@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background-color: #f8f9fa;
  line-height: 1.5;

  --primary-text-color: #181820;
  --secondary-text-color: #555960;
  --durability-text-color: #667085;
  --icon-color: #6a737d;
  --border-color: #0077b645;
  --text-decoration-color: #0077b6;
  --hover-bg-color: rgba(245, 245, 245, 0.6);
}

body.dark-mode {
  background-color: #121212;

  --primary-text-color: #f0f0f0;
  --secondary-text-color: #c5c9ce;
  --durability-text-color: #b7bec7;
  --icon-color: #c0c0c0;
  --border-color: #0077b680;
  --text-decoration-color: #4dabf7;
  --hover-bg-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .resume {
  background-color: #1e1e1e;
  border-color: #333;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--text-decoration-color);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.container {
  margin: 0 auto;
  padding: 0 30px;
  max-width: 900px;
}

.fh {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.fv {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resume {
  margin: 50px auto;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  padding: 30px 0;
  max-width: 900px;
  animation: fadeIn 0.8s ease-out forwards;
}

.resume__block {
  border-bottom: 3px solid var(--border-color);
  padding-bottom: 30px;
  margin-bottom: 15px;
}

/* ==========================================
   Contact Info
   ========================================== */

.contact-info__header,
.contact-info__sub-header {
  text-align: center;
}

.contact-info__header {
  color: var(--primary-text-color);
  margin-bottom: 15px;
  text-decoration-color: var(--text-decoration-color);
  text-decoration-line: underline;
}

.contact-info__sub-header {
  color: var(--secondary-text-color);
  margin-bottom: 30px;
}

.contact-info__block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info__block--center {
  justify-content: center;
}

.contact-info__item {
  color: var(--secondary-text-color);
  text-decoration: none;
  display: flex;
  justify-content: start;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-info__item:hover {
  transform: translateX(5px);
  color: var(--text-decoration-color);
}

.contact-info__item:not(:last-child) {
  margin-bottom: 20px;
}

.contact-info__item-icon-wrapper {
  margin-right: 10px;
  width: 20px;
  display: flex;
  justify-content: center;
}

.contact-info__item-icon path {
  fill: var(--icon-color);
}

.contact-info__item-icon {
  height: 1.1428rem;
  vertical-align: text-bottom;
}

.contact-info__avatar {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid;
  border-color: var(--text-decoration-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info__avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.35);
}

/* ==========================================
   Intro
   ========================================== */

.intro {
  display: flex;
  justify-content: start;
  margin-bottom: 25px;
}

.intro__icon-wrapper {
  margin-right: 30px;
  width: 30px;
  display: flex;
  justify-content: center;
}

.intro__icon {
  height: 1.1428rem;
  vertical-align: text-bottom;
}

.intro__icon path {
  fill: var(--text-decoration-color);
}

.intro__icon--end {
  transform: rotate(180deg);
  margin-left: 10px;
  vertical-align: text-top;
}

.intro_text {
  color: var(--secondary-text-color);
  text-align: justify;
}

.skills__header {
  color: var(--secondary-text-color);
  text-align: center;
  margin-bottom: 15px;
}

.skills__text {
  color: var(--secondary-text-color);
  text-align: justify;
}

/* ==========================================
   Experience
   ========================================== */

.experiences {
  flex: 1 1 60%;
  margin-right: 50px;
}

.experiences__header {
  color: var(--secondary-text-color);
  text-align: left;
  margin-bottom: 20px;
}

.experiences__company-header-durability {
  color: var(--durability-text-color);
  text-align: left;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 400;
}

.experiences__company-header-name {
  color: var(--primary-text-color);
  text-decoration-color: var(--text-decoration-color);
  text-decoration-line: underline;
  text-align: left;
  margin-bottom: 20px;
}

.experiences__company-project {
  margin-left: 15px;
  margin-bottom: 25px;
}

.experiences__company-project-role {
  display: block;
  color: var(--durability-text-color);
  text-align: left;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 400;
}

.experiences__company-project-name {
  color: var(--primary-text-color);
  text-align: left;
  margin-bottom: 10px;
}

.experiences__company-project-responsibilities {
  color: var(--secondary-text-color);
  padding-left: 20px;
}

.experiences__company-project-responsibilities li {
  margin-bottom: 6px;
}

/* ==========================================
   Additional Info / Education
   ========================================== */

.additional-info {
  flex: 1 1 40%;
}

.additional-info__education {
  margin-bottom: 20px;
}

.additional-info__education-header {
  color: var(--secondary-text-color);
  text-align: left;
  margin-bottom: 20px;
}

.additional-info__education-university-durability {
  color: var(--durability-text-color);
  text-align: left;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 400;
}

.additional-info__education-university-speciality {
  color: var(--primary-text-color);
  text-align: left;
  margin-bottom: 10px;
}

.additional-info__education-university-name {
  color: var(--secondary-text-color);
}

.additional-info__languages {
  margin-bottom: 20px;
}

.additional-info__languages-header {
  color: var(--secondary-text-color);
  text-align: left;
  margin-bottom: 20px;
}

.additional-info__languages-item {
  color: var(--secondary-text-color);
}

/* ==========================================
   General Sections
   ========================================== */

.section-title {
  color: var(--secondary-text-color);
  text-align: left;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.languages-list,
.skills-block,
.certificates-list,
.hobbies-block {
  color: var(--secondary-text-color);
  margin-bottom: 20px;
}

.languages-list,
.certificates-list {
  padding-left: 20px;
}

.skills-block p,
.hobbies-block p {
  margin-bottom: 10px;
}

.languages-list li::marker,
.certificates-list li::marker,
.experiences__company-project-responsibilities li::marker {
  color: var(--text-decoration-color);
  font-size: 1.1em;
}

.skills-block strong,
.hobbies-block strong {
  color: var(--primary-text-color);
  background-color: rgba(0, 119, 182, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.skills-block p:hover strong,
.hobbies-block p:hover strong {
  background-color: var(--text-decoration-color);
  color: #ffffff;
}

.section {
  padding: 10px 15px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.section:hover {
  background-color: var(--hover-bg-color);
}

/* ==========================================
   Experience / Education Cards
   ========================================== */

.experiences,
.additional-info__education {
  padding: 15px;
  border-radius: 8px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.experiences:hover,
.additional-info__education:hover {
  background-color: var(--hover-bg-color);
}

/* ==========================================
   QA Projects
   ========================================== */

.qa-projects {
  margin-bottom: 25px;
}

.qa-projects .experiences__company {
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.qa-projects .experiences__company:hover {
  background-color: var(--hover-bg-color);
}

.qa-projects .experiences__company-header-name {
  margin-bottom: 5px;
}

.qa-projects .experiences__company-header-durability {
  display: block;
  margin-bottom: 8px;
}

.qa-projects .experiences__company-project-role {
  display: block;
  margin-bottom: 10px;
}

.qa-projects .experiences__company-project-responsibilities {
  margin-bottom: 12px;
}

.qa-projects .experiences__company-project-responsibilities li {
  margin-bottom: 6px;
}

.qa-projects a {
  color: var(--text-decoration-color);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.qa-projects a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* ==========================================
   Education Hierarchy
   ========================================== */

.additional-info__education-university,
.additional-info__education {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

.additional-info__education-university-speciality {
  order: 1 !important;
  text-decoration-color: var(--text-decoration-color);
  text-decoration-line: underline;
  margin-bottom: 4px;
}

.additional-info__education-university-durability {
  order: 2 !important;
  margin-bottom: 8px;
}

.additional-info__education-university-name {
  order: 3 !important;
  margin-bottom: 8px;
}

.additional-info__education-university-speciality-description,
.additional-info__education p {
  order: 4 !important;
}

/* ==========================================
   Mobile
   ========================================== */

@media screen and (max-width: 576px) {
  .main-info,
  .contact_info_container {
    flex-direction: column;
  }

  .contact_info_container {
    align-items: center;
  }

  .contact-info__block:not(:last-child) {
    margin-bottom: 20px;
  }

  .experiences {
    margin-right: 0;
  }

  .container {
    padding: 0 18px;
  }

  .section {
    padding: 10px 5px;
  }

  .qa-projects .experiences__company {
    padding: 10px;
  }

  .theme-toggle {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .resume {
    margin: 20px auto;
    border-radius: 0;
  }

  .contact-info__header {
    font-size: 1.7rem;
  }

  .contact-info__sub-header {
    font-size: 1.2rem;
  }

  .intro__icon-wrapper {
    margin-right: 15px;
  }
}

/* ==========================================
   Footer
   ========================================== */

.footer {
  text-align: center;
  padding: 20px;
  color: var(--secondary-text-color);
  font-size: 0.85rem;
}
