@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Thin.woff2') format('woff2'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@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-Medium.woff2') format('woff2'); font-weight: 500; 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; }

* { font-family: 'Vazirmatn', 'Tahoma', sans-serif; }
.glass { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.2); }
.dark .glass { background: rgba(15, 23, 42, 0.7); border: 1px solid rgba(255, 255, 255, 0.05); }
.gradient-text { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #60a5fa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dark .gradient-text { background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; right: 0; width: 0; height: 2px; background: #3b82f6; transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }
.nav-link-active::after { width: 100% !important; }
.hero-bg { background: radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.15) 0%, transparent 50%), radial-gradient(ellipse at bottom left, rgba(29, 78, 216, 0.1) 0%, transparent 50%); }
.dark .hero-bg { background: radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.1) 0%, transparent 50%), radial-gradient(ellipse at bottom left, rgba(29, 78, 216, 0.05) 0%, transparent 50%); }
.skill-card { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.skill-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.3); }
.project-card { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; }
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover img { transform: scale(1.1); }
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::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.5s; }
.btn-primary:hover::before { left: 100%; }
.chat-widget { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.chat-widget.open { transform: scale(1); opacity: 1; }
.chat-widget.closed { transform: scale(0.8); opacity: 0; pointer-events: none; }
.product-card-home { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.product-card-home:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -12px rgba(59,130,246,0.25); }
.service-card { transition: all 0.4s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -15px rgba(59,130,246,0.2); }
.testimonial-card { transition: all 0.4s ease; }
.testimonial-card:hover { transform: translateY(-4px); }
.stat-counter { font-variant-numeric: tabular-nums; }
.article-content h2 { font-size: 1.5rem; font-weight: 900; margin: 2rem 0 1rem; color: inherit; }
.article-content p { line-height: 2; margin-bottom: 1rem; }
.article-content ul { list-style: disc; padding-right: 1.5rem; margin-bottom: 1rem; }
.article-content ul li { margin-bottom: 0.5rem; line-height: 1.8; }
.article-content code { background: #f1f5f9; padding: 0.2rem 0.5rem; border-radius: 0.25rem; font-family: monospace; font-size: 0.875rem; }
.dark .article-content code { background: #1e293b; }
.article-content pre { background: #1e293b; color: #e2e8f0; padding: 1rem; border-radius: 0.75rem; overflow-x: auto; margin: 1rem 0; }
.article-content pre code { background: transparent; padding: 0; }
.tab-btn { border-bottom: 2px solid transparent; transition: all 0.3s ease; }
.tab-btn.active { border-color: #3b82f6; color: #3b82f6; }
.dark .tab-btn.active { color: #60a5fa; border-color: #60a5fa; }
.gallery-thumb { transition: all 0.3s ease; cursor: pointer; }
.gallery-thumb.active, .gallery-thumb:hover { ring: 2px; ring-color: #3b82f6; opacity: 1; }
.gallery-thumb:not(.active) { opacity: 0.6; }
.quantity-btn:active { transform: scale(0.9); }
.toast { transform: translateY(100px); opacity: 0; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }
.toast.show { transform: translateY(0); opacity: 1; }
.timeline-item { position: relative; padding-right: 2rem; }
.timeline-item::before { content: ''; position: absolute; right: 0; top: 0.5rem; width: 12px; height: 12px; border-radius: 50%; background: #3b82f6; border: 3px solid white; box-shadow: 0 0 0 3px #3b82f6; }
.dark .timeline-item::before { border-color: #0f172a; }
.timeline-item::after { content: ''; position: absolute; right: 5px; top: 1.5rem; width: 2px; height: calc(100% - 1rem); background: #e2e8f0; }
.dark .timeline-item::after { background: #334155; }
.timeline-item:last-child::after { display: none; }
.skill-bar { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.dark .skill-bar { background: #334155; }
.skill-progress { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #3b82f6, #60a5fa); transition: width 1.5s ease; }
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.dark .custom-scrollbar::-webkit-scrollbar-thumb { background: #334155; }
.comment-reply { border-right: 2px solid #e2e8f0; margin-right: 1rem; padding-right: 1rem; }
.dark .comment-reply { border-right-color: #334155; }
.comment-box { transition: all 0.3s ease; }
.comment-box:focus-within { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.payment-card { transition: all 0.3s ease; cursor: pointer; border: 2px solid transparent; }
.payment-card:hover { border-color: #3b82f6; }
.payment-card.selected { border-color: #3b82f6; background: rgba(59,130,246,0.05); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes slideUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-slide-up { animation: slideUp 0.8s ease-out forwards; }
.animate-fade-in { animation: fadeIn 1s ease-out forwards; }
