/* Font Face Declarations */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBold';
    src: url('../fonts/yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan';
    src: url('../fonts/IRANYekanWeb Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Trae AI Inspired Brand Colors - Light Theme */
:root {
    /* Trae AI Intelligent Green */
    --primary-color: #00D084;
    --primary-light: #33DB9F;
    --primary-dark: #00B56F;
    --primary-rgb: 0, 208, 132;
    
    /* Light Theme Colors */
    --background-primary: #FFFFFF;
    --background-secondary: #F8FAFB;
    --background-tertiary: #F1F5F9;
    --surface-primary: #FFFFFF;
    --surface-secondary: #F8FAFB;
    
    /* Text Colors */
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --text-inverse: #FFFFFF;
    
    /* Border Colors */
    --border-primary: #E2E8F0;
    --border-secondary: #CBD5E1;
    --border-accent: rgba(var(--primary-rgb), 0.2);
    
    /* Shadow Colors */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles - Light Theme */
body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
}

html[dir="rtl"] body,
html[dir="rtl"] * {
    font-family: 'Yekan', 'Tahoma', 'Arial', sans-serif !important;
}

/* RTL YekanBold for H tags and navbar links */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .policy-content header h1,
html[dir="rtl"] .policy-content h2,
html[dir="rtl"] .policy-content h3,
html[dir="rtl"] .page-content h1,
html[dir="rtl"] .page-content h2,
html[dir="rtl"] .navbar-brand,
html[dir="rtl"] .nav-link {
    font-family: 'YekanBold', 'Tahoma', 'Arial', sans-serif !important;
}

/* LTR Font Support - Explicit override */
html[dir="ltr"] body,
html[dir="ltr"] * {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* RTL Font Support - Higher specificity */
html[dir="rtl"] body,
html[dir="rtl"] * {
    font-family: 'Yekan', 'Tahoma', 'Arial', sans-serif !important;
}

/* LTR Font Support - Explicit override */
html[dir="ltr"] body,
html[dir="ltr"] * {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* RTL Layout Adjustments */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-brand {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
}

[dir="rtl"] .me-1, [dir="rtl"] .me-2 {
    margin-left: 0.25rem;
    margin-right: 0;
}

[dir="rtl"] .ms-1, [dir="rtl"] .ms-2 {
    margin-right: 0.25rem;
    margin-left: 0;
}

/* Modern Light Header */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    min-height: 70px;
    padding: 1rem 0;
}

.navbar .container {
    min-height: 48px;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(25px);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    font-size: 1.25rem;
}

.navbar-brand:hover {
    transform: scale(1.02);
    color: var(--primary-color) !important;
}

.logo-img {
    height: 44px;
    width: 44px;
    border-radius: 8px;
    transition: all 0.3s ease;
    object-fit: contain;
    object-position: center;
    background-color: transparent;
    filter: drop-shadow(var(--shadow-sm));
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0 4px;
    color: var(--text-secondary) !important;
    position: relative;
    overflow: hidden;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateY(-1px);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

/* Modern Light Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%2300D084" fill-opacity="0.05"><circle cx="30" cy="30" r="1.5"/></g></svg>');
    animation: float 20s ease-in-out infinite;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.hero-screenshot img {
    width: 380px;
    border-radius: 16px;
}

.hero-screenshot {
    position: relative;
    overflow: visible;
    z-index: 3;
}

.chat-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.chat-bubble {
    position: absolute;
    transform: translateY(20px);
    animation: floatBubble 8s infinite ease-in-out;
}

.bubble-content {
    background: var(--surface-primary);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    position: relative;
    border: 1px solid var(--border-primary);
}

.bubble-content::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--surface-primary);
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0px); opacity: 0.8; }
    50% { transform: translateY(-15px); opacity: 1; }
}

/* Individual bubble positioning and delays */
.bubble-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bubble-2 {
    top: 45%;
    left: 15%;
    animation-delay: 1.5s;
}

.bubble-3 {
    top: 45%;
    left: 5%;
    animation-delay: 3s;
}

.bubble-4 {
    top: 65%;
    left: 10%;
    animation-delay: 4.5s;
}

.bubble-5 {
    top: 80%;
    left: 15%;
    animation-delay: 6s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-bubble {
        display: none;
    }
}

/* Large screen adjustments */
@media (min-width: 1025px) {
    .bubble-1 {
        top: 10%;
        left: 10%;
    }
    
    .bubble-2 {
        top: 25%;
        left: 15%;
    }
    
    .bubble-3 {
        top: 40%;
        left: 5%;
    }
    
    .bubble-4 {
        top: 50%;
        left: 10%;
    }
    
    .bubble-5 {
        top: 65%;
        left: 15%;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-actions {
    margin-top: 2rem;
    z-index: 3;
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

/* Professional Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-tertiary) 100%);
    border-top: 1px solid var(--border-primary);
    margin-top: auto;
}

.footer-main {
    background: var(--surface-primary);
}

.footer-brand-name {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-logo {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.footer-description {
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-newsletter .form-control {
    border: 1px solid var(--border-primary);
    border-radius: 8px 0 0 8px;
    font-size: 0.85rem;
}

.footer-newsletter .btn {
    border-radius: 0 8px 8px 0;
    padding: 0.5rem 0.75rem;
}

.footer-newsletter-text {
    line-height: 1.5;
}

.footer-bottom {
    background: var(--background-secondary);
}

.footer-copyright {
    font-size: 0.85rem;
}

.footer-meta {
    font-size: 0.85rem;
}

/* RTL Support for Footer */
[dir="rtl"] .footer-link:hover {
    transform: translateX(-4px);
}

[dir="rtl"] .footer-newsletter .form-control {
    border-radius: 0 8px 8px 0;
}

[dir="rtl"] .footer-newsletter .btn {
    border-radius: 8px 0 0 8px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-main {
        padding: 2rem 0;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title {
        font-size: 0.95rem;
    }
    
    .footer-newsletter {
        margin-top: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-section {
        min-height: 100vh;
        padding: 80px 0 40px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
}

/* Language Flags */
.dropdown-item span {
    font-size: 1.2em;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 0;
    background: var(--background-primary);
}

.display-4 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: none;
}

.lead {
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}
.btn {
    border-radius: 28px!important;
}
/* Modern Light Buttons */
.btn-primary,
.btn-primary:not(:disabled):not(.disabled),
.btn-primary.btn,
button.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    border: none !important;
    color: var(--text-inverse) !important;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-inverse) !important;
}

.btn-outline-primary,
.btn-outline-primary:not(:disabled):not(.disabled) {
    background-color: transparent !important;
    background-image: none !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    border-color: var(--primary-color) !important;
    color: var(--text-inverse) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Modern Light Cards */
.card {
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    background: var(--surface-primary);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-accent);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-inverse);
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

/* Modern Light Forms */
.form-control {
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: var(--surface-primary);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
    background: var(--surface-primary);
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--primary-color) !important;
}

/* Background Colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Language Switcher Special Styling */
.navbar-nav .dropdown-toggle::after {
    border-top-color: var(--text-secondary);
}

.navbar-nav .dropdown-toggle:hover::after {
    border-top-color: var(--primary-color);
}

.btn-outline-light {
    color: var(--text-primary) !important;
    border-color: rgba(var(--primary-rgb), 0.3) !important;
    background: rgba(var(--primary-rgb), 0.05) !important;
    transition: all 0.3s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active,
.btn-outline-light.show {
    color: var(--primary-color) !important;
    background: rgba(var(--primary-rgb), 0.1) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-1px);
}

.btn-outline-light .bi-globe {
    color: var(--primary-color);
}

/* Enhanced Dropdown Menu for Light Theme */
.dropdown-menu {
    background: var(--surface-primary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease-out;
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}


/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation for language switching */
.language-switching {
    opacity: 0.7;
    pointer-events: none;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Simple Header Styles */
.simple-header {
    background: var(--surface-primary);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.logo-img {
    width: 60px;
}

.simple-header h2 {
    color: var(--primary-color) !important;
}

/* Enhanced Mobile Navigation Styles */
@media (max-width: 991px) {
    /* Custom Hamburger Menu Button */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        background: rgba(var(--primary-rgb), 0.1);
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.3);
        outline: none;
    }
    
    .navbar-toggler:hover {
        background: rgba(var(--primary-rgb), 0.15);
        transform: scale(1.05);
    }
    
    /* Custom Hamburger Icon */
    .navbar-toggler-icon {
        background-image: none;
        position: relative;
        width: 20px;
        height: 2px;
        background: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s ease;
        left: 0;
    }
    
    .navbar-toggler-icon::before {
        top: -6px;
    }
    
    .navbar-toggler-icon::after {
        top: 6px;
    }
    
    /* Animated hamburger to X transformation */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background: transparent;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    /* Enhanced Mobile Menu Container */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 0 0 16px 16px;
        margin-top: 1rem;
        padding: 1.5rem 0;
        border: 1px solid var(--border-primary);
        box-shadow: var(--shadow-lg);
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Enhanced Mobile Navigation Links */
    .navbar-nav {
        text-align: left;
        padding: 0 1rem;
    }
    
    .nav-item {
        margin: 0.25rem 0;
        border-bottom: 1px solid var(--border-primary);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        margin: 0;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        font-weight: 500;
        color: var(--text-secondary) !important;
        transition: all 0.3s ease;
        position: relative;
        display: flex;
        align-items: center;
        background: transparent;
    }
    
    .nav-link:hover {
        background: rgba(var(--primary-rgb), 0.08);
        color: var(--primary-color) !important;
        transform: translateX(4px);
    }
    
    .nav-link i {
        margin-right: 0.75rem;
        font-size: 1.1rem;
        opacity: 0.8;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover i {
        opacity: 1;
        color: var(--primary-color);
    }
    
    /* Enhanced Mobile Dropdown */
    .dropdown {
        margin: 1rem 0;
    }
    
    .dropdown-toggle {
        background: rgba(var(--primary-rgb), 0.08) !important;
        border: 1px solid var(--border-accent) !important;
        border-radius: 12px !important;
        padding: 0.75rem 1.5rem !important;
        font-weight: 500;
        margin: 12px;
        transition: all 0.3s ease;
        width: calc(100% - 24px);
        text-align: left;
        color: var(--text-primary) !important;
    }

    .start-chat-header {
        width: calc(100% - 24px);
    }
    
    .dropdown-toggle:hover {
        background: rgba(var(--primary-rgb), 0.12) !important;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    
    .dropdown-menu {
        background: var(--surface-primary);
        border: 1px solid var(--border-primary);
        border-radius: 12px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        box-shadow: var(--shadow-lg);
        animation: fadeInUp 0.3s ease-out;
    }
    
    .dropdown-item {
        color: var(--text-secondary);
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .dropdown-item:hover {
        background: rgba(var(--primary-rgb), 0.08);
        color: var(--primary-color);
        transform: translateX(4px);
    }
    
    /* Enhanced Mobile CTA Button */
    .btn-primary {
        margin: 1rem 1rem 0.5rem;
        padding: 1rem 2rem;
        border-radius: 12px;
        font-weight: 600;
        font-size: 1.1rem;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
        border: none;
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    /* Mobile Brand Adjustments */
    .navbar-brand {
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }
    
    .logo-img {
        height: 36px;
        width: 36px;
    }
    
    /* RTL Support for Mobile */
    [dir="rtl"] .navbar-nav {
        text-align: right;
    }
    
    [dir="rtl"] .nav-link i {
        margin-right: 0;
        margin-left: 0.75rem;
    }
    
    [dir="rtl"] .dropdown-item:hover {
        transform: translateX(-4px);
    }
    
    [dir="rtl"] .nav-link:hover {
        transform: translateX(-4px);
    }
}
/* ... existing code ... */

/* Page Content Styles */
.policy-content {
    padding: 2rem;
    line-height: 1.7;
}

.policy-content article {
    color: var(--text-primary);
}

.policy-content header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-primary);
}

.policy-content header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.policy-content header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.policy-content header p:last-child {
    font-size: 1rem;
    line-height: 1.6;
}

.policy-content section {
    margin-bottom: 3rem;
}

.policy-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-accent);
}

.policy-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.policy-content h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.policy-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-content li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.policy-content li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.policy-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.policy-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Design for Policy Content */
@media (max-width: 768px) {
    .policy-content {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .policy-content header h1 {
        font-size: 2rem;
    }
    
    .policy-content h2 {
        font-size: 1.5rem;
    }
    
    .policy-content h3 {
        font-size: 1.2rem;
    }
}

/* General Page Content Styles */
.page-content {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
}

.page-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    padding-bottom: 4rem;
    text-align: center;
}

.page-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

.page-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.download-card {
    background: #f2f2f2;
    border-radius: 28px;
}
.rounded-28 {
    border-radius:28px!important;
}
/* Models Dropdown Hover Styling */
.dropdown-hover {
    position: relative;
}

.dropdown-hover .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    padding: 0.5rem 0;
    margin: 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown-hover:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.model-item {
    padding: 0.75rem 1rem;
    border: none;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.model-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
    margin:0!important;
    transform: none !important;
}

.model-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00B56F;
    border-radius: 8px;
    flex-shrink: 0;
}

.model-icon i {
    margin-top: 4px;
    font-size: 1.25rem;
}

.model-title {
    font-weight: 600;
    color: var(--bs-dark);
    margin-bottom: 0.25rem;
}

.model-subtitle {
    font-size: 0.875rem;
    line-height: 1.3;
    color: #6c757d;
}

/* Chevron rotation on hover */
.dropdown-hover:hover .bi-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.bi-chevron-down {
    transition: transform 0.3s ease;
}

/* RTL Support */
[dir="rtl"] .dropdown-hover .dropdown-menu {
    left: auto;
    right: 0;
}
/* Professional Models Page Styles */
.models-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFB 50%, #F1F5F9 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0 2rem;
}

.models-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 208, 132, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 208, 132, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.models-hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.filter-section {
    background: var(--surface-primary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-primary);
    margin-bottom: 3rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--border-primary);
    background: var(--surface-primary);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.1), transparent);
    transition: left 0.6s;
}

.filter-tab:hover::before {
    left: 100%;
}

.filter-tab:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-filter {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-primary);
    border-radius: 50px;
    font-size: 1rem;
    background: var(--surface-secondary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    background: var(--surface-primary);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1.1rem;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.model-card {
    background: var(--surface-primary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.model-card:hover::before {
    transform: scaleX(1);
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.model-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.model-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.model-provider {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.premium-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.type-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-chat { background: linear-gradient(135deg, #3B82F6, #1D4ED8); color: white; }
.type-image { background: linear-gradient(135deg, #10B981, #059669); color: white; }
.type-video { background: linear-gradient(135deg, #06B6D4, #0891B2); color: white; }
.type-audio { background: linear-gradient(135deg, #F59E0B, #D97706); color: white; }

.model-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.model-capabilities {
    margin-bottom: 2rem;
}

.capabilities-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.capabilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.capability-badge {
    background: var(--surface-secondary);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.capability-badge:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.model-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.try-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.try-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.try-button:hover::before {
    left: 100%;
}

.try-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-section {
        padding: 1.5rem;
    }
    
    .model-card {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-animation .model-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.stagger-animation .model-card:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation .model-card:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation .model-card:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation .model-card:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation .model-card:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation .model-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.model-logo-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.model-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.model-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.model-info {
    flex: 1;
    min-width: 0;
}

.model-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-provider {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .model-logo {
        width: 40px;
        height: 40px;
    }
    
    .model-logo-info {
        gap: 8px;
    }
    
    .model-info h3 {
        font-size: 1rem;
    }
}
[dir="rtl"] .me-1, [dir="rtl"] .me-2 {
    margin-left: 0.25rem;
    margin-right: 0;
}

[dir="rtl"] .ms-1, [dir="rtl"] .ms-2 {
    margin-right: 0.25rem;
    margin-left: 0;
}

/* RTL support for me-auto */
[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}
/* Features Section Redesigned - Minimal & Professional */
.features-section {
    background: var(--background-primary);
    position: relative;
    overflow: hidden;
}

.feature-item {
    transition: all 0.4s ease;
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-icon-box i {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.icon-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
    opacity: 0.2;
    transition: all 0.6s ease;
    transform: scale(0.9);
}

/* Color Variants */
.icon-primary i { color: var(--primary-color); }
.icon-primary .icon-blob { background-color: var(--primary-color); }

.icon-success i { color: #10B981; }
.icon-success .icon-blob { background-color: #10B981; }

.icon-danger i { color: #EF4444; }
.icon-danger .icon-blob { background-color: #EF4444; }

.icon-warning i { color: #F59E0B; }
.icon-warning .icon-blob { background-color: #F59E0B; }

/* Hover Effects */
.feature-item:hover .feature-icon-box i {
    transform: scale(1.1);
}

.feature-item:hover .icon-blob {
    transform: rotate(180deg) scale(1.1);
    border-radius: 50%;
    opacity: 0.3;
}

.feature-item h3 {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.feature-item:hover h3 {
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--background-secondary);
}

.step-card {
    padding: 2rem;
}

.step-number {
    font-size: 8rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.1 !important;
    font-weight: 900;
}

.step-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    box-shadow: var(--shadow-xl);
}

.cta-card .btn-light {
    color: var(--primary-color) !important;
    background: #ffffff !important;
    border: none !important;
}

.cta-card .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* RTL Support for New Sections */
[dir="rtl"] .text-lg-start {
    text-align: right !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-1 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

/* Mobile First Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .step-card {
        padding: 1rem;
    }
    
    .step-number {
        font-size: 6rem;
    }
    
    .cta-card {
        padding: 2rem !important;
    }
    
    .cta-card h2 {
        font-size: 2rem;
    }
}

/* Professional Footer Redesign */
.footer-professional {
    background-color: #0f172a; /* Slate 900 */
    color: #f8fafc;
    position: relative;
    z-index: 10;
}

.footer-professional .footer-main {
    padding-top: 5rem;
    padding-bottom: 3rem;
    background: transparent;
}

.footer-professional .footer-link {
    color: #94a3b8; /* Slate 400 */
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-professional .footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-professional .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 12px 0 0 12px;
}

.footer-professional .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: none;
    color: #fff;
}

.footer-professional .form-control::placeholder {
    color: #64748b;
}

.footer-professional .btn-primary {
    border-radius: 0 12px 12px 0 !important;
    padding: 0 1.5rem;
}

[dir="rtl"] .footer-professional .footer-link:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .footer-professional .form-control {
    border-radius: 0 12px 12px 0;
}

[dir="rtl"] .footer-professional .btn-primary {
    border-radius: 12px 0 0 12px !important;
}

.footer-professional .footer-bottom {
    background-color: #020617; /* Slate 950 */
}

/* Professional Glassmorphism Header Redesign */
.navbar-professional {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-professional.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

/* Brand Styling */
.navbar-professional .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.brand-logo-container {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.2);
    transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-logo-container {
    transform: scale(1.05) rotate(-3deg);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Links */
.navbar-professional .nav-item {
    margin: 0 4px;
}

.navbar-professional .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-professional .nav-link:hover,
.navbar-professional .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 208, 132, 0.08);
}

/* Dropdown Animation */
.navbar-professional .dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    animation: dropdownSlide 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: top center;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.navbar-professional .dropdown-item {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.navbar-professional .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(0, 208, 132, 0.1), transparent);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Mega Menu Styles */
.navbar-professional .container {
    position: relative;
}

.navbar-professional .mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 0;
    overflow: visible;
    transform: none;
    margin-top: 0.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.navbar-professional .mega-menu::before {
    content: "";
    display: block;
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 40px;
    background: transparent;
    z-index: 1050;
}

.navbar-professional .mega-menu > .container-fluid {
    border-radius: 24px;
    overflow: hidden;
}

/* RTL Support for Mega Menu */
[dir="rtl"] .navbar-professional .mega-menu {
    left: 0;
    right: 0;
    transform: none;
}

.mega-menu-content {
    padding: 2.5rem;
}

.mega-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: right; /* RTL Default */
}

[dir="ltr"] .mega-section-title {
    text-align: left;
}

.mega-view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mega-view-all:hover {
    color: var(--primary-dark);
    transform: translateX(-4px);
}

[dir="ltr"] .mega-view-all:hover {
    transform: translateX(4px);
}

/* Pro Item Styling */
.pro-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.pro-item:hover {
    background: #F8FAFB;
    border-color: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.pro-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* RTL: Icon on Right, Text on Left */
[dir="rtl"] .pro-icon-box {
    margin-left: 1rem;
}

[dir="ltr"] .pro-icon-box {
    margin-right: 1rem;
}

.pro-item:hover .pro-icon-box {
    transform: scale(1.05);
}

.pro-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.pro-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 400;
}

/* Model Specific Colors */
.icon-bg-yellow { background: #FFF9E6; color: #FFB020; }
.icon-bg-red { background: #FFF0F0; color: #FF4D4F; }
.icon-bg-blue { background: #E6F7FF; color: #1890FF; }
.icon-bg-green { background: #E6FFFB; color: #00D084; } /* Primary */

/* App Specific Styling */
.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.app-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 208, 132, 0.2);
    overflow: hidden;
    padding: 8px;
}

.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make icons white if they are black */
}

/* Vertical Divider */
.mega-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.05), transparent);
    margin: 0 1rem;
}

@media (max-width: 991px) {
    .navbar-professional .mega-menu {
        width: 100%;
        left: 0;
        transform: none;
        margin-top: 0;
        position: static;
        box-shadow: none;
        background: transparent;
        border: none;
        border-radius: 0;
    }
    
    .mega-menu-content {
        padding: 1rem;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .mega-divider {
        display: none;
    }
}

/* Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.03);
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 208, 132, 0.4);
    color: white !important;
}

/* Mobile Toggler */
.navbar-toggler-professional {
    border: none;
    background: transparent;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 40px;
}

.toggler-line {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-toggler-professional[aria-expanded="true"] .line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler-professional[aria-expanded="true"] .line-2 {
    opacity: 0;
}

.navbar-toggler-professional[aria-expanded="true"] .line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* RTL Adjustments */
[dir="rtl"] .navbar-brand {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .dropdown-item:hover {
    transform: translateX(-4px);
    background: linear-gradient(-90deg, rgba(0, 208, 132, 0.1), transparent);
}

/* Mobile Menu - Offcanvas Customization */
.offcanvas-professional {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(0, 208, 132, 0.05);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

[dir="rtl"] .mobile-nav-link:hover {
    padding-left: 1rem;
    padding-right: 1.5rem;
}

/* Updated Model Category Styles */
.model-category-link {
    border: 1px solid transparent;
}

.model-category-link:hover {
    background-color: var(--background-secondary);
    border-color: var(--border-primary);
}

.model-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Updated Hero Button Styles */
.btn-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-gradient-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 208, 132, 0.3) !important;
    color: white;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-fill {
    transition: all 0.3s ease;
}

.hover-fill:hover {
    background-color: var(--text-primary);
    color: white !important;
    border-color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Unique Feature Colors */
.icon-solo i { color: #6366f1; } /* Indigo */
.icon-solo .icon-blob { background-color: #6366f1; }

.icon-search i { color: #0ea5e9; } /* Cyan */
.icon-search .icon-blob { background-color: #0ea5e9; }

.icon-image i { color: #ec4899; } /* Pink */
.icon-image .icon-blob { background-color: #ec4899; }

.icon-video i { color: #c3ca00; } /* Rose */
.icon-video .icon-blob { background-color: #c3ca00; }

.icon-audio i { color: #ff01e6; } /* Violet */
.icon-audio .icon-blob { background-color: #ff01e6; }

.icon-chat i { color: #10b981; } /* Emerald */
.icon-chat .icon-blob { background-color: #10b981; }

.icon-compare i { color: #f59e0b; } /* Amber */
.icon-compare .icon-blob { background-color: #f59e0b; }

.icon-platform i { color: #3be6f6; } /* Blue */
.icon-platform .icon-blob { background-color: #3be6f6; }
.section-subtitle {
    max-width: 600px;
}
/* Enhanced CTA Section Styles */
.bg-gradient-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

.letter-spacing-tight {
    letter-spacing: -0.025em;
}

.max-w-2xl {
    max-width: 42rem;
}

.cta-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 208, 132, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    z-index: 1;
    animation: pulse-bg 10s infinite alternate;
}

@keyframes pulse-bg {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.z-2 {
    z-index: 2;
}

/* CTA Redesign - Clean & Minimal */
.cta-card.bg-light {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.1) !important;
}

.text-dark {
    color: #1e293b !important;
}

.text-secondary {
    color: #64748b !important;
}

.btn-dark {
    background-color: #0f172a;
    border-color: #0f172a;
    color: white;
}

.btn-dark:hover {
    background-color: #1e293b;
    border-color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.btn-outline-dark {
    color: #0f172a;
    border-color: #e2e8f0;
    background: white;
}

.btn-outline-dark:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.opacity-5 {
    opacity: 0.05;
}

.display-1 {
    font-size: 5rem;
}

/* Download Page Styles */
.downloads-wrapper {
    background: radial-gradient(circle at 50% 0%, #f8fafc 0%, #ffffff 100%);
}

.brand-badge {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero-title {
    letter-spacing: -1px;
}

.hero-decoration .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
}

.hero-decoration .blob-1 {
    width: 400px;
    height: 400px;
    background: #00D084;
    top: -100px;
    left: -100px;
    animation: float-blob 20s infinite alternate;
}

.hero-decoration .blob-2 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    bottom: -50px;
    right: -50px;
    animation: float-blob 15s infinite alternate-reverse;
}

@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

.app-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover {
    transform: translateY(-8px);
}

.card-bg-decoration {
    background: radial-gradient(circle at 100% 0%, rgba(0, 208, 132, 0.1) 0%, transparent 60%);
}

.mesh-gradient-bg {
    background: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 208, 132, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.3) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(236, 72, 153, 0.3) 0px, transparent 50%);
    opacity: 0.2;
    filter: blur(40px);
    animation: pulse-mesh 10s infinite alternate;
}

@keyframes pulse-mesh {
    0% { opacity: 0.2; }
    100% { opacity: 0.3; }
}

.btn-white {
    background: white;
    color: #0f172a;
    border: 1px solid white;
}

.btn-white:hover {
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.feature-mini-card {
    transition: all 0.3s ease;
}

.feature-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05) !important;
    border-color: rgba(0, 208, 132, 0.2) !important;
}

/* RTL Support */
[dir="rtl"] .text-start {
    text-align: right !important;
}

/* Dark Theme Download Page Styles */
.downloads-wrapper-dark {
    background: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.15) 0px, transparent 50%);
    color: white;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.hover-glow:hover {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-5px);
}

.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}

.text-transparent {
    color: transparent;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-white {
    --tw-gradient-from: #fff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

.to-gray-400 {
    --tw-gradient-to: #9ca3af;
}

.hero-decoration-dark .blob-dark {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
}

.hero-decoration-dark .blob-1 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    top: -50px;
    left: 20%;
    animation: pulse-blob 8s infinite alternate;
}

.hero-decoration-dark .blob-2 {
    width: 250px;
    height: 250px;
    background: #10b981;
    bottom: -50px;
    right: 20%;
    animation: pulse-blob 10s infinite alternate-reverse;
}

@keyframes pulse-blob {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.5; }
}

.blur-xl {
    filter: blur(60px);
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-90 {
    opacity: 0.9;
}

.downloads-wrapper-light {
    background: #f8fafc;
}

.downloads-wrapper-light .mesh-gradient-bg {
    opacity: 0.45;
    filter: blur(60px);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.08);
}

.hover-glow-light:hover {
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.12);
    border-color: rgba(59, 130, 246, 0.25) !important;
    transform: translateY(-5px);
}

.from-slate-900 {
    --tw-gradient-from: #0f172a;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(15, 23, 42, 0));
}

.to-slate-500 {
    --tw-gradient-to: #64748b;
}

.downloads-wrapper-light .downloads-platform-icon {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
}

.downloads-wrapper-light .downloads-meta-item {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(15, 23, 42, 0.08);
}

.downloads-wrapper-light .downloads-feature-icon {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
}

.downloads-wrapper-light .downloads-accordion .accordion-item {
    border-color: rgba(15, 23, 42, 0.1);
}

.downloads-wrapper-light .downloads-accordion .accordion-button {
    background: rgba(255, 255, 255, 0.7);
    color: #0f172a;
}

.downloads-wrapper-light .downloads-accordion .accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.downloads-wrapper-light .downloads-accordion .accordion-button::after {
    filter: none;
    opacity: 0.65;
}

.downloads-wrapper-light .downloads-accordion .accordion-body {
    background: rgba(255, 255, 255, 0.8);
}

/* RTL Support */
[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .glass-card {
    text-align: right;
}

.downloads-platform-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.downloads-platform-icon i {
    font-size: 1.75rem;
    line-height: 1;
}

.downloads-meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    min-width: 0;
}

.downloads-meta-item i {
    flex-shrink: 0;
}

.downloads-meta-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.downloads-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.downloads-feature-icon i {
    font-size: 1.25rem;
    line-height: 1;
}

.downloads-req-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.downloads-req-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.downloads-req-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 0.55rem;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

.downloads-accordion .accordion-item {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.downloads-accordion .accordion-button {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    font-weight: 600;
    box-shadow: none;
}

.downloads-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.downloads-accordion .accordion-button::after {
    filter: invert(1);
    opacity: 0.75;
}

.downloads-accordion .accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.downloads-accordion .accordion-body {
    background: rgba(15, 23, 42, 0.25);
}
