/* 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);
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    min-height: 70px;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.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);
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFB 50%, #F1F5F9 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 60%, rgba(var(--primary-rgb), 0.02) 0%, transparent 50%);
    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: 400px;
    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: 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);
}


/* 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 {
    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;
    box-shadow: var(--shadow-lg);
    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;
    }
}