body {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    background: linear-gradient(91.7deg, rgb(252, 190, 224) 16.8%, rgb(212, 254, 218) 103.6%);
}
.wrapper {
    display: grid;
    grid-template-columns: minmax(auto, 1024px);
    justify-content: center;
}
@import url("https://fonts.googleapis.com/css2?family=Sofia&display=swap");
nav {
    display: none;
}
svg {
	font-family: "Sofia", sans-serif;
	width: 100%; 
}
svg text {
	animation: stroke 5s infinite alternate;
	stroke-width: 2;
	stroke: #000000;
	font-size: 125px;
}
@keyframes stroke {
	0%   {
		fill: rgba(0,0,0,0); stroke: rgba(0,0,0,1);
		stroke-dashoffset: 25%; stroke-dasharray: 0 50%; stroke-width: 2;
	}
	70%  {fill: rgba(0,0,0,0); stroke: rgba(0,0,0,1); }
	80%  {fill: rgba(0,0,0,0); stroke: rgba(0,0,0,1); stroke-width: 3; }
	100% {
		fill: rgba(0,0,0,1); stroke: rgba(0,0,0,0);
		stroke-dashoffset: -25%; stroke-dasharray: 50% 0; stroke-width: 0;
	}
}
.sofia-regular {
    font-family: "Sofia", cursive;
    font-weight: 400;
    font-style: normal;
  }
