body {
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #ffffff;
  font-family: 'Lora', serif;
}

h2 {
  display: block;
  font-size: 32px;
  margin: 0;
  padding: 0;
  font-weight: bold;
}

p {
  font-size: 18px;
  line-height: 1.5;
  /* margin-bottom: 1.2em; */
  color: #eeeeee;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px;
  padding-bottom: 0px;

  .logo {
    font-size: 48px;
    font-weight: medium;
  }

  .socials {
    display: flex;
    gap: 16px;
  }

  .socials img {
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease;
  }

  .socials img:hover {
    transform: scale(1.2);
  }

}


.container {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 22px;
  padding: 48px;
  height: 78vh;
  box-sizing: border-box;
  margin: 0 auto; /* Центрируем контейнер */
    

}


.left-column {
  flex: 7;
  min-width: 300px;
  height:100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-radius: 10px;
  box-sizing: border-box;
  size: 70%;
}

.right-column {
  flex: 3;
  min-width: 300px;
  background-color: #1f1f1f;
  padding: 48px;
  border-radius: 28px;
  height:100%;
  box-sizing: border-box;
}


.section {
  display: flex;
  flex-direction: column;
  row-gap: 32px;  
  background-color: #1f1f1f;
  

  height: 100%;
  width: 100%;


  /* overflow: auto; */
  padding: 48px;
  border-radius: 28px;
  box-sizing: border-box;
}


#portfolio{
  display: flex;
  flex-direction: column;
  row-gap: 32px;
  overflow-y: auto;
  flex-grow: 1;
  max-height: 100%;
  padding-right: 10px; /* Чтобы скролл не наезжал на контент */
}

#portfolio::-webkit-scrollbar {
  width: 6px;
}
#portfolio::-webkit-scrollbar-track {
  background: #2e2e2e;
  border-radius: 6px;
}

#portfolio::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border-radius: 6px;
}

#portfolio::-webkit-scrollbar-thumb:hover {
  background: #5a5a5a;
}

.work {
  display: flex;
  flex-direction: column;
  gap: 8px;
  
}

.work-link{
  display: flex;
}

.work-image {
  width: 82px;
  height: 82px;
  /* background-color: #ccc; */
  border-radius: 4px;
  flex-shrink: 0;
}

.name{
  font-size: 24px;
  font-weight:bold;
  
  padding-left: 8px;

}

.work-data{
  font-size: 16px;
  color: #888888;
}

.description{
  /* font-size: 16px; */
  overflow-wrap: break-word; 
  word-break: break-word;   
  white-space: normal;
}


.footer {
  background-color: #1f1f1f;
  padding: 22px;
  text-align: center;
  margin-top: 44px;
  /* bottom: 0px; */
}

@media (max-width: 1524px) {
  .container {
    flex-direction: column;
    height: auto;
  }
  #portfolio {
    overflow-y: hidden;
  }
}

@media (max-width: 880px) {
  .header {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .socials {
    order: 1;
  }

  .container{
    padding: 16px;
  }
}

.glitch {
   position: relative;
}

.glitch:hover:before,
.glitch:hover:after {
   display: block;
   content: attr(data-glitch);
   position: absolute;
   top: 0;
   left: 0;
   opacity: 0.8;
}

.glitch:hover:before {
   animation: glitch-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
   color: #0ff;
   z-index: -1;
}

.glitch:hover:after {
   animation: glitch-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
   color: #ff00ff;
   z-index: -2;
}

@keyframes glitch-color {
   0% {transform: translate(0);}
   20% {transform: translate(-3px, 3px);}
   40% {transform: translate(-3px, -3px);}

   60% {transform: translate(3px, 3px);}

   80% {transform: translate(3px, -3px);}

   to {transform: translate(0);}
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}