/* Selection Styles */
::-webkit-scrollbar {
    display: none;
}

::selection {
  background-color: black;
  color: white;
}

::-moz-selection {
  background-color: black;
  color: white;
}

:root {
    --my-color: #82B440;
    --my-link-hover-color: #75A239;
}

.custom-color {
    color: var(--my-color);
}

.entries .entry.my-color .title::after {
    background-color: var(--my-color);
}


a {
    color: var(--my-color);
    text-decoration: none;
}

a:hover {
    color: var(--my-link-hover-color);
}

.entries .entry.my-color .span{
  color: var(--my-color);
}

.footer-item a::selection,
.footer-item span::selection {
  background-color: white;
  color: black;
}

.footer-item a::-moz-selection,
.footer-item span::-moz-selection {
  background-color: white;
  color: black;
}

.about h1::selection,
.about p::selection {
  background-color: white;
  color: black;
}

.about h1::-moz-selection,
.about p::-moz-selection {
  background-color: white;
  color: black;
}

/* BODY */
body {
  scrollbar-width: none;
  margin: 0;
  padding: 0;
  font-family: "Nunito Sans", sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
  text-align: justify;
}


/* Horizontal Rule */
hr {
  border: none;
  height: 2px;
  background-color: #333333;
}

/* CONTENT */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 0 5%;
}

.content .projects h1 {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 20px;
}

.content p {
  font-size: 22px;
  font-weight: 400;
  max-width: 600px;
  text-align: center;
}

/* ABOUT */

.about-wrapper,
.projects-wrapper {
  position: relative;
  overflow: hidden;
}

.about,
.projects {
  position: relative;
  padding: 5% 10%;
  transition: opacity 0.3s;
  z-index: 1;
}

.about {
  margin-bottom: 0px;
  background-color: black;
  z-index: 1;
}

.projects {
  margin-top: 0;
  margin-bottom: 40vh;
  background-color: white;
}

.about h1,
.about p,
.projects h1,
.projects p {
  position: relative;
  z-index: 1;
}

.about h1,
.projects h1 {
  font-size: 40px;
  font-weight: 400;
}

.about p,
.projects p {
  font-size: 20px;
  font-weight: 400;
  text-align: justify;
}

.about h1,
.about p {
  color: white;
  z-index: 2;
}

.projects h1,
.projects p {
  color: black;
}


canvas,
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500%;
  z-index: 0;
}

.about-wrapper {
  position: relative;
  overflow: hidden;
}

.about {
  position: relative; /* Added to position the canvas and content */
  padding: 5% 10%;
  /*     opacity: 0; */
  transition: opacity 0.3s;
  margin-bottom: 15vh;
  background-color: black;
  z-index: 1;
}

.about h1 {
  position: relative; /* Ensure the text is above the canvas */
  z-index: 1;
  color: white;
  font-size: 40px;
  font-weight: 400;
}

.about p {
  position: relative; /* Ensure the text is above the canvas */
  z-index: 1;
  color: white;
  font-size: 20px;
  font-weight: 400;
}

.about-content {
  position: relative;
  z-index: 1; /* Added to ensure the content is above the canvas */
  padding-top: 0; /* Отступ сверху */
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500%; /* Увеличиваем высоту, чтобы создать эффект параллакса */
  z-index: -1;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500%;
  z-index: 0; /* Behind the actual content */
}

/* TIMELINE */

.entries {
  width: calc(100% - 500px);
  max-width: 1500px;
  margin: auto;
  position: relative;
  left: -5px;
  margin-bottom: 5vh;
}


.entries:before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background-color: black;
  z-index: -1;
}

.entries:after {
  content: "";
  display: table;
  clear: both;
}

.entries .entry {
  width: calc(50% - 80px);
  float: left;
  padding: 20px;
  clear: both;
  text-align: left;
}

.entries .entry:not(:first-child) {
  margin-top: -51px;
}

.entries .entry .title {
  font-size: 18px;
  margin-bottom: 12px;
  position: relative;
  color: #000;
}

.entries .entry .title.big::before {
  content: "";
  position: absolute;
  top: 48%;
  right: -96px; /* Positioned for the new square size */
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: white;
  z-index: 1;
}

.entries .entry .title.big::after {
  content: ""; /* Emoji content here */
  position: absolute;
  top: 51%;
  transform: translateY(-50%) translateX(-50%);
  right: -67px;
  font-size: 28px;
  text-align: center;
  line-height: 40px;
  animation: rippleEffect 2s infinite;
  z-index: 2; /* Ensure it's above the white square */
}

@keyframes rippleEffect {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.5);
  }
}

