:where([class^="ri-"])::before {
    content: "\f3c2";
}

* {
    font-family: 'Cairo', sans-serif;
}

.typing-animation {
    overflow: hidden;
    border-right: 2px solid #6750a4;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #6750a4
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.mt-5px {
    margin-top: 5px;
}

.fs-12 {
    font-size: 12px;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(103, 80, 164, 0.1), 0 10px 10px -5px rgba(103, 80, 164, 0.04);
}

.gradient-bg {
    background: linear-gradient(120deg, #6750a4, #9c8bc0);
}

.language-switcher {
    position: relative;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
}

.language-switcher:hover .language-dropdown {
    display: block;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-checkbox {
    position: relative;
    padding-right: 28px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    right: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
}

.custom-checkbox:hover input~.checkmark {
    border-color: #6750a4;
}

.custom-checkbox input:checked~.checkmark {
    background-color: #6750a4;
    border-color: #6750a4;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #6750a4;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.wave-bg {
    position: relative;
    overflow: hidden;
}

.wave-bg::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%236750a4"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%236750a4"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%236750a4"/></svg>');
    background-size: cover;
}

.article-card {
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(103, 80, 164, 0.1), 0 4px 6px -2px rgba(103, 80, 164, 0.05);
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card img {
    transition: transform 0.3s ease;
}

.price-card {
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card.featured {
    position: relative;
    overflow: hidden;
}

.price-card.featured::before {
    content: "الأكثر شعبية";
    position: absolute;
    top: 20px;
    right: -30px;
    background-color: #6750a4;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    z-index: 1;
}

.scroll-progress {
    position: fixed;
    top: 65px;
    left: 0;
    height: 3px;
    background: #6750a4;
    z-index: 35;
    transition: width 0.3s ease;
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background-color: rgba(103, 80, 164, 0.1);
    border-radius: 50%;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation: float 8s infinite ease-in-out;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    animation: float 10s infinite ease-in-out;
}

.shape-3 {
    width: 70px;
    height: 70px;
    top: 30%;
    left: 60%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-10px, 15px) rotate(5deg);
    }

    50% {
        transform: translate(10px, 30px) rotate(10deg);
    }

    75% {
        transform: translate(20px, 15px) rotate(5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.tab-switcher {
    display: flex;
    background-color: #f3f4f6;
    border-radius: 9999px;
    padding: 0.25rem;
}

.tab-button {
    flex: 1;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #6750a4;
    color: white;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: calc(.5rem * calc(1 - var(--tw-space-y-reverse))) !important;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-right: calc(1rem * calc(1 - var(--tw-space-x-reverse))) !important;
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse))) !important;
}