@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    color: white;
    overflow: hidden;
    user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.homepage {
    background-color: #26262e;
    width: 100%;
    position: relative;
    cursor: url('/images/png/cursor.png'), auto;
}

.slide {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center; 
    height: 100vh;
    margin-left: 15vw;
}

#s1 h1 {    
    font-size: 6vw;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

#heading p {
    font-size: 6vw;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

#s1 .bio {
    opacity: 0.7;
    font-size: 48px;
    max-width: 50vw;
    font-weight: 500;
}

.face {
    position: absolute;
    width: 500px;
    height: auto;
    right: 290px;
    top: 250px;
    transform: rotate(5deg);
    outline: none;
    border: none;
    box-shadow: none;
    z-index: 999;
}

.blob-wrapper {
    position: absolute;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
}

.blob-container {
    position: absolute;
    width: 900px;
    height: 900px;
}

.moving-blob {
    width: 100%;
    height: 100%;
    transform-origin: center;
    opacity: 0.2;
}

.contact-card {
    display: flex;
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 30px;
    gap: 60px;
    align-items: center;
    position: relative;
    cursor: url('/images/png/pointer.png'), auto;

}

.contact-card .link {
    color: rgb(39, 39, 39);
    background: white;
    padding: 20px 40px;
    border-radius: 50px;
    display: inline-block;
    text-align: center;
    position: relative;
}

.contact-card .title {
    font-weight: 500;
    font-size: 30px;
    opacity: 0.5;
}

#telegram::before {
    content: "";
    position: absolute;
    top: 0; left: -90px; right: 0; bottom: 0;
    z-index: -1;
    width: 900px;
    height: 115px;
    background: #208ec5;
    filter: blur(100px);
    opacity: 0;
    transition: opacity 1.5s ease;
    border-radius: inherit;
}
  
#telegram:hover::before {
    opacity: 0.5;
}

#email::before {
    content: "";
    position: absolute;
    top: 0; left: -90px; right: 0; bottom: 0;
    z-index: -1;
    width: 1100px;
    height: 115px;
    background: #118f41;
    filter: blur(100px);
    opacity: 0;
    transition: opacity 1.5s ease;
    border-radius: inherit;
}

#email:hover::before {
    opacity: 0.5;
}

#linkedin::before {
    content: "";
    position: absolute;
    top: 0; left: -90px; right: 0; bottom: 0;
    z-index: -1;
    width: 1300px;
    height: 115px;
    background: #0a66c2;
    filter: blur(100px);
    opacity: 0;
    transition: opacity 1.5s ease;
    border-radius: inherit;
}

#linkedin:hover::before {
    opacity: 0.5;
}

.cv {
    background-color: #fafafa;
    position: relative;
}

.cv__wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 100px 20px 100px;
}

.cv__card {
    width: 100%;
    background: #fdfdfd;
    border-radius: 40px;
}

.link__text {
    display: inline-block;
    transition: opacity 0.2s ease;
    opacity: 1;
    min-width: 570px;
}

#telegram {
    position: relative;
}
  
.popup {
    position: absolute;
    top: 28px;
    left: 22%;
    transform: translate(-50%, 0) scale(0.8);
    opacity: 0;
    pointer-events: none;
    background: white;
    padding: 20px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 50px;
    transition: all 0.4s ease;
    z-index: 10;
  }
  
.popup.show {
    transform: translate(-50%, -150%) scale(1);
    opacity: 1;
    pointer-events: auto;
}
  
.popup-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    color: #272727;
}
  
.popup-option img {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
}

.copied-float {
  position: absolute;
  top: 20px;
  left: 40%;
  transform: translateX(-50%) translateY(0);
  font-size: 32px;
  color: rgba(255, 255, 255, 0.568);
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
}

.copied-float.show {
  animation: fly-up 1.2s ease-out forwards;
}

@keyframes fly-up {
  0% {
    transform: translateX(-50%) translateY(-40px); /* выше на 40px */
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-160px); /* летит выше */
    opacity: 0;
  }
}
  
  .qr-preview {
    position: fixed;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 9999;
    display: none;
  }
  
  .qr-preview img {
    width: 100%;
    height: 100%;
  }
  
  .qr-wrapper:hover {
    cursor: none;
  }

#copyBtn {
    position: relative;
}

@media (max-width: 1920px) {
    #s1 h1 {    
        font-size: 115px;
        margin: 0;
    }
    #s1 .bio {
        font-size: 36px;
    }
    .face {
        right: 200px;
        width: 450px;
        top: 210px
    }
}


@media (max-width: 1800px) {
    #s1 h1 {    
        font-size: 100px;
        margin: 0;
    }
    #s1 .bio {
        font-size: 32px;
    }
    .face {
        right: 190px;
        width: 430px;
        top: 220px
    }
}


@media (max-width: 1600px) {
    #s1 h1 {    
        font-size: 95px;
        margin: 0;
    }
    #s1 .bio {
        font-size: 30px;
    }
    .face {
        right: 160px;
        width: 400px;
        top: 240px
    }
}

@media (max-width: 1487px) {
    #s1 h1 {    
        font-size: 82px;
        margin: 0;
    }
    #s1 .bio {
        font-size: 26px;
        max-width: 650px;
    }
    .face {
        right: 130px;
        width: 340px;
        top: 280px
    }
    .contact-card {
        font-size: 50px;
        gap: 40px;
    }
    .link__text {
        min-width: 450px;
    }
    .popup-option img {
        width: 60px;
        height: 60px;
    }
    .copied-float {
        font-size: 30px;
    }
    #linkedin::before {
        width: 1090px;
    }
    #email::before {
        width: 890px;
    }
}

@media (max-width: 1281px) {
    .face {
        right: 7%;
    }
}

@media (max-width: 1250px) {
    .slide {
        margin-left: 100px;
    }
    #s1 {
        display: block;
        margin-top: 20%;
    }
    .face {
        right: 32%;
        top: 36%;
    }
    .contact-card {
        font-size: 32px;
        gap: 20px   
    }
    .link__text {
        min-width: unset;
    }
    .contact-card .title {
        font-size: 22px;
    }
    .popup-option img {
        height: 40px;
        width: 40px;
    }
    .popup {
        gap: 25px;
    }
    #qrWrapper {
        display: none;
    }
    #telegram::before {
        width: 600px;
        height: 90px;
    }
    #email::before {
        width: 700px;
        height: 90px;
    }
    #linkedin::before {
        width: 830px;
        height: 90px;
    } 
}

@media (max-width: 767px) {
    .slide {
        margin-left: 30px;
    }
    #s1 h1 {
        font-size: 45px;
        margin-top: 25vh;
    }
    #s1 .bio {
        font-size: 20px;
        max-width: 340px;
    }
    .face {
        width: 250px;
        right: 21vw;
        top: 28vh;
    }
    .contact-card {
        font-size: 22px;
    }
    .link__text {
        min-width: unset;
    }
    .contact-card .title {
        font-size: 18px;
        padding-left: 20px;
    }
    .contact-card {
        margin-top: 30px;
        flex-direction: column;
        align-items: baseline;
        gap: 10px;
    }
    #telegram::before {
        width: 500px;
        height: 90px;
    }
    #email::before {
        width: 500px;
        height: 90px;
    }
    #linkedin::before {
        width: 500px;
        height: 90px;
    } 
}

@media (max-width: 450px) {
    .face {
        right: 20%;
    }
    #s1 h1 {
        font-size: 42px;
        margin-top: 20vh;
    }
    #s1 .bio {
        max-width: 320px;
        font-size: 18px;
    }
}