/* Custom styles to complement Tailwind */

/* Custom scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism utility */
.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom glow effects */
.glow-indigo {
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4));
}

.glow-purple {
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.4));
}

/* Mobile Menu Smooth Transition */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important; 
    pointer-events: none;
}

#mobile-menu.active {
    max-height: 100vh;
    opacity: 1;
    pointer-events: auto;
    padding-bottom: 1.5rem;
}


/* Language Modal Styles */
#lang-modal {
    background-color: rgba(2, 6, 23, 0.85);
    /* slate-950 with opacity */
}

.lang-option {
    cursor: pointer;
}

#lang-modal-content {
    box-shadow: 0 0 50px -12px rgba(99, 102, 241, 0.25);
}

/* RTL Support for Arabic, Hebrew, Persian, and Urdu */
[lang="ar"],
[lang="he"],
[lang="fa"],
[lang="ur"] {
    direction: rtl;
}

[lang="ar"] .rtl-flex-row-rev,
[lang="he"] .rtl-flex-row-rev,
[lang="fa"] .rtl-flex-row-rev,
[lang="ur"] .rtl-flex-row-rev {
    flex-direction: row-reverse;
}

[lang="ar"] .text-left,
[lang="he"] .text-left,
[lang="fa"] .text-left {
    text-align: right;
}

[lang="ar"] .inline-flex.items-center i,
[lang="he"] .inline-flex.items-center i,
[lang="fa"] .inline-flex.items-center i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[lang="ar"] .ml-2,
[lang="ar"] .ml-3,
[lang="ar"] .ml-6,
[lang="ar"] .mr-2,
[lang="he"] .ml-2,
[lang="he"] .ml-3,
[lang="he"] .ml-6,
[lang="he"] .mr-2,
[lang="fa"] .ml-2,
[lang="fa"] .ml-3,
[lang="fa"] .ml-6,
[lang="fa"] .mr-2 {
    margin-left: 0;
    margin-right: inherit;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}