.entries .entry:nth-child(2n) .title.big::before {
  left: -67px;
  right: auto;
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 40px;
  background-color: white;
  z-index: 1;
}


.entries .entry:nth-child(2n) .title.big::after {
  left: -67px;
  right: auto;
}

@keyframes rippleEffect {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.5);
  }
}

.entries .entry .title::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -97px; /* Adjusted for the new size */
  width: 50px;
  height: 35px;
  background-color: white;
  transform: translateY(-50%);
  z-index: 1;
}

.entries .entry:nth-child(2n) .title::before {
  left: -67px;
  right: auto;
}

.entries .entry .title::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -67px;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-color: #f7ab11; /* This creates a black circle. */
  background-image: none; /* Remove the SVG image */
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 2;
  border-radius: 50%;
}

.entries .entry:nth-child(2n) .title::after {
  left: -67px;
  right: auto;
}

.entries .entry:nth-child(2n){
  left: -86px;
  right: auto;
}

.entries .entry .body {
  color: #000;
}

.entries .entry .body p {
  line-height: 1.4em;
}

.entries .entry:nth-child(2n) {
  text-align: left;
  float: right;
}

/* SKILLS */

.skills-container {
  height: auto;
  display: flex;
  justify-content: space-between; /* Separates the two blocks */
  align-items: flex-start; /* Vertically centers the blocks */
  /*height: 70vh;*/ /* Full viewport height */
  padding: 0 50px;
  margin-top: 100px;
  margin-bottom: 50px;/* Padding from the left and right edges of the screen */
}

.skill-block {
  width: calc(50% - 30px); 
  display: flex;
  flex-direction: column; /* Stack children vertically */
  justify-content: center;
  align-items: center;
}

.hard-skills {
  margin-right: 30px;
}

.soft-skills {

  margin-left: 30px;
  /* Half the desired separation between the blocks */
}

.soft-skills-title {
  margin-bottom: 20px;
}

.hard-skills-title {
  margin-bottom: 20px;
  text-align: center;
}

.soft-skills-list{
  margin-top: 0px;
}

.hard-skills-list{
  margin-bottom: 50px;
}

.skillbar-container {
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: center; /* Center children horizontally */
  justify-content: center; /* Center children vertically */
  height: 350px; /* Take full viewport height */
  margin-top: 0px;
}

.skillbar {
  position: relative;
  display: block;
  margin-bottom: 15px;
  width: 650px;
  background: #eee;
  height: 20px;
  border-radius: 3px;
  transition: 0.4s linear;
  transition-property: width, background-color;
}

.skillbar-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 0px;
  font-weight: bold;
  white-space: nowrap;
  font-size: 13px;
  color: #ffffff;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.skillbar-title span {
  display: block;
  background: #525252;
  padding: 0 20px;
  height: 20px;
  line-height: 20px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.skillbar-bar {
  height: 20px;
  width: 0px;
  white-space: nowrap;
  border-radius: 3px;
}

.skill-bar-percent {
  position: absolute;
  right: 10px;
  top: 0;
  font-size: 11px;
  height: 20px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.4);
}

.Count:after {
  content: "%";
}

/* Styles for the two blocks */

/* PROJECTS */

.projects-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 10vh;
}

.projects {
    position: relative;  
    padding: 5% 10%;
    transition: opacity 1s;
    margin-top: 0vh;
    margin-bottom: 0vh;
    background-color: white;
    z-index: 1;
}

.projects h1 {
    position: relative;
    z-index: 1; 
    color: black;
    font-size: 40px;
    font-weight: 600;
}

.projects p {
    position: relative;
    z-index: 1; 
    color: black;
    font-size: 20px;
    font-weight: 400;
}

.project {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.project-title {
    display: inline-block;
    padding: 10px 15px;  /* немного увеличенный padding для лучшего вида */
    background-color: rgba(243, 243, 243, 0.7); /* делаем фон немного прозрачным */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);  /* добавляем тень */
    border-radius: 10px;  /* скругляем углы */
    z-index: 2; 
    position: relative;
    transition: all 0.3s; 
}

.project-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1s, opacity 1s;
    z-index: 1; 
    padding: 5px 10px;
    border-left: 4px solid var(--my-color);
    padding-left: 15px;
    text-align: justify;
}

.project:hover .project-description {
    max-height: 500px;
    opacity: 1;
}

.dropdown-arrow {
    display: inline-block;
    transition: transform 0.3s;
    color: var(--my-color);
}


.project:hover .dropdown-arrow {
    transform: rotate(-180deg); /* вращение стрелки на 180 градусов */
}



