:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --accent-color: #06B6D4;
    --accent-color-hover: #0891B2;
    --accent-secondary: #06B6D4;
    --card-bg: #FFFFFF;
    --card-border: rgba(59, 130, 246, 0.1);
    --header-bg: rgba(255, 255, 255, 0.8);
    --header-border: rgba(59, 130, 246, 0.1);
    --scrollbar-track: #F1F5F9;
    --scrollbar-thumb: #CBD5E1;
    --scrollbar-thumb-hover: #94A3B8;
    --body-bg-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    --hero-bg: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #BFDBFE 100%);
    --hero-text: #0F172A;
    --hero-overlay: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    --hero-grid: rgba(59, 130, 246, 0.08);
    --icon-bg: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    --icon-color: #2563EB;
    --timeline-line: linear-gradient(180deg, #3B82F6 0%, #06B6D4 100%);
    --timeline-circle: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    --shadow-sm: 0 1px 2px 0 rgba(59, 130, 246, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(59, 130, 246, 0.1), 0 4px 6px -2px rgba(59, 130, 246, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04);
}

.light {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --accent-color: #06B6D4;
    --accent-color-hover: #0891B2;
    --accent-secondary: #06B6D4;
    --card-bg: #FFFFFF;
    --card-border: rgba(59, 130, 246, 0.1);
    --header-bg: rgba(255, 255, 255, 0.8);
    --header-border: rgba(59, 130, 246, 0.1);
    --scrollbar-track: #F1F5F9;
    --scrollbar-thumb: #CBD5E1;
    --scrollbar-thumb-hover: #94A3B8;
    --body-bg-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    --hero-bg: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #BFDBFE 100%);
    --hero-text: #0F172A;
    --hero-overlay: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    --hero-grid: rgba(59, 130, 246, 0.08);
    --icon-bg: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    --icon-color: #2563EB;
    --timeline-line: linear-gradient(180deg, #3B82F6 0%, #06B6D4 100%);
    --timeline-circle: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    --shadow-sm: 0 1px 2px 0 rgba(59, 130, 246, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(59, 130, 246, 0.1), 0 4px 6px -2px rgba(59, 130, 246, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04);
}

.dark {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --accent-color: #06B6D4;
    --accent-color-hover: #22D3EE;
    --accent-secondary: #06B6D4;
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgba(59, 130, 246, 0.2);
    --header-bg: rgba(15, 23, 42, 0.8);
    --header-border: rgba(59, 130, 246, 0.2);
    --scrollbar-track: #1E293B;
    --scrollbar-thumb: #475569;
    --scrollbar-thumb-hover: #64748B;
    --body-bg-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    --hero-bg: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    --hero-text: #F1F5F9;
    --hero-overlay: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    --hero-grid: rgba(59, 130, 246, 0.05);
    --icon-bg: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    --icon-color: #60A5FA;
    --timeline-line: linear-gradient(180deg, #3B82F6 0%, #06B6D4 100%);
    --timeline-circle: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-primary);
    background-image: var(--body-bg-image);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-md);
}

html {
    scroll-behavior: smooth;
}

/* Gradient Text */
.gradient-text {
    color: var(--accent-color);
    font-weight: 700;
}

/* Custom Scrollbar for Modern Look */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    border-radius: 10px;
    border: 2px solid var(--scrollbar-track);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-color-hover) 0%, var(--accent-color) 100%);
}

/* Selection Color */
::selection {
    background: var(--accent-color);
    color: #ffffff;
}

::-moz-selection {
    background: var(--accent-color);
    color: #ffffff;
}

/* =========================================
 * استایل‌های سفارشی برای محتوای مقاله
 * =========================================
*/
.article-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 2.25rem;
}

.article-content h2 {
    font-size: 1.875rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    margin-right: 1.5rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.article-content a:hover {
    color: var(--accent-color-hover);
    text-decoration: underline;
}

.article-content blockquote {
    border-right: 4px solid var(--accent-color);
    padding-right: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
}

.article-content img {
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    height: auto;
}

/* =========================================
 * استایل‌های صفحه‌بندی مقالات (articles.php)
 * =========================================
*/
.kaman-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.kaman-pagination .nav-links .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
}

.kaman-pagination .nav-links .page-numbers:hover {
    background: var(--accent-color);
    color: #FFFFFF;
}

