:root {
  --background-color-main: #fff;
  --background-color-header: cadetblue;
  --text-color-header: #121212;
  --border-color: #121212;
  --text-color-main: cadetblue;
  --icon-hover-color: rgba(219, 219, 19, 0.598);
  --section-title-background-color: blue;
  --text-color-item: #121212;
  --python: #4a5766;
  --python-text: #94c9ff;
  --java: #63544c;
  --java-text: #ffc226;
  --html: #4b507a;
  --html-text: #c1c4ff;
  --css: #664c63;
  --css-text: #ffa6f2;
  --javascript: #634c54;
  --javascript-text: #ff8fb3;
  --footer-hover: rgba(59, 59, 4, 0.598);
  --like-count: rgb(218, 215, 215);
  --border-color2: #7d7c7c;
  --text-color-main2: cadetblue;
}

[data-theme='dark'] {
  --background-color-main: #1e1e1e;
  --background-color-header: #121212;
  --text-color-header: #9b989e;
  --border-color: #8f8d8f;
  --text-color-main: #7e3eb0;
  --icon-hover-color: orange;
  --section-title-background-color: purple;
  --text-color-item: #c5c5c5;
  --python: #1a2e47;
  --python-text: #4ac9ff;
  --java: #3f271f;
  --java-text: #ff9c00;
  --html: #222b80;
  --html-text: #a3a8ff;
  --css: #4b1647;
  --css-text: #ff65f8;
  --javascript: #3f1c27;
  --javascript-text: #ff4893;
  --footer-hover: rgba(219, 219, 19, 0.598);
  --like-count: rgba(255,255,255,0.3);
  --border-color2: #8f8d8f;
  --text-color-main2: white;
}

html {
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Calibri, 'Segoe UI', Arial, sans-serif;
  transition: all 0.3s ease;
}

body {
  background-color: var(--background-color-main);
  border: 7px solid var(--border-color);
  border-radius: 5px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--background-color-header);
  border-bottom: 7px solid var(--border-color);
}

nav {
  display: flex;
  background-color: var(--background-color-header);
}

.title {
  font-weight: bold;
  font-size: 4.5rem;
  color: var(--text-color-header);
  flex: 1;
  padding: 5px 20px;
}

ul {
  display: flex;
  list-style: none;
  padding: 0;
}

nav ul li a {
  padding: 0.25rem 0.5rem;
  margin: 0 0.25rem;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--text-color-header);
  font-weight: bold;
}

nav ul li a:hover {
  outline: 3px solid var(--border-color);
  border-radius: 5px;
}

svg {
  width: 4rem;
}

button {
  padding: 0.75rem 1.5rem;
  padding-right: 5rem;
  background-color: var(--background-color-header);
  color: var(--text-color-header);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 2rem;
}

.toggle-theme {
  cursor: pointer;
  padding: 0.5rem;
  border: none;
}

.theme-icon {
  fill: none;
}

.toggle-theme:hover .theme-icon {
  fill: var(--icon-hover-color);
}

main {
  display: flex;
  padding-top: 4rem;
  padding-left: 2rem;
  padding-right: 2rem;
  flex: 1;
}

.main-section {
  display: flex;
  flex-direction: row;
}

.avatar-section {
  text-align: center;
  margin-left: 3rem;
  margin-right: 8rem;
}

.avatar-box {
  width: 300px;
  height: 400px;
  border: 4px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.img134290 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-tag {
  background: var(--text-color-main);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 1.4rem;
  font-weight: bold;
  width: 300px;
  margin: 1rem auto;
  display: block;
}

.three-like-items {
  display: flex;
  justify-content: center;
  align-items: center;
}

.like-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.right-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-skills-row {
  display: flex;
  flex-direction: row;
  gap: 15rem;
}

.section-title {
  color: var(--text-color-main);
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 30px;
  position: relative;
}

.section-title::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--section-title-background-color);
}

.info-item {
  font-size: 23px;
  line-height: 1.5;
  color: var(--text-color-item);
  margin: 12px 0;
  font-weight: bold;
}

.section-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.python, .java, .html, .css, .javascript {
  width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.python { background: var(--python); color: var(--python-text); }
.java { background: var(--java); color: var(--java-text); }
.html { background: var(--html); color: var(--html-text); }
.css { background: var(--css); color: var(--css-text); }
.javascript { background: var(--javascript); color: var(--javascript-text); }

/* ===== EDUCATION ===== */

.education-main-section {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100%;
}

.school-section {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.divider-line {
  width: 5px;
  background-color: var(--border-color2);
}

.education-section-title {
  font-size: 35px;
  font-weight: bold;
  padding-top: 40px;
  color: var(--text-color-main);
  position: relative;
}

.education-section-title::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 40px;
  width: 4px;
  background: var(--section-title-background-color);
}

/* ===== interactive ===== */

.interactive-area {
  background-image: url("background.jpg");
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.pull-ball {
  width: 100px;
  height: 100px;
  background: rgb(255, 175, 47);
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%,
    50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%
  );
}

.pull-menu {
  position: absolute;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50px);
  transition: all 0.4s ease;
}

.pull-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pull-menu a {
  font-size: 3rem;
  font-weight: bold;
  text-decoration: none;
}

/* ===== SOCIAL ===== */

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

footer p {
  display: flex;
  justify-content: center;
}

/* ===================== MOBILE ===================== */

@media (max-width: 768px) {

  body {
    border: 4px solid var(--border-color);
    overflow-x: hidden;
  }

  header {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .title {
    font-size: 2.2rem;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li a {
    font-size: 0.9rem;
  }

  main {
    padding: 1rem;
  }

  .main-section {
    flex-direction: column;
    align-items: center;
  }

  .avatar-box {
    width: 200px;
    height: 260px;
  }

  .info-tag {
    width: 220px;
    font-size: 1rem;
  }

  .info-skills-row {
    flex-direction: column;
    gap: 2rem;
  }

  .info-item {
    font-size: 16px;
  }

  .section-icons {
    gap: 10px;
  }

  .python, .java, .html, .css, .javascript {
    width: 100%;
    height: 45px;
  }

  .education-main-section {
    flex-direction: column;
    align-items: center;
  }

  .school-section {
    width: 100%;
  }

  .divider-line {
    display: none;
  }

  .education-section-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .interactive-area {
    width: 100%;
    height: 60vh;
  }

  .pull-ball {
    width: 70px;
    height: 70px;
  }

  .pull-menu a {
    font-size: 1.5rem;
  }
}