body {
    position: relative;
}

body::before {
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    content: ' ';
    will-change: transform;
    z-index: 0;
    opacity: 0.3;
}

.block {
    background: rgba(34,33,39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.block::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7f5eff, #00b8ff);
    transition: left 0.5s ease;
}

.block:hover::before {
    left: 0;
}

.block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.block .block_head {
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 18px;
    color: rgb(230, 230, 230);
    position: relative;
    padding-left: 12px;
}

.block .block_head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #7f5eff, #00b8ff);
}
