@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f3f4f6 0%, #fff 100%);
}

.content-ar {
    display: none;
}

html[lang="ar"] .content-ar {
    display: block;
}

html[lang="ar"] .content-en {
    display: none;
}

html[lang="en"] .content-ar {
    display: none;
}

html[lang="en"] .content-en {
    display: block;
}

html[lang="ar"] {
    direction: rtl;
}

html[lang="en"] {
    direction: ltr;
}

[dir="rtl"] .lang-selector {
    left: 1rem;
    right: auto;
}

[dir="ltr"] .lang-selector {
    right: 1rem;
    left: auto;
}

/* Logo animation */
.logo {
    animation: float 3s ease-in-out infinite;
}

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

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

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

/* Step Cards */
.step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
}

.feature-card:hover {
    transform: scale(1.03);
}

/* CTA Buttons */
.cta-button {
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Footer Links */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #6200EE;
}

/* Dropdown hover fix */
.dropdown-menu {
    display: none;
}

.dropdown-container:hover .dropdown-menu {
    display: block;
}

/* RTL Support */
html[lang="ar"] .dropdown-container .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

html[lang="en"] .dropdown-container .dropdown-menu {
    left: 0;
    right: auto;
    text-align: left;
}

/* Dropdown Menu Styles */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Button icon spacing */
html[lang="ar"] .dropdown-container button i {
    margin-right: 0.5rem;
    margin-left: 0;
}

html[lang="en"] .dropdown-container button i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Policy Page Styles */
.policy-section {
    margin-bottom: 2rem;
}

.policy-section h2 {
    color: #6200EE;
    margin-bottom: 1rem;
}

.policy-section ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Account Deletion Page Styles */
.deletion-section {
    margin-bottom: 2rem;
}

.deletion-section h2 {
    color: #6200EE;
    margin-bottom: 1rem;
}

/* Support Page Styles */
.support-section {
    margin-bottom: 2rem;
}

.support-section h2 {
    color: #6200EE;
    margin-bottom: 1rem;
}

/* Navigation Styles */
@media (max-width: 768px) {
    #mobile-menu {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

.nav-link.active {
    color: #9333EA;
    font-weight: 600;
}

/* Adjust content spacing when navbar is present */
.navbar-present {
    padding-top: 6rem;
}

/* Ensure mobile menu doesn't overflow */
#mobile-menu {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#mobile-menu::-webkit-scrollbar {
    display: none;
}

/* Space between mobile menu sections */
#mobile-menu .mb-4:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

/* Active section navigation styling */
a[href^="#"].text-purple-600 {
    position: relative;
}

a[href^="#"].text-purple-600::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #9333EA;
    transform: scaleX(1);
    transition: transform 0.2s ease;
}

/* Hover effect for non-active items */
a[href^="#"]:not(.text-purple-600):hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #9333EA;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease;
}

/* RTL support for underlines */
html[lang="ar"] a[href^="#"]:not(.text-purple-600):hover::after {
    transform-origin: left;
}

/* Mobile active states */
@media (max-width: 768px) {
    #mobile-menu a[href^="#"].text-purple-600::after {
        display: none;
    }
    
    #mobile-menu a[href^="#"].text-purple-600 {
        background-color: #F3E8FF;
        border-radius: 0.375rem;
    }
}