.gradient-border {
    --borderWidth: 3px;
    background: #fff;
    position: relative;
    border-radius: var(--borderWidth);
    border-color: transparent;
}
.gradient-border:after {
    content: '';
    position: absolute;
    top: calc(-1 * var(--borderWidth));
    left: calc(-1 * var(--borderWidth));
    height: calc(100% + var(--borderWidth) * 2);
    width: calc(100% + var(--borderWidth) * 2);
    background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
    border-radius: calc(2 * var(--borderWidth));
    z-index: -1;
    animation: animatedgradient 3s ease alternate infinite;
    background-size: 300% 300%;
}
@keyframes animatedgradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-charcter
{
    text-transform: uppercase;
    background-image: linear-gradient(
    -225deg,
    #00BDFD 0%,
    #44107a 29%,
    #ff1361 67%,
    #fff800 100%
    );
    background-size: auto auto;
    background-clip: border-box;
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 2s linear infinite;
    display: inline-block;
        font-size: 190px;
}

@keyframes textclip {
    to {
    background-position: 200% center;
    }
}

.buttons-common {
    display: inline-block;
    overflow: hidden;
    position: relative;
}

.buttons-common::before {
    content: "";
    pointer-events: none;
    opacity: 0.6;
    background: radial-gradient(circle at 20% 35%, transparent 0, transparent 2px, var(--color-main) 3px, var(--color-main) 4px, transparent 4px), radial-gradient(circle at 75% 44%, transparent 0, transparent 2px, var(--color-main) 3px, var(--color-main) 4px, transparent 4px), radial-gradient(circle at 46% 52%, transparent 0, transparent 4px, var(--color-main) 5px, var(--color-main) 6px, transparent 6px);
    width: 100%;
    height: 300%;
    top: 0;
    left: 0;
    position: absolute;
    animation: bubbles 3s linear infinite both;
    z-index: 2;
}

