@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #000;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Card Hover Effects */
.hover-card-effect {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-card-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
}

/* Text Shadow */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .fa-arrow-right {
    transform: rotate(180deg);
}

/* Browser Window Style */
.browser-window {
    border-radius: 12px;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
    background: white;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.browser-header {
    background: #f3f4f6;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-green {
    background: #10b981;
}

/* FAQ Accordion Transition */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust as needed */
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Blob Animation */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Gradient Border for Pricing */
.gradient-border {
    position: relative;
    background: white;
    background-clip: padding-box;
    border: 2px solid transparent;
    border-radius: 1rem;
    @tailwind base;
    @tailwind components;
    @tailwind utilities;

    /* Custom Scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    ::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    /* Glass Effect */
    .glass-effect {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Preloader */
    #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #ffffff;
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    }

    .loader {
        width: 48px;
        height: 48px;
        border: 5px solid #000;
        border-bottom-color: transparent;
        border-radius: 50%;
        box-sizing: border-box;
        animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* Card Hover Effects */
    .hover-card-effect {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .hover-card-effect:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
    }

    /* Text Shadow */
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* RTL Support */
    [dir="rtl"] {
        font-family: 'Cairo', sans-serif;
    }

    [dir="rtl"] .fa-arrow-right {
        transform: rotate(180deg);
    }

    /* Browser Window Style */
    .browser-window {
        border-radius: 12px;
        box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
        background: white;
        border: 1px solid #e5e7eb;
        overflow: hidden;
    }

    .browser-header {
        background: #f3f4f6;
        padding: 12px 16px;
        display: flex;
        gap: 8px;
        border-bottom: 1px solid #e5e7eb;
    }

    .browser-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
    }

    .dot-red {
        background: #ef4444;
    }

    .dot-yellow {
        background: #f59e0b;
    }

    .dot-green {
        background: #10b981;
    }

    /* FAQ Accordion Transition */
    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .faq-item.active .faq-answer {
        max-height: 200px;
        /* Adjust as needed */
    }

    .faq-item.active .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* Blob Animation */
    @keyframes blob {
        0% {
            transform: translate(0px, 0px) scale(1);
        }

        33% {
            transform: translate(30px, -50px) scale(1.1);
        }

        66% {
            transform: translate(-20px, 20px) scale(0.9);
        }

        100% {
            transform: translate(0px, 0px) scale(1);
        }
    }

    .animate-blob {
        animation: blob 7s infinite;
    }

    .animation-delay-2000 {
        animation-delay: 2s;
    }

    .animation-delay-4000 {
        animation-delay: 4s;
    }

    /* Gradient Border for Pricing */
    .gradient-border {
        position: relative;
        background: white;
        background-clip: padding-box;
        border: 2px solid transparent;
        border-radius: 1rem;
    }

    .gradient-border::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: -1;
        margin: -2px;
        border-radius: inherit;
        background: linear-gradient(to right, #000000, #434343);
    }

    /* Pro Animations */
    @keyframes float {
        0% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-20px);
        }

        100% {
            transform: translateY(0px);
        }
    }

    .animate-float {
        animation: float 6s ease-in-out infinite;
    }

    @keyframes pulse-glow {
        0% {
            box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        }
    }

    .animate-pulse-glow {
        animation: pulse-glow 2s infinite;
    }

    .reveal-on-scroll {
        height: 100%;
        background: #ffffff;
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    }

    .loader {
        width: 48px;
        height: 48px;
        border: 5px solid #000;
        border-bottom-color: transparent;
        border-radius: 50%;
        box-sizing: border-box;
        animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* Card Hover Effects */
    .hover-card-effect {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .hover-card-effect:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
    }

    /* Text Shadow */
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* RTL Support */
    [dir="rtl"] {
        font-family: 'Cairo', sans-serif;
    }

    [dir="rtl"] .fa-arrow-right {
        transform: rotate(180deg);
    }

    /* Browser Window Style */
    .browser-window {
        border-radius: 12px;
        box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
        background: white;
        border: 1px solid #e5e7eb;
        overflow: hidden;
    }

    .browser-header {
        background: #f3f4f6;
        padding: 12px 16px;
        display: flex;
        gap: 8px;
        border-bottom: 1px solid #e5e7eb;
    }

    .browser-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
    }

    .dot-red {
        background: #ef4444;
    }

    .dot-yellow {
        background: #f59e0b;
    }

    .dot-green {
        background: #10b981;
    }

    /* FAQ Accordion Transition */
    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .faq-item.active .faq-answer {
        max-height: 200px;
        /* Adjust as needed */
    }

    .faq-item.active .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* Blob Animation */
    @keyframes blob {
        0% {
            transform: translate(0px, 0px) scale(1);
        }

        33% {
            transform: translate(30px, -50px) scale(1.1);
        }

        66% {
            transform: translate(-20px, 20px) scale(0.9);
        }

        100% {
            transform: translate(0px, 0px) scale(1);
        }
    }

    .animate-blob {
        animation: blob 7s infinite;
    }

    .animation-delay-2000 {
        animation-delay: 2s;
    }

    .animation-delay-4000 {
        animation-delay: 4s;
    }

    /* Gradient Border for Pricing */
    .gradient-border {
        position: relative;
        background: white;
        background-clip: padding-box;
        border: 2px solid transparent;
        border-radius: 1rem;
    }

    .gradient-border::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: -1;
        margin: -2px;
        border-radius: inherit;
        background: linear-gradient(to right, #000000, #434343);
    }

    /* Pro Animations */
    @keyframes float {
        0% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-20px);
        }

        100% {
            transform: translateY(0px);
        }
    }

    .animate-float {
        animation: float 6s ease-in-out infinite;
    }

    @keyframes pulse-glow {
        0% {
            box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        }
    }

    .animate-pulse-glow {
        animation: pulse-glow 2s infinite;
    }

    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease-out;
    }

    .reveal-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Spin Animations */
    @keyframes spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    @keyframes reverse-spin {
        from {
            transform: rotate(360deg);
        }

        to {
            transform: rotate(0deg);
        }
    }

    .animate-spin-slow {
        animation: spin 20s linear infinite;
    }

    .animate-reverse-spin {
        animation: reverse-spin 20s linear infinite;
    }