/* Reset default browser styles */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    font-family: sans-serif;
    background: #181818;
    color: #D3D3D3;
    font-family: "Urbanist", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
    font-style: normal;
    font-size: 16px;
  }
  
  ul, ol {
    list-style: none;
  }
  
  a {
    text-decoration: none;
    color: #fff;
  }
  
  button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  h1 {
    color: #FFF;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 50.4px */
  }
  h2 {
    color: var(--Primary-Text-Color, #FFF);
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 30.8px */
  }
  /* trj styles */
  header {
    display: flex;
    width: 100%;
    padding: 12px 80px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--Border-Color, #363738);
    background: var(--Background-Color, #181818);
  }
  .logo {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-btn {
    display: flex;
    width: 80px;
    padding: 5px 28px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 70px;
    border: 1px solid var(--Secondary-Text-Color, #D3D3D3);
    color: var(--Secondary-Text-Color, #D3D3D3);
    background: var(--Card-Background-Color, #232323);
    transition: all 0.3s ease;
  }
  .header-btn:hover {
    background: var(--Secondary-Text-Color, #D3D3D3);
    color: var(--Card-Background-Color, #232323);
  }
  main-trj {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    padding: 80px 20px;
  }
  section {
    display: flex;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0 auto;
    border-radius: 40px;
    border: 1px solid var(--Border-Color, #363738);
    background: var(--Card-Background-Color, #232323);
  }
  .profile-card {
    padding: 20px;
    position: relative;
  }
  .profile-picture {
    border-radius: 20px;
  }
  .profile-info {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    padding: 40px;
    left: 0;
    bottom: 0;
  }
  .profile-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .profile-name h1 {
    color: #FFF;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 50.4px */
  }
  .profile-name p{
    color: #D3D3D3;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 18px */
  }
  .connect-btn {
    display: inline-flex;
    position: relative;
    padding: 16px 26px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background: #fff;
    color: #181818;
    cursor: pointer;
    overflow: hidden;
    z-index: 0;
    transition: all 0.3s ease;
  }
  
  .connect-btn span {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(308deg, #AC49FF 7.03%, #6D8FFF 60.78%, #25D3FF 115.66%);
    transition: width 0.4s ease-in-out, height 0.4s ease-in-out;
    transform: translate(-50%, -50%);
    z-index: -1;
  }
  
  .connect-btn:hover {
    color: #fff; /* светлый оттенок */
  }
  
  .connect-btn:hover span {
    width: 250%;
    height: 250%;
  }
  
  .connect-btn:active {
    background-color: #3498db;
    color: #fff;
  }
  .contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    align-self: stretch;
  }
  .email-link-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: stretch;
  }
  .email-link {
    color: var(--Secondary-Text-Color, #D3D3D3);
    leading-trim: both;
    text-edge: cap;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 28px */
  }
  .socials {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    align-self: stretch;
  }
  .socials a {
    display: flex;
    padding: 5px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
    border-radius: 70px;
    transition: all 0.3s ease;
    color: var(--Secondary-Text-Color, #D3D3D3);
    border: 1px solid var(--Secondary-Text-Color, #D3D3D3);
  }
  .socials a:hover {
    background-color: var(--Secondary-Text-Color, #D3D3D3);
    color: #232323;
  }
  .skills ul {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    gap: 6px;
    align-self: stretch;
    flex-wrap: wrap;
  }
  .skills ul li {
    display: flex;
    padding: 8px 14px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    border: 1px solid var(--Tag-Border-Color, #5B5B5B);
    background: var(--Tag-Background-Color, #2F2F2F);
    color: var(--Tag-Text-Color, #ABABAB);
    line-height: 1;
  }
  .smm-ui-elements {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    margin-top: 12px;
  }
  .comments, .likes {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .comments, .likes, .export, .link {
    color: #8C8C8C;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .comments:hover, .likes:hover, .export:hover, .link:hover {
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .likes .fill-heart {
    color: #C64747;
    display: none;
  }
  .likes.is-active .fill-heart {
    color: #C64747;
    display: block;
  }
  .likes .outline-heart {
    display: block;
  }
  .likes.is-active .outline-heart {
    display: none;
  }
  .smm-ui-elements p {
    color: var(--Additional-UI-Text-Color, #8C8C8C);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 22.4px */
  }
  .post-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    position: relative;
  }
  .post-header time {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--Additional-UI-Text-Color, #8C8C8C);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 14px */
  }
  .post-avatar-wrapper {
    position: relative;
  }
  .post-avatar {
    border-radius: 100px;
    width: 62px;
  }
  .post-header-info strong {
    color: var(--Secondary-Text-Color, #D3D3D3);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 22px */
  }
  .post-header-info span {
    color: var(--Secondary-Text-Color, #D3D3D3);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 14px */
  }
  .sd-logo {
    display: flex;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;  
    border-radius: 88px;
    border: 1.6px solid var(--Card-Background-Color, #232323);
    background: var(--Background-Color, #181818);
  }
  .lang-toggle {
    position: relative;
    width: 80px;
    height: 30px;
    font-family: sans-serif;
  }
  
  .lang-toggle input {
    display: none;
  }
  
  .lang-toggle label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid var(--Border-Color, #363738);
    background: var(--Card-Background-Color, #232323);
    border-radius: 20px;
    cursor: pointer;
    padding: 0px;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 400;
    color: #8C8C8C;
  }
  
  .lang-toggle .lang-option {
    z-index: 2;
    pointer-events: none;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .lang-toggle .slider {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 38px;
    height: 26px;
    background: #D3D3D3;
    border-radius: 16px;
    transition: transform 0.3s ease;
    z-index: 1;
  }
  /* подсветка текста */
  .lang-toggle input:not(:checked) + label .en {
    color: #181818;
  }
  .lang-toggle input:checked + label .ru {
    color: #181818;
  }
  
  .lang-toggle input:checked + label .slider {
    transform: translateX(38px);
  }
  .header-right-side {
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
  }
  @media (max-width: 600px) {
    header {
        padding: 12px 20px;
    }
    main-trj {
      padding: 20px 20px;
    }
    .profile-name h1 {
        color: #FFF;
        font-size: 32px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%; /* 50.4px */
    }
  }
  @media (max-width: 390px) {
    .profile-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
    }
    .connect-btn {
        width: 100%;
    }
    .profile-name h1 {
        font-size: 28px;
        font-style: normal;
    }
  }
  @media (max-width: 340px) {
    .post-header {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }
  }