/* ================================================================
   استایل‌های پایه و انیمیشن‌ها
   ================================================================ */

@layer base {
    body {
        font-family: 'Vazirmatn', 'IRANSans', sans-serif;
        scroll-behavior: smooth;
    }
    
    /* اسکرول بار سفارشی */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #f1f5f9;
    }
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #3b82f6, #8b5cf6);
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #2563eb, #7c3aed);
    }
    .dark ::-webkit-scrollbar-track {
        background: #1e293b;
    }
    .dark ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #60a5fa, #a78bfa);
    }
    .dark ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    }
}

/* انیمیشن‌های عمومی */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* انیمیشن شناور */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.float {
    animation: float 4s ease-in-out infinite;
}
.float-delay {
    animation: float 4s ease-in-out 1s infinite;
}

/* انیمیشن نبض */
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}
.pulse-ring {
    animation: pulse-ring 2s ease-in-out infinite;
}

/* کارت‌های شیشه‌ای (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}
.dark .glass-card {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.dark .glass-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* دکمه گرادیانت */
.btn-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.7rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    color: white;
}

/* لینک‌های فوتر با افکت زیرخط */
.footer-link {
    position: relative;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}
.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}
.footer-link:hover {
    color: #f3f4f6;
}
.footer-link:hover::after {
    width: 100%;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .glass-card {
        border-radius: 1rem;
    }
}