/* Reset و تعریف متغیرها */

:root {
    /* رنگ‌های تم روشن */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #48ff48;
    --primary-600: #009e00;
    --primary-700: #02ae5d;
    --primary-900: #006837;
    /* رنگ‌های خاکستری */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    /* رنگ‌های حالت تیره */
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --dark-surface-light: #334155;
    --dark-text: #f1f5f9;
    --dark-text-secondary: #94a3b8;
    /* رنگ‌های سیگنال */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    /* سایه‌ها */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    /* انیمیشن‌ها */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    /* سایر متغیرها */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}


/* تم تاریک */

[data-theme="dark"] {
    --color-background: var(--dark-bg);
    --color-surface: var(--dark-surface);
    --color-surface-light: var(--dark-surface-light);
    --color-text: var(--dark-text);
    --color-text-secondary: var(--dark-text-secondary);
    --color-border: var(--dark-surface-light);
    --color-shadow: rgba(0, 0, 0, 0.3);
}


/* تم روشن */

[data-theme="light"] {
    --color-background: var(--gray-50);
    --color-surface: white;
    --color-surface-light: var(--gray-100);
    --color-text: var(--gray-900);
    --color-text-secondary: var(--gray-600);
    --color-border: var(--gray-200);
    --color-shadow: rgba(0, 0, 0, 0.1);
}


/* Reset و تنظیمات پایه */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Vazirmatn', Roboto, 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}


/* تایپوگرافی */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-300));
    border-radius: var(--radius-full);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 1.125rem;
}


/* لینک‌ها */

a {
    color: var(--primary-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-600);
}


/* Utility Classes */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* دکمه‌ها */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-600);
    border-color: var(--primary-600);
}

.btn-secondary:hover {
    background-color: var(--primary-50);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}


/* ناوبری */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-surface);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(var(--color-surface-rgb), 0.9);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    border-radius: var(--radius);
    color: white;
    font-size: 1.5rem;
}
.logo-icon img{
    width: 40px;
    height: 40px;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-300));
    border-radius: var(--radius-full);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-600);
}

.nav-link.active::after {
    width: 100%;
}


/* منوی همبرگر */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text);
    border-radius: var(--radius-full);
    transition: all var(--transition);
    transform-origin: left center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0px, -2px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0px, 2px);
}


/* دکمه تغییر تم */

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-light);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--primary-500);
    transform: rotate(15deg);
}

.theme-toggle .sun,
.theme-toggle .moon {
    position: absolute;
    transition: transform var(--transition), opacity var(--transition);
}

.theme-toggle .sun {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.theme-toggle .moon {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

[data-theme="dark"] .theme-toggle .sun {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

[data-theme="dark"] .theme-toggle .moon {
    opacity: 1;
    transform: scale(1) rotate(0);
}


/* بخش Hero */

.hero {
    padding-top: 10rem;
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%), radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}


/* کارت‌های خدمات */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-300));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    color: var(--primary-600);
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
}

.service-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}


/* بخش پلتفرم‌ها */

.platforms {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-light) 100%);
    border-radius: var(--radius-xl);
    padding: 4rem;
    margin-top: 4rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.platform-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.platform-icon {
    font-size: 3rem;
    color: var(--primary-500);
}


/* بخش مستندات */

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.doc-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

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

.doc-icon {
    font-size: 3rem;
    color: var(--primary-500);
    margin-bottom: 1.5rem;
}


/* بخش CTA */

.cta-section {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border-radius: var(--radius-xl);
    padding: 6rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

.cta-section h2,
.cta-section p {
    color: white;
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}


/* پاورقی */

.footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-500);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}


/* انیمیشن‌های ورود */

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

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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


/* رسپانسیو */

@media (max-width: 1024px) {
    h1 {
        font-size: 2.75rem;
    }
    h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition);
        box-shadow: var(--shadow-xl);
        padding: 2rem;
    }
    .nav-links.active {
        right: 0;
    }
    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .service-card,
    .doc-card {
        padding: 2rem;
    }
    .platforms {
        padding: 3rem 2rem;
    }
    .cta-section {
        padding: 4rem 2rem;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
    }
    h2 {
        font-size: 1.875rem;
    }
    .section {
        padding: 4rem 0;
    }
    .services-grid,
    .docs-grid {
        grid-template-columns: 1fr;
    }
}
/* دکمه شناور تغییر تم */
.theme-switcher {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    animation: float 3s ease-in-out infinite;
}

/* دکمه تغییر تم */
.theme-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* حلقه انیمیشن دور دکمه */
.theme-toggle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.8) 0%, 
        rgba(139, 92, 246, 0.8) 50%, 
        rgba(236, 72, 153, 0.8) 100%);
    z-index: -1;
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.theme-toggle:hover::before {
    opacity: 1;
}

/* حلقه داخلی */
.theme-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulseRing 2s ease-in-out infinite;
}

/* آیکون‌ها */
.theme-toggle .sun,
.theme-toggle .moon {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* آیکون خورشید (حالت روشن) */
.theme-toggle .sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* آیکون ماه (حالت تاریک) */
.theme-toggle .moon {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

/* انیمیشن‌های آیکون در حالت تاریک */
[data-theme="dark"] .theme-toggle .sun {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

[data-theme="dark"] .theme-toggle .moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* تغییر رنگ دکمه در حالت تاریک */
[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
}

[data-theme="dark"] .theme-toggle:hover {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%);
}

/* انیمیشن شناور بودن */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* انیمیشن کلیک */
@keyframes clickEffect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.theme-toggle.clicked {
    animation: clickEffect 0.3s ease;
}

/* Tooltip (راهنما) */
.theme-toggle::before {
    content: attr(aria-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 10000;
    box-shadow: var(--shadow-md);
    pointer-events: none;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 5px solid transparent;
    border-top-color: var(--color-surface);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 10000;
    pointer-events: none;
}

.theme-toggle:hover::before,
.theme-toggle:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .theme-switcher {
        bottom: 20px;
        left: 20px;
    }
    
    .theme-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    /* کاهش انیمیشن در موبایل برای صرفه‌جویی در باتری */
    @media (prefers-reduced-motion: reduce) {
        .theme-switcher,
        .theme-toggle,
        .theme-toggle::before,
        .theme-toggle::after {
            animation: none;
        }
        
        .theme-toggle:hover {
            transform: scale(1.05);
        }
    }
}

/* حالت کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
    .theme-switcher {
        animation: none;
    }
    
    .theme-toggle {
        animation: none;
    }
    
    .theme-toggle::before,
    .theme-toggle::after {
        animation: none !important;
    }
    
    .theme-toggle:hover {
        transform: scale(1.05);
    }
}

/* حالت تاریک برای tooltip */
[data-theme="dark"] .theme-toggle::before {
    background-color: var(--dark-surface);
    color: var(--dark-text);
}

[data-theme="dark"] .theme-toggle::after {
    border-top-color: var(--dark-surface);
}

/* انیمیشن تبدیل آیکون */
@keyframes sunToMoon {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.5) rotate(90deg);
        opacity: 0;
    }
    100% {
        transform: scale(0.5) rotate(90deg);
        opacity: 0;
    }
}

@keyframes moonToSun {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.5) rotate(-90deg);
        opacity: 0;
    }
    100% {
        transform: scale(0.5) rotate(-90deg);
        opacity: 0;
    }
}

/* افکت ذرات */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleFloat 1.5s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 0), var(--ty, -50px)) scale(0);
        opacity: 0;
    }
}