.buttons-common:hover::before {
    background: radial-gradient(circle at 20% 35%, transparent 0, transparent 2px, #fff 3px, #fff 4px, transparent 4px), radial-gradient(circle at 75% 44%, transparent 0, transparent 2px, #fff 3px, #fff 4px, transparent 4px), radial-gradient(circle at 46% 52%, transparent 0, transparent 4px, #fff 5px, #fff 6px, transparent 6px);

}

@keyframes bubbles {
    from {
        transform: translate();
    }

    to {
        transform: translate(0, -66.666%);
    }
}

.blob-txt {
    position: relative;
    z-index: 2;
    color: #333;
    font-weight: 600;
    letter-spacing: 3px;
}

.blob-btn {
    z-index: 1;
    position: relative;
    transition: color 0.5s;
    box-shadow: none !important;
    overflow: hidden;
    border: 1px solid var(--color-main);
    border-radius: 50px;
}

.blob-btn:before {
    content: "";
    z-index: 1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 0px solid var(--color-main);
    border-radius: 0px;
}

.blob-btn:after {
    content: "";
    z-index: -2;
    position: absolute;
    left: 3px;
    top: 3px;
    width: 100%;
    height: 100%;
    transition: all 0.3s 0.2s;
    border-radius: 0px;
}

.blob-btn:hover .blob-txt {
    transition: all .3s ease-in-out;
    color: #fff;
    text-decoration: none;
}

/* .blob-btn:hover:after {
    transition: all 0.3s;
    left: 0;
    top: 0;
    border-radius: 0px;
} */

.blob-btn__inner {
    z-index: 0;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0px;
}

.blob-btn__blobs {
    position: relative;
    display: block;
    height: 100%;
    filter: url("#goo");
}

.blob-btn__blob {
    position: absolute;
    top: 2px;
    width: 25%;
    height: 100%;
    background: var(--color-main);
    border-radius: 100%;
    transform: translate3d(0, 150%, 0) scale(1.7);
    transition: transform 0.45s;
}

@supports (filter: url("#goo")) {
    .blob-btn__blob {
        transform:translate3d(0, 150%, 0) scale(1.7);
    }
}

.blob-btn__blob:nth-child(1) {
    left: 0%;
    transition-delay: 0s;
}

.blob-btn__blob:nth-child(2) {
    left: 30%;
    transition-delay: 0.08s;
}

.blob-btn__blob:nth-child(3) {
    left: 60%;
    transition-delay: 0.16s;
}

.blob-btn__blob:nth-child(4) {
    left: 90%;
    transition-delay: 0.24s;
}

.blob-btn:hover .blob-btn__blob {
    transform: translateZ(0) scale(1.7);
}

@supports (filter: url("#goo")) {
    /* .blob-btn:hover .blob-btn__blob {
        transform:translateZ(0) scale(1.7);
    } */
}


.run-bar{
    background: #E9E9E9;
    height: 2px;
    width: 100%;
    position: relative;
    border-radius: 30px;
    margin: 0 0 23px 0;
    transition: 0.5s;
}
.run-bar::before{
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 2px;
    width: 30px;
    background: var(--color-main);
    color: var(--color-main);
    border-radius: 10%;
    -webkit-animation: run-bar-vertical 6s linear infinite alternate;
    -moz-animation: run-bar-vertical 6s linear infinite alternate;
    -o-animation: run-bar-vertical 6s linear infinite alternate;
    animation: run-bar-vertical 6s linear infinite alternate;
    opacity: 1;
    z-index: 1;
    transition: 0.5s;
}

@keyframes run-bar-vertical {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    50% {
        -webkit-transform: translateX(170px);
        transform: translateX(170px);
    }
    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

.logo-animate {
    display: grid;
    place-content: center;
    padding: 3rem;
    --border-angle: 0turn;
    --main-bg: conic-gradient(
        from var(--border-angle),
        #fff,
        #fff 5%,
        #fff 60%,
        #fff 95%
    );
    
    border: solid 5px transparent;
    border-radius: 100%;
    --gradient-border: conic-gradient(from var(--border-angle), transparent 25%, #08f, #f03 99%, transparent);
    
    background:
      var(--main-bg) padding-box,
      var(--gradient-border) border-box,
      var(--main-bg) border-box;
    
    background-position: center center;
  
    animation: bg-spin 3s linear infinite;
    
}
@keyframes bg-spin {
    to {
      --border-angle: 1turn;
    }
}
  
@property --border-angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0turn;
}

.project-animate .image{
    position:relative;
}
.project-animate .image::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition:all .3s;
}
.project-animate .desc{
    position: absolute;
    opacity: 0;
    top: 30px;
    left: 30px;
    width: calc(100% - 60px);
    height: calc(100% - 60px);
    padding: 10px 20px;
    color: #fff;
    text-align: center;
    transition:all 1s;
    z-index: 2;
}
.project-animate .desc::after,
.project-animate .desc::before{
    content:" ";
    width:2px;
    height:2px;
    position:absolute;
    border :0px solid #fff;
    transition:all 1s;
}
.project-animate .desc::after{
    top:5px;
    left:5px;
    border-top:2px solid rgba(255, 255, 255, .5);
    border-left:2px solid rgba(255, 255, 255, .5);
}
.project-animate .desc::before{
    bottom:5px;
    right:5px;
    border-bottom:2px solid rgba(255, 255, 255, .5);
    border-right:2px solid rgba(255, 255, 255, .5);
}
.project-animate:hover .desc{
    opacity: 1;
}
.project-animate:hover .desc::after,
.project-animate:hover .desc::before{
    width:100%;
    height:100%;
}

.project-animate:hover .image::before{
    background-color: rgba(0, 0, 0, .5);
}

.image-rotate {
    overflow: hidden;
    perspective: 1000px; /* Tạo hiệu ứng 3D cho trục Y */
}

.image-rotate img {
    transition: transform 0.5s ease;
    transform-style: preserve-3d; /* Để duy trì hiệu ứng 3D khi xoay */
}

/* Keyframes for continuous Y-axis rotation */
@keyframes continuousRotateY {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

/* Apply continuous Y-axis rotation on hover */
.tieuchi-item:hover img,
.image-rotate:hover img {
    animation: continuousRotateY 2s linear infinite;
}
@keyframes lineRun {
    0% {
        clip-path: inset(0% 100% 0% 0%);
    }
    25% {
        clip-path: inset(0% 0% 100% 0%);
    }
    50% {
        clip-path: inset(0% 0% 0% 100%);
    }
    75% {
        clip-path: inset(100% 0% 0% 0%);
    }

    100% {
        clip-path: inset(0% 100% 0% 0%);
    }
}


.border-animation {
    position: relative;
}
.border-animation .i_trai {
    position: absolute;
    height: 0px;
    width: 1px;
    left: 0px;
    top: 0px;
    z-index: 2;
    background: -webkit-linear-gradient(bottom, red, orange, yellow, green, blue, indigo, violet);
    background: -o-linear-gradient(bottom, red, orange, yellow, green, blue, indigo, violet);
    background: -moz-linear-gradient(bottom, red, orange, yellow, green, blue, indigo, violet);
    background: linear-gradient(to top, red, orange, yellow, green, blue, indigo, violet);
    transition: all 0.5s ease
}
.border-animation .i_phai {
    position: absolute;
    height: 0px;
    width: 1px;
    right: 0px;
    bottom: 0px;
    z-index: 2;
    background: -webkit-linear-gradient(top, red, orange, yellow, green, blue, indigo, violet);
    background: -o-linear-gradient(top, red, orange, yellow, green, blue, indigo, violet);
    background: -moz-linear-gradient(top, red, orange, yellow, green, blue, indigo, violet);
    background: linear-gradient(to bottom, red, orange, yellow, green, blue, indigo, violet);
    transition: all 0.5s ease
}
.border-animation .i_tren {
    position: absolute;
    height: 1px;
    width: 0px;
    right: 0px;
    top: 0px;
    z-index: 2;
    background: -webkit-linear-gradient(left, red, orange, yellow, green, blue, indigo, violet);
    background: -o-linear-gradient(left, red, orange, yellow, green, blue, indigo, violet);
    background: -moz-linear-gradient(left, red, orange, yellow, green, blue, indigo, violet);
    background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
    transition: all 0.5s ease
}
.border-animation .i_duoi {
    position: absolute;
    height: 1px;
    width: 0px;
    left: 0px;
    bottom: 0px;
    z-index: 2;
    background: -webkit-linear-gradient(right, red, orange, yellow, green, blue, indigo, violet);
    background: -o-linear-gradient(right, red, orange, yellow, green, blue, indigo, violet);
    background: -moz-linear-gradient(right, red, orange, yellow, green, blue, indigo, violet);
    background: linear-gradient(to left, red, orange, yellow, green, blue, indigo, violet);
    transition: all 0.5s ease
}
.border-animation:hover .i_trai {
    height: 100%;
    bottom: 0px;
    top: inherit
}
.border-animation:hover .i_tren {
    width: 100%;
    left: 0px
}
.border-animation:hover .i_phai {
    height: 100%;
    top: 0px;
    bottom: inherit
}
.border-animation:hover .i_duoi {
    width: 100%;
    right: 0px;
    left: inherit
}