/* animations.css - استایل‌های انیمیشن و افکت‌های پیشرفته */

/* انیمیشن محو و ظاهر شدن کارت‌ها */
@keyframes scaleSubtle {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.card-item {
    animation: scaleSubtle 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
    opacity: 0;
}

.card-item:nth-child(1) {
    animation-delay: 0.1s;
}

.card-item:nth-child(2) {
    animation-delay: 0.2s;
}

.card-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* افکت hover روی کارت‌ها */
.service-card {
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transform-origin: center;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.01);
}

/* حاشیه‌های درخشان با گرادیان */
.card-border-glow {
    position: relative;
    border-radius: 1.75rem;
}

.card-border-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(145deg, rgba(236, 72, 153, 0), rgba(236, 72, 153, 0.5), rgba(59, 130, 246, 0.6));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* گرادیان متفاوت برای دارک مود */
.dark .card-border-glow::after {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.7), rgba(96, 165, 250, 0.8));
}

.service-card:hover.card-border-glow::after {
    opacity: 1;
}

/* استایل کامل کارت‌ها در دارک مود */
.dark .service-card {
    background: rgb(30, 41, 59);
    border: 1px solid rgb(29, 78, 216);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.3);
}

.dark .service-card:hover {
    box-shadow: 0 25px 30px -12px rgba(59, 130, 246, 0.3);
}

/* افکت آیکون‌ها */
.icon-shine {
    transition: all 0.3s ease;
}

.service-card:hover .icon-shine {
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
    transform: scale(1.08) rotate(2deg);
}

.dark .service-card:hover .icon-shine {
    filter: drop-shadow(0 8px 12px rgba(59, 130, 246, 0.3));
}

/* گرادیان متن مدرن (صورتی به آبی در لایت مود - آبی به آبی روشن در دارک مود) */
.gradient-text {
    background: linear-gradient(135deg, #ec4899 0%, #3b82f6 80%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

.dark .gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

/* فلش انیمیشن در لینک‌ها */
.arrow-hover svg {
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.group:hover .arrow-hover svg {
    transform: translateX(-5px);
}

/* پس‌زمینه دات دار مدرن */
.bg-modern-pattern {
    background-image: radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.1) 1.5px, transparent 1px);
    background-size: 28px 28px;
}

.dark .bg-modern-pattern {
    background-image: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 1.5px, transparent 1px);
    background-size: 28px 28px;
}

/* ریسپانسیو بهتر برای تبلت */
@media (max-width: 768px) {
    .service-card:hover {
        transform: translateY(-6px) scale(1.01);
    }

    .gradient-text {
        background-size: 100%;
    }
}

/* اطمینان از رنگ متن در دارک مود */
.dark p,
.dark h3,
.dark span:not(.gradient-text) {
    color-scheme: dark;
}

/* افکت شیشه‌ای ملایم برای کارت‌ها در دارک مود (اختیاری) */
.dark .service-card {
    backdrop-filter: blur(2px);
}
/* استایل کامل برای هدر در دارک مود */
.dark .dark\:bg-blue-950 {
    background-color: #172554;
    transition: all 0.3s ease;
}

/* افکت درخشش ملایم در دارک مود */
.dark .dark\:shadow-blue-900\/30 {
    box-shadow: 0 20px 25px -12px rgba(30, 58, 138, 0.4);
}

/* اطمینان از سفیدی متن در دارک مود */
.dark .dark\:text-white,
.dark .dark\:text-slate-100 {
    color: #f8fafc !important;
}
/* dark-mode-fix.css - راه حل کامل برای دارک مود بدون نیاز به build */

/* تعریف رنگ‌های دارک مود */
.dark {
    color-scheme: dark;
}

/* پس‌زمینه اصلی سکشن در دارک مود */
.dark .dark\:bg-blue-900 {
    background-color: #1e3a8a !important;
}

/* پس‌زمینه هدر در دارک مود */
.dark .dark\:bg-blue-950 {
    background-color: #172554 !important;
}

/* متن‌ها در دارک مود */
.dark .dark\:text-white {
    color: #ffffff !important;
}

.dark .dark\:text-slate-100 {
    color: #f1f5f9 !important;
}

.dark .dark\:text-slate-200 {
    color: #e2e8f0 !important;
}

.dark .dark\:text-slate-300 {
    color: #cbd5e1 !important;
}

.dark .dark\:text-blue-300 {
    color: #93c5fd !important;
}

.dark .dark\:text-blue-400 {
    color: #60a5fa !important;
}

/* کارت‌ها در دارک مود */
.dark .dark\:bg-slate-800 {
    background-color: #1e293b !important;
}

.dark .dark\:border-blue-700 {
    border-color: #1d4ed8 !important;
}

/* آیکون‌ها در دارک مود */
.dark .dark\:bg-blue-800 {
    background-color: #1e40af !important;
}

/* سایه‌ها در دارک مود */
.dark .dark\:shadow-blue-900\/30 {
    box-shadow: 0 20px 25px -12px rgba(30, 58, 138, 0.4) !important;
}
button svg {
    pointer-events: none;
}

.dark .dark\:shadow-none {
    box-shadow: none !important;
}

/* گرادیانت متن در دارک مود */
.dark .gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
}

/* افکت‌های شفافیت در دارک مود */
.dark .dark\:from-blue-500\/10 {
    --tw-gradient-from: rgba(59, 130, 246, 0.1) !important;
}

.dark .dark\:opacity-10 {
    opacity: 0.1 !important;
}

/* پدینگ و مارجین‌ها (این کلاس‌ها نیاز به بازنویسی ندارند) */
.dark .dark\:py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.dark .dark\:px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.dark .dark\:rounded-3xl {
    border-radius: 1.5rem !important;
}

.dark .dark\:shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}