@import url('link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1f242d;
    flex-direction: column;
    gap: 50px;
}

a {
    position: relative;
    display: inline-block;
    font-size: 1.5em;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    background: #262c37;
    padding: 10px 30px;
    transition: 0.5s;
}

a:hover {
    color: var(--clr);
    letter-spacing: 0.25em;
}

a span {
    position: absolute;
    display: block;
    background: var(--clr)
}

a span:nth-child(1) {
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.2s;
     transition-delay: 0.45s;
}

a:hover span:nth-child(1) {
    transition: transform 0.2s;
    transform: scaleX(1);
    
}

a span:nth-child(2) {
    right: 0;
    top: 0;
    width: 2px;
    height: 100%;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.2s;
     transition-delay: 0.3s;
}

a:hover span:nth-child(2) {
    transition: transform 0.2s;
    transform: scaleY(1);
    transition-delay: 0.1s;
}

a span:nth-child(3) {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.2s;
    transition-delay: 0.15s;
}

a:hover span:nth-child(3) {
    transition: transform 0.2s;
    transform: scaleX(1);
    transition-delay: 0.2s;
}

a span:nth-child(4) {
    left: 0;
    bottom: 0;
    width: 2px;
    height: 100%;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.2s;
}

a:hover span:nth-child(4) {
    transition: transform 0.2s;
    transform: scaleY(1);
    transition-delay: 0.3s;
}