.kaman-pagination .nav-links .page-numbers.current {
    background: var(--accent-color);
    color: #FFFFFF;
    border-color: var(--accent-color);
}

/* =========================================
 * استایل‌های نظرات (Comments)
 * =========================================
*/
.comments-area {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.comment-item:hover {
    border-color: var(--accent-color);
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.comment-form .required {
    color: #ef4444;
}

.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.comment-notes,
.logged-in-as {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.comment-awaiting-moderation {
    background: rgba(234, 179, 8, 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.children {
    list-style: none;
    margin-right: 2rem;
    margin-top: 1rem;
}

/* =========================================
 * Utility Classes
 * =========================================
*/
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
 * Accessibility
 * =========================================
*/
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 1rem;
    outline: 3px solid var(--accent-color-hover);
    outline-offset: 2px;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* =========================================
 * Back to Top Button
 * =========================================
*/
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--accent-color-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* =========================================
 * Reading Progress Bar
 * =========================================
*/
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

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

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

/* =========================================
 * Toast Notifications
 * =========================================
*/
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    width: auto;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid var(--accent-color);
}

/* =========================================
 * Print Styles
 * =========================================
*/
@media print {

    header,
    footer,
    #back-to-top,
    #reading-progress,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }

    .glass-card {
        border: 1px solid #ddd;
        background: white;
    }
}

/* =========================================
 * Responsive Images
 * =========================================
*/
img {
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* =========================================
 * Breadcrumbs
 * =========================================
*/
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.breadcrumbs .separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* =========================================
 * Smooth Scrolling
 * =========================================
*/
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* =========================================
 * استایل‌های صفحه اصلی
 * =========================================
*/

/* Hero Section */
.hero-section {
    background: var(--hero-bg);
    color: var(--hero-text);
    position: relative;
}

.hero-overlay {
    background: var(--hero-overlay);
    animation: pulse 8s ease-in-out infinite;
}

.hero-grid {
    background-image:
        linear-gradient(var(--hero-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-title {
    color: var(--text-primary);
    animation: fadeInUp 1s ease-out;
}

.hero-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.hero-subtitle {
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle-main {
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content-wrapper {
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Floating Particles */
.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.hero-particle-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-particle-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.hero-particle-3 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.hero-particle-4 {
    width: 40px;
    height: 40px;
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

.hero-particle-5 {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -20px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(20px, 20px) scale(1.05);
    }
}

.hero-badge-premium {
    animation: fadeInDown 1s ease-out 0.5s both;
    box-shadow: var(--shadow-lg);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    background: var(--card-bg);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

/* Icon Backgrounds */
.icon-bg {
    background: var(--icon-bg);
    transition: all 0.3s ease;
}

.icon-color {
    color: var(--icon-color);
}

/* Timeline */
.timeline-line-vertical {
    background: linear-gradient(180deg,
            transparent 0%,
            var(--accent-color) 5%,
            var(--accent-color) 95%,
            transparent 100%);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.timeline-circle {
    background: var(--timeline-circle);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Sections */
.section-bg-primary {
    background: var(--bg-primary);
}

.section-bg-secondary {
    background: var(--bg-secondary);
}

/* Form Inputs */
.form-input {
    background: var(--card-bg);
    border: 1px solid var(--card-border);

    /* Utility to force text align center */
    .text-center-force {
        text-align: center !important;
    }

}

.form-input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.form-label .required {
    color: #ef4444;
}

/* Buttons */
.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-color-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Card Hover Effects */
.card-hover:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
}

/* Header Styles */
.header-glass {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

header a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

header a:hover {
    color: var(--accent-color);
}

/* Logo Styles */
@media (max-width: 768px) {
    header a img {
        height: 2.5rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    header a {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        line-height: 1 !important;
    }

    /* Reduce header height on mobile */
    header nav {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    header nav>div {
        align-items: center !important;
        gap: 0.5rem !important;
    }

    #mobile-menu {
        padding-bottom: 0.5rem !important;
        padding-top: 0.25rem !important;
    }

    #mobile-menu a {
        padding-top: 0.375rem !important;
        padding-bottom: 0.375rem !important;
        font-size: 0.9rem;
    }

    #mobile-menu-btn {
        padding: 0.375rem !important;
    }

    .language-switcher-mobile {
        margin-top: 0.5rem !important;
    }

    #mobile-theme-toggle {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        margin-top: 0.5rem !important;
    }
}


/* =========================================
 * Enhanced Hero Animations
 * =========================================
*/

/* Gradient Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float-orb 20s infinite ease-in-out;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: 3s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 6s;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Pulse Dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Gradient Text Animated */
.gradient-text-animated {
    background: linear-gradient(90deg,
            var(--accent-color) 0%,
            var(--accent-secondary) 50%,
            var(--accent-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Enhanced Button */
.btn-primary-enhanced {
    background: var(--accent-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary-enhanced:hover {
    background: var(--accent-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s;
}

.btn-primary-enhanced:hover .btn-shine {
    left: 100%;
}

/* Fade In Animations */
@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in-down {
    animation: fade-in-down 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

/* Bounce Slow */
@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

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

.animate-bounce-slow {
    animation: bounce-slow 2s infinite;
}

/* Spin Slow */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

/* Pulse Slow */
@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.2;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Additional Particle */
.hero-particle-6 {
    width: 50px;
    height: 50px;
    top: 70%;
    left: 60%;
    animation-delay: 5s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-orb {
        filter: blur(60px);
    }

    .hero-orb-1,
    .hero-orb-2,
    .hero-orb-3 {
        width: 250px;
        height: 250px;
    }

    /* بهبود فاصله‌ها در موبایل */
    body {
        padding: 0;
        margin: 0;
    }

    /* فاصله‌های بهتر برای Hero Section */
    .hero-section {
        padding: 2rem 1rem !important;
        min-height: auto !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-subtitle-main {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        padding: 0 0.5rem !important;
    }

    /* بهبود Badge در موبایل */
    .hero-badge-premium {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* بهبود کارت‌های آمار */
    .hero-stat-card {
        min-width: 140px !important;
        max-width: 160px !important;
        padding: 1rem 0.75rem !important;
        margin: 0.5rem !important;
        flex: 0 0 auto !important;
    }

    .hero-stat-card h3 {
        font-size: 1.5rem !important;
    }

    .hero-stat-card p {
        font-size: 0.75rem !important;
    }

    /* بهبود Container کارت‌های آمار */
    .hero-content-wrapper>div:nth-child(4) {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
        padding: 0 0.5rem !important;
    }

    /* فاصله‌های بهتر برای محتوا */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* بهبود فاصله‌های عمودی */
    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* بهبود Trust Indicators - جلوگیری از روی هم افتادن */
    .hero-content-wrapper>div:last-child {
        margin-top: 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        align-items: center !important;
        width: 100% !important;
    }

    .hero-content-wrapper>div:last-child>div {
        width: auto !important;
        min-width: 200px !important;
        justify-content: center !important;
        padding: 0.875rem 1.25rem !important;
        background: var(--card-bg) !important;
        border-radius: 0.75rem !important;
        border: 1px solid var(--card-border) !important;
    }

    /* بهبود کارت‌ها */
    .glass-card {
        padding: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    /* بهبود فرم‌ها */
    .form-input {
        padding: 0.75rem !important;
        font-size: 1rem !important;
    }

    /* بهبود دکمه‌ها */
    .btn-primary,
    .btn-primary-enhanced {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        width: 100% !important;
    }

    /* بهبود CTA Buttons Container */
    .hero-content-wrapper>div:nth-last-child(2) {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .hero-content-wrapper>div:nth-last-child(2) a {
        width: 100% !important;
        justify-content: center !important;
    }

    /* بهبود Timeline - خط عمودی روی شماره‌ها */
    .wrap {
        padding: 2rem 0 !important;
    }

    .timeline-line-vertical {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 2px !important;
    }

    .timeline-circle {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 0 auto !important;
    }

    /* تنظیم Layout Timeline برای موبایل */
    .right-timeline,
    .left-timeline {
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 2rem !important;
    }

    .right-timeline>div:first-child,
    .left-timeline>div:first-child,
    .right-timeline>div:last-child,
    .left-timeline>div:last-child {
        width: 100% !important;
        order: 2 !important;
    }

    .right-timeline .timeline-circle,
    .left-timeline .timeline-circle {
        order: 1 !important;
        margin-bottom: 1rem !important;
    }

    .right-timeline .glass-card,
    .left-timeline .glass-card {
        width: 90% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        order: 2 !important;
    }

    /* بهبود محتوای مقاله */
    .article-content {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        padding: 0 0.5rem !important;
    }

    .article-content h1 {
        font-size: 1.75rem !important;
    }

    .article-content h2 {
        font-size: 1.5rem !important;
    }

    .article-content h3 {
        font-size: 1.25rem !important;
    }

    /* بهبود نظرات */
    .children {
        margin-right: 1rem !important;
    }

    /* بهبود Header */
    header {
        padding: 0.75rem 1rem !important;
        min-height: auto !important;
    }

    header .container {
        padding: 0 !important;
    }

    header h1,
    header .text-2xl,
    header .text-3xl {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    header nav {
        padding: 0 !important;
    }

    header nav a {
        padding: 0.5rem !important;
        font-size: 0.875rem !important;
    }

    header button {
        padding: 0.5rem !important;
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    /* بهبود منوی موبایل */
    #mobile-menu {
        border-top: 1px solid var(--card-border);
    }

    #mobile-menu a {
        color: var(--text-primary) !important;
        transition: all 0.3s ease;
    }

    #mobile-menu a:hover {
        background: var(--bg-secondary) !important;
    }

    /* دکمه پیش ثبت‌نام در موبایل */
    #mobile-menu a[href*="newsletter"] {
        background: var(--accent-color) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
    }

    #mobile-menu a[href*="newsletter"]:hover {
        background: var(--accent-color-hover) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    }

    /* دکمه تغییر تم در موبایل */
    #mobile-theme-toggle {
        color: var(--text-primary) !important;
        background: transparent !important;
        border: 1px solid var(--card-border);
        margin: 0.5rem 1rem !important;
        width: calc(100% - 2rem) !important;
    }

    #mobile-theme-toggle:hover {
        background: var(--bg-secondary) !important;
        border-color: var(--accent-color);
    }

    /* بهبود Footer */
    footer {
        padding: 2rem 1rem !important;
    }

    /* بهبود Back to Top */
    #back-to-top {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    /* حذف فاصله‌های اضافی */
    .hero-particle {
        display: none;
    }

    /* بهبود Scroll Indicator */
    .hero-section>div:last-child {
        display: none !important;
    }

    /* بهبود فاصله بین المان‌ها */
    .space-y-4>*+* {
        margin-top: 1rem !important;
    }

    .space-y-6>*+* {
        margin-top: 1.5rem !important;
    }

    .space-y-8>*+* {
        margin-top: 2rem !important;
    }

    /* بهبود Grid */
    .grid {
        gap: 1rem !important;
    }

    /* بهبود Flex */
    .flex {
        gap: 0.75rem !important;
    }
}

/* بهبود برای موبایل‌های کوچک */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-stat-card {
        min-width: 120px !important;
        padding: 0.75rem 0.5rem !important;
    }

    .hero-stat-card h3 {
        font-size: 1.25rem !important;
    }

    .hero-stat-card p {
        font-size: 0.7rem !important;
    }

    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}


/* =========================================
 * Hero Stat Cards
 * =========================================
*/
.hero-stat-card {
    min-width: 160px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.hero-stat-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.3);
}

.stat-icon-wrapper {
    position: relative;
}

.stat-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: var(--accent-color);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

.hero-stat-card:hover .stat-icon-wrapper::before {
    opacity: 0.2;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

/* =========================================
 * بهبودهای اضافی برای موبایل
 * =========================================
*/

/* بهبود Touch Targets */
@media (max-width: 768px) {

    a,
    button,
    input,
    textarea,
    select {
        min-height: 44px;
        min-width: 44px;
    }

    /* بهبود فاصله‌های کلیکی */
    .clickable {
        padding: 0.75rem;
    }

    /* بهبود منوی موبایل */
    nav a {
        padding: 1rem !important;
        display: block;
    }

    /* بهبود فرم‌های تماس */
    textarea {
        min-height: 120px !important;
    }

    /* بهبود Pagination */
    .kaman-pagination .nav-links .page-numbers {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.875rem !important;
    }

    /* بهبود Breadcrumbs */
    .breadcrumbs {
        font-size: 0.8rem !important;
        padding: 0.5rem 0 !important;
    }

    /* بهبود Toast */
    .toast {
        max-width: 95% !important;
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    /* بهبود فاصله‌های عمومی */
    .p-4 {
        padding: 1rem !important;
    }

    .p-6 {
        padding: 1.25rem !important;
    }

    .p-8 {
        padding: 1.5rem !important;
    }

    .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .m-4 {
        margin: 1rem !important;
    }

    .mx-4 {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }

    .my-4 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    /* بهبود Typography */
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }

    h4 {
        font-size: 1.125rem !important;
        line-height: 1.4 !important;
    }

    h5 {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    h6 {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }

    /* بهبود فاصله بین پاراگراف‌ها */
    p {
        margin-bottom: 1rem !important;
    }

    /* بهبود لیست‌ها */
    ul,
    ol {
        padding-right: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    li {
        margin-bottom: 0.5rem !important;
    }

    /* بهبود تصاویر */
    img {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 0.5rem !important;
    }

    /* بهبود Blockquote */
    blockquote {
        padding: 1rem !important;
        margin: 1rem 0 !important;
        font-size: 0.95rem !important;
    }

    /* بهبود جداول */
    table {
        font-size: 0.875rem !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* بهبود Code Blocks */
    pre,
    code {
        font-size: 0.85rem !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* حذف انیمیشن‌های سنگین در موبایل */
    .hero-orb,
    .hero-particle {
        display: none !important;
    }

    /* بهبود Performance */
    * {
        -webkit-tap-highlight-color: rgba(6, 182, 212, 0.2);
    }

    /* بهبود Scroll */
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* بهبود برای تبلت‌ها */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .hero-stat-card {
        min-width: 150px !important;
    }

    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* بهبود برای Landscape Mode */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 1.5rem 1rem !important;
    }

    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* بهبود برای Dark Mode در موبایل */
@media (max-width: 768px) {
    .dark .glass-card {
        background: rgba(30, 41, 59, 0.8) !important;
    }

    .dark .hero-section {
        background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%) !important;
    }
}

/* =========================================
 * Floating Robot Animations
 * =========================================
*/

/* Base floating animation for robots */
.floating-robot {
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.floating-robot:hover {
    opacity: 0.2 !important;
    transform: scale(1.08);
    filter: grayscale(10%) contrast(1.15) drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3)) !important;
}

.floating-robot-1 {
    animation-name: float-robot-1;
    animation-duration: 25s;
}

.floating-robot-2 {
    animation-name: float-robot-2;
    animation-duration: 30s;
    animation-delay: 2s;
}

.floating-robot-3 {
    animation-name: float-robot-3;
    animation-duration: 22s;
    animation-delay: 4s;
}

.floating-robot-4 {
    animation-name: float-robot-4;
    animation-duration: 28s;
}

.floating-robot-5 {
    animation-name: float-robot-5;
    animation-duration: 26s;
    animation-delay: 3s;
}

.floating-robot-6 {
    animation-name: float-robot-6;
    animation-duration: 24s;
    animation-delay: 1s;
}

.floating-robot-7 {
    animation-name: float-robot-7;
    animation-duration: 27s;
    animation-delay: 5s;
}

.floating-robot-8 {
    animation-name: float-robot-8;
    animation-duration: 23s;
}

.floating-robot-9 {
    animation-name: float-robot-9;
    animation-duration: 29s;
    animation-delay: 2s;
}

.floating-robot-10 {
    animation-name: float-robot-10;
    animation-duration: 31s;
    animation-delay: 1s;
}

.floating-robot-11 {
    animation-name: float-robot-11;
    animation-duration: 26s;
    animation-delay: 3s;
}

/* Keyframe animations for different floating patterns */
@keyframes float-robot-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-15px, -50px) rotate(-3deg);
    }

    75% {
        transform: translate(25px, -25px) rotate(4deg);
    }
}

@keyframes float-robot-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(-25px, 30px) rotate(-5deg) scale(1.05);
    }

    66% {
        transform: translate(20px, 40px) rotate(4deg) scale(0.95);
    }
}

@keyframes float-robot-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    30% {
        transform: translate(-20px, -20px) rotate(-4deg);
    }

    60% {
        transform: translate(15px, -35px) rotate(3deg);
    }
}

@keyframes float-robot-4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    40% {
        transform: translate(30px, 25px) rotate(6deg) scale(1.08);
    }

    80% {
        transform: translate(-20px, 35px) rotate(-5deg) scale(0.92);
    }
}

@keyframes float-robot-5 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    35% {
        transform: translate(-30px, -25px) rotate(-6deg);
    }

    70% {
        transform: translate(25px, -30px) rotate(5deg);
    }
}

@keyframes float-robot-6 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(20px, 30px) rotate(4deg) scale(1.06);
    }

    50% {
        transform: translate(-25px, 20px) rotate(-4deg) scale(0.94);
    }

    75% {
        transform: translate(15px, 35px) rotate(3deg) scale(1.02);
    }
}

@keyframes float-robot-7 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    30% {
        transform: translate(-20px, -30px) rotate(-5deg);
    }

    60% {
        transform: translate(25px, -20px) rotate(4deg);
    }
}

@keyframes float-robot-8 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    40% {
        transform: translate(25px, -25px) rotate(5deg) scale(1.05);
    }

    80% {
        transform: translate(-20px, -30px) rotate(-4deg) scale(0.95);
    }
}

@keyframes float-robot-9 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-25px, 25px) rotate(-6deg);
    }

    66% {
        transform: translate(20px, 30px) rotate(5deg);
    }
}

@keyframes float-robot-10 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    35% {
        transform: translate(30px, -30px) rotate(7deg) scale(1.07);
    }

    70% {
        transform: translate(-25px, -25px) rotate(-6deg) scale(0.93);
    }
}

@keyframes float-robot-11 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    30% {
        transform: translate(-30px, 30px) rotate(-7deg);
    }

    60% {
        transform: translate(25px, 25px) rotate(6deg);
    }
}

/* Hero Robot Float Animation */
.hero-robot-float {
    animation: hero-robot-float 8s ease-in-out infinite;
}

@keyframes hero-robot-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-1deg);
    }

    75% {
        transform: translateY(-25px) rotate(1deg);
    }
}