header h1:nth-of-type(2) {
    text-align: right;
}  
header {
    background: url(images/myself.webp) no-repeat 20px 180px / 250px 250px; 
    padding-bottom: 90px;
}
.name {
    display: none;
}
.type--A{
    --line_color : #555555 ;
    --back_color : #FFECF6  ;
  }
  .type--B{
    --line_color : #1b1919 ;
    --back_color : #E9ECFF
  }
  .type--C{
    --line_color : #00135C ;
    --back_color : #DEFFFA 
  }
  .button{
      position : relative ;
      z-index : 0 ;
      width : 240px ;
      height : 56px ;
      text-decoration : none ;
      font-size : 14px ; 
      font-weight : bold ;
      color : var(--line_color) ;
      letter-spacing : 2px ;
      transition : all .3s ease ;
      
  }
  .button__text{
      display : flex ;
      justify-content : center ;
      align-items : center ;
      width : 100% ;
      height : 100% ;
      font-size: 1.4em;
  }
  .button::before,
  .button::after,
  .button__text::before,
  .button__text::after{
      content : '' ;
      position : absolute ;
      height : 3px ;
      border-radius : 2px ;
      background : var(--line_color) ;
      transition : all .5s ease ;
  }
  .button::before{
      top : 0 ;
      left : 54px ;
      width : calc( 100% - 56px * 2 - 16px ) ;
  }
  .button::after{
      top : 0 ;
      right : 54px ;
      width : 8px ;
  }
  .button__text::before{
      bottom : 0 ;
      right : 54px ;
      width : calc( 100% - 56px * 2 - 16px ) ;
  }
  .button__text::after{
      bottom : 0 ;
      left : 54px ;
      width : 8px ;
  }
  .button__line{
      position : absolute ;
      top : 0 ;
      width : 56px ;
      height : 100% ;
      overflow : hidden ;
      
  }
  .button__line::before{
      content : '' ;
      position : absolute ;
      top : 0 ;
      width : 150% ;
      height : 100% ;
      box-sizing : border-box ;
      border-radius : 300px ;
      border : solid 3px var(--line_color) ;
  }
  .button__line:nth-child(1),
  .button__line:nth-child(1)::before{
      left : 0 ;
  }
  .button__line:nth-child(2),
  .button__line:nth-child(2)::before{
      right : 0 ;
  }
  .button:hover{
      letter-spacing : 6px ;
  }
  .button:hover::before,
  .button:hover .button__text::before{
      width : 8px ;
  }
  .button:hover::after,
  .button:hover .button__text::after{
      width : calc( 100% - 56px * 2 - 16px ) ;
  }
  .button__drow1,
  .button__drow2{
      position : absolute ;
      z-index : -1 ;
      border-radius : 16px ;
      transform-origin : 16px 16px ;
  }
  .button__drow1{
      top : -16px ;
      left : 40px ;
      width : 32px ;
      height : 0;
      transform : rotate( 30deg ) ;
  }
  .button__drow2{
      top : 44px ;
      left : 77px ;
      width : 32px ;
      height : 0 ;
      transform : rotate(-127deg ) ;
  }
  .button__drow1::before,
  .button__drow1::after,
  .button__drow2::before,
  .button__drow2::after{
      content : '' ;
      position : absolute ;
  }
  .button__drow1::before{
      bottom : 0 ;
      left : 0 ;
      width : 0 ;
      height : 32px ;
      border-radius : 16px ;
      transform-origin : 16px 16px ;
      transform : rotate( -60deg ) ;
  }
  .button__drow1::after{
      top : -10px ;
      left : 45px ;
      width : 0 ;
      height : 32px ;
      border-radius : 16px ;
      transform-origin : 16px 16px ;
      transform : rotate( 69deg ) ;
  }
  .button__drow2::before{
      bottom : 0 ;
      left : 0 ;
      width : 0 ;
      height : 32px ;
      border-radius : 16px ;
      transform-origin : 16px 16px ;
      transform : rotate( -146deg ) ;
  }
  .button__drow2::after{
      bottom : 26px ;
      left : -40px ;
      width : 0 ;
      height : 32px ;
      border-radius : 16px ;
      transform-origin : 16px 16px ;
      transform : rotate( -262deg ) ;
  }
  .button__drow1,
  .button__drow1::before,
  .button__drow1::after,
  .button__drow2,
  .button__drow2::before,
  .button__drow2::after{
      background : var( --back_color ) ;
  }
  .button:hover .button__drow1{
      animation : drow1 ease-in .06s ;
      animation-fill-mode : forwards ;
  }
  .button:hover .button__drow1::before{
      animation : drow2 linear .08s .06s ;
      animation-fill-mode : forwards ;
  }
  .button:hover .button__drow1::after{
      animation : drow3 linear .03s .14s ;
      animation-fill-mode : forwards ;
  }
  .button:hover .button__drow2{
      animation : drow4 linear .06s .2s ;
      animation-fill-mode : forwards ;
  }
  .button:hover .button__drow2::before{
      animation : drow3 linear .03s .26s ;
      animation-fill-mode : forwards ;
  }
  .button:hover .button__drow2::after{
      animation : drow5 linear .06s .32s ;
      animation-fill-mode : forwards ;
  }
  @keyframes drow1{
      0%   { height : 0 ; }
      100% { height : 100px ; }
  }
  @keyframes drow2{
      0%   { width : 0 ; opacity : 0 ;}
      10%  { opacity : 0 ;}
      11%  { opacity : 1 ;}
      100% { width : 120px ; }
  }
  @keyframes drow3{
      0%   { width : 0 ; }
      100% { width : 80px ; }
  }
  @keyframes drow4{
      0%   { height : 0 ; }
      100% { height : 120px ; }
  }
  @keyframes drow5{
      0%   { width : 0 ; }
      100% { width : 124px ; }
  }
  .container{
      width : 100% ;
      display : flex ;
      flex-direction : row ;
      gap: 30px;
      justify-content : center ;
      padding-top: 100px;
      
  }
  .button:not(:last-child){
    margin-bottom : 64px ;
  }
 
  @media screen and (max-width: 768px) {
    *, *::before, *::after {
        box-sizing: border-box;
      }
    svg {
        display: none;
    }
    .container {
        display: none;
    }
    .name {
        display: flex;
        font-size: 4.5em;
        justify-content: center;
        
    }
    header {
        height: 350px;
        padding-bottom: 150px;
        background: none; 
    }
    nav {
        display: contents;
    }
    .hamburger {
        position: relative;
        width: 70px;
        height: 70px;
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        padding: 20px;
   }
    .hamburger:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 20px;
        background: #f953c6;
       /* fallback for old browsers */
        background: -webkit-linear-gradient(to right, #da2287, #f953c6);
       /* Chrome 10-25, Safari 5.1-6 */
        background: linear-gradient(to right, #da2287, #f953c6);
       /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
        transform: rotate(0deg);
        transition: all 0.4s cubic-bezier(0.54, -0.1, 0.57, 0.57);
   }
    .hamburger .hamburger-input {
        position: absolute;
        opacity: 0;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        cursor: pointer;
   }
    .hamburger .hamburger-line {
        width: 100%;
        background: #fff;
        height: 2px;
        display: block;
        border-radius: 6px;
        transition: transform 0.4s cubic-bezier(0.54, -0.81, 0.57, 0.57);
        position: relative;
   }
    .hamburger .hamburger-line.first, .hamburger .hamburger-line.third {
        width: 50%;
   }
    .hamburger .hamburger-line.third {
        margin-left: 50%;
        transform-origin: left;
   }
    .menu-button-wrapper {
        position: relative;
        display: inline-block;
   }
    .menu-button-wrapper .item-list {
        position: absolute;
        top: 90px;
        transform: translateX(-50%) scale(0);
        transform-origin: center;
        transition: all 0.4s cubic-bezier(0.54, -0.1, 0.57, 0.57);
        background-color: rgba(0, 0, 0, 0.8);
        color: #fff;
        width: 200px;
        left: 50%;
        padding: 15px 0;
        border-radius: 100px;
        font-size: 1.5em;
        opacity: 0;
        user-select: none;
        display: flex;
        flex-direction: column;
        align-items: center;
   }
   
    .menu-button-wrapper .item-list div {
        padding: 10px 30px;
        cursor: pointer;
        color: white;
     text-decoration: none;
   }
    .menu-button-wrapper .menu-button {
        position: absolute;
        width: 70px;
        height: 70px;
        left: 0;
        z-index: 2;
        opacity: 0;
        cursor: pointer;
   }
    .menu-button:checked ~ .item-list {
        transform: translateX(-50%) scale(1);
        border-radius: 20px;
        opacity: 1;
        user-select: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 50px;
        width: 400px;
   }
    .menu-button:checked ~ .icon-wrapper .hamburger-line.second {
        transform: rotate(-45deg);
   }
    .menu-button:checked ~ .icon-wrapper .hamburger-line.first {
        transform: translate(2px, 8px) rotate(-135deg);
   }
    .menu-button:checked ~ .icon-wrapper .hamburger-line.third {
        transform: translate(11px, -3px) rotate(-135deg);
   }
    .menu-button:checked ~ .icon-wrapper .hamburger:before {
        transform: rotate(45deg);
   }
  }
  @media screen and (min-width: 1920px) {
    body {
        width: 100%;
        height: 100%;
    }
    .wrapper {
        min-width: 1000px;
        min-height: 1000px;
        
    }
  }