@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500&display=swap');

:root {
    --bg: #222222;
    --section-bg: #2b2b2b;
}

* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    user-select: none;
}

body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-color: var(--bg);
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.section {
    position: relative;
    width: 300px;
    height: 345px;
    background-color: var(--section-bg);
    transition: .5s;
}

.section:hover {
    transform: scale(1.1);
}

[class^=line] {
    position: absolute;
    transition: .5s;
    z-index: -1;
}

.section:hover [class^=line] {
    background-color: var(--color);
}

.line1, .line2 {
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
}

.line3, .line4 {
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 245px;
}

.line1 {
    top: 0;
}

.line2 {
    bottom: 0;
}

.line3 {
    left: 0;
}

.line4 {
    right: 0;
}

.section:hover .line1 {
    transform: translate(-50%, -5px);
}

.section:hover .line2 {
    transform: translate(-50%, 5px);
}

.section:hover .line3 {
    transform: translate(-5px, -50%);
}

.section:hover .line4 {
    transform: translate(5px, -50%);
}


.content { 
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 32px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.content::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    transition: all .5s, transform .2s;
}

.section:hover .content::before {
    height: 100%;
    transform: scaleX(4) translateY(-32px);
    z-index: 0;
    background-color: var(--color);
}

.icon {
    position: relative;
    z-index: 1;
    width: 90px;
    height: 90px;
    color: var(--color);
    background-color: var(--section-bg);
    border: 3px solid var(--color);
    display: flex;
    font-size: 35px;
    justify-content: center;
    align-items: center;
    transition: .5s;
}

.section:hover .icon {
    background-color: var(--color);
    border: 3px solid var(--section-bg);
    color: var(--section-bg);
}

.title {
    position: relative;
    z-index: 1;
    color: white;
    font-weight: 400;
    margin: 15px 0 10px 0;
    transition: .5s;
}

.section:hover .title {
    color: var(--section-bg);
}

.description {
    position: relative;
    z-index: 1;
    color: #999999;
    font-weight: 300;
    line-height: 23px;
    margin: 0;
    transition: .5s;
}

.section:hover .description {
    color: #303030;
}

.button {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 21px;
    padding: 8px 16px;
    color: var(--bg);
    font-size: 15px;
    letter-spacing: 1px;
    font-weight: 300;
    background-color: var(--color);
    text-decoration: none;
    transition: .5s;
}

.section:hover .button {
    background-color: var(--bg);
    color: var(--color);
}

.button:active {
    transform: scale(0.95);
}