/* <!-- Ghost number outline helper --> */
.ghost-num {
    -webkit-text-stroke: 1px #e6eef5;
    color: transparent;
}

/* hero section slider effact */
.about-fill-pattern {
    background-image: repeating-linear-gradient(45deg,
            rgba(99, 32, 39, 0.4) 0,
            rgba(99, 32, 39, 0.4) 2px,
            transparent 2px,
            transparent 6px);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.3;
}

/* 
 PROCESS LEFT ↔ RIGHT SLIDER 

.process-slider-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.process-track {
    position: absolute;
    top: 8%;
    left: 0;
    white-space: nowrap;
    animation: processPingPong 18s linear infinite alternate;
}

.process-track span {
    font-size: 140px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.04);
}

@keyframes processPingPong {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100vw);
    }
}

@media (max-width: 768px) {
    .process-track span {
        font-size: 90px;
    }
} */

/* ============================= */
/* PROCESS BUTTON ALTERNATE LAYOUT */
/* ============================= */

/* common number style */
.process-num {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 140px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(99, 32, 39, 0.35);
    top: -90px;
    /* number ALWAYS above button */
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* button UP */
.step-up {
    margin-top: 0;
}

/* button DOWN */
.step-down {
    margin-top: 80px;
    /* niche push */
}

/* mobile adjust */
@media (max-width: 768px) {
    .process-num {
        font-size: 90px;
        top: -60px;
    }

    .step-down {
        margin-top: 40px;
    }
}

/* ============================= */
/* PROCESS BUTTON FLOAT ANIMATION */
/* ============================= */

@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

/* common animation for all buttons */
.step-up .rounded-full,
.step-down .rounded-full {
    animation: floatUpDown 4s ease-in-out infinite;
}

/* little variation for natural feel */
.step-down .rounded-full {
    animation-delay: 1.5s;
}

.step-up:nth-child(3) .rounded-full {
    animation-delay: 0.8s;
}

.step-down:nth-child(4) .rounded-full {
    animation-delay: 2.2s;
}

/* floating dots animation   
.bg-dots span {
    position: absolute;
    border-radius: 9999px;
    opacity: 0.9;
    animation: floatDot linear infinite;
    will-change: transform;
}

@keyframes floatDot {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(40px, -80px);
    }

    100% {
        transform: translate(0, 0);
    }
} */

/* HERO TEXT SLIDER */

@keyframes slideFull {
    0% {
        transform: translateX(-100vw);
    }

    100% {
        transform: translateX(100vw);
    }
}

.animate-backAndForth {
    animation: slideFull 18s linear infinite alternate;
}

@keyframes backAndForth {
    0% {
        transform: translateX(-15%);
    }

    100% {
        transform: translateX(15%);
    }
}


body {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================= */
/* FLIP CARD */
/* ============================= */

.flip-card {
    perspective: 1000px;
    height: 380px;
    transition: transform .3s ease;
    position: relative;
}

.flip-card:hover {
    transform: translateY(-12px);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {

    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    overflow: hidden;
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 20px;

    padding: 40px 30px;
    border-radius: 20px;

    box-sizing: border-box;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* FRONT */

.flip-card-front {
    position: relative;
    overflow: hidden;
    background: #fff;
    color: #632027;
    border: 1px solid rgba(99, 32, 39, .15);
    box-shadow: 0 10px 30px rgba(99, 32, 39, .08);
    transition: .3s ease;
}

.flip-card-front::after {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(99, 32, 39, 0.05);
    z-index: 0;
}

.flip-card-front i {
    /* height: 60px; */
    position: relative;
    z-index: 2;
}

.flip-card-front h3 {
    /* height: 70px; */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #632027;
    position: relative;
    z-index: 2;
}

.flip-card-front p {
    /* height: 50px; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.flip-card:hover .flip-card-front {
    box-shadow: 0 25px 60px rgba(99, 32, 39, .18);
}

/* BACK */

.flip-card-back {
    background: linear-gradient(135deg,
            #632027 0%,
            #7d2932 50%,
            #4e171d 100%);

    color: white;
    transform: rotateY(180deg);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    overflow: hidden;
    padding: 30px;
}

.flip-card-back::before {
    content: "";
    position: absolute;

    top: -60px;
    right: -60px;

    width: 160px;
    height: 160px;

    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

.service-no {
    position: absolute;
    top: 14px;
    right: 14px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, .18);
    font-size: 48px;
    z-index: 2;
}

.service-note {
    color: rgba(255, 255, 255, .85);
    max-width: 250px;
    height: 70px;
    overflow: hidden;
    line-height: 1.5;
}

.flip-card-back {
    z-index: 2;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    padding: 12px 28px;

    background: #ffffff;
    color: #632027;

    border: 2px solid #ffffff;
    border-radius: 9999px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    text-decoration: none;

    transition: all .3s ease;

    position: relative;
    z-index: 999;
}

.btn-primary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .25);
    transform: translateY(-2px);
}


.service-no,
.flip-card-back::before {
    pointer-events: none;
}

/* .flip-card,
.flip-card-inner {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
}

.flip-card {
    height: 350px;
}

.flip-card,
.flip-card-inner,
.flip-card-front,
.flip-card-back {
    min-height: 350px;
    max-height: 350px;
} */

/* for top line */
.flip-card-front::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    transition: all .3s ease;
}

.flip-card-front:hover::before {
    height: 6px;

    background: linear-gradient(
        90deg,
        #632027,
        #b84a57
    );
}

/* .mobile-flip-icon{
    display:none;
}

@media (max-width:768px){

    .mobile-flip-icon{
        display:block;

        position:absolute;
        bottom:15px;
        right:15px;

        color:#632027;
        opacity:.5;
        font-size:16px;

        z-index:20;
    }
} */