/* ===== استایل‌های اصلی قالب رزومه سه‌بعدی ===== */

/* ===== تنظیمات پایه ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif !important;
    background: #030a13 !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth !important;
    color: #e2e8f0 !important;
    min-height: 100vh;
}

/* ===== کلاس‌های رنگ سفارشی (مشابه Tailwind) ===== */
.bg-brand-50 { background-color: #f0f7ff; }
.bg-brand-100 { background-color: #e0effe; }
.bg-brand-200 { background-color: #bae0fd; }
.bg-brand-300 { background-color: #7cc7fb; }
.bg-brand-400 { background-color: #38a9f8; }
.bg-brand-500 { background-color: #0e8de9; }
.bg-brand-600 { background-color: #026fc7; }
.bg-brand-700 { background-color: #0358a1; }
.bg-brand-800 { background-color: #074b85; }
.bg-brand-900 { background-color: #0c3f6e; }
.bg-brand-950 { background-color: #06172a; }

.text-brand-50 { color: #f0f7ff; }
.text-brand-100 { color: #e0effe; }
.text-brand-200 { color: #bae0fd; }
.text-brand-300 { color: #7cc7fb; }
.text-brand-400 { color: #38a9f8; }
.text-brand-500 { color: #0e8de9; }
.text-brand-600 { color: #026fc7; }
.text-brand-700 { color: #0358a1; }
.text-brand-800 { color: #074b85; }
.text-brand-900 { color: #0c3f6e; }
.text-brand-950 { color: #06172a; }

.border-brand-50 { border-color: #f0f7ff; }
.border-brand-100 { border-color: #e0effe; }
.border-brand-200 { border-color: #bae0fd; }
.border-brand-300 { border-color: #7cc7fb; }
.border-brand-400 { border-color: #38a9f8; }
.border-brand-500 { border-color: #0e8de9; }
.border-brand-600 { border-color: #026fc7; }
.border-brand-700 { border-color: #0358a1; }
.border-brand-800 { border-color: #074b85; }
.border-brand-900 { border-color: #0c3f6e; }
.border-brand-950 { border-color: #06172a; }

/* ===== کلاس‌های رنگ‌های Slate (برای متن‌ها) ===== */
.text-slate-50 { color: #f8fafc; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-slate-950 { color: #020617; }

.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-300 { background-color: #cbd5e1; }
.bg-slate-400 { background-color: #94a3b8; }
.bg-slate-500 { background-color: #64748b; }
.bg-slate-600 { background-color: #475569; }
.bg-slate-700 { background-color: #334155; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-950 { background-color: #020617; }

.border-slate-50 { border-color: #f8fafc; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-slate-400 { border-color: #94a3b8; }
.border-slate-500 { border-color: #64748b; }
.border-slate-600 { border-color: #475569; }
.border-slate-700 { border-color: #334155; }
.border-slate-800 { border-color: #1e293b; }
.border-slate-900 { border-color: #0f172a; }
.border-slate-950 { border-color: #020617; }

/* ===== کلاس‌های متن ===== */
.text-white { color: #ffffff !important; }
.text-black { color: #000000 !important; }
.text-rose-400 { color: #fb7185; }
.text-rose-500 { color: #f43f5e; }

.bg-rose-400 { background-color: #fb7185; }
.bg-rose-500 { background-color: #f43f5e; }
.bg-rose-950 { background-color: #4c0519; }

.border-rose-500 { border-color: #f43f5e; }

/* ===== کلاس‌های پس‌زمینه ===== */
.bg-white { background-color: #ffffff !important; }
.bg-black { background-color: #000000 !important; }
.bg-transparent { background-color: transparent !important; }

/* ===== کلاس‌های نمایش ===== */
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline-flex { display: inline-flex !important; }
.flex { display: flex !important; }
.grid { display: grid !important; }
.hidden { display: none !important; }

/* ===== کلاس‌های فلکس ===== */
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-12 { gap: 3rem !important; }

/* ===== کلاس‌های گرید ===== */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr) !important; }
.lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr) !important; }

.lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
.lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
.lg\:col-span-12 { grid-column: span 12 / span 12 !important; }

/* ===== کلاس‌های فاصله ===== */
.m-0 { margin: 0 !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-16 { margin-bottom: 4rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.mt-12 { margin-top: 3rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pt-8 { padding-top: 2rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-4 { padding: 1rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.py-14 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.py-32 { padding-top: 8rem !important; padding-bottom: 8rem !important; }

/* ===== کلاس‌های اندازه ===== */
.w-full { width: 100% !important; }
.w-11 { width: 2.75rem !important; }
.w-36 { width: 9rem !important; }
.w-80 { width: 20rem !important; }
.h-3 { height: 0.75rem !important; }
.h-11 { height: 2.75rem !important; }
.h-20 { height: 5rem !important; }
.h-36 { height: 9rem !important; }
.h-52 { height: 13rem !important; }
.h-80 { height: 20rem !important; }
.min-h-screen { min-height: 100vh !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-6xl { max-width: 72rem !important; }

/* ===== کلاس‌های متن ===== */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
.text-6xl { font-size: 3.75rem !important; line-height: 1 !important; }
.text-8xl { font-size: 6rem !important; line-height: 1 !important; }
.font-thin { font-weight: 100 !important; }
.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-black { font-weight: 900 !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.uppercase { text-transform: uppercase !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-wide { letter-spacing: 0.025em !important; }

/* ===== کلاس‌های موقعیت ===== */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.inset-0 { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }
.inset-2 { top: 0.5rem !important; right: 0.5rem !important; bottom: 0.5rem !important; left: 0.5rem !important; }
.top-0 { top: 0 !important; }
.top-2 { top: 0.5rem !important; }
.top-20 { top: 5rem !important; }
.left-2 { left: 0.5rem !important; }
.left-4 { left: 1rem !important; }
.right-6 { right: 1.5rem !important; }
.bottom-6 { bottom: 1.5rem !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }

/* ===== کلاس‌های Overflow ===== */
.overflow-hidden { overflow: hidden !important; }
.overflow-y-auto { overflow-y: auto !important; }
.line-clamp-3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ===== کلاس‌های دور ===== */
.rounded-full { border-radius: 9999px !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-\[2\.5rem\] { border-radius: 2.5rem !important; }

/* ===== کلاس‌های Border ===== */
.border { border-width: 1px !important; border-style: solid !important; }
.border-2 { border-width: 2px !important; border-style: solid !important; }
.border-4 { border-width: 4px !important; border-style: solid !important; }
.border-dashed { border-style: dashed !important; }
.border-t { border-top-width: 1px !important; border-top-style: solid !important; }
.border-b { border-bottom-width: 1px !important; border-bottom-style: solid !important; }
.border-r-4 { border-right-width: 4px !important; border-right-style: solid !important; }
.border-r-brand-500 { border-right-color: #0e8de9 !important; }
.border-r-slate-400 { border-right-color: #94a3b8 !important; }
.pr-4 { padding-right: 1rem !important; }

/* ===== کلاس‌های سایه ===== */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; }

/* ===== کلاس‌های تبدیل ===== */
.transform { transform: translateZ(0) !important; }
.hover\:scale-105:hover { transform: scale(1.05) !important; }
.hover\:scale-110:hover { transform: scale(1.1) !important; }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem) !important; }
.transition { transition-property: all !important; transition-duration: 300ms !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; }
.transition-all { transition: all 0.3s ease !important; }
.duration-300 { transition-duration: 300ms !important; }
.duration-500 { transition-duration: 500ms !important; }
.duration-1000 { transition-duration: 1000ms !important; }

/* ===== کلاس‌های افکت ===== */
.hover\:opacity-95:hover { opacity: 0.95 !important; }
.hover\:opacity-100:hover { opacity: 1 !important; }
.opacity-0 { opacity: 0 !important; }
.opacity-35 { opacity: 0.35 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-70 { opacity: 0.7 !important; }
.hover\:bg-brand-800:hover { background-color: #074b85 !important; }
.hover\:bg-brand-900:hover { background-color: #0c3f6e !important; }
.hover\:bg-brand-600:hover { background-color: #026fc7 !important; }
.hover\:bg-brand-900\/50:hover { background-color: rgba(12, 63, 110, 0.5) !important; }
.hover\:bg-rose-600:hover { background-color: #e11d48 !important; }
.hover\:text-brand-300:hover { color: #7cc7fb !important; }
.hover\:text-brand-400:hover { color: #38a9f8 !important; }
.hover\:text-white:hover { color: #ffffff !important; }

.bg-brand-900\/50 { background-color: rgba(12, 63, 110, 0.5) !important; }
.bg-brand-900\/60 { background-color: rgba(12, 63, 110, 0.6) !important; }
.bg-brand-950\/40 { background-color: rgba(6, 23, 42, 0.4) !important; }
.bg-brand-950\/60 { background-color: rgba(6, 23, 42, 0.6) !important; }
.bg-brand-950\/70 { background-color: rgba(6, 23, 42, 0.7) !important; }
.bg-brand-950\/85 { background-color: rgba(6, 23, 42, 0.85) !important; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1) !important; }
.bg-rose-950\/40 { background-color: rgba(76, 5, 25, 0.4) !important; }

/* ===== کلاس‌های backdrop ===== */
.backdrop-blur-lg { backdrop-filter: blur(16px) !important; -webkit-backdrop-filter: blur(16px) !important; }

/* ===== کلاس‌های انیمیشن ===== */
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important; }
.animate-spin { animation: spin 1s linear infinite !important; }
.animate-spin-slow { animation: spin 60s linear infinite !important; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== کلاس‌های ویژه ===== */
.blue-cyber-text {
    background: linear-gradient(135deg, #38a9f8 0%, #0e8de9 50%, #bae0fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blue-gradient-bg {
    background: linear-gradient(135deg, #0e8de9 0%, #0358a1 100%);
}

.shadow-neon-glow {
    box-shadow: 0 0 20px rgba(14, 141, 233, 0.45);
}

.shadow-neon-glow-lg {
    box-shadow: 0 0 35px rgba(14, 141, 233, 0.65);
}

.shadow-cyber-card {
    box-shadow: 0 15px 35px -5px rgba(6, 23, 42, 0.15), 0 5px 15px -5px rgba(14, 141, 233, 0.1);
}

/* ===== کارت‌های شیشه‌ای ===== */
.glass-card-cyber {
    background: rgba(6, 23, 42, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(14, 141, 233, 0.25) !important;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease, border-color 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.glass-card-cyber:hover {
    border-color: rgba(56, 169, 248, 0.6) !important;
    box-shadow: 0 20px 40px rgba(14, 141, 233, 0.25) !important;
}

/* ===== دکمه‌ها ===== */
.btn-neon-outline {
    border: 2px solid #0e8de9 !important;
    color: #7cc7fb !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: rgba(14, 141, 233, 0.05) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
}

.btn-neon-outline:hover {
    background-color: #0e8de9 !important;
    color: #ffffff !important;
    box-shadow: 0 0 25px rgba(14, 141, 233, 0.7) !important;
    transform: scale(1.03) !important;
}

/* ===== پرسپکتیو سه‌بعدی ===== */
.perspective-container {
    perspective: 1000px !important;
}

.tilt-element {
    transition: transform 0.1s ease-out !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
}

.tilt-element:hover {
    transform: rotateX(5deg) rotateY(5deg) scale(1.02) !important;
}

/* ===== پس‌زمینه سه‌بعدی ===== */
#cyber-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    display: block !important;
}

/* ===== اسکرول بار ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #030a13;
}
::-webkit-scrollbar-thumb {
    background: #0e8de9;
    border-radius: 4px;
}

/* ===== حالت ویرایش ===== */
.editable-active {
    outline: 2px dashed #38a9f8 !important;
    background-color: rgba(14, 141, 233, 0.08) !important;
    cursor: pointer !important;
    border-radius: 4px !important;
}

.editable-active:hover {
    background-color: rgba(14, 141, 233, 0.15) !important;
}

/* ===== منوها ===== */
nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

nav ul li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

nav ul li a {
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

/* ===== فرم‌ها ===== */
input, textarea, select {
    background: rgba(6, 23, 42, 0.7) !important;
    border: 1px solid rgba(14, 141, 233, 0.2) !important;
    color: #ffffff !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #38a9f8 !important;
    box-shadow: 0 0 0 3px rgba(56, 169, 248, 0.2) !important;
    outline: none !important;
}

/* ===== کلاس‌های ریسپانسیو ===== */
@media (max-width: 768px) {
    .glass-card-cyber {
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    .tilt-element:hover {
        transform: none !important;
    }
    .hidden-sm { display: none !important; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .md\:col-span-1 { grid-column: span 1 / span 1 !important; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex !important; }
    .lg\:hidden { display: none !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr) !important; }
    .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
    .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
    .lg\:col-span-12 { grid-column: span 12 / span 12 !important; }
    .lg\:text-right { text-align: right !important; }
    .lg\:justify-start { justify-content: flex-start !important; }
}

/* ===== چاپ ===== */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    #cyber-canvas, .no-print {
        display: none !important;
    }
    .glass-card-cyber {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #999999 !important;
        box-shadow: none !important;
        transform: none !important;
        page-break-inside: avoid;
    }
    .blue-cyber-text {
        -webkit-text-fill-color: initial !important;
        color: #0358a1 !important;
    }
    .blue-gradient-bg {
        background: #0358a1 !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}