/* assets/css/style.css */

/* بارگذاری فونت لوکال وزیرمتن */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
body {
    font-family: 'Vazirmatn', sans-serif;
    scroll-behavior: smooth;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark .glass {
    background: rgba(12, 44, 69, 0.85);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #071A2B;
}

::-webkit-scrollbar-thumb {
    background: #0C2C45;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F6CE0F;
}

/* --- NEW ANIMATIONS --- */

/* 1. Floating Animation (برای المان‌های پس‌زمینه) */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* 2. Shimmer Effect (برای دکمه‌ها و کارت‌ها) */
@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.group:hover .animate-shimmer {
    animation: shimmer 1.5s infinite;
}

/* 3. Text Gradient Flow (برای تیترهای اصلی) */
.text-gradient-flow {
    background-size: 200% auto;
    animation: textFlow 5s linear infinite;
}

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

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

/* 4. Soft Fade In Up (نرم‌تر از AOS) */
@keyframes fadeInUpSoft {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUpSoft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 5. Card Hover Lift & Glow */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 30px -10px rgba(246, 206, 15, 0.1);
    /* Yellow glow in dark mode */
}

/* Loader */
.loader {
    border: 3px solid rgba(246, 206, 15, 0.3);
    border-top: 3px solid #F6CE0F;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

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

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