/* Hide robots on mobile for better performance */
@media (max-width: 768px) {

    .floating-robot,
    .hero-robot-float {
        display: none;
    }
}

/* =========================================
 * AI Security Section Styles
 * =========================================
*/

/* AI Robot Image Container */
.ai-robot-container {
    position: relative;
    overflow: hidden;
}

.ai-robot-container img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.ai-robot-container:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Security Feature Cards - Clean Design */
.security-feature-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
}

.security-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}

/* Section Divider */
.section-divider {
    position: relative;
}

.divider-icon {
    animation: bounce-slow 3s ease-in-out infinite;
}

@keyframes bounce-slow {

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

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

.divider-line {
    opacity: 0.6;
}

/* AI Security Badges */
.ai-security-badge {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ai-security-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

/* Floating Animation for AI Elements */
@keyframes float-ai {

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

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

.ai-float {
    animation: float-ai 3s ease-in-out infinite;
}

/* Glow Effect for AI Images */
.ai-glow {
    position: relative;
}

.ai-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(10px);
}

.ai-glow:hover::before {
    opacity: 0.5;
}

/* AI Security Section Background */
.section-bg-primary {
    position: relative;
}

.section-bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Enhanced Grid Layout for Security Features */
.security-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Icon Container in Security Cards */
.security-icon-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    transition: all 0.3s ease;
}

.security-feature-card:hover .security-icon-container {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
}

/* Gradient Text for Security Titles */
.security-feature-card h3 {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.security-feature-card:hover h3 {
    transform: translateX(-3px);
}

/* Shimmer Effect on Hover */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.security-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.security-feature-card:hover::after {
    opacity: 1;
}

/* Responsive AI Section */
@media (max-width: 768px) {
    .ai-security-section .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .security-feature-card {
        margin-bottom: 1.5rem;
    }

    .ai-security-badge {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    .security-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/* =========================================
 * تنظیمات کامل LTR برای زبان انگلیسی
 * =========================================
*/

/* تنظیمات پایه */
html[dir="ltr"] {
    direction: ltr !important;
}

html[dir="ltr"] body {
    direction: ltr !important;
    text-align: left !important;
}

html[dir="ltr"] * {
    direction: inherit !important;
}

/* تنظیمات متن */
html[dir="ltr"] .text-right {
    text-align: left !important;
}

html[dir="ltr"] .text-left {
    text-align: right !important;
}

html[dir="ltr"] .text-center {
    text-align: center !important;
}

/* Header */
html[dir="ltr"] header {
    direction: ltr;
}

html[dir="ltr"] header nav {
    direction: ltr;
}

html[dir="ltr"] header .space-x-reverse {
    flex-direction: row;
}

html[dir="ltr"] .language-dropdown {
    right: auto;
    left: 0;
}

/* Footer */
html[dir="ltr"] footer {
    direction: ltr;
}

html[dir="ltr"] footer .text-center.md\\:text-right {
    text-align: left;
}

/* Main Content */
html[dir="ltr"] main {
    direction: ltr;
}

html[dir="ltr"] section {
    direction: ltr;
}

html[dir="ltr"] .container {
    direction: ltr;
}

/* Cards */
html[dir="ltr"] .glass-card {
    direction: ltr;
    text-align: left;
}

/* Forms */
html[dir="ltr"] .form-input {
    text-align: left !important;
    direction: ltr !important;
}

html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select {
    text-align: left !important;
    direction: ltr !important;
}

html[dir="ltr"] input.text-right,
html[dir="ltr"] textarea.text-right,
html[dir="ltr"] select.text-right {
    text-align: left !important;
}

html[dir="ltr"] .form-label,
html[dir="ltr"] label {
    text-align: left !important;
    direction: ltr !important;
    display: block !important;
}

html[dir="ltr"] form label {
    text-align: left !important;
}

html[dir="ltr"] .comment-form label {
    text-align: left !important;
}

/* Fix spacing between icons and text in LTR */
html[dir="ltr"] .flex.items-start.space-x-3.space-x-reverse,
html[dir="ltr"] .flex.items-center.space-x-3.space-x-reverse {
    flex-direction: row !important;
}

html[dir="ltr"] .space-x-3.space-x-reverse>* {
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
}

html[dir="ltr"] .space-x-3.space-x-reverse>*+* {
    margin-left: 0.75rem !important;
    margin-right: 0 !important;
}

html[dir="ltr"] .space-x-3>*+* {
    margin-left: 0.75rem !important;
    margin-right: 0 !important;
}

html[dir="ltr"] .flex.items-center.gap-2 svg+span,
html[dir="ltr"] .flex.items-start.gap-2 svg+div {
    margin-left: 0.5rem;
}

/* Direct targeting for icon + text pattern */
html[dir="ltr"] .flex-shrink-0+div,
html[dir="ltr"] .flex-shrink-0+* {
    margin-left: 0.75rem !important;
    margin-right: 0 !important;
}

html[dir="ltr"] input::placeholder,
html[dir="ltr"] textarea::placeholder,
html[dir="ltr"] select::placeholder {
    text-align: left !important;
    direction: ltr !important;
}

html[dir="ltr"] .form-input::placeholder {
    text-align: left !important;
    direction: ltr !important;
}

html[dir="ltr"] input::-webkit-input-placeholder,
html[dir="ltr"] textarea::-webkit-input-placeholder {
    text-align: left !important;
}

html[dir="ltr"] input::-moz-placeholder,
html[dir="ltr"] textarea::-moz-placeholder {
    text-align: left !important;
}

html[dir="ltr"] input:-ms-input-placeholder,
html[dir="ltr"] textarea:-ms-input-placeholder {
    text-align: left !important;
}

/* Buttons */
html[dir="ltr"] button,
html[dir="ltr"] .btn-primary {
    direction: ltr;
}

/* Flexbox */
html[dir="ltr"] .flex-row-reverse {
    flex-direction: row;
}

/* Lists */
html[dir="ltr"] ul,
html[dir="ltr"] ol {
    padding-left: 1.5rem;
    padding-right: 0;
}

/* Blockquote */
html[dir="ltr"] blockquote {
    border-left: 4px solid var(--accent-color);
    border-right: none;
    padding-left: 1rem;
    padding-right: 0;
}

html[dir="ltr"] .article-content blockquote {
    border-left: 4px solid var(--accent-color);
    border-right: none;
    padding-left: 1rem;
    padding-right: 0;
}

/* Timeline */
html[dir="ltr"] .timeline-line-vertical {
    left: 50%;
    right: auto;
}

html[dir="ltr"] .right-timeline {
    flex-direction: row;
}

html[dir="ltr"] .left-timeline {
    flex-direction: row-reverse;
}

/* Language Switcher LTR */
html[dir="ltr"] .language-option:hover {
    padding-left: 1.25rem;
    padding-right: 1rem;
}

html[dir="ltr"] .language-option.active::after {
    left: auto;
    right: 1rem;
}

html[dir="ltr"] .language-option::before {
    right: auto;
    left: -100%;
}

html[dir="ltr"] .language-option:hover::before {
    left: 100%;
}

/* Breadcrumbs */
html[dir="ltr"] .breadcrumbs {
    direction: ltr;
}

html[dir="ltr"] .breadcrumbs .separator::before {
    content: '›';
}

/* Comments */
html[dir="ltr"] .children {
    margin-left: 2rem;
    margin-right: 0;
}

/* Mobile Menu */
html[dir="ltr"] #mobile-menu {
    direction: ltr;
}

html[dir="ltr"] #mobile-menu a {
    text-align: center;
}

/* Hero Section */
html[dir="ltr"] .hero-section {
    direction: ltr;
}

html[dir="ltr"] .hero-title,
html[dir="ltr"] .hero-subtitle {
    direction: ltr;
}

/* Grid and Flex Containers */
html[dir="ltr"] .grid {
    direction: ltr;
}

html[dir="ltr"] .flex {
    direction: ltr;
}

/* Ensure all text elements follow LTR */
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6,
html[dir="ltr"] p,
html[dir="ltr"] span,
html[dir="ltr"] div,
html[dir="ltr"] a {
    direction: ltr;
}

/* Fix for specific components */
html[dir="ltr"] .language-switcher-button {
    direction: ltr;
}

html[dir="ltr"] .language-dropdown {
    direction: ltr;
}

html[dir="ltr"] .language-option {
    direction: ltr;
}

/* Padding and Margin adjustments */
html[dir="ltr"] .pr-10 {
    padding-left: 2.5rem;
    padding-right: 0;
}

html[dir="ltr"] .pl-10 {
    padding-right: 2.5rem;
    padding-left: 0;
}

html[dir="ltr"] .mr-4 {
    margin-left: 1rem;
    margin-right: 0;
}

html[dir="ltr"] .ml-4 {
    margin-right: 1rem;
    margin-left: 0;
}

/* Positioning adjustments */
html[dir="ltr"] .right-3 {
    right: auto;
    left: 0.75rem;
}

html[dir="ltr"] .left-3 {
    left: auto;
    right: 0.75rem;
}

html[dir="ltr"] .right-0 {
    right: auto;
    left: 0;
}

html[dir="ltr"] .left-0 {
    left: auto;
    right: 0;
}

/* Space between items */
html[dir="ltr"] .space-x-reverse> :not([hidden])~ :not([hidden]) {
    --tw-space-x-reverse: 0;
}

/* Ensure proper text alignment in all sections */
html[dir="ltr"] .text-right {
    text-align: left !important;
}

html[dir="ltr"] .md\\:text-right {
    text-align: left !important;
}

@media (min-width: 768px) {
    html[dir="ltr"] .md\\:text-right {
        text-align: left !important;
    }
}

/* =========================================
 * Urdu Language Support - پشتیبانی زبان اردو
 * =========================================
*/

html[lang="ur"] body,
html[lang="ur"] {
    font-family: 'Noto Nastaliq Urdu', 'Vazirmatn', sans-serif;
}

html[lang="ur"] h1,
html[lang="ur"] h2,
html[lang="ur"] h3,
html[lang="ur"] h4,
html[lang="ur"] h5,
html[lang="ur"] h6 {
    font-family: 'Noto Nastaliq Urdu', 'Vazirmatn', sans-serif;
}

html[lang="ur"] p,
html[lang="ur"] span,
html[lang="ur"] a,
html[lang="ur"] li,
html[lang="ur"] label,
html[lang="ur"] input,
html[lang="ur"] textarea,
html[lang="ur"] select,
html[lang="ur"] button {
    font-family: 'Noto Nastaliq Urdu', 'Vazirmatn', sans-serif;
}

/* Urdu specific line height adjustments */
html[lang="ur"] body {
    line-height: 2;
}

html[lang="ur"] p {
    line-height: 2.2;
}

html[lang="ur"] h1 {
    line-height: 1.8;
}

html[lang="ur"] h2,
html[lang="ur"] h3 {
    line-height: 1.7;
}

html[lang="ur"] .hero-main-title {
    font-family: 'Noto Nastaliq Urdu', 'Vazirmatn', sans-serif;
}

html[lang="ur"] .btn-primary,
html[lang="ur"] .language-switcher-button,
html[lang="ur"] .language-option {
    font-family: 'Noto Nastaliq Urdu', 'Vazirmatn', sans-serif;
}