/* Footer Styles */
footer {
  background-color: #222;
  color: #fff;
  padding: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-item {
  flex: 1;
  display: flex;
  justify-content: center; /* Change this line */
  align-items: center;
}

.footer-label {
  font-weight: bold;
  margin-right: 10px;
}

.telegram-icon svg {
    margin-top: 13px;
    margin-right: 16px;
    transform: scale(1.3);
    transform-origin: center;
    fill: var(--my-color); /* Color of the icon */
}

.dubai-span{
  color: var(--my-color);
  margin-left: 0px;
}

.telegram-icon:hover svg {
    fill: var(--my-link-hover-color);
}

.mail-icon svg {
    margin-top: 8px;
    transform: scale(1.3);
    transform-origin: center;
    fill: var(--my-color); /* Color of the icon */
}

.mail-icon:hover svg {
    fill: var(--my-link-hover-color);
}

.linkedin-icon svg {
    margin-top: 8px;
    margin-right: 20px;
    transform: scale(1.3);
    transform-origin: center;
    fill: var(--my-color); /* Color of the icon */
}

.linkedin-icon:hover svg {
    fill: var(--my-link-hover-color);
}


/* Media Queries */
 /* Existing styles for wider screens... */
@media only screen and (max-width: 1500px){
  
  .soft-skills-title {
  margin-bottom: 0px;
}

  .hard-skills-title {
    margin-bottom: 20px;
  }
  
  .sillbar-container {
    margin-top: 0;
  }
  
  .skills-container {
    flex-direction: column;
    align-items: stretch; /* чтобы скилы растягивались на всю доступную ширину */
    margin-bottom: auto;
  }

  .skill-block {
    width: 100%;
    height: 100%;
    margin-bottom: 50px; /* отступ между блоками на маленьких экранах */
  }

  .hard-skills, .soft-skills {
    margin: 0; /* убираем дополнительные отступы */
  }
  
  
}
/* Styles for screens less than 1000px */
@media only screen and (max-width: 950px) {
  .entries {
    width: 75vw;
    padding-left: 40px;
    padding-right: 20px;
    position: relative;
    left: 0;
  }

  .entries .entry {
    width: 100%;
    float: none;
    margin-top: 50px;
    text-align: left;
    padding-left: -40px;
    padding-right: 5px;
    margin-left: -20px;
  }

  .entries .entry .title.big::before {
    content: "";
    position: absolute;
    top: 5%;
    left: -50px; /* Positioned for the new square size */
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background-color: white;
    z-index: 1;
  }

  .entries .entry .title.big::after {
    content: ""; /* Emoji content here */
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    left: -32px;
    font-size: 28px;
    text-align: center;
    line-height: 40px;
    animation: rippleEffect 2s infinite;
    z-index: 2; /* Ensure it's above the white square */
  }

  @keyframes rippleEffect {
    0%, 100% {
      transform: translateY(-50%) scale(1);
    }
    50% {
      transform: translateY(-50%) scale(1.5);
    }
  }
  
  .entries .entry .title:before {
    content: "";
    position: absolute;
    top: 50%;
    left: -50px; /* Adjusted for the new square size */
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: white;
    z-index: 1;
  }
  
  .entries .entry:nth-child(2n) .title.big:before {
    content: "";
    position: absolute;
    top: 50%;
    left: -50px; /* Positioned for the new square size */
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: white;
    z-index: 1;
  }
  
  .entries .entry:nth-child(2n) .title.big:after {
    left: -28px;
  }
  
  .entries .entry .title:after {
    right: auto;
    left: -25px;
    transform: translateX(-50%) translateY(-50%);
    z-index: 2;
  }

  .entries .entry:nth-child(2n) .title:before {
    left: -20px;
  }

   .entries .entry:nth-child(2n) .title:before {
    left: -50px;
  }
  
  .entries .entry:nth-child(2n) .title:after {
    left: -20px;
  }

  .entries:before {
    top: 30px;
    left: 15px;
    transform: none;
  }
  
  .skillbar {
    width: 65vw;
  }
  
  footer {
  padding: 10px;
}
  
  .project:hover .project-description {
    max-height: none;
    opacity: 1;
  }

  .project:hover .dropdown-arrow {
    transform: none;
  }
}
@media (max-width: 767px) {
    .project:hover .project-description {
        max-height: none;
        opacity: 1;
    }

    .project:hover .dropdown-arrow {
        transform: none;
    }
    
    .soft-skills-title {
  margin-bottom: -10px;
}

    .hard-skills-title {
      margin-bottom: 25px;
    }
    .about-content {
      padding-bottom: 12px;
  }
}

@media (max-width: 400px) {
  .living-place-item .footer-label {
    display: none;
  }
  .dubai-span {
  font-weight: bold;
  font-size: 20px;
}

}